]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
Correct tls-crypt-v2 metadata length in man page
authorMax Fillinger <maximilian.fillinger@foxcrypto.com>
Sat, 26 Nov 2022 16:26:47 +0000 (17:26 +0100)
committerGert Doering <gert@greenie.muc.de>
Mon, 12 Dec 2022 12:05:04 +0000 (13:05 +0100)
The manual page claims that the client metadata can be up to 735 bytes
(encoded as upt to 980 characters base64), but the actual maximum length
is 733 bytes which is also encoded as 980 characters in base64.

Signed-off-by: Max Fillinger <maximilian.fillinger@foxcrypto.com>
Acked-by: Arne Schwabe <arne@rfc2549.org>
Message-Id: <20221126162648.150678-1-maximilian.fillinger@foxcrypto.com>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg25546.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
(cherry picked from commit 0bd2fa38fb70ad9022c05ffa67b2bd8751ca5a5b)

doc/man-sections/encryption-options.rst

index ee34f14e46d07e2456d7e415e74e3f8fb4030fdd..abc73d90c10ab7101705138382801655ea8a1143 100644 (file)
@@ -104,7 +104,8 @@ Generating key material
 
     If supplied, include the supplied ``metadata`` in the wrapped client
     key. This metadata must be supplied in base64-encoded form. The
-    metadata must be at most 735 bytes long (980 bytes in base64).
+    metadata must be at most 733 bytes long (980 characters in base64, though
+    note that 980 base64 characters can encode more than 733 bytes).
 
     If no metadata is supplied, OpenVPN will use a 64-bit unix timestamp
     representing the current time in UTC, encoded in network order, as