summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDirk Engling <erdgeist@erdgeist.org>2022-05-20 14:37:24 +0200
committerDirk Engling <erdgeist@erdgeist.org>2022-05-20 14:37:24 +0200
commit1f52c6f3e0c8117aee9faa983b735e8df5e32ef6 (patch)
tree94fcf6348db8a01a92644c078afb14aec8294abe
parent7132bc256fbbead05e48c53b58a21e760a1dd352 (diff)
Enforce exactly one of the tls libs to be enabled
-rwxr-xr-xvchat-tls.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/vchat-tls.c b/vchat-tls.c
index d4ab554..21a694f 100755
--- a/vchat-tls.c
+++ b/vchat-tls.c
@@ -116,6 +116,13 @@ cleanup_happy:
116 return 0; 116 return 0;
117} 117}
118 118
119#if defined(TLS_LIB_OPENSSL) && defined(TLS_LIB_MBEDTLS)
120#error "Both TLS_LIB_OPENSSL and TLS_LIB_MBEDTLS are defined. Please select only one."
121#endif
122#if !defined(TLS_LIB_OPENSSL) && !defined(TLS_LIB_MBEDTLS)
123#error "Neither TLS_LIB_OPENSSL nor TLS_LIB_MBEDTLS are defined. Please select exactly one."
124#endif
125
119#ifdef TLS_LIB_OPENSSL 126#ifdef TLS_LIB_OPENSSL
120 127
121#include <openssl/err.h> 128#include <openssl/err.h>