]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Don't manually free DH params in OpenSSL 3
authorMax Fillinger <maximilian.fillinger@foxcrypto.com>
Mon, 25 Oct 2021 14:53:14 +0000 (16:53 +0200)
committerGert Doering <gert@greenie.muc.de>
Mon, 25 Oct 2021 15:58:15 +0000 (17:58 +0200)
commit4daed27f28f6bb3033e659328fe80322a8f4b5e1
tree42d1154ee3b67c27fd6be8b60414a1753ba1b174
parentfa5ab2438ad2d8a12eaf43e2cdd8b4294299c175
Don't manually free DH params in OpenSSL 3

When the EVP_PKEY object with the Diffie-Hellman parameters is passed
to SSL_CTX_set0_tmp_dh_pkey, it does not create a copy but stores the
pointer in the SSL_CTX. Therefore, we should not free it.

The EVP_PKEY will be freed automatically when we free the SSL_CTX.

Trac: #1436

Signed-off-by: Max Fillinger <maximilian.fillinger@foxcrypto.com>
Acked-by:
Message-Id: <20211025145314.23009-1-maximilian.fillinger@foxcrypto.com>
URL: https://www.mail-archive.com/search?l=mid&q=20211025145314.23009-1-maximilian.fillinger@foxcrypto.com
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/ssl_openssl.c