]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Indicate that a client is in pull mode in IV_PROTO
authorArne Schwabe <arne@rfc2549.org>
Tue, 21 Jul 2020 16:38:11 +0000 (18:38 +0200)
committerGert Doering <gert@greenie.muc.de>
Wed, 22 Jul 2020 09:00:09 +0000 (11:00 +0200)
commitc290df558f8df995f1eeb3ddbf408508a455273e
treed5a14d34a5631e0e523b975a967cb8f9a3cbfeea
parent4b59e2644a978074f0eed492d6541ba7b30b01a7
Indicate that a client is in pull mode in IV_PROTO

This allows us to skip waiting for the first PUSH_REQUEST message from
the client to send the response.

This changes the interpretation of IV_PROTO from a scalar to a bitfield
Since we only have IV_PROTO=2 defined so far and will support DATA_V2
this should not make any problem. This avoid adding another IV_xxx variable
that takes valuable space in the protocol frame.

Signed-off-by: Arne Schwabe <arne@rfc2549.org>
Patch V2: Use bitmask for IV_PROTO_DATA_V2 and add more documentation.

Patch V3: Rewrite IV_PROTO paragraph in man page, incoperate spelling fixes
          by Richard Bonhomme <tincanteksup@gmail.com>

Signed-off-by: Arne Schwabe <arne@rfc2549.org>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <20200721163811.22745-1-arne@rfc2549.org>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg20525.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
doc/man-sections/server-options.rst
src/openvpn/multi.c
src/openvpn/ssl.c
src/openvpn/ssl.h