From 2dfbf62b6ace1eb39f1ae7126bc5530a541bed58 Mon Sep 17 00:00:00 2001 From: Antonio Quartulli Date: Fri, 7 Jul 2017 18:22:38 +0800 Subject: [PATCH] tls-crypt: avoid warnings when --disable-crypto is used Avoid including the content of tls_crypt.h when --disable-crypto is used, as it will trigger some warnings due to missing structures declarations. Signed-off-by: Antonio Quartulli Acked-by: Steffan Karger Acked-by: David Sommerseth Message-Id: <20170707102238.8781-1-a@unstable.cc> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg15014.html Signed-off-by: David Sommerseth --- src/openvpn/tls_crypt.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/openvpn/tls_crypt.h b/src/openvpn/tls_crypt.h index e8080df90..4071ac94c 100644 --- a/src/openvpn/tls_crypt.h +++ b/src/openvpn/tls_crypt.h @@ -74,6 +74,8 @@ #ifndef TLSCRYPT_H #define TLSCRYPT_H +#ifdef ENABLE_CRYPTO + #include "buffer.h" #include "crypto.h" #include "session_id.h" @@ -140,4 +142,6 @@ bool tls_crypt_unwrap(const struct buffer *src, struct buffer *dst, /** @} */ +#endif /* ENABLE_CRYPTO */ + #endif /* TLSCRYPT_H */ -- 2.47.2