From 85cb15f043404086d7ef43e5f55f7061696643eb Mon Sep 17 00:00:00 2001 From: Luke Howard Date: Wed, 27 Apr 2011 16:10:05 +0200 Subject: [PATCH] add gssspi_authorize_localname() stub --- moonshot/mech_eap/{userok.c => authorize_localname.c} | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) rename moonshot/mech_eap/{userok.c => authorize_localname.c} (86%) diff --git a/moonshot/mech_eap/userok.c b/moonshot/mech_eap/authorize_localname.c similarity index 86% rename from moonshot/mech_eap/userok.c rename to moonshot/mech_eap/authorize_localname.c index 9853992..ef5788e 100644 --- a/moonshot/mech_eap/userok.c +++ b/moonshot/mech_eap/authorize_localname.c @@ -36,11 +36,11 @@ #include "gssapiP_eap.h" -OM_uint32 KRB5_CALLCONV -gss_userok(OM_uint32 *minor, - const gss_name_t name GSSEAP_UNUSED, - const char *user GSSEAP_UNUSED, - int *user_ok) +OM_uint32 +gssspi_authorize_localname(OM_uint32 *minor, + const gss_name_t name GSSEAP_UNUSED, + gss_const_buffer_t local_user GSSEAP_UNUSED, + gss_const_OID local_nametype GSSEAP_UNUSED) { /* * The MIT mechglue will fallback to comparing names in the absence @@ -50,6 +50,5 @@ gss_userok(OM_uint32 *minor, */ *minor = 0; - *user_ok = 0; - return GSS_S_COMPLETE; + return GSS_S_UNAUTHORIZED; } -- 2.1.4