pem: Support parsing PEM-encoded Ed448 keys
authorTobias Brunner <tobias@strongswan.org>
Mon, 20 Jan 2020 18:11:18 +0000 (19:11 +0100)
committerTobias Brunner <tobias@strongswan.org>
Mon, 10 Feb 2020 12:37:31 +0000 (13:37 +0100)
src/libstrongswan/plugins/pem/pem_plugin.c

index eb9e420..a2fc9e9 100644 (file)
@@ -66,6 +66,9 @@ METHOD(plugin_t, get_features, int,
                PLUGIN_REGISTER(PRIVKEY, pem_private_key_load, FALSE),
                        PLUGIN_PROVIDE(PRIVKEY, KEY_ED25519),
                                PLUGIN_DEPENDS(PRIVKEY, KEY_ED25519),
+               PLUGIN_REGISTER(PRIVKEY, pem_private_key_load, FALSE),
+                       PLUGIN_PROVIDE(PRIVKEY, KEY_ED448),
+                               PLUGIN_DEPENDS(PRIVKEY, KEY_ED448),
 
                /* public key PEM decoding */
                PLUGIN_REGISTER(PUBKEY, pem_public_key_load, FALSE),
@@ -86,6 +89,9 @@ METHOD(plugin_t, get_features, int,
                PLUGIN_REGISTER(PUBKEY, pem_public_key_load, FALSE),
                        PLUGIN_PROVIDE(PUBKEY, KEY_ED25519),
                                PLUGIN_DEPENDS(PUBKEY, KEY_ED25519),
+               PLUGIN_REGISTER(PUBKEY, pem_public_key_load, FALSE),
+                       PLUGIN_PROVIDE(PUBKEY, KEY_ED448),
+                               PLUGIN_DEPENDS(PUBKEY, KEY_ED448),
 
                /* certificate PEM decoding */
                PLUGIN_REGISTER(CERT_DECODE, pem_certificate_load, FALSE),