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

Commitbde64eb

Browse files
committed
Track new configure flags introduced for version 11 in pg_config.h.win32
The following set of flags mainly matter when building Postgres codewith MSVC and those have been forgotten with latest developments:- HAVE_LDAP_INITIALIZE, added by35c0754, and marked as disabled.ldap_initialize() is a non-standard extension that provides a way to use"ldaps" with OpenLDAP, but it is not supported on Windows, and insteadthe non-standard ldap_sslinit() is used if WIN32 is defined. Per inputfrom Thomas Munro.- HAVE_X509_GET_SIGNATURE_NID, added by054e8c6, which is used bySCRAM's channel binding tls-server-end-point. Having this flag disabledwould cause this channel binding type to be unsupported for Windowsbuilds.- HAVE_SSL_CLEAR_OPTIONS, added recently as ofa364dfa to disable SSLcompression.- HAVE_ASN1_STRING_GET0_DATA, added by5c6df67, which is used to tracka new compatibility with OpenSSL 1.1.0. This was missing frompg_config.win32.h and is not enabled by default. HAVE_BIO_GET_DATA,HAVE_OPENSSL_INIT_SSL and HAVE_BIO_METH_NEW gain the same treatment.The second and third flags are enabled with this commit, which raisesthe bar of OpenSSL support to 1.0.2 on Windows as a minimum. As thisis the LTS (long-time support) version of OpenSSL community and knowingthat all recent installers referred by OpenSSL upstream don't haveanymore 1.0.1 or older, we could live with that requirement. In orderto allow the code to compile with OpenSSL 1.1.0, all the flags mentionedabove need to be enabled in pg_config.h.win32.Author: Michael PaquierReviewed-by: Andrew DunstanDiscussion:https://postgr.es/m/20180529211559.GF6632@paquier.xyz
1 parent93b6e03 commitbde64eb

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

‎src/include/pg_config.h.win32

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,15 @@
7272
# define gettimeofday(a,b) gettimeofday(a)
7373
#endif
7474

75+
/* Define to 1 if you have the `ASN1_STRING_get0_data' function. */
76+
/* #undef HAVE_ASN1_STRING_GET0_DATA */
77+
78+
/* Define to 1 if you have the `BIO_get_data' function. */
79+
/* #undef HAVE_BIO_GET_DATA */
80+
81+
/* Define to 1 if you have the `BIO_meth_new' function. */
82+
/* #undef HAVE_BIO_METH_NEW */
83+
7584
/* Define to 1 if you have the `cbrt' function. */
7685
//#define HAVE_CBRT 1
7786

@@ -233,6 +242,9 @@
233242
/* Define to 1 if you have the <ldap.h> header file. */
234243
/* #undef HAVE_LDAP_H */
235244

245+
/* Define to 1 if you have the `ldap_initialize' function. */
246+
/* #undef HAVE_LDAP_INITIALIZE */
247+
236248
/* Define to 1 if you have the `crypto' library (-lcrypto). */
237249
/* #undef HAVE_LIBCRYPTO */
238250

@@ -288,6 +300,9 @@
288300
/* Define to 1 if you have the <netinet/tcp.h> header file. */
289301
/* #undef HAVE_NETINET_TCP_H */
290302

303+
/* Define to 1 if you have the `OPENSSL_init_ssl' function. */
304+
/* #undef HAVE_OPENSSL_INIT_SSL */
305+
291306
/* Define to 1 if you have the <pam/pam_appl.h> header file. */
292307
/* #undef HAVE_PAM_PAM_APPL_H */
293308

@@ -361,6 +376,9 @@
361376
/* Define to 1 if you have the `srandom' function. */
362377
/* #undef HAVE_SRANDOM */
363378

379+
/* Define to 1 if you have the `SSL_clear_options' function. */
380+
#define HAVE_SSL_CLEAR_OPTIONS 1
381+
364382
/* Define to 1 if you have the `SSL_get_current_compression' function. */
365383
#define HAVE_SSL_GET_CURRENT_COMPRESSION 1
366384

@@ -543,6 +561,9 @@
543561
/* Define to 1 if you have the <winldap.h> header file. */
544562
/* #undef HAVE_WINLDAP_H */
545563

564+
/* Define to 1 if you have the `X509_get_signature_nid' function. */
565+
#define HAVE_X509_GET_SIGNATURE_NID 1
566+
546567
/* Define to 1 if the system has the type `_Bool'. */
547568
/* #undef HAVE__BOOL */
548569

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp