allowing build with only specific transports
[radsecproxy.git] / tls.c
diff --git a/tls.c b/tls.c
index 93bec50..5a97960 100644 (file)
--- a/tls.c
+++ b/tls.c
@@ -6,6 +6,7 @@
  * copyright notice and this permission notice appear in all copies.
  */
 
+#ifdef RADPROT_TLS
 #include <signal.h>
 #include <sys/socket.h>
 #include <netinet/in.h>
@@ -468,3 +469,8 @@ void *tlslistener(void *arg) {
     free(sp);
     return NULL;
 }
+#else
+const struct protodefs *tlsinit(uint8_t h) {
+    return NULL;
+}
+#endif