kdc: map KRB5_PROG_SUMTYPE_NOSUPP to KRB5KDC_ERR_SUMTYPE_NOSUPP
RFC4120 says KRB5KDC_ERR_SUMTYPE_NOSUPP should be returned if the KDC does not support a given checksum type. Return this instead of KRB5_PROG_SUMTYPE_NOSUPP by introducing a new wrapper function, _kdc_verify_checksum().
This commit is contained in:
+1
-2
@@ -110,8 +110,7 @@ pa_gss_verify_req_body_checksum(astgs_request_t r,
|
||||
heim_assert(ret || data.length,
|
||||
"internal asn1 encoder error");
|
||||
|
||||
ret = krb5_verify_checksum(r->context, NULL, 0,
|
||||
data.data, data.length, checksum);
|
||||
ret = _kdc_verify_checksum(r->context, NULL, 0, &data, checksum);
|
||||
krb5_data_free(&data);
|
||||
|
||||
return ret;
|
||||
|
||||
Reference in New Issue
Block a user