Re: pgcrypto compilation error due to stack-allocated EVP_CIPHER_CTX - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: pgcrypto compilation error due to stack-allocated EVP_CIPHER_CTX
Date
Msg-id CAB7nPqTbVOy7_Wuw8uD62fWp1RGHN7fDqkRg8s5jLHRAjGMvyw@mail.gmail.com
Whole thread Raw
In response to Re: pgcrypto compilation error due to stack-allocated EVP_CIPHER_CTX  (Asif Naeem <anaeem.it@gmail.com>)
Responses Re: pgcrypto compilation error due to stack-allocated EVP_CIPHER_CTX
List pgsql-hackers
On Tue, Dec 6, 2016 at 9:31 PM, Asif Naeem <anaeem.it@gmail.com> wrote:
> Thank you for v2 patch, I would like to comment on it. It seems that you
> have used function EVP_CIPHER_CTX_reset in the patch that was introduced in
> OpenSSL 1.1.0, older library version might not work now, is it intentional
> change ?.

I thought I tested that... But yes, that would not compile when linked
with 1.0.2 or older. Using EVP_CIPHER_CTX_cleanup() is safe instead as
that's available down to 0.9.8.
--
Michael

Attachment

pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: PSQL commands: \quit_if, \quit_unless
Next
From: Rahila Syed
Date:
Subject: Re: Assignment of valid collation for SET operations on queries with UNKNOWN types.