]> git.ipfire.org Git - thirdparty/krb5.git/commit
Fix OpenSSL 1.0 and 1.1 support in PKINIT 1333/head
authorGreg Hudson <ghudson@mit.edu>
Thu, 21 Mar 2024 23:04:13 +0000 (19:04 -0400)
committerGreg Hudson <ghudson@mit.edu>
Tue, 26 Mar 2024 15:20:23 +0000 (11:20 -0400)
commitd6186c447f9ec85b9f5fb11f315db45c7648e919
tree90bc5d60a0f12f6cfd16928781ee5f7f4ed96dec
parentebe416acff31616a342d27876e510007d426aae9
Fix OpenSSL 1.0 and 1.1 support in PKINIT

Commit f745c9a9bd6c0c73b944182173f1ac305d03dc3a uses ECDSA_SIG_set0(),
which was added in OpenSSL 1.1.  Add a compatibility version for
OpenSSL 1.0.

Commit bdcd6075bd4593c8f67722ce075c9519faec58b7 uses
EVP_PKEY_get_base_id(), which was added in OpenSSL 3.0.  Add a
compatibility macro to use the old name for OpenSSL 1.0 and 1.1.

Commit 0f870b1bcad960fd5319a3f97aafd7f4a289e2fb added ECDH support,
but did not change the OpenSSL 1.0 versions of encode_spki(),
decode_spki(), or generate_dh_pkey() to work with elliptic curve
public keys.  In each function, check the key type and skip the
DH-specific handling for key types other than DH.
src/plugins/preauth/pkinit/pkinit_crypto_openssl.c