From: Andres Freund <andres@anarazel.de>
To: Peter Eisentraut <peter_e@gmx.net>
Cc: pgsql-committers@postgresql.org
Subject: Re: pgsql: Add missing includes
Date: Thu, 4 Jan 2018 16:08:20 -0800
Message-ID: <20180105000820.vlzd5lq2snoyfqwt@alap3.anarazel.de> (raw)
In-Reply-To: <E1eXESy-0002ww-1x@gemulon.postgresql.org>
References: <E1eXESy-0002ww-1x@gemulon.postgresql.org>
On 2018-01-04 22:58:28 +0000, Peter Eisentraut wrote:
> Add missing includes
>
> <openssl/x509.h> is necessary to look into the X509 struct, used by
> ac3ff8b1d8f98da38c53a701e6397931080a39cf.
That's not sufficient here:
/home/andres/src/postgresql/src/backend/libpq/be-secure-openssl.c: In function ‘be_tls_get_certificate_hash’:
/home/andres/src/postgresql/src/backend/libpq/be-secure-openssl.c:1269:50: error: dereferencing pointer to incomplete type ‘X509 {aka struct x509_st}’
if (!OBJ_find_sigid_algs(OBJ_obj2nid(server_cert->sig_alg->algorithm),
^~
../../../src/Makefile.global:819: recipe for target 'be-secure-openssl.o' failed
It's defined in openssl's include/internal/x509_int.h which also has the
following comment:
/* Internal X509 structures and functions: not for application use */
so this looks like a nonstarter approach that shouldn't be fixed with
additional includes.
Greetings,
Andres Freund
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-committers@postgresql.org
Cc: andres@anarazel.de, peter_e@gmx.net
Subject: Re: pgsql: Add missing includes
In-Reply-To: <20180105000820.vlzd5lq2snoyfqwt@alap3.anarazel.de>
References: <E1eXESy-0002ww-1x@gemulon.postgresql.org> <20180105000820.vlzd5lq2snoyfqwt@alap3.anarazel.de>
* 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