Re: pgcrypto compilation error due to stack-allocated EVP_CIPHER_CTX
Michael Paquier <michael.paquier@gmail.com>
From: Michael Paquier <michael.paquier@gmail.com>
To: Asif Naeem <anaeem.it@gmail.com>
Cc: Heikki Linnakangas <hlinnaka@iki.fi>,
Andreas Karlsson <andreas@proxel.se>, Andres Freund <andres@anarazel.de>, PostgreSQL mailing lists <pgsql-hackers@postgresql.org>
Date: 2016-12-06T21:23:50Z
Lists: pgsql-hackers
On Tue, Dec 6, 2016 at 11:42 PM, Asif Naeem <anaeem.it@gmail.com> wrote: > Thanks for updated patch. Although EVP_CIPHER_CTX_cleanup() seems deprecated > in OpenSSL >= 1.1.0 i.e. > >> # if OPENSSL_API_COMPAT < 0x10100000L >> # define EVP_CIPHER_CTX_init(c) EVP_CIPHER_CTX_reset(c) >> # define EVP_CIPHER_CTX_cleanup(c) EVP_CIPHER_CTX_reset(c) >> # endif > > > I guess use of deprecated function is fine, until OpenSSL library support > it. We could use some ifdef block with the OpenSSL version number, but I am not sure if that's worth complicating the code at this stage. -- Michael
Commits
-
Fix pgcrypto compilation with OpenSSL 1.1.0.
- 9bbbf029dded 10.0 landed
-
Use OpenSSL EVP API for symmetric encryption in pgcrypto.
- 5ff4a67f63fd 10.0 cited
-
Support OpenSSL 1.1.0.
- 593d4e47db7a 10.0 cited