]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
Disabled X.509 track and username selection for PolarSSL
authorAdriaan de Jong <dejong@fox-it.com>
Tue, 5 Jul 2011 11:09:13 +0000 (13:09 +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>
Signed-off-by: David Sommerseth <davids@redhat.com>
README.polarssl
configure.ac
openvpn.8
options.c
syshead.h

index bd066e4b45dfc62a189961fdcfbcd86afbad0aa9..77a95750d8585012f37e6f7da1a2bc00ddbc31ac 100644 (file)
@@ -7,17 +7,22 @@ To Build and Install,
        make
        make install
 
+This version depends on at least PolarSSL v0.99.
+
 *************************************************************************
 
-The following features are missing in the PolarSSL version of OpenVPN:
+Due to limitations in the PolarSSL library, the following features are missing
+in the PolarSSL version of OpenVPN:
 
- * ca_path support - Loading certificate authorities from a directory
  * PKCS#12 file support
+ * --capath support - Loading certificate authorities from a directory
  * Windows CryptoAPI support
  * Management external key support
- * X509 alternative username fields (must be "CN")
+ * X.509 alternative username fields (must be "CN")
+
+Plugin/Script features:
 
- TODO:
- * serial is in Hex
- * X509 certificate export
- * X.509 tracking
+ * X.509 Serial number is in hex, not decimal as with OpenSSL
+ * X.509 subject line has a different format than the OpenSSL subject line
+ * X.509 certificate export does not work
+ * X.509 certificate tracking
index bbdd713919df205d398bcc4b81026692ec955942..a6b3019ffb811b050da1467f9f77db95d8356502 100644 (file)
@@ -840,6 +840,10 @@ fi
 
 dnl enable --x509-username-field feature if requested
 if test "$X509ALTUSERNAME" = "yes"; then
+   if test "$SSL_LIB" = "polarssl" ; then
+      AC_MSG_ERROR([PolarSSL does not support the --x509-username-field feature])
+   fi
+
    AC_DEFINE(ENABLE_X509ALTUSERNAME, 1, [Enable --x509-username-field feature])
 fi
 
index 12547c4ff0290f98f3ab05e1620eeab1493585ac..b8594e1ace9853187344f195026db3c67ae3e013 100644 (file)
--- a/openvpn.8
+++ b/openvpn.8
@@ -4543,6 +4543,7 @@ to save values from full cert chain.  Values will be encoded
 as X509_<depth>_<attribute>=<value>.  Multiple
 .B \-\-x509-track
 options can be defined to track multiple attributes.
+Not available with PolarSSL.
 .\"*********************************************************
 .TP
 .B \-\-ns-cert-type client|server
index bed6c4b484aa6d07fbfaf776bfcf66fc5fae9ccd..39854399083c068b83b0d415485f22404d4f57e1 100644 (file)
--- a/options.c
+++ b/options.c
@@ -604,8 +604,10 @@ static const char usage_message[] =
   "                  of verification.\n"
   "--ns-cert-type t: Require that peer certificate was signed with an explicit\n"
   "                  nsCertType designation t = 'client' | 'server'.\n"
+#ifdef ENABLE_X509_TRACK
   "--x509-track x  : Save peer X509 attribute x in environment for use by\n"
   "                  plugins and management interface.\n"
+#endif
 #if OPENSSL_VERSION_NUMBER >= 0x00907000L || USE_POLARSSL
   "--remote-cert-ku v ... : Require that the peer certificate was signed with\n"
   "                  explicit key usage, you can specify more than one value.\n"
index 0e8edf34ca466abcd56db529ffcebb44cffd0580..f3c0ac9bb0d92cc7c8aa2fb3b312988f513a28b9 100644 (file)
--- a/syshead.h
+++ b/syshead.h
@@ -627,7 +627,7 @@ socket_defined (const socket_descriptor_t sd)
 /*
  * Enable x509-track feature?
  */
-#if defined(USE_CRYPTO) && defined(USE_SSL) && defined USE_OPENSSL
+#if defined(USE_CRYPTO) && defined(USE_SSL) && defined (USE_OPENSSL)
 #define ENABLE_X509_TRACK
 #endif