From a84c6da04cbd196e72480db2c4da21b1ec30eafb Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Wed, 12 Jun 2024 15:19:03 -0400 Subject: [PATCH] Change the "real" name of P-256 to prime256v1 This is what OpenSSL apparently expects, found by trying to use -named_curve prim256v1 (as documented by $ openssl ecparam -list_curves) with openssl s_server Signed-off-by: Simo Sorce --- src/tls.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tls.c b/src/tls.c index 26dcd445..cf19a480 100644 --- a/src/tls.c +++ b/src/tls.c @@ -107,14 +107,14 @@ struct { }, { "secp256r1", - TLS_PARAMS_ENTRY("secp256r1", "secp256r1", "EC", p256_group_id, + TLS_PARAMS_ENTRY("secp256r1", "prime256v1", "EC", p256_group_id, p256_secbits, p256_mintls, p256_maxtls, p256_mindtls, p256_maxdtls), }, /* alias */ { "P-256", - TLS_PARAMS_ENTRY("P-256", "secp256r1", "EC", p256_group_id, + TLS_PARAMS_ENTRY("P-256", "prim256v1", "EC", p256_group_id, p256_secbits, p256_mintls, p256_maxtls, p256_mindtls, p256_maxdtls), },