Create a new error for incorrect acceptor name received from acceptor
to aid in debugging.
error_code GSSEAP_BAD_INITIATOR_NAME, "Initiator identity must be a valid name"
error_code GSSEAP_NO_HOSTNAME, "Could not determine local host name"
error_code GSSEAP_NO_ACCEPTOR_NAME, "Could not determine acceptor identity"
+error_code GSSEAP_WRONG_ACCEPTOR_NAME, "Acceptor identity different than expected"
error_code GSSEAP_BAD_NAME_TOKEN, "Name token is malformed or corrupt"
error_code GSSEAP_NO_LOCAL_MAPPING, "Unable to map name to a local identity"
gssEapReleaseName(&tmpMinor, &nameHint);
if (!equal) {
- *minor = GSSEAP_BAD_CONTEXT_TOKEN;
+ *minor = GSSEAP_WRONG_ACCEPTOR_NAME;
return GSS_S_DEFECTIVE_TOKEN;
}
} else {