aboutsummaryrefslogtreecommitdiff
path: root/lib/libgssapi/mech_switch.h
diff options
context:
space:
mode:
authorDoug Rabson <dfr@FreeBSD.org>2008-08-06 14:02:05 +0000
committerDoug Rabson <dfr@FreeBSD.org>2008-08-06 14:02:05 +0000
commit8f55a568f69c5b2fadaa020a452c2043a7dcf65f (patch)
treea928d209076dec713f636439ec8dc5be13863460 /lib/libgssapi/mech_switch.h
parent503765e486a9c33dc1875451a7c94e761a8d8a8d (diff)
downloadsrc-8f55a568f69c5b2fadaa020a452c2043a7dcf65f.tar.gz
src-8f55a568f69c5b2fadaa020a452c2043a7dcf65f.zip
Add an implementation of the RPCSEC_GSS authentication protocol for RPC. This
is based on an old implementation from the University of Michigan with lots of changes and fixes by me and the addition of a Solaris-compatible API. Sponsored by: Isilon Systems Reviewed by: alfred
Notes
Notes: svn path=/head/; revision=181344
Diffstat (limited to 'lib/libgssapi/mech_switch.h')
-rw-r--r--lib/libgssapi/mech_switch.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/libgssapi/mech_switch.h b/lib/libgssapi/mech_switch.h
index 876adcda9e64..99e254e73b6f 100644
--- a/lib/libgssapi/mech_switch.h
+++ b/lib/libgssapi/mech_switch.h
@@ -304,6 +304,13 @@ typedef OM_uint32 _gss_pseudo_random
gss_buffer_t /* PRF output */
);
+typedef OM_uint32 _gss_pname_to_uid
+ (OM_uint32 *, /* minor status */
+ gss_name_t pname, /* principal name */
+ gss_OID mech, /* mechanism to query */
+ uid_t *uidp /* pointer to UID for result */
+ );
+
struct _gss_mech_switch {
SLIST_ENTRY(_gss_mech_switch) gm_link;
const char *gm_name_prefix;
@@ -343,6 +350,7 @@ struct _gss_mech_switch {
_gss_set_sec_context_option *gm_set_sec_context_option;
_gss_set_cred_option *gm_set_cred_option;
_gss_pseudo_random *gm_pseudo_random;
+ _gss_pname_to_uid *gm_pname_to_uid;
};
SLIST_HEAD(_gss_mech_switch_list, _gss_mech_switch);
extern struct _gss_mech_switch_list _gss_mechs;