]> git.ipfire.org Git - thirdparty/openvpn.git/commit
tls-crypt: introduce tls_crypt_kt()
authorSteffan Karger <steffan.karger@fox-it.com>
Sat, 12 Aug 2017 09:53:52 +0000 (11:53 +0200)
committerDavid Sommerseth <davids@openvpn.net>
Wed, 16 Aug 2017 14:59:07 +0000 (16:59 +0200)
commit489c7bf93ec618e03dbd9618efbb6e251a65e76c
treefc1c93d362cf3da0bbaedd1bc7db347b15469ea6
parent4a9d1d70d5b0ff04dbf26ba7e679733a54c694b6
tls-crypt: introduce tls_crypt_kt()

Reduces code duplication (and prepares for tls-crypt-v2, which needs the
same functionality at more places).

Because tls_crypt_kt() is a static function we now need to include
tls_crypt.c from the tests, rather than tls_crypt.h.

Signed-off-by: Steffan Karger <steffan.karger@fox-it.com>
Acked-by: Antonio Quartulli <a@unstable.cc>
Message-Id: <1502531632-16833-1-git-send-email-steffan.karger@fox-it.com>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg15229.html
Signed-off-by: David Sommerseth <davids@openvpn.net>
src/openvpn/tls_crypt.c
tests/unit_tests/openvpn/Makefile.am
tests/unit_tests/openvpn/test_tls_crypt.c