]> git.ipfire.org Git - thirdparty/openvpn.git/commit
convert *_inline attributes to bool
authorAntonio Quartulli <a@unstable.cc>
Thu, 7 May 2020 13:59:09 +0000 (15:59 +0200)
committerGert Doering <gert@greenie.muc.de>
Thu, 7 May 2020 14:58:08 +0000 (16:58 +0200)
commitcb2e9218f2bc73fa22da1f6e850e5fe97f689730
tree56b19ebd6295f47b1b2e92c61691ee1b0f246910
parent4dddca52a8432095dd85ff652fae61a2aedb3785
convert *_inline attributes to bool

Carrying around the INLINE_TAG is not really efficient,
because it requires a strcmp() to be performed every
time we want to understand if the data is stored inline
or not.

Convert all the *_inline attributes to bool to make the
logic easier and checks more efficient.

Signed-off-by: Antonio Quartulli <a@unstable.cc>
Acked-by: Arne Schwabe <arne@rfc2549.org>
Message-Id: <20200507135909.21227-1-a@unstable.cc>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg19854.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
22 files changed:
src/openvpn/auth_token.c
src/openvpn/auth_token.h
src/openvpn/crypto.c
src/openvpn/crypto.h
src/openvpn/init.c
src/openvpn/misc.c
src/openvpn/misc.h
src/openvpn/options.c
src/openvpn/options.h
src/openvpn/plugin.c
src/openvpn/plugin.h
src/openvpn/push.c
src/openvpn/push.h
src/openvpn/ssl.c
src/openvpn/ssl_backend.h
src/openvpn/ssl_common.h
src/openvpn/ssl_mbedtls.c
src/openvpn/ssl_openssl.c
src/openvpn/tls_crypt.c
src/openvpn/tls_crypt.h
tests/unit_tests/openvpn/test_auth_token.c
tests/unit_tests/openvpn/test_tls_crypt.c