krb5 commit: Fix missed renames in PKINIT OpenSSL 3 changes
ghudson at mit.edu
ghudson at mit.edu
Mon Jul 21 22:13:47 EDT 2025
https://github.com/krb5/krb5/commit/3d1a48d2635a87aa2c99656d66164c3957ac4c82
commit 3d1a48d2635a87aa2c99656d66164c3957ac4c82
Author: Greg Hudson <ghudson at mit.edu>
Date: Sat Jul 19 01:43:52 2025 -0400
Fix missed renames in PKINIT OpenSSL 3 changes
Commit 4963edfac2ef111f3d9e6f39e589d9075a185b51 changed calls to four
OpenSSL functions to use the new preferred names, but missed two call
sites. Reported by David Morash.
ticket: 9180
src/plugins/preauth/pkinit/pkinit_crypto_openssl.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c b/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c
index f222dbdf9..bd25bae47 100644
--- a/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c
+++ b/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c
@@ -505,7 +505,7 @@ encode_spki(EVP_PKEY *pkey, krb5_data *spki_out)
ASN1_TYPE parameter;
ASN1_STRING param_str, pubkey_str;
- if (EVP_PKEY_base_id(pkey) != EVP_PKEY_DH) {
+ if (EVP_PKEY_get_base_id(pkey) != EVP_PKEY_DH) {
/* Only DH keys require special encoding. */
len = i2d_PUBKEY(pkey, NULL);
ret = alloc_data(spki_out, len);
@@ -4011,7 +4011,7 @@ create_signature(unsigned char **sig, unsigned int *sig_len,
return ENOMEM;
EVP_SignInit(ctx, EVP_sha256());
EVP_SignUpdate(ctx, data, data_len);
- *sig_len = EVP_PKEY_size(pkey);
+ *sig_len = EVP_PKEY_get_size(pkey);
if ((*sig = malloc(*sig_len)) == NULL)
goto cleanup;
EVP_SignFinal(ctx, *sig, sig_len, pkey);
More information about the cvs-krb5
mailing list