From 96741adac56ee52d9154a80988219c73f6aec3b9 Mon Sep 17 00:00:00 2001 From: Thadeu Lima de Souza Cascardo Date: Fri, 3 Jul 2009 18:14:21 -0300 Subject: [PATCH] Use POP connection layer, reintroducing POP access control. --- popproxy.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/popproxy.c b/popproxy.c index 3b23773..9dfa8a8 100644 --- a/popproxy.c +++ b/popproxy.c @@ -80,6 +80,7 @@ static void new_client (int fd, struct sockaddr *addr, socklen_t saddr, gpointer data) { HCConn *conn; + HCConn *pop_conn; HCConn *server_conn; struct pop_address *address = data; if (fd < 0) @@ -98,9 +99,11 @@ new_client (int fd, struct sockaddr *addr, socklen_t saddr, gpointer data) conn = hc_conn_new (NULL, NULL); hc_conn_set_driver_channel (conn, fd); + pop_conn = hc_conn_new (NULL, NULL); + hc_conn_set_driver_pop (pop_conn, conn); - hc_conn_set_callback (conn, push_other, server_conn); - hc_conn_set_callback (server_conn, push_other, conn); + hc_conn_set_callback (pop_conn, push_other, server_conn); + hc_conn_set_callback (server_conn, push_other, pop_conn); } -- 2.20.1