]> git.ipfire.org Git - thirdparty/openvpn.git/commit
ssl_openssl: fix compiler warning by removing getbio() wrapper
authorSteffan Karger <steffan@karger.me>
Thu, 14 Dec 2017 10:21:37 +0000 (11:21 +0100)
committerGert Doering <gert@greenie.muc.de>
Thu, 11 Jan 2018 11:52:21 +0000 (12:52 +0100)
commit006d6a57b8835c15222359bfb42c95005723394c
treecdfb2e6d9409301f79d299160cffe839456334ef
parentb395f36e578b2def9da8e9347c0afa79814c0c7d
ssl_openssl: fix compiler warning by removing getbio() wrapper

An API change in openssl 1.1 made the BIO_METHOD * returned by BIO_f_ssl()
and BIO_s_mem() const, as well as the BIO_METHOD * argment of BIO_new()
const.  This meant that our getbio() function would either have an API
inconsistent with 1.0 or 1.1.

The wrapper was basically an ASSERT, so fix this by replacing the wrapper
with an ASSERT.

Signed-off-by: Steffan Karger <steffan@karger.me>
Acked-by: Arne Schwabe <arne@rfc2549.org>
Message-Id: <1513246897-28171-1-git-send-email-steffan@karger.me>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg16083.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/ssl_openssl.c