Fix PKINIT CMS error checking for older OpenSSL Commit 70f61d417261ca17efe3d60d180033bea2da60b0 updated the CMS_verify() error code checks, using two error codes new to OpenSSL 3.0 (RSA_R_DIGEST_NOT_ALLOWED and CMS_R_UNKNOWN_DIGEST_ALGORITHM). This change broke the build for OpenSSL 1.0 and 1.1. Instead of looking for codes indicating an algorithm issue and assuming that everything else is an invalid signature, check for the code indicating an invalid signature and assume that everything else is an algorithm issue. (cherry picked from commit e48e2e56a05a47fd932a941ac82c1131ceed47d0) https://github.com/krb5/krb5/commit/a6971d269577afa68584d6076bd90f84c2099f93 Author: Greg Hudson Commit: a6971d269577afa68584d6076bd90f84c2099f93 Branch: krb5-1.20 src/plugins/preauth/pkinit/pkinit_crypto_openssl.c | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-)