summaryrefslogtreecommitdiffstats
path: root/options.c
diff options
context:
space:
mode:
authorAdriaan de Jong <dejong@fox-it.com>2011-07-05 10:05:32 +0200
committerDavid Sommerseth <davids@redhat.com>2011-10-22 16:00:49 +0200
commit8d26c253e8f62d67b51d50f82c333ed4412000ac (patch)
tree37c3b57464dc9bc8eb145ffb874bc4fa18b64c8b /options.c
parent88133cdb961afcfb2de4576b0647f90378a67cc3 (diff)
downloadopenvpn-8d26c253e8f62d67b51d50f82c333ed4412000ac.tar.gz
openvpn-8d26c253e8f62d67b51d50f82c333ed4412000ac.tar.xz
openvpn-8d26c253e8f62d67b51d50f82c333ed4412000ac.zip
Added warning that --capath is not available with PolarSSL
Signed-off-by: Adriaan de Jong <dejong@fox-it.com> Acked-by: James Yonan <james@openvpn.net> Acked-by: Gert Doering <gert@greenie.muc.de> Signed-off-by: David Sommerseth <davids@redhat.com>
Diffstat (limited to 'options.c')
-rw-r--r--options.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/options.c b/options.c
index 68c2a69..635cef2 100644
--- a/options.c
+++ b/options.c
@@ -2281,6 +2281,8 @@ options_postprocess_verify_ce (const struct options *options, const struct conne
#ifdef USE_POLARSSL
if (!(options->ca_file))
msg(M_USAGE, "You must define CA file (--ca)");
+ if (options->ca_path)
+ msg(M_USAGE, "Parameter --capath cannot be used with the PolarSSL version version of OpenVPN.");
#else
if ((!(options->ca_file)) && (!(options->ca_path)))
msg(M_USAGE, "You must define CA file (--ca) or CA path (--capath)");