Skip to content

Commit

Permalink
Pass gss_localname() through SPNEGO
Browse files Browse the repository at this point in the history
ticket: 8897 (new)
  • Loading branch information
greghudson committed Apr 28, 2020
1 parent 90f9f15 commit f7b8a64
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
8 changes: 8 additions & 0 deletions src/lib/gssapi/spnego/gssapiP_spnego.h
Expand Up @@ -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,
Expand Down
9 changes: 8 additions & 1 deletion src/lib/gssapi/spnego/spnego_mech.c
Expand Up @@ -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 */
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit f7b8a64

Please sign in to comment.