]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Move NCP related function into a seperate file and add unit tests
authorArne Schwabe <arne@rfc2549.org>
Fri, 21 Feb 2020 10:07:46 +0000 (11:07 +0100)
committerGert Doering <gert@greenie.muc.de>
Mon, 9 Mar 2020 12:19:50 +0000 (13:19 +0100)
commit1828f9c199cc8cdf4e9d8d0bf072e726604f69dc
tree9a937a2e7dfc0aeed000c57b2ecc856a7b09f5aa
parent53e7d8dba4f3d0a0c54641ad5e94acf060e352da
Move NCP related function into a seperate file and add unit tests

This allows unit test the NCP functions. The ssl.c file has too
many dependencies to make unit testing of it viable.

Patch V2: Removing the include "ssl_ncp.h" from options.c for V2 of
          implement dynamic NCP forces a new version of this patch to
          add the #include in this patch. Merge VS studio file changes
          for ssl_ncp.[ch] into this patch

Patch V3: Regenerate for changes in earlier patches, apply Lev's changes
          to Visual Studio project file

Patch V4: Regenerate to also have the changes of earlier patches.

Patch V5: Fix unit tests for crypto library missing chacha20-poly1305

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: <20200221100746.7065-1-arne@rfc2549.org>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg19499.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
13 files changed:
src/openvpn/Makefile.am
src/openvpn/init.c
src/openvpn/multi.c
src/openvpn/openvpn.vcxproj
src/openvpn/openvpn.vcxproj.filters
src/openvpn/options.c
src/openvpn/push.c
src/openvpn/ssl.c
src/openvpn/ssl.h
src/openvpn/ssl_ncp.c [new file with mode: 0644]
src/openvpn/ssl_ncp.h [new file with mode: 0644]
tests/unit_tests/openvpn/Makefile.am
tests/unit_tests/openvpn/test_ncp.c [new file with mode: 0644]