Cleanup code related to OpenSSL <= 0.9.6 in fe/be-secure-openssl.c

Started by Michael Paquierover 6 years ago3 messageshackers
Jump to latest
#1Michael Paquier
michael@paquier.xyz

Hi all,

While reviewing the area, I have bumped into the following bit in
fe-secure-openssl.c and be-secure-openssl.c:
- /* OpenSSL 0.96 does not support X509_V_FLAG_CRL_CHECK */
-#ifdef X509_V_FLAG_CRL_CHECK
[... stuff ...]

I think that this did not get removed because of the incorrect version
number in the comment, which should have been 0.9.6 from the start.

Anyway, let's clean up this code as per the attached. This set of
flags indeed exists since 0.9.7. Any thoughts or objections?
--
Michael

Attachments:

openssl-clean-crl-check.patchtext/x-diff; charset=us-asciiDownload+0-21
#2Peter Eisentraut
peter_e@gmx.net
In reply to: Michael Paquier (#1)
Re: Cleanup code related to OpenSSL <= 0.9.6 in fe/be-secure-openssl.c

On 2019-09-27 05:23, Michael Paquier wrote:

While reviewing the area, I have bumped into the following bit in
fe-secure-openssl.c and be-secure-openssl.c:
- /* OpenSSL 0.96 does not support X509_V_FLAG_CRL_CHECK */
-#ifdef X509_V_FLAG_CRL_CHECK
[... stuff ...]

I think that this did not get removed because of the incorrect version
number in the comment, which should have been 0.9.6 from the start.

Anyway, let's clean up this code as per the attached. This set of
flags indeed exists since 0.9.7. Any thoughts or objections?

Yes, it seems OK to clean this up in master.

--
Peter Eisentraut http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

#3Michael Paquier
michael@paquier.xyz
In reply to: Peter Eisentraut (#2)
Re: Cleanup code related to OpenSSL <= 0.9.6 in fe/be-secure-openssl.c

On Fri, Sep 27, 2019 at 03:46:09PM +0200, Peter Eisentraut wrote:

Yes, it seems OK to clean this up in master.

Thanks, applied on HEAD.
--
Michael