Use the null hook instead of the ssl hook.
authorThadeu Lima de Souza Cascardo <cascardo@holoscopio.com>
Fri, 3 Jul 2009 04:51:22 +0000 (01:51 -0300)
committerThadeu Lima de Souza Cascardo <cascardo@holoscopio.com>
Fri, 3 Jul 2009 04:51:22 +0000 (01:51 -0300)
This will allow us to remove the ssl hook entirely, since it's repeating
code from the ssl connection driver and complicates things more than
necessary.

We lose server port configuration now, but it should be plain easy to
get it back.

popproxy.c

index 3882f75..4161b92 100644 (file)
@@ -28,7 +28,6 @@
 #include "log.h"
 #include "nethook.h"
 #include "null.h"
-#include "ssl.h"
 #include "pop.h"
 
 #include "hcconn.h"
@@ -56,7 +55,7 @@ void new_client (int fd, struct sockaddr* addr, socklen_t saddr, gpointer data)
              inet_ntoa (((struct sockaddr_in *) addr)->sin_addr));
   conn = hc_conn_new (NULL, NULL);
   hc_conn_set_driver_channel (conn, fd);
-  hook = ssl_hook_new (conn, address->server, address->port);
+  hook = null_hook_new (conn, address->server);
   pop_hook_new (hook);
 }