]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Fix OpenSSL 3.0 API EC curve names
authorTimo Teräs <timo.teras@iki.fi>
Fri, 28 Jul 2023 10:15:48 +0000 (13:15 +0300)
committerTimo Teräs <timo.teras@iki.fi>
Tue, 8 Aug 2023 14:08:00 +0000 (14:08 +0000)
The OpenSSL man page examples used the NIST curve names which
are supported. But when querying the name, the native OpenSSL
name is returned. Use these names to pass curve type checks for
engine/provider objects.

lib/dns/opensslecdsa_link.c

index 04bd67deac46139ae8dc49c45fc5c1e2d918aef1..e064c7e7f5482e2116661ac4d9a6e290ceb45b6d 100644 (file)
@@ -125,9 +125,9 @@ static const char *
 opensslecdsa_key_alg_to_group_name(unsigned int key_alg) {
        switch (key_alg) {
        case DST_ALG_ECDSA256:
-               return ("P-256");
+               return ("prime256v1");
        case DST_ALG_ECDSA384:
-               return ("P-384");
+               return ("secp384r1");
        default:
                UNREACHABLE();
        }