pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Christoph Berg <christoph.berg@credativ.de>
To: Heikki Linnakangas <hlinnaka@iki.fi>
Cc: Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: Andres Freund <andres@anarazel.de>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Subject: Re: Use EVP API pgcrypto encryption, dropping support for OpenSSL 0.9.6 and older
Date: Thu, 8 Dec 2016 16:51:34 +0100
Message-ID: <20161208155133.2dnvjtgb5dcg2cjb@msg.df7cb.de> (raw)
In-Reply-To: <07ebd878-ff09-72d5-7df7-f7fde7b83824@iki.fi>
References: <561274F1.1030000@iki.fi>
	<20151005151605.GC8531@alvherre.pgsql>
	<20151005152848.GE26492@awork2.anarazel.de>
	<20151005153748.GE8531@alvherre.pgsql>
	<07ebd878-ff09-72d5-7df7-f7fde7b83824@iki.fi>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

Re: Heikki Linnakangas 2016-10-17 <07ebd878-ff09-72d5-7df7-f7fde7b83824@iki.fi>
> Committed this patch now.

Hi,

I've just taken up work again on PG 10 on Debian unstable.

With openssl 1.1.0c-2, pgcrypto errors out with:

gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -g -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -I/usr/include/mit-krb5 -fPIC -pie -fno-omit-frame-pointer -fpic -I. -I/<<PKGBUILDDIR>>/build/../contrib/pgcrypto -I../../src/include -I/<<PKGBUILDDIR>>/build/../src/include -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -I/usr/include/libxml2  -I/usr/include/tcl8.6  -c -o openssl.o /<<PKGBUILDDIR>>/build/../contrib/pgcrypto/openssl.c
/<<PKGBUILDDIR>>/build/../contrib/pgcrypto/openssl.c:253:17: error: field 'evp_ctx' has incomplete type
  EVP_CIPHER_CTX evp_ctx;
                 ^~~~~~~
/<<PKGBUILDDIR>>/build/../contrib/pgcrypto/openssl.c: In function 'bf_check_supported_key_len':
/<<PKGBUILDDIR>>/build/../contrib/pgcrypto/openssl.c:373:17: error: storage size of 'evp_ctx' isn't known
  EVP_CIPHER_CTX evp_ctx;
                 ^~~~~~~
/<<PKGBUILDDIR>>/build/../contrib/pgcrypto/openssl.c:373:17: warning: unused variable 'evp_ctx' [-Wunused-variable]
<builtin>: recipe for target 'openssl.o' failed

Reverting 5ff4a67f63fd6d3eb01ff9707d4674ed54a89f3b fixes compilation.
(9.6 is fine.)

Christoph


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers



view thread (8+ messages)  latest in thread

Message-ID: <20161208155133.2dnvjtgb5dcg2cjb@msg.df7cb.de>
Permalink:  ../20161208155133.2dnvjtgb5dcg2cjb@msg.df7cb.de/
Also on:    postgresql.org/message-id/20161208155133.2dnvjtgb5dcg2cjb@msg.df7cb.de

 · 

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: christoph.berg@credativ.de, hlinnaka@iki.fi, alvherre@2ndquadrant.com, andres@anarazel.de
  Subject: Re: Use EVP API pgcrypto encryption, dropping support for OpenSSL 0.9.6 and older
  In-Reply-To: <20161208155133.2dnvjtgb5dcg2cjb@msg.df7cb.de>
  References: <561274F1.1030000@iki.fi> <20151005151605.GC8531@alvherre.pgsql> <20151005152848.GE26492@awork2.anarazel.de> <20151005153748.GE8531@alvherre.pgsql> <07ebd878-ff09-72d5-7df7-f7fde7b83824@iki.fi> <20161208155133.2dnvjtgb5dcg2cjb@msg.df7cb.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