summaryrefslogtreecommitdiffstats
path: root/src/openvpn/options.c
diff options
context:
space:
mode:
authorGert Doering <gert@greenie.muc.de>2015-05-24 15:02:34 +0200
committerGert Doering <gert@greenie.muc.de>2015-05-24 21:30:37 +0200
commit7895590cf1f513f508132f8987fee8fef2759df7 (patch)
tree7f34e3a47acecc0aaa9f84302d3584c04627e9bc /src/openvpn/options.c
parent1009df7d51f3fb7f898b2155aa62b8f0336e49e6 (diff)
downloadopenvpn-7895590cf1f513f508132f8987fee8fef2759df7.tar.gz
openvpn-7895590cf1f513f508132f8987fee8fef2759df7.tar.xz
openvpn-7895590cf1f513f508132f8987fee8fef2759df7.zip
Disallow usage of --server-poll-timeout in --secret key mode.
The internal machinery wants TLS for this to work, so just add this to the (long) list of options not allowed unless either --tls-client or --tls-server is active. For added sanity, add an ASSERT() call to the place where this combination caused a NULL ptr reference, and document the restriction. Fix trac #373 Signed-off-by: Gert Doering <gert@greenie.muc.de> Acked-by: Steffan Karger <steffan.karger@fox-it.com> Message-Id: <1432472554-24666-1-git-send-email-gert@greenie.muc.de> URL: http://article.gmane.org/gmane.network.openvpn.devel/9736 (cherry picked from commit 6478c1f359e6b0ea2046d9e2801830753e53c06a)
Diffstat (limited to 'src/openvpn/options.c')
-rw-r--r--src/openvpn/options.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/openvpn/options.c b/src/openvpn/options.c
index fdf8fba..ff4b07b 100644
--- a/src/openvpn/options.c
+++ b/src/openvpn/options.c
@@ -2337,6 +2337,9 @@ options_postprocess_verify_ce (const struct options *options, const struct conne
MUST_BE_UNDEF (pkcs11_id);
MUST_BE_UNDEF (pkcs11_id_management);
#endif
+#if P2MP
+ MUST_BE_UNDEF (server_poll_timeout);
+#endif
if (pull)
msg (M_USAGE, err, "--pull");