openssl: Support EdDSA keys in PKCS#12 containers

References strongswan/strongswan#2848
This commit is contained in:
Tobias Brunner 2025-07-24 15:52:37 +02:00
parent f02033664e
commit 0391450376

View File

@ -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;