]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
Deprecate --no-replay
authorSteffan Karger <steffan@karger.me>
Sat, 1 Jul 2017 11:22:08 +0000 (13:22 +0200)
committerDavid Sommerseth <davids@openvpn.net>
Tue, 15 Aug 2017 19:34:22 +0000 (21:34 +0200)
Following the removal of --no-iv, and as suggested by both recent audits
(and done by OpenVPN-NL for 7 years now), it's time to get rid of the
--no-replay option.

The only valid use case I can imagine is to slightly reduce the per-packet
overhead for setups that do not use any authentication mechanism, but I
do not believe that warrants keeping an option around that generally
reduces security and makes our code more complex.

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

index 3d758f2ea80c647966bbeae95cca92fd9c361a2b..7d1912b5ace68e7597bdec1f8d3d8ff3cb429325 100644 (file)
@@ -310,6 +310,14 @@ Maintainer-visible changes
 
 
 
+Version 2.4.4
+=============
+
+Deprecated features
+-------------------
+- ``--no-replay`` is deprecated and will be removed in OpenVPN 2.5.
+
+
 Version 2.4.3
 =============
 
index 8170164b02e4238b2e6870f0be48530de76abcd2..c98d94bf147d0be46c7430c0a502469a53104974 100644 (file)
@@ -4261,6 +4261,9 @@ supported by OpenSSL.
 .\"*********************************************************
 .TP
 .B \-\-no\-replay
+.B DEPRECATED
+This option will be removed in OpenVPN 2.5.
+
 (Advanced) Disable OpenVPN's protection against replay attacks.
 Don't use this option unless you are prepared to make
 a tradeoff of greater efficiency in exchange for less
index 2b096eb036d104b30951db9aa8edc46ff15e9278..ee53adfe8fe2936553ddfa4e998391cc512630c1 100644 (file)
@@ -545,7 +545,7 @@ static const char usage_message[] =
 #ifndef ENABLE_CRYPTO_MBEDTLS
     "--engine [name] : Enable OpenSSL hardware crypto engine functionality.\n"
 #endif
-    "--no-replay     : Disable replay protection.\n"
+    "--no-replay     : (DEPRECATED) Disable replay protection.\n"
     "--mute-replay-warnings : Silence the output of replay warnings to log file.\n"
     "--replay-window n [t]  : Use a replay protection sliding window of size n\n"
     "                         and a time window of t seconds.\n"
@@ -2500,6 +2500,11 @@ options_postprocess_verify_ce(const struct options *options, const struct connec
         msg(M_WARN, "WARNING: --keysize is DEPRECATED and will be removed in OpenVPN 2.6");
     }
 
+    if (!options->replay)
+    {
+        msg(M_WARN, "WARNING: --no-replay is DEPRECATED and will be removed in OpenVPN 2.5");
+    }
+
     /*
      * Check consistency of replay options
      */