Added separate header for SSL connection support.
authorThadeu Lima de Souza Cascardo <cascardo@holoscopio.com>
Tue, 7 Jul 2009 17:42:32 +0000 (14:42 -0300)
committerThadeu Lima de Souza Cascardo <cascardo@holoscopio.com>
Tue, 7 Jul 2009 17:42:32 +0000 (14:42 -0300)
Makefile.am
hcconn.h
hcconn_ssl.h [new file with mode: 0644]
popproxy.c

index fc062f9..35b39bc 100644 (file)
@@ -1,7 +1,7 @@
 bin_PROGRAMS = popproxy ppmanager
 popproxy_SOURCES = popproxy.c log.c log.h \
        tcp_connect.h tcp_connect.c tcp_server.c \
-       hcconn.c hcconn.h hcconn_internal.h hcconn_ssl.c \
+       hcconn.c hcconn.h hcconn_internal.h hcconn_ssl.c hcconn_ssl.h \
        pop.c pop.h usermap.c usermap.h
 dist_sysconf_DATA = popproxy.conf
 ppmanager = ppmanager.c
index e9d0af6..85bdd38 100644 (file)
--- a/hcconn.h
+++ b/hcconn.h
@@ -46,7 +46,5 @@ void hc_conn_close (HCConn *);
 void hc_conn_set_callback (HCConn *, HCClientFunc, gpointer);
 
 int hc_conn_set_driver_channel (HCConn *, int);
-int hc_conn_set_driver_ssl_client (HCConn *, HCConn *);
-int hc_conn_set_driver_ssl_server (HCConn *, HCConn *);
 
 #endif
diff --git a/hcconn_ssl.h b/hcconn_ssl.h
new file mode 100644 (file)
index 0000000..019c053
--- /dev/null
@@ -0,0 +1,28 @@
+/*
+ *  Copyright (C) 2009  Thadeu Lima de Souza Cascardo <cascardo@holoscopio.com>
+ *
+ *  This program is free software; you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License as published by
+ *  the Free Software Foundation; either version 2 of the License, or
+ *  (at your option) any later version.
+ *
+ *  This program is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *  GNU General Public License for more details.
+ *
+ *  You should have received a copy of the GNU General Public License along
+ *  with this program; if not, write to the Free Software Foundation, Inc.,
+ *  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ */
+
+
+#ifndef HC_CONN_SSL_H
+#define HC_CONN_SSL_H
+
+#include "hcconn.h"
+
+int hc_conn_set_driver_ssl_client (HCConn *, HCConn *);
+int hc_conn_set_driver_ssl_server (HCConn *, HCConn *);
+
+#endif
index cae6458..713505c 100644 (file)
@@ -29,6 +29,7 @@
 #include "pop.h"
 
 #include "hcconn.h"
+#include "hcconn_ssl.h"
 #include "tcp_connect.h"
 
 #define CONFFILE SYSCONFDIR "/popproxy.conf"