#include "connection.h"
#include "verify.h"
-/* close() */
-#include <unistd.h>
-/* getaddrinfo() */
+#include <errno.h>
#include <netdb.h>
-/* poll() */
#include <poll.h>
-/* errno */
-#include <errno.h>
+#include <unistd.h>
/* Maximum length of a HTTP request line. Longer request lines are aborted
#include "tlsproxy.h"
#include "log.h"
-/* va_*() */
-#include <stdarg.h>
-/* pthread_self() */
#include <pthread.h>
+#include <stdarg.h>
void log_message(int level, const char *file, int line, const char *format, ...) {
#include "sem.h"
-#include <stdlib.h>
#include <pthread.h>
+#include <stdlib.h>
struct SEM {
#include "sem.h"
#include "connection.h"
-/* socket(), bind(), accept(), listen() */
-#include <sys/types.h>
-#include <sys/socket.h>
-/* close() */
-#include <unistd.h>
-/* htons() */
#include <arpa/inet.h>
-/* sigaction() */
-#include <signal.h>
-/* errno */
#include <errno.h>
-/* pthread_*() */
#include <pthread.h>
+#include <signal.h>
+#include <sys/socket.h>
+#include <sys/types.h>
+#include <unistd.h>
/* For GnuTLS. */
#include <gcrypt.h>
#include "tlsproxy.h"
#include "verify.h"
-/* errno */
#include <errno.h>
-/* gnutls_x509_*() */
+
#include <gnutls/x509.h>
#include <config.h>
-#include <stdlib.h>
+#include <arpa/inet.h>
+#include <errno.h>
+#include <netdb.h>
#include <stdio.h>
+#include <stdlib.h>
#include <string.h>
-/* socket(), connect() */
-#include <sys/types.h>
#include <sys/socket.h>
-/* close() */
+#include <sys/types.h>
#include <unistd.h>
-/* getaddrinfo() */
-#include <netdb.h>
-/* htons() */
-#include <arpa/inet.h>
-/* errno */
-#include <errno.h>
-/* GnuTLS */
#include <gnutls/gnutls.h>
#include <gnutls/x509.h>