]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Refactor extract_var_peer_info into standalone function and add ssl_util.c
authorArne Schwabe <arne@rfc2549.org>
Fri, 26 Feb 2021 11:10:12 +0000 (12:10 +0100)
committerGert Doering <gert@greenie.muc.de>
Wed, 10 Mar 2021 09:40:18 +0000 (10:40 +0100)
commit88664aba69a8aab0e600200c445024fbaf7bab80
tree478a70d33e1d3b3971a82422cd4060803c6a9a8d
parent53229047a259b2edb9034802a33fe27636675ff9
Refactor extract_var_peer_info into standalone function and add ssl_util.c

Our "natural" place for this function would be ssl.c but ssl.c has a lot of
dependencies on all kinds of other compilation units so including ssl.c
into
unit tests is near impossible currently. Instead create a new file
ssl_util.c
that holds small utility functions like this one.

Patch v2: add newline add the end of sll_util.h and ssl_util.c

Patch v3: Refactor/clean up the function even more as suggested by Gert.

Signed-off-by: Arne Schwabe <arne@rfc2549.org>
Acked-by: Lev Stipakov <lstipakov@gmail.com>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <20210226111012.21269-1-arne@rfc2549.org>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg21585.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/Makefile.am
src/openvpn/openvpn.vcxproj
src/openvpn/openvpn.vcxproj.filters
src/openvpn/ssl_ncp.c
src/openvpn/ssl_util.c [new file with mode: 0644]
src/openvpn/ssl_util.h [new file with mode: 0644]
src/openvpn/ssl_verify.c
tests/unit_tests/openvpn/Makefile.am