]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
openssl: Support EdDSA keys in PKCS#12 containers
authorTobias Brunner <tobias@strongswan.org>
Thu, 24 Jul 2025 13:52:37 +0000 (15:52 +0200)
committerTobias Brunner <tobias@strongswan.org>
Thu, 24 Jul 2025 13:52:37 +0000 (15:52 +0200)
src/libstrongswan/plugins/openssl/openssl_pkcs12.c

index 51745f5240a28c8af62a0cac0c1a65c2a191fbb8..40ddcfd4a281ec6e50fde08eb03da4447ba47c48 100644 (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;