diff options
author | David Sommerseth <dazo@users.sourceforge.net> | 2011-01-06 23:24:52 +0100 |
---|---|---|
committer | David Sommerseth <davids@redhat.com> | 2011-03-25 09:38:48 +0100 |
commit | dc299b6e7d0413d0a311c33ffb14591b5c8d1d96 (patch) | |
tree | d669e2c6714c7371b2c46f67a1b3ba89306407f6 /openvpn-plugin.h | |
parent | Added a simple plug-in demonstrating the v3 plug-in API. (diff) | |
download | openvpn-dc299b6e7d0413d0a311c33ffb14591b5c8d1d96.tar.xz |
Separate the general plug-in version constant and v3 plug-in structs version
After a review of the second round of the the v3 plug-in implementation, it
was decided to use a separate constant defining the version of the structs
used for argument and return value passing, instead of OPENVPN_PLUGIN_VERSION.
To not make it too complex, this patch uses a shared version constant for all
the v3 structures. It is not expected that these strucutures will change too
much and too often.
Signed-off-by: David Sommerseth <dazo@users.sourceforge.net>
Acked-by: James Yonan <james@openvpn.net>
Diffstat (limited to '')
-rw-r--r-- | openvpn-plugin.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/openvpn-plugin.h b/openvpn-plugin.h index 13913a8..5c82daf 100644 --- a/openvpn-plugin.h +++ b/openvpn-plugin.h @@ -168,6 +168,20 @@ struct openvpn_plugin_string_list /* openvpn_plugin_{open,func}_v3() related structs */ +/* Defines version of the v3 plugin argument structs + * + * Whenever one or more of these structs are modified, this constant + * must be updated. A changelog should be appended in this comment + * as well, to make it easier to see what information is available + * in the different versions. + * + * Version Comment + * 1 Initial plugin v3 structures providing the same API as + * the v2 plugin interface + X509 certificate information. + * + */ +#define OPENVPN_PLUGINv3_STRUCTVER 1 + /** * Arguments used to transport variables to the plug-in. * The struct openvpn_plugin_args_open_in is only used |