tls: allow picotls to use secp elliptic curves 58/30258/2
authorVladimir Medvedkin <vladimir.medvedkin@intel.com>
Wed, 2 Dec 2020 17:39:01 +0000 (17:39 +0000)
committerFlorin Coras <florin.coras@gmail.com>
Fri, 4 Dec 2020 01:46:29 +0000 (01:46 +0000)
Fix typos in macros for elliptic curves over prime field.

Type: fix
Fixes: f83194c2f4

Signed-off-by: Vladimir Medvedkin <vladimir.medvedkin@intel.com>
Change-Id: I657a7feaf1d1fdf3f2ca74fb3787977c65891a20

src/plugins/tlspicotls/tls_picotls.c

index 32bc2a3..58672aa 100644 (file)
@@ -117,13 +117,13 @@ picotls_start_listen (tls_ctx_t * lctx)
 #ifdef PTLS_OPENSSL_HAVE_X25519
     &ptls_openssl_x25519,
 #endif
-#ifdef PTLS_OPENSSL_HAVE_SECP256r1
+#ifdef PTLS_OPENSSL_HAVE_SECP256R1
     &ptls_openssl_secp256r1,
 #endif
-#ifdef PTLS_OPENSSL_HAVE_SECP384r1
+#ifdef PTLS_OPENSSL_HAVE_SECP384R1
     &ptls_openssl_secp384r1,
 #endif
-#ifdef PTLS_OPENSSL_HAVE_SECP521r1
+#ifdef PTLS_OPENSSL_HAVE_SECP521R1
     &ptls_openssl_secp521r1
 #endif
   };