Trying GnuTLS and OpenSSL together fails to compile in not so
authorGisle Vanem <gvanem@broadpark.no>
Mon, 14 Jan 2008 16:51:32 +0000 (16:51 +0000)
committerGisle Vanem <gvanem@broadpark.no>
Mon, 14 Jan 2008 16:51:32 +0000 (16:51 +0000)
obvious ways. Give an explicit error.

lib/urldata.h

index e918cd6..e9e4fb8 100644 (file)
@@ -73,6 +73,9 @@
 #include "ssl.h"
 #include "err.h"
 #endif /* USE_OPENSSL */
+#ifdef USE_GNUTLS
+#error Configuration error; cannot use GnuTLS *and* OpenSSL.
+#endif
 #endif /* USE_SSLEAY */
 
 #ifdef USE_GNUTLS