2 * Copyright (c) 2005 Doug Rabson
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright
11 * notice, this list of conditions and the following disclaimer in the
12 * documentation and/or other materials provided with the distribution.
14 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 * $FreeBSD: src/lib/libgssapi/name.h,v 1.1 2005/12/29 14:40:20 dfr Exp $
30 struct _gss_mechanism_name {
31 HEIM_TAILQ_ENTRY(_gss_mechanism_name) gmn_link;
32 gssapi_mech_interface gmn_mech; /* mechanism ops for MN */
33 gss_OID gmn_mech_oid; /* mechanism oid for MN */
34 gss_name_t gmn_name; /* underlying MN */
36 HEIM_TAILQ_HEAD(_gss_mechanism_name_list, _gss_mechanism_name);
39 gss_OID gn_type; /* type of name */
40 gss_buffer_desc gn_value; /* value (as imported) */
41 struct _gss_mechanism_name_list gn_mn; /* list of MNs */
45 _gss_find_mn(OM_uint32 *, struct _gss_name *, gss_const_OID,
46 struct _gss_mechanism_name **);
48 _gss_create_name(gss_name_t new_mn, gssapi_mech_interface m);
49 void _gss_mg_release_name(struct _gss_name *);
52 void _gss_mg_check_name(gss_const_name_t name);
55 _gss_mg_get_underlying_mech_name(gss_name_t name, gss_const_OID mech);
58 _gss_mech_import_name(OM_uint32 * minor_status,
60 struct _gss_name_type *names,
61 const gss_buffer_t input_name_buffer,
62 gss_const_OID input_name_type,
63 gss_name_t *output_name);
66 gss_mg_export_name(OM_uint32 *minor_status,
67 const gss_const_OID mech,
70 gss_buffer_t exported_name);
73 _gss_mech_inquire_names_for_mech(OM_uint32 * minor_status,
74 struct _gss_name_type *names,
75 gss_OID_set *name_types);