]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUILD: ssl: replace SSL_CTX_get0_privatekey for openssl < 1.0.2
authorEmmanuel Hocdet <manu@gandi.net>
Fri, 11 Aug 2017 08:56:00 +0000 (10:56 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 11 Aug 2017 09:35:26 +0000 (11:35 +0200)
commit15969297af0371fec1523f7a4182dae87e19c782
tree579621a3eea4c9f708a0b88c5b27b2fdf9eee6a4
parent286ec68f8230853f6e19913022b97cd7b9dad0e8
BUILD: ssl: replace SSL_CTX_get0_privatekey for openssl < 1.0.2

Commit 48a8332a introduce SSL_CTX_get0_privatekey in openssl-compat.h but
SSL_CTX_get0_privatekey access internal structure and can't be a candidate
to openssl-compat.h. The workaround with openssl < 1.0.2 is to use SSL_new
then SSL_get_privatekey.
include/proto/openssl-compat.h
src/ssl_sock.c