]> git.ipfire.org Git - thirdparty/openvpn.git/commit
crypto: unify key_type creation code
authorAntonio Quartulli <a@unstable.cc>
Thu, 17 Feb 2022 16:31:59 +0000 (17:31 +0100)
committerGert Doering <gert@greenie.muc.de>
Sun, 20 Feb 2022 13:57:25 +0000 (14:57 +0100)
commit2e7ec64fc40cb5d184fd5c47c875ce381ca1b8d3
tree92848dfda2833eac0b349334e9c454545ef77549
parent9cfe02039f00ea1ff026967497695d4cc35b1706
crypto: unify key_type creation code

At the moment we have tls_crypt_kt() and auth_token_kt that basically do
the same thing, but with different algorithms used to initialise the
structure.

In order to avoid code duplication and copy/paste errors, unify code and
make it parametric, so that it can be re-used in various places.

Signed-off-by: Antonio Quartulli <a@unstable.cc>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <20220217163159.7936-1-a@unstable.cc>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg23831.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/auth_token.c
src/openvpn/crypto.h
src/openvpn/tls_crypt.c