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:
@@ -1001,10 +1001,8 @@ tgs_check_authenticator(krb5_auth_context ac,
|
||||
ret = KRB5KRB_AP_ERR_INAPP_CKSUM;
|
||||
goto out;
|
||||
}
|
||||
/* XXX */
|
||||
if (auth->cksum->cksumtype != CKSUMTYPE_RSA_MD4 &&
|
||||
auth->cksum->cksumtype != CKSUMTYPE_RSA_MD5 &&
|
||||
auth->cksum->cksumtype != CKSUMTYPE_RSA_MD5_DES){
|
||||
if (!krb5_checksum_is_keyed(auth->cksum->cksumtype)
|
||||
|| !krb5_checksum_is_collision_proof(auth->cksum->cksumtype)) {
|
||||
kdc_log(0, "Bad checksum type in authenticator: %d",
|
||||
auth->cksum->cksumtype);
|
||||
ret = KRB5KRB_AP_ERR_INAPP_CKSUM;
|
||||
|
@@ -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