]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Replace key_scan array of static pointers with inline function
authorArne Schwabe <arne@rfc2549.org>
Fri, 23 Oct 2020 12:02:53 +0000 (14:02 +0200)
committerGert Doering <gert@greenie.muc.de>
Wed, 25 Nov 2020 14:33:22 +0000 (15:33 +0100)
commitcc5a71637139557a7eaa024251ff75a0acb22bc8
treebefa5ad93ab783f6f5f53ba61522ec01584aad5c
parentfc25ca3a7cf720fbb53889fdba6ac0154c7c9c1a
Replace key_scan array of static pointers with inline function

The key_scan array is (was) an array that is setup as a reference to
members of itself that have static offsets. Replace this pointer
indirection with an inline function. This has also the advantage
that the compiler can inline the function and just just a direct
offset into the struct.

Replacing the implicit indirection with the pointer array with an
explicit indirection with the inline function also makes the code a
bit easier to follow.

Signed-off-by: Arne Schwabe <arne@rfc2549.org>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <20201023120259.29783-1-arne@rfc2549.org>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg21225.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/ssl.c
src/openvpn/ssl_common.h
src/openvpn/ssl_verify.c