summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDavid Sommerseth <davids@redhat.com>2015-07-10 15:22:27 +0200
committerGert Doering <gert@greenie.muc.de>2015-07-27 20:48:46 +0200
commit9de35d4633ce3035b048957b2e20b81e31a40cd6 (patch)
tree8036c605962a9ec57b7823535856f9a137d3d665 /include
parentd40cbf0e2601b35bfb1c0551c6f3907b5c5178ff (diff)
downloadopenvpn-9de35d4633ce3035b048957b2e20b81e31a40cd6.tar.gz
openvpn-9de35d4633ce3035b048957b2e20b81e31a40cd6.tar.xz
openvpn-9de35d4633ce3035b048957b2e20b81e31a40cd6.zip
Provide compile time OpenVPN version information to plug-ins
This is to provide more fine grained information to plug-ins about the OpenVPN environment when OpenVPN was built. Signed-off-by: David Sommerseth <davids@redhat.com> Acked-by: Steffan Karger <steffan.karger@fox-it.com> Message-Id: <1436534548-21507-2-git-send-email-openvpn.list@topphemmelig.net> URL: http://article.gmane.org/gmane.network.openvpn.devel/9905 Signed-off-by: Gert Doering <gert@greenie.muc.de>
Diffstat (limited to 'include')
-rw-r--r--include/Makefile.am1
-rw-r--r--include/openvpn-plugin.h.in (renamed from include/openvpn-plugin.h)7
2 files changed, 8 insertions, 0 deletions
diff --git a/include/Makefile.am b/include/Makefile.am
index 13dee61..70f20e9 100644
--- a/include/Makefile.am
+++ b/include/Makefile.am
@@ -11,5 +11,6 @@
MAINTAINERCLEANFILES = \
$(srcdir)/Makefile.in
+ $(srcdir)/openvpn-plugin.h.in
include_HEADERS = openvpn-plugin.h
diff --git a/include/openvpn-plugin.h b/include/openvpn-plugin.h.in
index 080ffff..ddf3298 100644
--- a/include/openvpn-plugin.h
+++ b/include/openvpn-plugin.h.in
@@ -49,6 +49,13 @@ typedef X509 openvpn_x509_cert_t;
extern "C" {
#endif
+/* Provide some basic version information to plug-ins at OpenVPN compile time
+ * This is will not be the complete version
+ */
+#define OPENVPN_VERSION_MAJOR @OPENVPN_VERSION_MAJOR@
+#define OPENVPN_VERSION_MINOR @OPENVPN_VERSION_MINOR@
+#define OPENVPN_VERSION_PATCH "@OPENVPN_VERSION_PATCH@"
+
/*
* Plug-in types. These types correspond to the set of script callbacks
* supported by OpenVPN.