summaryrefslogtreecommitdiff
path: root/dtls.c
diff options
context:
space:
mode:
Diffstat (limited to 'dtls.c')
-rw-r--r--dtls.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/dtls.c b/dtls.c
index 6ada359..0fdbc3a 100644
--- a/dtls.c
+++ b/dtls.c
@@ -6,6 +6,7 @@
* copyright notice and this permission notice appear in all copies.
*/
+#ifdef RADPROT_DTLS
#include <signal.h>
#include <sys/socket.h>
#include <netinet/in.h>
@@ -700,3 +701,8 @@ void initextradtls() {
if (pthread_create(&cl6th, NULL, udpdtlsclientrd, (void *)&client6_sock))
debugx(1, DBG_ERR, "pthread_create failed");
}
+#else
+const struct protodefs *dtlsinit(uint8_t h) {
+ return NULL;
+}
+#endif