Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cF0yz-00013g-Hj for pgsql-hackers@arkaria.postgresql.org; Thu, 08 Dec 2016 15:51:41 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cF0yy-0006eM-Eg for pgsql-hackers@arkaria.postgresql.org; Thu, 08 Dec 2016 15:51:40 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cF0yx-0006e5-Lv for pgsql-hackers@postgresql.org; Thu, 08 Dec 2016 15:51:39 +0000 Received: from feynman.df7cb.de ([195.49.152.168]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cF0yu-0005yj-J6 for pgsql-hackers@postgresql.org; Thu, 08 Dec 2016 15:51:39 +0000 Received: from msg.df7cb.de (unknown [IPv6:2003:5b:203b:100:7627:eaff:fe52:8e03]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by feynman.df7cb.de (Postfix) with ESMTPSA id 3tZKbl2ccdz3F0H; Thu, 8 Dec 2016 16:51:31 +0100 (CET) Date: Thu, 8 Dec 2016 16:51:34 +0100 From: Christoph Berg To: Heikki Linnakangas Cc: Alvaro Herrera , Andres Freund , pgsql-hackers Subject: Re: Use EVP API pgcrypto encryption, dropping support for OpenSSL 0.9.6 and older Message-ID: <20161208155133.2dnvjtgb5dcg2cjb@msg.df7cb.de> Mail-Followup-To: Christoph Berg , Heikki Linnakangas , Alvaro Herrera , Andres Freund , pgsql-hackers 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <07ebd878-ff09-72d5-7df7-f7fde7b83824@iki.fi> User-Agent: NeoMutt/20161014 (1.7.1) X-Pg-Spam-Score: -4.9 (----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org 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=/<>=. -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/<>/build/../contrib/pgcrypto -I../../src/include -I/<>/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 /<>/build/../contrib/pgcrypto/openssl.c /<>/build/../contrib/pgcrypto/openssl.c:253:17: error: field 'evp_ctx' has incomplete type EVP_CIPHER_CTX evp_ctx; ^~~~~~~ /<>/build/../contrib/pgcrypto/openssl.c: In function 'bf_check_supported_key_len': /<>/build/../contrib/pgcrypto/openssl.c:373:17: error: storage size of 'evp_ctx' isn't known EVP_CIPHER_CTX evp_ctx; ^~~~~~~ /<>/build/../contrib/pgcrypto/openssl.c:373:17: warning: unused variable 'evp_ctx' [-Wunused-variable] : 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