diff options
author | Arne Schwabe | 2024-04-02 08:36:46 +0200 |
---|---|---|
committer | Gert Doering | 2024-04-02 10:49:34 +0200 |
commit | ff402c7c2fbc49ff6d352ebdc3cdc4c27c2bbcbb (patch) | |
tree | 0bc92cbed5e6b374005fb693ceadcc31164de5f1 /src | |
parent | 4d907bf46a470ccbd2940b9ecb64d6502d9d86bf (diff) | |
download | openvpn-ff402c7c2fbc49ff6d352ebdc3cdc4c27c2bbcbb.zip openvpn-ff402c7c2fbc49ff6d352ebdc3cdc4c27c2bbcbb.tar.gz |
Match ifdef for get_sigtype function with if ifdef of caller
These two ifdef needs to be the same otherwise the compiler will
break with a undefined function.
Change-Id: I5b14bf90bb07935f0bb84373ec4e62352752c03f
Signed-off-by: Arne Schwabe <arne@rfc2549.org>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <20240402063646.25490-1-gert@greenie.muc.de>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg28512.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
Diffstat (limited to 'src')
-rw-r--r-- | src/openvpn/ssl_openssl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/openvpn/ssl_openssl.c b/src/openvpn/ssl_openssl.c index 6f29c3d..a158617 100644 --- a/src/openvpn/ssl_openssl.c +++ b/src/openvpn/ssl_openssl.c @@ -2166,7 +2166,8 @@ print_server_tempkey(SSL *ssl, char *buf, size_t buflen) EVP_PKEY_free(pkey); } -#if !defined(LIBRESSL_VERSION_NUMBER) && OPENSSL_VERSION_NUMBER >= 0x1010000fL +#if (!defined(LIBRESSL_VERSION_NUMBER) && OPENSSL_VERSION_NUMBER >= 0x1010000fL) \ + || (defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER >= 0x3090000fL) /** * Translate an OpenSSL NID into a more human readable name * @param nid |