]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
Remove SSL_LIB_VER_STR
authorAntonio Quartulli <a@unstable.cc>
Sat, 2 Dec 2017 13:45:38 +0000 (21:45 +0800)
committerGert Doering <gert@greenie.muc.de>
Mon, 4 Dec 2017 18:45:59 +0000 (19:45 +0100)
SSL_LIB_VER_STR made sense only when ENABLE_CRYPTO also
existed. It can now be removed and thus simplify the code.

Signed-off-by: Antonio Quartulli <a@unstable.cc>
Acked-by: Steffan Karger <steffan.karger@fox-it.com>
Message-Id: <20171202134541.7688-4-a@unstable.cc>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg15951.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/options.c

index 3b2ae92385dbd14f7e934b07e60f23d0ec7a1a0f..7be5f383e8ee8dfac7eaaf67d6fb861ea93d9816 100644 (file)
@@ -4087,16 +4087,15 @@ show_windows_version(const unsigned int flags)
 void
 show_library_versions(const unsigned int flags)
 {
-#define SSL_LIB_VER_STR get_ssl_library_version()
 #ifdef ENABLE_LZO
 #define LZO_LIB_VER_STR ", LZO ", lzo_version_string()
 #else
 #define LZO_LIB_VER_STR "", ""
 #endif
 
-    msg(flags, "library versions: %s%s%s", SSL_LIB_VER_STR, LZO_LIB_VER_STR);
+    msg(flags, "library versions: %s%s%s", get_ssl_library_version(),
+        LZO_LIB_VER_STR);
 
-#undef SSL_LIB_VER_STR
 #undef LZO_LIB_VER_STR
 }