]> git.ipfire.org Git - thirdparty/openvpn.git/commit
OpenSSL: check for the SSL reason, not the full error
authorEmmanuel Deloget <logout@free.fr>
Fri, 17 Feb 2017 22:00:53 +0000 (23:00 +0100)
committerGert Doering <gert@greenie.muc.de>
Sun, 19 Feb 2017 17:42:40 +0000 (18:42 +0100)
commit6ddc43d1bf9b3ea3ee5db8c50d56a98fe4db4c97
tree596fc15fe55cd844a6c5f51828118d8776b2dfcf
parentdcfd3b6173d8cdb4658de23db1dd0bd932b390d2
OpenSSL: check for the SSL reason, not the full error

OpenSSL 1.1 changed the SSLv3 API and removed many SSL_L_SSL3_*
constants. Moreover, new code might use different function
code for the same error.

Thus, we extract the error reason from the error code before
we compare it instead of trying to rebuild an error code
that might not be correct.

The new version is compatible with OpenSSL 1.0.x as well as
with older versions (starting at 0.9.8).

Signed-off-by: Emmanuel Deloget <logout@free.fr>
Acked-by: Steffan Karger <steffan.karger@fox-it.com>
Message-Id: <0e0d4a67192b563cd07d3f06685f85e34c304142.1487368114.git.logout@free.fr>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg14087.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/crypto_openssl.c