Fix building with MSVC for TLS session disabling
authorDaniel Gustafsson <[email protected]>
Fri, 26 Jul 2024 17:10:37 +0000 (19:10 +0200)
committerDaniel Gustafsson <[email protected]>
Fri, 26 Jul 2024 17:10:37 +0000 (19:10 +0200)
Commit 274bbced85 omitted the required changes for the MSVC build
system in v16 through v12. Per buildfarm animal hamerkop.

Discussion: https://postgr.es/m/7919238F-723C-4113-9742-EBCE7A76A6B4@yesql.se

src/include/pg_config.h.win32
src/tools/msvc/Solution.pm

index a8c0d2c35cfcfec9613f8e70ff619e8145affd6b..dd751e557b3e4026039f0c588155d5da15865f09 100644 (file)
 /* Define to 1 if you have the `SSL_clear_options' function. */
 #define HAVE_SSL_CLEAR_OPTIONS 1
 
+/* Define to 1 if you have the `SSL_CTX_set_num_tickets' function. */
+/* #undef HAVE_SSL_CTX_SET_NUM_TICKETS */
+
 /* Define to 1 if you have the `SSL_get_current_compression' function. */
 #define HAVE_SSL_GET_CURRENT_COMPRESSION 1
 
index a7e5fdbda94216186e4c50f6729308ebdd393963..ec232802e459657c46102b15ef5e0eb935aafad3 100644 (file)
@@ -266,6 +266,7 @@ sub GenerateFiles
                || ($digit1 >= '1' && $digit2 >= '1' && $digit3 >= '1'))
            {
                print $o "#define HAVE_X509_GET_SIGNATURE_INFO 1\n";
+               print $o "#define HAVE_SSL_CTX_SET_NUM_TICKETS 1\n";
            }
 
            # Symbols needed with OpenSSL 1.1.0 and above.