Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit4fdb655

Browse files
Fix regression in TLS session ticket disabling
Commit274bbce disabled session tickets for TLSv1.3 on top of thealready disabled TLSv1.2 session tickets, but accidentally causeda regression where TLSv1.2 session tickets were incorrectly sent.Fix by unconditionally disabling TLSv1.2 session tickets and onlydisable TLSv1.3 tickets when the right version of OpenSSL is used.Backpatch to all supported branches.Reported-by: Cameron Vogt <cvogt@automaticcontrols.net>Reported-by: Fire Emerald <fire.github@gmail.com>Reviewed-by: Jacob Champion <jacob.champion@enterprisedb.com>Discussion:https://postgr.es/m/DM6PR16MB3145CF62857226F350C710D1AB852@DM6PR16MB3145.namprd16.prod.outlook.comBackpatch-through: v12
1 parent2724ff3 commit4fdb655

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

‎src/backend/libpq/be-secure-openssl.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,9 +270,8 @@ be_tls_init(bool isServerStart)
270270
*/
271271
#ifdefHAVE_SSL_CTX_SET_NUM_TICKETS
272272
SSL_CTX_set_num_tickets(context,0);
273-
#else
274-
SSL_CTX_set_options(context,SSL_OP_NO_TICKET);
275273
#endif
274+
SSL_CTX_set_options(context,SSL_OP_NO_TICKET);
276275

277276
/* disallow SSL session caching, too */
278277
SSL_CTX_set_session_cache_mode(context,SSL_SESS_CACHE_OFF);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp