From: Luke Howard Date: Wed, 27 Apr 2011 14:10:05 +0000 (+0200) Subject: add gssspi_authorize_localname() stub X-Git-Tag: tr-beta1~186 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=moonshot.git;a=commitdiff_plain;h=85cb15f043404086d7ef43e5f55f7061696643eb add gssspi_authorize_localname() stub --- 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; }