]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
tls-crypt: avoid warnings when --disable-crypto is used
authorAntonio Quartulli <antonio@openvpn.net>
Fri, 7 Jul 2017 10:22:38 +0000 (18:22 +0800)
committerDavid Sommerseth <davids@openvpn.net>
Tue, 25 Jul 2017 15:19:30 +0000 (17:19 +0200)
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 <antonio@openvpn.net>
Acked-by: Steffan Karger <steffan@karger.me>
Acked-by: David Sommerseth <davids@openvpn.net>
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 <davids@openvpn.net>
(cherry picked from commit 2dfbf62b6ace1eb39f1ae7126bc5530a541bed58)

src/openvpn/tls_crypt.h

index e8080df90ee8117bf7398bb1adb820d4000697d3..4071ac94c1f867a7b0cba471e4d95be7b97b6cc9 100644 (file)
@@ -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 */