]> git.ipfire.org Git - thirdparty/krb5.git/commit
Update error checking for OpenSSL CMS_verify 1264/head
authorJulien Rische <jrische@redhat.com>
Thu, 28 Jul 2022 13:20:12 +0000 (15:20 +0200)
committerGreg Hudson <ghudson@mit.edu>
Thu, 18 Aug 2022 21:17:37 +0000 (17:17 -0400)
commit70f61d417261ca17efe3d60d180033bea2da60b0
tree2ed06d9564e7f2db748653db336c11facf74f0e3
parent0c633b5c9fbdd840e1d131e6b82cb7a28e3b91e3
Update error checking for OpenSSL CMS_verify

The code for CMS data verification was initially written for OpenSSL's
PKCS7_verify() function.  It now uses CMS_verify(), but error handling
is still done using PKCS7_verify() error identifiers.  Update the
recognized error codes so that the KDC generates
KDC_ERR_DIGEST_IN_SIGNED_DATA_NOT_ACCEPTED errors when appropriate.
Use ERR_peek_last_error() to observe the error generated closest to
the API surface.

[ghudson@mit.edu: edited commit message]

ticket: 9069 (new)
tags: pullup
target_version: 1.20-next
src/plugins/preauth/pkinit/pkinit_crypto_openssl.c