]> git.ipfire.org Git - thirdparty/knot-dns.git/commitdiff
conf: hide ed25519 and ed448 algorithm values if not supported
authorDaniel Salzman <daniel.salzman@nic.cz>
Wed, 5 Feb 2020 08:58:12 +0000 (09:58 +0100)
committerDaniel Salzman <daniel.salzman@nic.cz>
Wed, 5 Feb 2020 08:58:12 +0000 (09:58 +0100)
src/knot/conf/schema.c

index 73869f975a7381e51aae8fc6fb1cfc593b702c86..3689905b4bc650ba066530fa778655865e24226a 100644 (file)
@@ -63,8 +63,12 @@ static const knot_lookup_t dnssec_key_algs[] = {
        { DNSSEC_KEY_ALGORITHM_RSA_SHA512,        "rsasha512" },
        { DNSSEC_KEY_ALGORITHM_ECDSA_P256_SHA256, "ecdsap256sha256" },
        { DNSSEC_KEY_ALGORITHM_ECDSA_P384_SHA384, "ecdsap384sha384" },
+#ifdef HAVE_ED25519
        { DNSSEC_KEY_ALGORITHM_ED25519,           "ed25519" },
+#endif
+#ifdef HAVE_ED448
        { DNSSEC_KEY_ALGORITHM_ED448,             "ed448" },
+#endif
        { 0, NULL }
 };