Skip to content

Miscellaneous cleanup patches/small fixes

Arne Schwabe openvpn-devel 1 version In review

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

Versions newest first

  1. v1 Latest9 patches 26 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9Remove explicit struct iovec check (HAVE_IOVEC)configure.ac src/openvpn/syshead.h+3 -41 reply
2/9Remove getpeername, getpid checkconfigure.ac src/openvpn/platform.c src/openvpn/socket.c+2 -131 reply
3/9Inline do_init_auth_token_keysrc/openvpn/init.c+6 -171 reply
4/9Add missing free_key_ctx for auth_tokensrc/openvpn/init.c+1 -02 replies
5/9Add ifdef guards to unit testtests/unit_tests/openvpn/test_argv.c tests/unit_tests/openvpn/test_auth_token.c tests/unit_tests/openvpn/test_crypto.c +3 more+14 -01 reply
6/9Add noreturn attribute for MSVC to assert_failed method.src/openvpn/error.h+7 -11 reply
7/9Move utility function from win32.c to win32-util.csrc/openvpn/Makefile.am src/openvpn/error.h src/openvpn/openvpn.vcxproj +5 more+189 -1011 reply
8/9Document stub-v2 being basically an alias for no compression at alldoc/man-sections/protocol-options.rst+5 -03 replies
9/9Add detailed man page section to setup a OpenVPN setup with peer-fingerprintChanges.rst doc/Makefile.am doc/man-sections/example-fingerprint.rst+199 -015 replies

Reviews trailers per patch

7 of 9 patches have a Reviewed-by or Acked-by.

PatchAntonio QuartulliGert Doering
1/9A-b
2/9A-b
3/9A-b
4/9A-b
5/9
6/9A-b
7/9A-b
8/9A-b
9/9

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/9] Miscellaneous cleanup patches/small fixes

This patch set has a number of small fixes/improvements and documentation fixes/updates. They should be able to be applied in any order and have weak relationship to each other at best. I am sending them in one patch set to make review/keeping track of patches easier.

Arne Schwabe (9):
Remove explicit struct iovec check (HAVE_IOVEC)
Remove getpeername, getpid check
Inline do_init_auth_token_key
Add missing free_key_ctx for auth_token
Add ifdef guards to unit test
Add noreturn attribute for MSVC to assert_failed method. Move utility function from win32.c to win32-util.c Document stub-v2 being basically an alias for no compression at all Add detailed man page section to setup a OpenVPN setup with
peer-fingerprint

 Changes.rst                                |   4 +
 configure.ac                               |   5 +-
 doc/Makefile.am                            |   1 +
 doc/man-sections/example-fingerprint.rst   | 194 +++++++++++++++++++++
 doc/man-sections/protocol-options.rst      |   5 +
 src/openvpn/Makefile.am                    |   1 +
 src/openvpn/error.h                        |  12 +-
 src/openvpn/init.c                         |  24 +--
 src/openvpn/openvpn.vcxproj                |   2 +
 src/openvpn/openvpn.vcxproj.filters        |   3 +
 src/openvpn/platform.c                     |   4 -
 src/openvpn/socket.c                       |   7 -
 src/openvpn/syshead.h                      |   6 +-
 src/openvpn/win32-util.c                   | 137 +++++++++++++++
 src/openvpn/win32-util.h                   |  41 +++++
 src/openvpn/win32.c                        |  96 +---------
 src/openvpn/win32.h                        |   6 -
 tests/unit_tests/openvpn/test_argv.c       |   2 +
 tests/unit_tests/openvpn/test_auth_token.c |   2 +
 tests/unit_tests/openvpn/test_crypto.c     |   4 +
 tests/unit_tests/openvpn/test_misc.c       |   2 +
 tests/unit_tests/openvpn/test_ncp.c        |   2 +
 tests/unit_tests/openvpn/test_tls_crypt.c  |   2 +
 23 files changed, 426 insertions(+), 136 deletions(-)
 create mode 100644 doc/man-sections/example-fingerprint.rst
 create mode 100644 src/openvpn/win32-util.c
 create mode 100644 src/openvpn/win32-util.h
Signature · 1 line
2.31.1