aboutsummaryrefslogtreecommitdiff
path: root/src/openvpn/plugin.c
diff options
context:
space:
mode:
authorDavid Sommerseth2017-05-05 20:46:22 +0200
committerDavid Sommerseth2017-05-09 19:12:01 +0200
commitf018dfcc3631f165232afa3d13dc2a608bdb6ce7 (patch)
tree77b859e22cdbc59151bad76f66919194b46f09ba /src/openvpn/plugin.c
parent9900e023bcc49964d33e6f22c2b6223f8932acf8 (diff)
downloadopenvpn-f018dfcc3631f165232afa3d13dc2a608bdb6ce7.zip
openvpn-f018dfcc3631f165232afa3d13dc2a608bdb6ce7.tar.gz
plugin: Export secure_memzero() to plug-ins
The provides plug-ins with a safe and secure way to santize sensitive information such as passwords, by re-using the secure_memzero() implementation in OpenVPN. Signed-off-by: David Sommerseth <davids@openvpn.net> Acked-by: Selva Nair <selva.nair@gmail.com> Message-Id: <20170505184622.24520-1-davids@openvpn.net> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg14546.html Signed-off-by: David Sommerseth <davids@openvpn.net>
Diffstat (limited to 'src/openvpn/plugin.c')
-rw-r--r--src/openvpn/plugin.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/openvpn/plugin.c b/src/openvpn/plugin.c
index 05cbae3..a652d52 100644
--- a/src/openvpn/plugin.c
+++ b/src/openvpn/plugin.c
@@ -410,7 +410,8 @@ plugin_log(openvpn_plugin_log_flags_t flags, const char *name, const char *forma
static struct openvpn_plugin_callbacks callbacks = {
plugin_log,
- plugin_vlog
+ plugin_vlog,
+ secure_memzero /* plugin_secure_memzero */
};