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>
... | ... |
@@ -74,6 +74,8 @@ |
74 | 74 |
#ifndef TLSCRYPT_H |
75 | 75 |
#define TLSCRYPT_H |
76 | 76 |
|
77 |
+#ifdef ENABLE_CRYPTO |
|
78 |
+ |
|
77 | 79 |
#include "buffer.h" |
78 | 80 |
#include "crypto.h" |
79 | 81 |
#include "session_id.h" |
... | ... |
@@ -140,4 +142,6 @@ bool tls_crypt_unwrap(const struct buffer *src, struct buffer *dst, |
140 | 140 |
|
141 | 141 |
/** @} */ |
142 | 142 |
|
143 |
+#endif /* ENABLE_CRYPTO */ |
|
144 |
+ |
|
143 | 145 |
#endif /* TLSCRYPT_H */ |