From bbf26b2b7b0c51f5c77ccabbe95d2b59b98848b8 Mon Sep 17 00:00:00 2001 From: Thadeu Lima de Souza Cascardo Date: Tue, 7 Jul 2009 14:42:32 -0300 Subject: [PATCH] Added separate header for SSL connection support. --- Makefile.am | 2 +- hcconn.h | 2 -- hcconn_ssl.h | 28 ++++++++++++++++++++++++++++ popproxy.c | 1 + 4 files changed, 30 insertions(+), 3 deletions(-) create mode 100644 hcconn_ssl.h diff --git a/Makefile.am b/Makefile.am index fc062f9..35b39bc 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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 diff --git a/hcconn.h b/hcconn.h index e9d0af6..85bdd38 100644 --- 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 index 0000000..019c053 --- /dev/null +++ b/hcconn_ssl.h @@ -0,0 +1,28 @@ +/* + * Copyright (C) 2009 Thadeu Lima de Souza Cascardo + * + * 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 diff --git a/popproxy.c b/popproxy.c index cae6458..713505c 100644 --- a/popproxy.c +++ b/popproxy.c @@ -29,6 +29,7 @@ #include "pop.h" #include "hcconn.h" +#include "hcconn_ssl.h" #include "tcp_connect.h" #define CONFFILE SYSCONFDIR "/popproxy.conf" -- 2.20.1