aboutsummaryrefslogtreecommitdiff
path: root/src/openvpn/ssl.c
diff options
context:
space:
mode:
authorAntonio Quartulli2020-05-07 15:59:09 +0200
committerGert Doering2020-05-07 16:58:08 +0200
commitcb2e9218f2bc73fa22da1f6e850e5fe97f689730 (patch)
tree56b19ebd6295f47b1b2e92c61691ee1b0f246910 /src/openvpn/ssl.c
parent4dddca52a8432095dd85ff652fae61a2aedb3785 (diff)
downloadopenvpn-cb2e9218f2bc73fa22da1f6e850e5fe97f689730.zip
openvpn-cb2e9218f2bc73fa22da1f6e850e5fe97f689730.tar.gz
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>
Diffstat (limited to 'src/openvpn/ssl.c')
-rw-r--r--src/openvpn/ssl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/openvpn/ssl.c b/src/openvpn/ssl.c
index 80e0d5a..88b4cc7 100644
--- a/src/openvpn/ssl.c
+++ b/src/openvpn/ssl.c
@@ -558,7 +558,7 @@ tls_version_parse(const char *vstr, const char *extra)
*/
static void
tls_ctx_reload_crl(struct tls_root_ctx *ssl_ctx, const char *crl_file,
- const char *crl_file_inline)
+ bool crl_file_inline)
{
/* if something goes wrong with stat(), we'll store 0 as mtime */
platform_stat_t crl_stat = {0};
@@ -665,7 +665,7 @@ init_ssl(const struct options *options, struct tls_root_ctx *new_ctx)
{
char *cert = management_query_cert(management,
options->management_certificate);
- tls_ctx_load_cert_file(new_ctx, INLINE_FILE_TAG, cert);
+ tls_ctx_load_cert_file(new_ctx, cert, true);
free(cert);
}
#endif