From 03914503765b700514c866e9e121a1c0901dc095 Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Thu, 24 Jul 2025 15:52:37 +0200 Subject: [PATCH] openssl: Support EdDSA keys in PKCS#12 containers References strongswan/strongswan#2848 --- src/libstrongswan/plugins/openssl/openssl_pkcs12.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/libstrongswan/plugins/openssl/openssl_pkcs12.c b/src/libstrongswan/plugins/openssl/openssl_pkcs12.c index 51745f5240..40ddcfd4a2 100644 --- a/src/libstrongswan/plugins/openssl/openssl_pkcs12.c +++ b/src/libstrongswan/plugins/openssl/openssl_pkcs12.c @@ -119,6 +119,12 @@ static bool add_key(private_pkcs12_t *this, EVP_PKEY *private) case EVP_PKEY_EC: type = KEY_ECDSA; break; + case EVP_PKEY_ED25519: + type = KEY_ED25519; + break; + case EVP_PKEY_ED448: + type = KEY_ED448; + break; default: EVP_PKEY_free(private); return FALSE;