CLEANUP: ssl: use the refcount for the SSL_CTX'
authorWilliam Lallemand <wlallemand@haproxy.com>
Wed, 8 Apr 2020 14:11:26 +0000 (16:11 +0200)
committerWilliam Lallemand <wlallemand@haproxy.org>
Wed, 8 Apr 2020 14:52:51 +0000 (16:52 +0200)
commit02e19a5c7b48ab7a5a3ffd69884e27408ba15a16
tree571417608d96fc1213bcd4a723f5e813bfb6355e
parent24be710609fe24781b489339273beec29114a3b8
CLEANUP: ssl: use the refcount for the SSL_CTX'

Use the refcount of the SSL_CTX' to free them instead of freeing them on
certains conditions. That way we can free the SSL_CTX everywhere its
pointer is used.
include/common/openssl-compat.h
src/ssl_sock.c