BUILD: ssl: fine guard for SSL_CTX_get0_privatekey call
authorIlya Shipitsin <chipitsine@gmail.com>
Fri, 18 Dec 2020 22:12:12 +0000 (03:12 +0500)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 6 Jan 2021 13:41:15 +0000 (14:41 +0100)
commit842976dcb11c4fcd2af80d32e06384f5b8ca2288
tree4ea865cc22e12b060d54e3e59d34cc61325df0c5
parent775c665f20c695ad92fdb4318d5c77097ba15d7a
BUILD: ssl: fine guard for SSL_CTX_get0_privatekey call

SSL_CTX_get0_privatekey is openssl/boringssl specific function present
since openssl-1.0.2, let us define readable guard for it, not depending
on HA_OPENSSL_VERSION

(cherry picked from commit af204881a3df36da1451af33f57b2c11ecb0972e)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
include/haproxy/openssl-compat.h
src/ssl_sock.c