From fe12e6f6da58abc3cc3e2d30d3925259ad1fbf6a Mon Sep 17 00:00:00 2001 From: Sam Hartman Date: Wed, 21 Sep 2011 18:40:43 +0000 Subject: * New implementation to map a gss name to localname * Write gss_pname_to_uid in terms of gss_localname; suppress on win32 * Add test for gss_pname_to_uid indirectly testing gss_localname * gss_localname is the SPI, not gss_pname_to_uid * fix some const gss_OID->gss_const_oid Signed-off-by: Sam Hartman gss_localname: map gss name to localname git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25222 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/gssapi/generic/gssapi_ext.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'src/lib/gssapi/generic/gssapi_ext.h') diff --git a/src/lib/gssapi/generic/gssapi_ext.h b/src/lib/gssapi/generic/gssapi_ext.h index 174bef670..07f0c688e 100644 --- a/src/lib/gssapi/generic/gssapi_ext.h +++ b/src/lib/gssapi/generic/gssapi_ext.h @@ -34,12 +34,31 @@ extern "C" { /* * Solaris extensions */ +#ifndef _WIN32 OM_uint32 KRB5_CALLCONV gss_pname_to_uid (OM_uint32 *minor, const gss_name_t name, const gss_OID mech_type, uid_t *uidOut); +#endif + + /** + * Provides a platform-specific name for a GSSAPI name as + * interpreted by a given mechanism + * @param name The gss name resulting from accept_sec_context + * @param mech_type The mechanism that will be asked to map @a name to a local name + * @param localname pointer to a buffer_desc allocated by the caller + * that will be filled in with the local name on successful completion. + */ +OM_uint32 KRB5_CALLCONV +gss_localname + (OM_uint32 *minor, + const gss_name_t name, + gss_const_OID mech_type, + gss_buffer_t localname); + + /** Determine whether a mechanism name is authorized to act as a username. * -- cgit