]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Fix missed renames in PKINIT OpenSSL 3 changes master 1444/head
authorGreg Hudson <ghudson@mit.edu>
Sat, 19 Jul 2025 05:43:52 +0000 (01:43 -0400)
committerGreg Hudson <ghudson@mit.edu>
Tue, 22 Jul 2025 00:53:43 +0000 (20:53 -0400)
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

index f222dbdf92a848704765f3756a182d35debf9938..bd25bae478910e512dd30ecfce293d0ba8317971 100644 (file)
@@ -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);