pki: Add support for Ed448 keys/certificates
[strongswan.git] / src / pki / commands / self.c
index 31018e8..cb7567c 100644 (file)
@@ -102,6 +102,10 @@ static int self()
                                {
                                        type = KEY_ED25519;
                                }
+                               else if (streq(arg, "ed448"))
+                               {
+                                       type = KEY_ED448;
+                               }
                                else if (streq(arg, "bliss"))
                                {
                                        type = KEY_BLISS;
@@ -467,7 +471,7 @@ static void __attribute__ ((constructor))reg()
        command_register((command_t) {
                self, 's', "self",
                "create a self signed certificate",
-               {"[--in file|--keyid hex] [--type rsa|ecdsa|ed25519|bliss|priv]",
+               {"[--in file|--keyid hex] [--type rsa|ecdsa|ed25519|ed448|bliss|priv]",
                 " --dn distinguished-name [--san subjectAltName]+",
                 "[--lifetime days] [--serial hex] [--ca] [--ocsp uri]+",
                 "[--flag serverAuth|clientAuth|crlSign|ocspSigning|msSmartcardLogon]+",