On Fri, Feb 11, 2022 at 4:36 PM Tom Lane <t...@sss.pgh.pa.us> wrote: > =?UTF-8?Q?Juan_Jos=C3=A9_Santamar=C3=ADa_Flecha?= < > juanjo.santama...@gmail.com> writes: > > There is a comment in 'src/backend/libpq/be-secure-openssl.c' addressing > > this issue, but I have to explicitly undefine X509_NAME. Please find > > attached a patch for so. > > Um ... why? Shouldn't the #undef in the OpenSSL headers take care > of the problem? > > After <openssl/ossl_typ.h> has been included, any inclusion of <wincrypt.h> will be troublesome. There is already something similar in 'contrib/sslinfo/sslinfo.c'. This shouldn't be a problem while defining WIN32_LEAN_AND_MEAN, but kerberos is directly including <wincrypt.h> in <win-mac.h>.
Regards, Juan José Santamaría Flecha