summaryrefslogtreecommitdiff
path: root/tls.c
diff options
context:
space:
mode:
authorvenaas <venaas>2008-12-22 10:18:35 +0000
committervenaas <venaas@e88ac4ed-0b26-0410-9574-a7f39faa03bf>2008-12-22 10:18:35 +0000
commit6068df237753e20c504c954504858585d5105a46 (patch)
tree62d4678c8d3cbfdd711f5b66e4eeda0627f36113 /tls.c
parentbe2e70adfd0793b34e86e2a7463514923d1882cd (diff)
split out code that is needed only when tls or dtls is used
git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@445 e88ac4ed-0b26-0410-9574-a7f39faa03bf
Diffstat (limited to 'tls.c')
-rw-r--r--tls.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/tls.c b/tls.c
index 5a97960..d49e94b 100644
--- a/tls.c
+++ b/tls.c
@@ -6,7 +6,6 @@
* copyright notice and this permission notice appear in all copies.
*/
-#ifdef RADPROT_TLS
#include <signal.h>
#include <sys/socket.h>
#include <netinet/in.h>
@@ -27,11 +26,13 @@
#include <pthread.h>
#include <openssl/ssl.h>
#include <openssl/err.h>
-#include "debug.h"
#include "list.h"
-#include "util.h"
#include "radsecproxy.h"
+#ifdef RADPROT_TLS
+#include "debug.h"
+#include "util.h"
+
static void setprotoopts(struct commonprotoopts *opts);
static char **getlistenerargs();
void *tlslistener(void *arg);