]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
Added a warning that the PolarSSL library does not support pkcs12 files.
authorAdriaan de Jong <dejong@fox-it.com>
Tue, 5 Jul 2011 08:02:40 +0000 (10:02 +0200)
committerDavid Sommerseth <davids@redhat.com>
Sat, 22 Oct 2011 14:00:49 +0000 (16:00 +0200)
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>
openvpn.8
options.c
ssl_polarssl.c

index c585da4aea1bd05315697a10bc8404e08b52f3f6..8e8ea8f928beac7f260bd568521d987a90e6310e 100644 (file)
--- a/openvpn.8
+++ b/openvpn.8
@@ -4041,6 +4041,7 @@ This option can be used instead of
 .B \-\-ca, \-\-cert,
 and
 .B \-\-key.
+Not available with PolarSSL.
 .\"*********************************************************
 .TP
 .B \-\-verify-hash hash
index 9ed32b6d89ea7e05999867dd30a5b27c4bc367cb..68c2a698f020b316878bda52f3bbef264123725c 100644 (file)
--- a/options.c
+++ b/options.c
@@ -2265,12 +2265,16 @@ options_postprocess_verify_ce (const struct options *options, const struct conne
 #endif
       if (options->pkcs12_file)
         {
+#ifdef USE_POLARSSL
+         msg(M_USAGE, "Parameter --pkcs12 cannot be used with the PolarSSL version version of OpenVPN.");
+#else
           if (options->ca_path)
            msg(M_USAGE, "Parameter --capath cannot be used when --pkcs12 is also specified.");
           if (options->cert_file)
            msg(M_USAGE, "Parameter --cert cannot be used when --pkcs12 is also specified.");
           if (options->priv_key_file)
            msg(M_USAGE, "Parameter --key cannot be used when --pkcs12 is also specified.");
+#endif
         }
       else
         {
index 7ea20ca3823e01069f50fc0b2233b92ba465a186..d45156a7bbc5d4ed826d65f50d505274f911afdc 100644 (file)
@@ -220,6 +220,7 @@ tls_ctx_load_pkcs12(struct tls_root_ctx *ctx, const char *pkcs12_file,
     )
 {
   msg(M_FATAL, "PKCS #12 files not yet supported for PolarSSL.");
+  return 0;
 }
 
 #ifdef WIN32