Skip to content

P2P NCP support patch set

Arne Schwabe openvpn-devel 1 version In review

Get series with b4
b4 am [email protected]...

Versions newest first

  1. v1 Latest3 patches 18 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3Change options->data_channel_use_ekm to flagssrc/openvpn/multi.c src/openvpn/options.c src/openvpn/options.h +2 more+11 -104 replies
2/3Remove --ncp-disable optionChanges.rst doc/man-sections/protocol-options.rst src/openvpn/init.c +6 more+16 -6212 replies
3/3Support NCP in pure P2P VPN setupssrc/openvpn/init.c src/openvpn/options.c src/openvpn/ssl.c +6 more+403 -702 replies

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by.

PatchAntonio Quartulli
1/3A-b
2/3
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [Openvpn-devel] [PATCH 0/3] P2P NCP support patch set

Note: this patchset requires the "Move context_auth from context_2 to tls_multi and name it multi_state" patch to be applied first.

Our P2P mode is currently lacking in features compared to the P2MP mode. Especially EKM, DATA_v2 and NCP cannot be used with P2P mode. And the differences increase code complexity as we need to maintain two code paths. As we don't intend to deprecate P2P mode, this patchset implements NCP for P2P mode.

P2P NCP is lot less ambigous than normal NCP and will only be activated if both peers support it and avoids all the edge cases of different level of support for different versions.

Arne Schwabe (3):
Change options->data_channel_use_ekm to flags
Remove --ncp-disable option
Support NCP in pure P2P VPN setups

 Changes.rst                           |   4 +
 doc/man-sections/protocol-options.rst |   8 +-
 src/openvpn/init.c                    | 113 +++++++++++++----
 src/openvpn/multi.c                   |   9 +-
 src/openvpn/options.c                 |  48 ++-----
 src/openvpn/options.h                 |   5 +-
 src/openvpn/push.c                    |   2 +-
 src/openvpn/ssl.c                     | 173 ++++++++++++++++++--------
 src/openvpn/ssl.h                     |   5 +
 src/openvpn/ssl_backend.h             |   1 +
 src/openvpn/ssl_common.h              |  11 +-
 src/openvpn/ssl_ncp.c                 | 149 +++++++++++++++++++++-
 src/openvpn/ssl_ncp.h                 |  25 ++++
 tests/unit_tests/openvpn/test_ncp.c   |  11 ++
 14 files changed, 426 insertions(+), 138 deletions(-)
Signature · 1 line
2.31.1