Related: #2028781 - Protocol : TLSv1.3 missing in rhel9

- fix typo in preprocesor macro if -> ifdef
This commit is contained in:
Luboš Uhliarik 2022-06-21 14:13:26 +02:00
parent 43d5c51691
commit 24ddaef1c3

View File

@ -90,7 +90,7 @@ index f813458..2e6a6c0 100644
+ +
+ /* Now, we have to scan for minimal protocol version, + /* Now, we have to scan for minimal protocol version,
+ *without allowing holes between min and max*/ + *without allowing holes between min and max*/
+#if SSL_OP_NO_TLSv1_3 +#ifdef SSL_OP_NO_TLSv1_3
+ if ((prot == TLS1_3_VERSION) && (protocols & NGX_SSL_TLSv1_2)) { + if ((prot == TLS1_3_VERSION) && (protocols & NGX_SSL_TLSv1_2)) {
+ prot = TLS1_2_VERSION; + prot = TLS1_2_VERSION;
+ } + }