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:
@@ -475,10 +475,9 @@ fast_unwrap_request(astgs_request_t r)
|
||||
krb5_free_keyblock_contents(r->context, &armorkey);
|
||||
|
||||
/* verify req-checksum of the outer body */
|
||||
ret = krb5_verify_checksum(r->context, r->armor_crypto,
|
||||
ret = _kdc_verify_checksum(r->context, r->armor_crypto,
|
||||
KRB5_KU_FAST_REQ_CHKSUM,
|
||||
r->req.req_body._save.data,
|
||||
r->req.req_body._save.length,
|
||||
&r->req.req_body._save,
|
||||
&fxreq.u.armored_data.req_checksum);
|
||||
if (ret) {
|
||||
kdc_log(r->context, r->config, 2,
|
||||
|
Reference in New Issue
Block a user