pki: Add support for Ed448 keys/certificates
[strongswan.git] / src / pki / commands / print.c
index 2ab3e61..3bca92c 100644 (file)
@@ -113,6 +113,12 @@ static int print()
                                        type = CRED_PRIVATE_KEY;
                                        subtype = KEY_ED25519;
                                }
+                               else if (streq(arg, "ed448") ||
+                                                streq(arg, "ed448-priv"))
+                               {
+                                       type = CRED_PRIVATE_KEY;
+                                       subtype = KEY_ED448;
+                               }
                                else if (streq(arg, "bliss") ||
                                                 streq(arg, "bliss-priv"))
                                {
@@ -196,8 +202,8 @@ static void __attribute__ ((constructor))reg()
        command_register((command_t)
                { print, 'a', "print",
                "print a credential in a human readable form",
-               {"[--in file|--keyid hex] "
-                "[--type x509|crl|ac|pub|priv|rsa|ecdsa|ed25519|bliss]"},
+               {"[--in file|--keyid hex]",
+                "[--type x509|crl|ac|pub|priv|rsa|ecdsa|ed25519|ed448|bliss]"},
                {
                        {"help",        'h', 0, "show usage information"},
                        {"in",          'i', 1, "input file, default: stdin"},