X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=moonshot%2Fmech_eap%2Futil_cred.c;h=746bd616a5019eaca25976b045a7beb2380d2f8b;hb=d2433169c78f52ec2c09e40c3d1ac0df19cfe656;hp=444a1d7b35434a75e19eeb56a1b89e171233606e;hpb=f8cc49e125b030bc7c81373984d12e54abc3cb11;p=moonshot.git diff --git a/moonshot/mech_eap/util_cred.c b/moonshot/mech_eap/util_cred.c index 444a1d7..746bd61 100644 --- a/moonshot/mech_eap/util_cred.c +++ b/moonshot/mech_eap/util_cred.c @@ -307,6 +307,7 @@ gssEapAcquireCred(OM_uint32 *minor, GSSEAP_MUTEX_UNLOCK(&desiredName->mutex); } +#ifdef GSSEAP_ENABLE_ACCEPTOR if (cred->flags & CRED_FLAG_ACCEPT) { struct rs_context *radContext; @@ -316,6 +317,7 @@ gssEapAcquireCred(OM_uint32 *minor, rs_context_destroy(radContext); } +#endif if (pActualMechs != NULL) { major = duplicateOidSet(minor, cred->mechanisms, pActualMechs); @@ -728,9 +730,10 @@ gssEapResolveInitiatorCred(OM_uint32 *minor, if (major == GSS_S_CRED_UNAVAIL) #endif major = staticIdentityFileResolveInitiatorCred(minor, resolvedCred); - if (GSS_ERROR(major)) + if (GSS_ERROR(major) && major != GSS_S_CRED_UNAVAIL) goto cleanup; + /* If we have a caller-supplied password, the credential is resolved. */ if ((resolvedCred->flags & CRED_FLAG_PASSWORD) == 0) { major = GSS_S_CRED_UNAVAIL; *minor = GSSEAP_NO_DEFAULT_CRED;