Skip to content

Auth token patches v3

Arne Schwabe openvpn-devel 1 version In review

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

Versions newest first

  1. v3 Latest7 patches 8 repliesIn review

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7Write key to stdout if filename is not givensrc/openvpn/crypto.c src/openvpn/tls_crypt.c+22 -42 replies
2/7Implement --genkey type keyfile syntax and migrate tls-crypt-v2doc/openvpn.8 src/openvpn/init.c src/openvpn/options.c +1 more+131 -872 replies
3/7Add pem_read_key_file variant that allows a random keysrc/openvpn/crypto.c src/openvpn/crypto.h+37 -01 reply
4/7Rewrite auth-token-gen to be based on HMAC based tokensdoc/openvpn.8 src/openvpn/Makefile.am src/openvpn/auth_token.c +10 more+626 -1350 replies
5/7Implement a permanent session id in auth-tokendoc/openvpn.8 src/openvpn/auth_token.c src/openvpn/auth_token.h +6 more+260 -390 replies
6/7Sent indication that a session is expired to clientssrc/openvpn/auth_token.c src/openvpn/ssl.c src/openvpn/ssl_common.h +2 more+24 -180 replies
7/7Implement unit tests for auth-gen-tokentests/unit_tests/openvpn/Makefile.am tests/unit_tests/openvpn/test_auth_token.c+392 -10 replies

Reviews trailers per patch

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

PatchDavid Sommerseth
1/7A-b
2/7
3/7
4/7
5/7
6/7
7/7

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

Read the v3 thread

Cover letter [Openvpn-devel] [PATCH v3 0/7] Auth token patches v3

This is the v3 of the patch series. I choose to resend all of the patches so they all cleanly apply. Since the patches depend on the changes suggested to --genkey, I made them part of the patch series. The other patches have been updated to incoperate the feedback.

Arne Schwabe (7):
Write key to stdout if filename is not given Implement --genkey type keyfile syntax and migrate tls-crypt-v2 Add pem_read_key_file variant that allows a random key Rewrite auth-token-gen to be based on HMAC based tokens Implement a permanent session id in auth-token
Sent indication that a session is expired to clients Implement unit tests for auth-gen-token

 doc/openvpn.8                              | 141 ++++++--
 src/openvpn/Makefile.am                    |   1 +
 src/openvpn/auth_token.c                   | 387 +++++++++++++++++++++
 src/openvpn/auth_token.h                   | 129 +++++++
 src/openvpn/crypto.c                       |  35 +-
 src/openvpn/crypto.h                       |  15 +
 src/openvpn/init.c                         |  90 +++--
 src/openvpn/manage.c                       |   4 +-
 src/openvpn/openvpn.h                      |   1 +
 src/openvpn/options.c                      | 103 ++++--
 src/openvpn/options.h                      |  19 +-
 src/openvpn/push.c                         |  70 +++-
 src/openvpn/push.h                         |   8 +
 src/openvpn/ssl.c                          |  13 +-
 src/openvpn/ssl_common.h                   |  56 +--
 src/openvpn/ssl_verify.c                   | 213 ++++++------
 src/openvpn/ssl_verify.h                   |  15 +-
 src/openvpn/tls_crypt.c                    |  13 +-
 tests/unit_tests/openvpn/Makefile.am       |  18 +-
 tests/unit_tests/openvpn/test_auth_token.c | 375 ++++++++++++++++++++
 20 files changed, 1457 insertions(+), 249 deletions(-)
 create mode 100644 src/openvpn/auth_token.c
 create mode 100644 src/openvpn/auth_token.h
 create mode 100644 tests/unit_tests/openvpn/test_auth_token.c
Signature · 1 line
2.21.0