pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Daniel Gustafsson <daniel@yesql.se>
Cc: Michael Paquier <michael@paquier.xyz>
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: Mon, 01 Nov 2021 09:33:35 -0400
Message-ID: <1129759.1635773615@sss.pgh.pa.us> (raw)
In-Reply-To: <3C44D869-9BA5-4D02-9812-BF85D105B315@yesql.se>
References: <1051867.1635720347@sss.pgh.pa.us>
	<YX96r7i6h8JXOKD5@paquier.xyz>
	<3C44D869-9BA5-4D02-9812-BF85D105B315@yesql.se>

Daniel Gustafsson <daniel@yesql.se> writes:
> It does make sense, but it's a bit worrisome that the indirect inclusion no
> longer works as there is no obvious explanation as to why.

Yeah.  Just to make things even more confusing, hamerkop is not failing
in the back branches.  v14 at least has exactly the same contents of
be-secure-openssl.c, so how's that happening?

>> x509v3.h includes x509.h, so fe-secure-openssl.h would not need an
>> update.  Now could it be a better practice to include both there?

> Judging by OpenSSL, including both is common practice unless the module only
> deals with v3 extensions. Following that lead seems reasonable.

I see that fe-secure-openssl.c includes only x509v3.h, and it builds
successfully on hamerkop.  So I'm now inclined to make be-secure-openssl.c
match that.  But it'd still be a good thing to trace the real cause.

			regards, tom lane





view thread (20+ messages)  latest in thread

Message-ID: <1129759.1635773615@sss.pgh.pa.us>
Permalink:  ../1129759.1635773615@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/1129759.1635773615@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, daniel@yesql.se, michael@paquier.xyz, buildfarm@sraoss.co.jp
  Subject: Re: Missing include <openssl/x509.h> in be-secure-openssl.c?
  In-Reply-To: <1129759.1635773615@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>

* 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