From: Antonio Quartulli Date: Fri, 7 Jul 2017 18:22:38 +0800 Message-Id: <20170707102238.8781-1-a@...2181...> Subject: [Openvpn-devel] [PATCH] tls-crypt: avoid warnings when --disable-crypto is used List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit To: openvpn-devel@lists.sourceforge.net Cc: Antonio Quartulli From: Antonio Quartulli 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 --- - also checked via travis-ci.org 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 e8080df9..4071ac94 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.13.2