]> git.ipfire.org Git - thirdparty/krb5.git/commit
Allow zero cksumtype in krb5_k_verify_checksum() 422/head
authorGreg Hudson <ghudson@mit.edu>
Fri, 4 Mar 2016 18:25:28 +0000 (13:25 -0500)
committerGreg Hudson <ghudson@mit.edu>
Wed, 9 Mar 2016 18:32:19 +0000 (13:32 -0500)
commit78e77f10aca448161077016677b0fe963d6bf9ee
tree2ab8d4bc5c087ca8d318d55094b8f0119c5fa0aa
parentba1f3fb30810e08ee7768ad996b379db3a2d3fcd
Allow zero cksumtype in krb5_k_verify_checksum()

A checksum type of 0 means to use the mandatory checksum type in
krb5_k_make_checksum(), krb5_k_make_checksum_iov(), and
krb5_k_verify_checksum_iov().  Extend this meaning to
krb5_k_verify_checksum() for the checksum type in the krb5_checksum
argument.  This change also applies to krb5_c_verify_checksum().

Add code to t_cksums.c to test checksum verification, including with
checksum type 0 for applicable test cases.

ticket: 8375 (new)
src/include/krb5/krb5.hin
src/lib/crypto/crypto_tests/t_cksums.c
src/lib/crypto/krb/verify_checksum.c