summaryrefslogtreecommitdiff
path: root/src/sslhandle.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sslhandle.c')
-rw-r--r--src/sslhandle.c68
1 files changed, 31 insertions, 37 deletions
diff --git a/src/sslhandle.c b/src/sslhandle.c
index f31cee9..5c68402 100644
--- a/src/sslhandle.c
+++ b/src/sslhandle.c
@@ -3,50 +3,44 @@
@author web, feh
@brief IPv6 enabled TLS framework for a preforking server
*/
-#include <unistd.h>
-#include <sys/types.h>
-#include <sys/socket.h>
-#include <sys/param.h>
+#include <arpa/inet.h>
#include <netdb.h>
#include <signal.h>
-#include <arpa/inet.h>
+#include <sys/param.h>
+#include <sys/socket.h>
+#include <sys/types.h>
+#include <unistd.h>
+
+#include "coe.h"
+#include "remoteinfo.h"
+#include "rules.h"
#include "ucspissl.h"
-#include "uint_t.h"
-#include "str.h"
-#include "byte.h"
-#include "fmt.h"
-#include "scan.h"
-#include "ip.h"
-#include "fd.h"
-#include "exit.h"
-#include "env.h"
-#include "prot.h"
-#include "open.h"
-#include "wait.h"
-#include "stralloc.h"
+#include "ucspissl-config.h"
+
#include "alloc.h"
#include "buffer.h"
+#include "byte.h"
+#include "dnsresolv.h"
+#include "env.h"
+#include "exit.h"
+#include "fd.h"
+#include "fmt.h"
#include "getln.h"
-#include "logmsg.h"
#include "getoptb.h"
-#include "socket_if.h"
+#include "ip.h"
+#include "lock.h"
+#include "logmsg.h"
+#include "iopause.h"
#include "ndelay.h"
-#include "remoteinfo.h"
-#include "rules.h"
+#include "open.h"
+#include "prot.h"
+#include "scan.h"
#include "sig.h"
-#include "iopause.h"
-#include "dnsresolv.h"
-#include "auto_cafile.h"
-#include "auto_cadir.h"
-#include "auto_ccafile.h"
-#include "auto_dhfile.h"
-#include "auto_certchainfile.h"
-#include "auto_certfile.h"
-#include "auto_keyfile.h"
-#include "auto_ciphers.h"
-#include "iopause.h"
-#include "coe.h"
-#include "lock.h"
+#include "socket_if.h"
+#include "str.h"
+#include "stralloc.h"
+#include "uint_t.h"
+#include "wait.h"
extern void server(int argcs,char * const *argvs);
@@ -508,7 +502,7 @@ void trigger(void) {
buffer_unixwrite(selfpipe[1],"",1);
}
-void sigterm(void) {
+void sigterm(int _) {
int pid;
flagexit = 1;
@@ -518,7 +512,7 @@ void sigterm(void) {
trigger();
}
-void sigchld(void) {
+void sigchld(int _) {
int wstat;
int pid;