]> git.ipfire.org Git - thirdparty/openvpn.git/commit
auth-token: Ensure tokens are always wiped on de-auth
authorDavid Sommerseth <davids@openvpn.net>
Tue, 28 Mar 2017 20:53:46 +0000 (22:53 +0200)
committerDavid Sommerseth <davids@openvpn.net>
Wed, 29 Mar 2017 10:36:48 +0000 (12:36 +0200)
commita52fd9575e82569ce93408f44799c68704261887
tree982ab35eb3b707eae415d79d9ac7cc7bd7397fb6
parentbb9d4c91c95f245dea87735e4e05661e04931b33
auth-token: Ensure tokens are always wiped on de-auth

If tls_deauthenticate() was called, it could in some scenarios leave the
authentication token for a session in memory.  This change just ensures
auth-tokens are always wiped as soon as a TLS session is considered
broken.

Signed-off-by: David Sommerseth <davids@openvpn.net>
Acked-by: Steffan Karger <steffan@karger.me>
Message-Id: <20170328205346.18844-1-davids@openvpn.net>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg14344.html
Signed-off-by: David Sommerseth <davids@openvpn.net>
(cherry picked from commit daab0a9fa8ff4f40e8a34707db0ac156d49fbfcb)
src/openvpn/ssl_verify.c