File tree Expand file tree Collapse file tree 4 files changed +22
-6
lines changed Expand file tree Collapse file tree 4 files changed +22
-6
lines changed Original file line number Diff line number Diff line change @@ -13310,12 +13310,13 @@ fi
13310
13310
done
13311
13311
13312
13312
# Function introduced in OpenSSL 1.1.1.
13313
- for ac_func in X509_get_signature_info
13313
+ for ac_func in X509_get_signature_info SSL_CTX_set_num_tickets
13314
13314
do :
13315
- ac_fn_c_check_func "$LINENO" "X509_get_signature_info" "ac_cv_func_X509_get_signature_info"
13316
- if test "x$ac_cv_func_X509_get_signature_info" = xyes; then :
13315
+ as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13316
+ ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13317
+ if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13317
13318
cat >>confdefs.h <<_ACEOF
13318
- #define HAVE_X509_GET_SIGNATURE_INFO 1
13319
+ #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13319
13320
_ACEOF
13320
13321
13321
13322
fi
Original file line number Diff line number Diff line change @@ -1359,7 +1359,7 @@ if test "$with_ssl" = openssl ; then
1359
1359
# function was removed.
1360
1360
AC_CHECK_FUNCS ( [ CRYPTO_lock] )
1361
1361
# Function introduced in OpenSSL 1.1.1.
1362
- AC_CHECK_FUNCS ( [ X509_get_signature_info] )
1362
+ AC_CHECK_FUNCS ( [ X509_get_signature_info SSL_CTX_set_num_tickets ] )
1363
1363
AC_DEFINE ( [ USE_OPENSSL] , 1 , [ Define to 1 to build with OpenSSL support. (--with-ssl=openssl)] )
1364
1364
elif test "$with_ssl" != no ; then
1365
1365
AC_MSG_ERROR ( [ --with-ssl must specify openssl] )
Original file line number Diff line number Diff line change @@ -249,8 +249,20 @@ be_tls_init(bool isServerStart)
249
249
}
250
250
}
251
251
252
- /* disallow SSL session tickets */
252
+ /*
253
+ * Disallow SSL session tickets. OpenSSL use both stateful and stateless
254
+ * tickets for TLSv1.3, and stateless ticket for TLSv1.2. SSL_OP_NO_TICKET
255
+ * is available since 0.9.8f but only turns off stateless tickets. In
256
+ * order to turn off stateful tickets we need SSL_CTX_set_num_tickets,
257
+ * which is available since OpenSSL 1.1.1. LibreSSL 3.5.4 (from OpenBSD
258
+ * 7.1) introduced this API for compatibility, but doesn't support session
259
+ * tickets at all so it's a no-op there.
260
+ */
261
+ #ifdef HAVE_SSL_CTX_SET_NUM_TICKETS
262
+ SSL_CTX_set_num_tickets (context , 0 );
263
+ #else
253
264
SSL_CTX_set_options (context , SSL_OP_NO_TICKET );
265
+ #endif
254
266
255
267
/* disallow SSL session caching, too */
256
268
SSL_CTX_set_session_cache_mode (context , SSL_SESS_CACHE_OFF );
Original file line number Diff line number Diff line change 721
721
/* Define to 1 if you have the `X509_get_signature_nid' function. */
722
722
#undef HAVE_X509_GET_SIGNATURE_NID
723
723
724
+ /* Define to 1 if you have the `SSL_CTX_set_num_tickets' function. */
725
+ #undef HAVE_SSL_CTX_SET_NUM_TICKETS
726
+
724
727
/* Define to 1 if the assembler supports X86_64's POPCNTQ instruction. */
725
728
#undef HAVE_X86_64_POPCNTQ
726
729
You can’t perform that action at this time.
0 commit comments