use krb5_data_ct_cmp
This commit is contained in:
		| @@ -79,8 +79,7 @@ krb5_c_verify_checksum(krb5_context context, const krb5_keyblock *key, | |||||||
| 	return ret; | 	return ret; | ||||||
|  |  | ||||||
|     if (data_cksum.cksumtype == cksum->cksumtype |     if (data_cksum.cksumtype == cksum->cksumtype | ||||||
| 	&& data_cksum.checksum.length == cksum->checksum.length | 	&& krb5_data_ct_cmp(&data_cksum.checksum, &cksum->checksum) == 0) | ||||||
| 	&& ct_memcmp(data_cksum.checksum.data, cksum->checksum.data, cksum->checksum.length) == 0) |  | ||||||
| 	*valid = 1; | 	*valid = 1; | ||||||
|  |  | ||||||
|     krb5_free_checksum_contents(context, &data_cksum); |     krb5_free_checksum_contents(context, &data_cksum); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Love Hornquist Astrand
					Love Hornquist Astrand