MINOR: ssl: copy a ckch from src to dst
authorWilliam Lallemand <wlallemand@haproxy.com>
Thu, 17 Oct 2019 16:03:58 +0000 (18:03 +0200)
committerWilliam Lallemand <wlallemand@haproxy.org>
Wed, 23 Oct 2019 09:54:51 +0000 (11:54 +0200)
commit8d0f893222edac7495c525f82c05a640ff9adba8
tree670ec5adaede40d373bb8a835945e42ac542a215
parent455af50facb33ba25f8ef39940dd3c69dafd19a6
MINOR: ssl: copy a ckch from src to dst

ssl_sock_copy_cert_key_and_chain() copy the content of a
<src> cert_key_and_chain to a <dst>.

It applies a refcount increasing on every SSL structures (X509, DH,
privte key..) and allocate new buffers for the other fields.
src/ssl_sock.c