]> git.ipfire.org Git - thirdparty/krb5.git/commit
Add paChecksum2 to PKINIT ASN.1 tests 1460/head
authorGreg Hudson <ghudson@mit.edu>
Sun, 28 Sep 2025 19:39:10 +0000 (15:39 -0400)
committerGreg Hudson <ghudson@mit.edu>
Mon, 6 Oct 2025 16:22:40 +0000 (12:22 -0400)
commit34d661676b1db04d870be3d7ad26616aa69d1f3d
tree00ee40ccb8e175a9e86850617fd6326b339259a9
parent14b762a41e61c677bd47bc6ced19ce8b05c000f0
Add paChecksum2 to PKINIT ASN.1 tests

Commit 310793ba63782af5ffa3a95d20e41f8f03ca7e00 added the paChecksum2
field to krb5_pk_authenticator.  ktest_make_sample_pk_authenticator()
does not initialize this field, leading to undefined behavior in the
tests.  Initialize the field with a sample paChecksum2 value, and
amend the expected output to include its encoding.

Reported by Michael Osipov.
src/tests/asn.1/krb5_decode_test.c
src/tests/asn.1/ktest.c
src/tests/asn.1/ktest_equal.c
src/tests/asn.1/pkinit_encode.out
src/tests/asn.1/pkinit_trval.out