Add GSSEAP_MISSING_PASSWORD minor status code
authorLuke Howard <lukeh@padl.com>
Sun, 2 Jan 2011 04:25:55 +0000 (15:25 +1100)
committerLuke Howard <lukeh@padl.com>
Sun, 2 Jan 2011 04:25:55 +0000 (15:25 +1100)
gsseap_err.et
util_cred.c

index dc3c1e9..9569512 100644 (file)
@@ -75,6 +75,7 @@ error_code GSSEAP_BAD_USAGE,                    "Credential usage type is unknow
 error_code GSSEAP_CRED_USAGE_MISMATCH,          "Credential usage does not match requested usage"
 error_code GSSEAP_CRED_MECH_MISMATCH,           "Credential is not usable with this mechanism"
 error_code GSSEAP_BAD_CRED_OPTION,              "Bad credential option"
+error_code GSSEAP_MISSING_PASSWORD,             "Missing initiator credential password"
 
 #
 # Wrap/unwrap/PRF errors
index fbe1ec0..c74cd24 100644 (file)
@@ -205,6 +205,7 @@ gssEapAcquireCred(OM_uint32 *minor,
         && !gssEapCanReauthP(cred, GSS_C_NO_NAME, timeReq)
 #endif
         major = GSS_S_CRED_UNAVAIL;
+        *minor = GSSEAP_MISSING_PASSWORD;
         goto cleanup;
     }