summaryrefslogtreecommitdiffstats
path: root/src/openvpn/options.c
diff options
context:
space:
mode:
authorGert Doering <gert@greenie.muc.de>2014-04-13 17:29:32 +0200
committerGert Doering <gert@greenie.muc.de>2014-04-18 20:50:15 +0200
commit1ec984b154aa3247ef58c9d44e7e477880b632b1 (patch)
tree491177efa2727f7141ef459e3aee3f154b05c132 /src/openvpn/options.c
parent4b4fac9184fcea1eab4f4223309211780cee188a (diff)
downloadopenvpn-1ec984b154aa3247ef58c9d44e7e477880b632b1.tar.gz
openvpn-1ec984b154aa3247ef58c9d44e7e477880b632b1.tar.xz
openvpn-1ec984b154aa3247ef58c9d44e7e477880b632b1.zip
Add SSL library version reporting.
Print the version of the SSL and LZO library (if any) used. SSL library version is also sent as IV_SSL=<version> to the server if --push-peer-info is enabled. Signed-off-by: Gert Doering <gert@greenie.muc.de> Acked-by: Steffan Karger <steffan.karger@fox-it.com> Message-Id: <20140416152456.GI16637@greenie.muc.de> URL: http://article.gmane.org/gmane.network.openvpn.devel/8537
Diffstat (limited to 'src/openvpn/options.c')
-rw-r--r--src/openvpn/options.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/openvpn/options.c b/src/openvpn/options.c
index 18cb354..4af2974 100644
--- a/src/openvpn/options.c
+++ b/src/openvpn/options.c
@@ -3435,10 +3435,28 @@ usage_small (void)
openvpn_exit (OPENVPN_EXIT_STATUS_USAGE); /* exit point */
}
+void
+show_library_versions(const unsigned int flags)
+{
+ msg (flags, "library versions: %s%s%s",
+#ifdef ENABLE_SSL
+ get_ssl_library_version(),
+#else
+ "",
+#endif
+#ifdef ENABLE_LZO
+ ", LZO ", lzo_version_string()
+#else
+ "", ""
+#endif
+ );
+}
+
static void
usage_version (void)
{
msg (M_INFO|M_NOPREFIX, "%s", title_string);
+ show_library_versions( M_INFO|M_NOPREFIX );
msg (M_INFO|M_NOPREFIX, "Originally developed by James Yonan");
msg (M_INFO|M_NOPREFIX, "Copyright (C) 2002-2010 OpenVPN Technologies, Inc. <sales@openvpn.net>");
#ifndef ENABLE_SMALL