* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include <config.h>
+#include "tlsproxy.h"
+#include "connection.h"
-#include <stdlib.h>
-#include <stdio.h>
-#include <string.h>
/* close() */
#include <unistd.h>
/* getaddrinfo() */
/* poll() */
#include <poll.h>
-#include "connection.h"
-#include "tlsproxy.h"
-
/* Maximum line of the request line. Longer request lines are aborted with an
* error. The standard doesn't specify a maximum line length but this should
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+#include "sem.h"
+
#include <stdlib.h>
#include <pthread.h>
-#include "sem.h"
-
struct SEM {
pthread_mutex_t mutex;
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include <config.h>
+#include "tlsproxy.h"
+#include "sem.h"
+#include "connection.h"
-#include <stdlib.h>
-#include <stdio.h>
-#include <string.h>
/* socket(), bind(), accept(), listen() */
#include <sys/types.h>
#include <sys/socket.h>
/* pthread_*() */
#include <pthread.h>
-#include "tlsproxy.h"
-#include "sem.h"
-#include "connection.h"
-
/* Size of ringbuffer. */
#define RINGBUFFER_SIZE 10
#ifndef TLSPROXY_H
#define TLSPROXY_H
+#include <config.h>
+
+#include <stdlib.h>
+#include <stdio.h>
+#include <string.h>
+
+
/* Proxy hostname and port if specified on the command line. */
char *use_proxy_host;
char *use_proxy_port;