getdns: fix compilation with OPENSSL_NO_DEPRECATED
authorAndre Heider <a.heider@gmail.com>
Tue, 21 Feb 2023 14:54:16 +0000 (15:54 +0100)
committerRosen Penev <rosenp@gmail.com>
Mon, 1 May 2023 10:36:00 +0000 (13:36 +0300)
commit2fed4c089598b38d86531087fc41782f27c23c26
tree0954ba20a95332ac8caa139490b021e24c78cb29
parentfe0dc6f48ae6b98c4663e3e93f6df12d8ef55203
getdns: fix compilation with OPENSSL_NO_DEPRECATED

SSL_get_peer_certificate() is deprecated, OpenSSL v3.0 added
SSL_get0_peer_certificate() and SSL_get1_peer_certificate().

Use the latter since the return value is explicitely X509_free()ed
here, see [0].

[0] https://www.openssl.org/docs/manmaster/man3/SSL_get_peer_certificate.html

Signed-off-by: Andre Heider <a.heider@gmail.com>
libs/getdns/Makefile
libs/getdns/patches/001-openssl-deprecated.patch [new file with mode: 0644]