pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Thomas Munro <thomas.munro@gmail.com>
Cc: Michael Paquier <michael@paquier.xyz>
Cc: 近藤雄太 <kondo@sraoss.co.jp>
Cc: Daniel Gustafsson <daniel@yesql.se>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Cc: buildfarm@sraoss.co.jp
Subject: Re: Missing include <openssl/x509.h> in be-secure-openssl.c?
Date: Wed, 03 Nov 2021 23:33:46 -0400
Message-ID: <284247.1635996826@sss.pgh.pa.us> (raw)
In-Reply-To: <CA+hUKG+5k2n1FTgtts+KONheRz3NVtfQsePU_da9cr0TU5dH-Q@mail.gmail.com>
References: <1051867.1635720347@sss.pgh.pa.us>
	<YX96r7i6h8JXOKD5@paquier.xyz>
	<3C44D869-9BA5-4D02-9812-BF85D105B315@yesql.se>
	<1129759.1635773615@sss.pgh.pa.us>
	<461EF47A-C979-4124-87E3-758A68A98D1E@yesql.se>
	<YYBpstjmTv2xbc74@paquier.xyz>
	<1790342.1635950136@sss.pgh.pa.us>
	<20211104105613.d97d4434e1adb2495f428b72@sraoss.co.jp>
	<YYNChzE3FUi+PKhT@paquier.xyz>
	<CA+hUKG+VfJ6g4JoHpdFKVcpsT7o5GQy_74uGPethXQDSYnkcEQ@mail.gmail.com>
	<CA+hUKG+5k2n1FTgtts+KONheRz3NVtfQsePU_da9cr0TU5dH-Q@mail.gmail.com>

Thomas Munro <thomas.munro@gmail.com> writes:
> Ahh, I think this contains some relevant bits, and we have indeed
> messed around with mentioned Windows headers in master.
> https://stackoverflow.com/questions/49504648/x509-name-macro-in-c-wont-compile/49504794

Oooh .... note the comment there about

    This helped me too, but I found the simplest thing to do was just make sure the OpenSSL headers were #included last in my source file. – 

So the fact that be-secure-openssl.c and fe-secure-openssl.c
are including things in different orders *is* relevant.  I'd
previously discovered this bit in OpenSSL's headers (ossl_typ.h):

# ifdef _WIN32
#  undef X509_NAME
...
#endif
...
typedef struct X509_name_st X509_NAME;

So that will work around the problem as long as it's #include'd
after the relevant Windows headers.

But I don't get the point about where HEAD is different from v14?
be-secure-openssl.c isn't.

			regards, tom lane





view thread (20+ messages)  latest in thread

Message-ID: <284247.1635996826@sss.pgh.pa.us>
Permalink:  ../284247.1635996826@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/284247.1635996826@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-hackers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, thomas.munro@gmail.com, michael@paquier.xyz, kondo@sraoss.co.jp, daniel@yesql.se, buildfarm@sraoss.co.jp
  Subject: Re: Missing include <openssl/x509.h> in be-secure-openssl.c?
  In-Reply-To: <284247.1635996826@sss.pgh.pa.us>
  References: <1051867.1635720347@sss.pgh.pa.us> <YX96r7i6h8JXOKD5@paquier.xyz> <3C44D869-9BA5-4D02-9812-BF85D105B315@yesql.se> <1129759.1635773615@sss.pgh.pa.us> <461EF47A-C979-4124-87E3-758A68A98D1E@yesql.se> <YYBpstjmTv2xbc74@paquier.xyz> <1790342.1635950136@sss.pgh.pa.us> <20211104105613.d97d4434e1adb2495f428b72@sraoss.co.jp> <YYNChzE3FUi+PKhT@paquier.xyz> <CA+hUKG+VfJ6g4JoHpdFKVcpsT7o5GQy_74uGPethXQDSYnkcEQ@mail.gmail.com> <CA+hUKG+5k2n1FTgtts+KONheRz3NVtfQsePU_da9cr0TU5dH-Q@mail.gmail.com> <284247.1635996826@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox