Skip Menu |
 

From: ghudson@mit.edu
Subject: git commit

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.

https://github.com/krb5/krb5/commit/78e77f10aca448161077016677b0fe963d6bf9ee
Author: Greg Hudson <ghudson@mit.edu>
Commit: 78e77f10aca448161077016677b0fe963d6bf9ee
Branch: master
src/include/krb5/krb5.hin | 12 ++++++++----
src/lib/crypto/crypto_tests/t_cksums.c | 28 +++++++++++++++++++++++++++-
src/lib/crypto/krb/verify_checksum.c | 11 ++++++++++-
3 files changed, 45 insertions(+), 6 deletions(-)