fix check for keyed and collision-proof checksum
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3546 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -62,8 +62,8 @@ krb5_rd_safe(krb5_context context,
|
||||
r = KRB5KRB_AP_ERR_MSG_TYPE;
|
||||
goto failure;
|
||||
}
|
||||
/* XXX - checksum collision-proff and keyed */
|
||||
if (safe.cksum.cksumtype != CKSUMTYPE_RSA_MD5_DES) {
|
||||
if (!krb5_checksum_is_keyed(safe.cksum.cksumtype)
|
||||
|| !krb5_checksum_is_collision_proof(safe.cksum.cksumtype)) {
|
||||
r = KRB5KRB_AP_ERR_INAPP_CKSUM;
|
||||
goto failure;
|
||||
}
|
||||
|
Reference in New Issue
Block a user