projects
/
moonshot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
remove debugging statement
[moonshot.git]
/
mech_eap
/
util_reauth.c
diff --git
a/mech_eap/util_reauth.c
b/mech_eap/util_reauth.c
index
f1112ca
..
465bb16
100644
(file)
--- a/
mech_eap/util_reauth.c
+++ b/
mech_eap/util_reauth.c
@@
-217,11
+217,10
@@
gssEapMakeReauthCreds(OM_uint32 *minor,
GSSEAP_KRB_INIT(&krbContext);
code = getAcceptorKey(krbContext, ctx, cred, &server, &acceptorKey);
GSSEAP_KRB_INIT(&krbContext);
code = getAcceptorKey(krbContext, ctx, cred, &server, &acceptorKey);
- if (code
== KRB5_KT_NOTFOUND
) {
+ if (code
!= 0
) {
*minor = code;
return GSS_S_UNAVAILABLE;
*minor = code;
return GSS_S_UNAVAILABLE;
- } else if (code != 0)
- goto cleanup;
+ }
/*
* Generate a random session key to place in the ticket and
/*
* Generate a random session key to place in the ticket and
@@
-655,9
+654,8
@@
defrostAttrContext(OM_uint32 *minor,
#ifdef HAVE_HEIMDAL_VERSION
gss_ctx_id_t glueContext,
#else
#ifdef HAVE_HEIMDAL_VERSION
gss_ctx_id_t glueContext,
#else
- gss_ctx_id_t glueContext GSSEAP_UNUSED,
-#endif
gss_name_t glueName,
gss_name_t glueName,
+#endif
gss_name_t mechName)
{
OM_uint32 major, tmpMinor;
gss_name_t mechName)
{
OM_uint32 major, tmpMinor;
@@
-735,11
+733,17
@@
gssEapGlueToMechName(OM_uint32 *minor,
goto cleanup;
major = gssEapImportName(minor, &nameBuf, GSS_C_NT_USER_NAME,
goto cleanup;
major = gssEapImportName(minor, &nameBuf, GSS_C_NT_USER_NAME,
- pMechName);
+
ctx->mechanismUsed,
pMechName);
if (GSS_ERROR(major))
goto cleanup;
if (GSS_ERROR(major))
goto cleanup;
- major = defrostAttrContext(minor, ctx->kerberosCtx, glueName, *pMechName);
+ major = defrostAttrContext(minor,
+#ifdef HAVE_HEIMDAL_VERSION
+ ctx->kerberosCtx,
+#else
+ glueName,
+#endif
+ *pMechName);
if (GSS_ERROR(major))
goto cleanup;
if (GSS_ERROR(major))
goto cleanup;