Fix regression in TLS session ticket disabling
authorDaniel Gustafsson
Mon, 19 Aug 2024 10:55:11 +0000 (12:55 +0200)
committerDaniel Gustafsson
Mon, 19 Aug 2024 10:55:11 +0000 (12:55 +0200)
commit4fdb6558c2709c799643d26f3f956395ae72a8ef
tree85555daa0e0f7e6131f8d0fe41c6339b11586eb0
parent2724ff381a161eb030a1fcd2a6346679d74db420
Fix regression in TLS session ticket disabling

Commit 274bbced disabled session tickets for TLSv1.3 on top of the
already disabled TLSv1.2 session tickets, but accidentally caused
a regression where TLSv1.2 session tickets were incorrectly sent.
Fix by unconditionally disabling TLSv1.2 session tickets and only
disable TLSv1.3 tickets when the right version of OpenSSL is used.

Backpatch to all supported branches.

Reported-by: Cameron Vogt
Reported-by: Fire Emerald
Reviewed-by: Jacob Champion
Discussion: https://postgr.es/m/DM6PR16MB3145CF62857226F350C710D1AB852@DM6PR16MB3145.namprd16.prod.outlook.com
Backpatch-through: v12
src/backend/libpq/be-secure-openssl.c