1*4882a593Smuzhiyunalways expose SSL_OP_NO_TLSv1_3 2*4882a593Smuzhiyun 3*4882a593Smuzhiyunlike in OpenSSL, see https://github.com/openssl/openssl/blob/master/include/openssl/ssl.h.in#L399 4*4882a593Smuzhiyun 5*4882a593Smuzhiyunlike SSL_OP_NO_DTLSv1_2, see commit "Expose various DTLSv1.2 specific functions and defines" 6*4882a593Smuzhiyun 7*4882a593Smuzhiyunthis change fixes the compilation of vsftpd 3.0.4 & 3.0.5, which fails with the following error: 8*4882a593Smuzhiyun``` 9*4882a593Smuzhiyunssl.c: In function 'ssl_init': 10*4882a593Smuzhiyunssl.c:98:18: error: 'SSL_OP_NO_TLSv1_3' undeclared (first use in this function); did you mean 'SSL_OP_NO_TLSv1_1'? 11*4882a593Smuzhiyun``` 12*4882a593Smuzhiyun 13*4882a593SmuzhiyunSigned-off-by: Francois Perrad <francois.perrad@gadz.org> 14*4882a593SmuzhiyunFetched from: https://github.com/libressl-portable/openbsd/pull/124 15*4882a593Smuzhiyun--- 16*4882a593Smuzhiyun include/openssl/ssl.h | 4 ---- 17*4882a593Smuzhiyun 1 file changed, 4 deletions(-) 18*4882a593Smuzhiyun 19*4882a593Smuzhiyundiff --git a/include/openssl/ssl.h b/include/openssl/ssl.h 20*4882a593Smuzhiyunindex 46f24b2ea..4048a6e63 100644 21*4882a593Smuzhiyun--- a/include/openssl/ssl.h 22*4882a593Smuzhiyun+++ b/include/openssl/ssl.h 23*4882a593Smuzhiyun@@ -411,11 +411,7 @@ typedef int (*tls_session_secret_cb_fn)(SSL *s, void *secret, int *secret_len, 24*4882a593Smuzhiyun #define SSL_OP_NO_TLSv1 0x04000000L 25*4882a593Smuzhiyun #define SSL_OP_NO_TLSv1_2 0x08000000L 26*4882a593Smuzhiyun #define SSL_OP_NO_TLSv1_1 0x10000000L 27*4882a593Smuzhiyun- 28*4882a593Smuzhiyun-#if defined(LIBRESSL_HAS_TLS1_3) || defined(LIBRESSL_INTERNAL) 29*4882a593Smuzhiyun #define SSL_OP_NO_TLSv1_3 0x20000000L 30*4882a593Smuzhiyun-#endif 31*4882a593Smuzhiyun- 32*4882a593Smuzhiyun #define SSL_OP_NO_DTLSv1 0x40000000L 33*4882a593Smuzhiyun #define SSL_OP_NO_DTLSv1_2 0x80000000L 34*4882a593Smuzhiyun 35*4882a593Smuzhiyun-- 36*4882a593Smuzhiyun2.30.2 37*4882a593Smuzhiyun 38