]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Pass gss_localname() through SPNEGO 1064/head
authorGreg Hudson <ghudson@mit.edu>
Sun, 26 Apr 2020 23:55:54 +0000 (19:55 -0400)
committerGreg Hudson <ghudson@mit.edu>
Tue, 28 Apr 2020 15:41:37 +0000 (11:41 -0400)
ticket: 8897 (new)

src/lib/gssapi/spnego/gssapiP_spnego.h
src/lib/gssapi/spnego/spnego_mech.c

index a9376331456b26eb90a77533bc04aeac62270bc3..066ec736fd16e9754d07f03360590ec91d8e599a 100644 (file)
@@ -357,6 +357,14 @@ OM_uint32 KRB5_CALLCONV spnego_gss_wrap_size_limit
        OM_uint32       *max_input_size
 );
 
+OM_uint32 KRB5_CALLCONV spnego_gss_localname
+(
+       OM_uint32 *minor_status,
+       const gss_name_t pname,
+       const gss_const_OID mech_type,
+       gss_buffer_t localname
+);
+
 OM_uint32 KRB5_CALLCONV spnego_gss_get_mic
 (
        OM_uint32 *minor_status,
index c9305c722aac21db60e49f47cee7e6049a23e0d7..c7f99e8f7b721d980bfe40ae7bb5b6cfd9574fec 100644 (file)
@@ -237,7 +237,7 @@ static struct gss_config spnego_mechanism =
        spnego_gss_inquire_context,     /* gss_inquire_context */
        NULL,                           /* gss_internal_release_oid */
        spnego_gss_wrap_size_limit,     /* gss_wrap_size_limit */
-       NULL,                           /* gssd_pname_to_uid */
+       spnego_gss_localname,
        NULL,                           /* gss_userok */
        NULL,                           /* gss_export_name */
        spnego_gss_duplicate_name,      /* gss_duplicate_name */
@@ -2371,6 +2371,13 @@ spnego_gss_wrap_size_limit(
        return (ret);
 }
 
+OM_uint32 KRB5_CALLCONV
+spnego_gss_localname(OM_uint32 *minor_status, const gss_name_t pname,
+                    const gss_const_OID mech_type, gss_buffer_t localname)
+{
+       return gss_localname(minor_status, pname, GSS_C_NO_OID, localname);
+}
+
 OM_uint32 KRB5_CALLCONV
 spnego_gss_get_mic(
                OM_uint32 *minor_status,