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;
|
ret = KRB5KRB_AP_ERR_INAPP_CKSUM;
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
/* XXX */
|
if (!krb5_checksum_is_keyed(auth->cksum->cksumtype)
|
||||||
if (auth->cksum->cksumtype != CKSUMTYPE_RSA_MD4 &&
|
|| !krb5_checksum_is_collision_proof(auth->cksum->cksumtype)) {
|
||||||
auth->cksum->cksumtype != CKSUMTYPE_RSA_MD5 &&
|
|
||||||
auth->cksum->cksumtype != CKSUMTYPE_RSA_MD5_DES){
|
|
||||||
kdc_log(0, "Bad checksum type in authenticator: %d",
|
kdc_log(0, "Bad checksum type in authenticator: %d",
|
||||||
auth->cksum->cksumtype);
|
auth->cksum->cksumtype);
|
||||||
ret = KRB5KRB_AP_ERR_INAPP_CKSUM;
|
ret = KRB5KRB_AP_ERR_INAPP_CKSUM;
|
||||||
|
@@ -62,8 +62,8 @@ krb5_rd_safe(krb5_context context,
|
|||||||
r = KRB5KRB_AP_ERR_MSG_TYPE;
|
r = KRB5KRB_AP_ERR_MSG_TYPE;
|
||||||
goto failure;
|
goto failure;
|
||||||
}
|
}
|
||||||
/* XXX - checksum collision-proff and keyed */
|
if (!krb5_checksum_is_keyed(safe.cksum.cksumtype)
|
||||||
if (safe.cksum.cksumtype != CKSUMTYPE_RSA_MD5_DES) {
|
|| !krb5_checksum_is_collision_proof(safe.cksum.cksumtype)) {
|
||||||
r = KRB5KRB_AP_ERR_INAPP_CKSUM;
|
r = KRB5KRB_AP_ERR_INAPP_CKSUM;
|
||||||
goto failure;
|
goto failure;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user