summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdriaan de Jong <dejong@fox-it.com>2011-07-05 10:32:09 +0200
committerDavid Sommerseth <davids@redhat.com>2011-10-22 16:00:49 +0200
commit5fa82c550f8160bb8dd107bc5f3d516ba996dd6d (patch)
treee20df01535f517f024dfb00594252c713121bd0f
parent93c22ecc635bc5047468629f2a5423a153910c0b (diff)
downloadopenvpn-5fa82c550f8160bb8dd107bc5f3d516ba996dd6d.tar.gz
openvpn-5fa82c550f8160bb8dd107bc5f3d516ba996dd6d.tar.xz
openvpn-5fa82c550f8160bb8dd107bc5f3d516ba996dd6d.zip
Removed support for management external keys in 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>
-rw-r--r--ssl_polarssl.c2
-rw-r--r--syshead.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/ssl_polarssl.c b/ssl_polarssl.c
index 032a356..2731081 100644
--- a/ssl_polarssl.c
+++ b/ssl_polarssl.c
@@ -322,7 +322,7 @@ int
tls_ctx_use_external_private_key (struct tls_root_ctx *ctx, x509_cert_t *cert)
{
msg(M_FATAL, "Use of management external keys not yet supported for PolarSSL.");
-
+ return false;
}
#endif
diff --git a/syshead.h b/syshead.h
index 0addcd7..0e8edf3 100644
--- a/syshead.h
+++ b/syshead.h
@@ -539,7 +539,7 @@ socket_defined (const socket_descriptor_t sd)
/*
* Enable external private key
*/
-#if defined(ENABLE_MANAGEMENT) && defined(USE_SSL)
+#if defined(ENABLE_MANAGEMENT) && defined(USE_SSL) && !defined(USE_POLARSSL)
#define MANAGMENT_EXTERNAL_KEY
#endif