Skip to content

Commit

Permalink
Change the "real" name of P-256 to prime256v1
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
simo5 committed Jun 13, 2024
1 parent aaf5a2f commit aa5ab3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tls.c
Original file line number Diff line number Diff line change
Expand Up @@ -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", "prime256v1", "EC", p256_group_id,
p256_secbits, p256_mintls, p256_maxtls, p256_mindtls,
p256_maxdtls),
},
Expand Down

0 comments on commit aa5ab3e

Please sign in to comment.