]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
Deprecate --keysize
authorSteffan Karger <steffan@karger.me>
Sat, 1 Jul 2017 11:29:51 +0000 (13:29 +0200)
committerDavid Sommerseth <davids@openvpn.net>
Tue, 15 Aug 2017 13:40:49 +0000 (15:40 +0200)
The --keysize option can only be used with already deprecated ciphers,
such as CAST5, RC2 or BF.  Deviating from the default keysize is
generally not a good idea (see man page text), and otherwise only
complicates our code.

Since we will also remove the support for weak ciphers (ciphers with
cipher block length less than 128 bits) in OpenVPN 2.6 as well, we
start the deprecation of this option instantly.

[DS: Slightly amended the patch, referencing OpenVPN 2.6 and added
     a few more details to Changes.rst and the commit message]

Signed-off-by: Steffan Karger <steffan@karger.me>
Acked-by: David Sommerseth <davids@openvpn.net>
Message-Id: <20170701112951.19119-1-steffan@karger.me>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg15004.html
Signed-off-by: David Sommerseth <davids@openvpn.net>
Changes.rst
doc/openvpn.8
src/openvpn/options.c

index 0b2b04ddb8c7956fffe2f34b8e146a36def811d5..4358f78b9aab20f7e63fbe3f57ad572f0b04c4d4 100644 (file)
@@ -178,6 +178,9 @@ Deprecated features
 
 - ``--no-iv`` is deprecated in 2.4 and will be removed in 2.5.
 
+- ``--keysize`` is deprecated and will be removed in v2.6 together
+  with the support of ciphers with cipher block size less than 128 bits.
+
 
 User-visible Changes
 --------------------
index 20bdd91b3e59a72cc2fd5a1c3e1521b12ac97a0e..056ae145643a2c967323f1e42205fd5ca13afecc 100644 (file)
@@ -4217,6 +4217,9 @@ negotiation.
 .\"*********************************************************
 .TP
 .B \-\-keysize n
+.B DEPRECATED
+This option will be removed in OpenVPN 2.6.
+
 Size of cipher key in bits (optional).
 If unspecified, defaults to cipher-specific default.  The
 .B \-\-show\-ciphers
index c4bd8cbafb3aeff424fef28c931e94d4dd23bab5..ef7009c1e26ce7b0d121020d166e268ec16fb829 100644 (file)
@@ -2484,6 +2484,11 @@ options_postprocess_verify_ce(const struct options *options, const struct connec
         msg(M_USAGE, "NCP cipher list contains unsupported ciphers.");
     }
 
+    if (options->keysize)
+    {
+        msg(M_WARN, "WARNING: --keysize is DEPRECATED and will be removed in OpenVPN 2.6");
+    }
+
     /*
      * Check consistency of replay options
      */