@@ -8351,9 +8351,10 @@ static int sx_new(lua_State *L) {
83518351 [5 ] = "TLSv1" , [6 ] = "TLSv1.0" ,
83528352 [7 ] = "TLSv1_1" , [8 ] = "TLSv1.1" ,
83538353 [9 ] = "TLSv1_2" , [10 ] = "TLSv1.2" ,
8354- [11 ] = "DTLS" ,
8355- [12 ] = "DTLSv1" , [13 ] = "DTLSv1.0" ,
8356- [14 ] = "DTLSv1_2" , [15 ] = "DTLSv1.2" ,
8354+ [11 ] = "TLSv1_3" , [12 ] = "TLSv1.3" ,
8355+ [13 ] = "DTLS" ,
8356+ [14 ] = "DTLSv1" , [15 ] = "DTLSv1.0" ,
8357+ [16 ] = "DTLSv1_2" , [17 ] = "DTLSv1.2" ,
83578358 NULL
83588359 };
83598360 int method_enum ;
@@ -8396,18 +8397,24 @@ static int sx_new(lua_State *L) {
83968397 options = SSL_OP_NO_SSL_MASK & ~SSL_OP_NO_TLSv1_2 ;
83978398 break ;
83988399#endif
8400+ #if defined SSL_OP_NO_TLSv1_3
8401+ case 11 : /* TLSv1_3 */
8402+ case 12 : /* TLSv1.3 */
8403+ options = SSL_OP_NO_SSL_MASK & ~SSL_OP_NO_TLSv1_3 ;
8404+ break ;
8405+ #endif
83998406#if HAVE_DTLS_CLIENT_METHOD
8400- case 11 : /* DTLS */
8407+ case 13 : /* DTLS */
84018408 break ;
84028409#ifdef SSL_OP_NO_DTLSv1
8403- case 12 : /* DTLSv1 */
8404- case 13 : /* DTLSv1.0 */
8410+ case 14 : /* DTLSv1 */
8411+ case 15 : /* DTLSv1.0 */
84058412 options = SSL_OP_NO_DTLS_MASK & ~SSL_OP_NO_DTLSv1 ;
84068413 break ;
84078414#endif
84088415#ifdef SSL_OP_NO_DTLSv1_2
8409- case 14 : /* DTLSv1_2 */
8410- case 15 : /* DTLSv1.2 */
8416+ case 16 : /* DTLSv1_2 */
8417+ case 17 : /* DTLSv1.2 */
84118418 options = SSL_OP_NO_DTLS_MASK & ~SSL_OP_NO_DTLSv1_2 ;
84128419 break ;
84138420#endif
@@ -8430,14 +8437,16 @@ static int sx_new(lua_State *L) {
84308437 case 8 : /* TLSv1.1 */
84318438 case 9 : /* TLSv1_2 */
84328439 case 10 : /* TLSv1.2 */
8440+ case 11 : /* TLSv1_3 */
8441+ case 12 : /* TLSv1.3 */
84338442 * ud = SSL_CTX_new (srv ?SSLv23_server_method ():SSLv23_client_method ());
84348443 break ;
84358444#if HAVE_DTLS_CLIENT_METHOD
8436- case 11 : /* DTLS */
8437- case 12 : /* DTLSv1 */
8438- case 13 : /* DTLSv1.0 */
8439- case 14 : /* DTLSv1_2 */
8440- case 15 : /* DTLSv1.2 */
8445+ case 13 : /* DTLS */
8446+ case 14 : /* DTLSv1 */
8447+ case 15 : /* DTLSv1.0 */
8448+ case 16 : /* DTLSv1_2 */
8449+ case 17 : /* DTLSv1.2 */
84418450 * ud = SSL_CTX_new (srv ?DTLS_server_method ():DTLS_client_method ());
84428451 break ;
84438452#endif
0 commit comments