Re: OpenSSL conflicts with wincrypt.h
От | Juan José Santamaría Flecha |
---|---|
Тема | Re: OpenSSL conflicts with wincrypt.h |
Дата | |
Msg-id | CAC+AXB19LnMDPA+KDiGjf=fYHgbRj2G4ays_ZfSBg7f43dR-vQ@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: OpenSSL conflicts with wincrypt.h (Tom Lane <tgl@sss.pgh.pa.us>) |
Ответы |
Re: OpenSSL conflicts with wincrypt.h
|
Список | pgsql-hackers |
On Fri, Feb 11, 2022 at 4:36 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:
Juan José Santamaría Flecha <juanjo.santamaria@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
В списке pgsql-hackers по дате отправления: