use krb5_data_ct_cmp
This commit is contained in:
@@ -490,9 +490,7 @@ verify_checksum(krb5_context context,
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(c.checksum.length != cksum->checksum.length ||
|
if(krb5_data_ct_cmp(&c.checksum, &cksum->checksum) != 0) {
|
||||||
ct_memcmp(c.checksum.data, cksum->checksum.data, c.checksum.length)) {
|
|
||||||
krb5_clear_error_message (context);
|
|
||||||
ret = KRB5KRB_AP_ERR_BAD_INTEGRITY;
|
ret = KRB5KRB_AP_ERR_BAD_INTEGRITY;
|
||||||
krb5_set_error_message(context, ret,
|
krb5_set_error_message(context, ret,
|
||||||
N_("Decrypt integrity check failed for checksum "
|
N_("Decrypt integrity check failed for checksum "
|
||||||
|
Reference in New Issue
Block a user