Fix memory leak: destroy channel layer when closing.
[cascardo/rnetproxy.git] / ssl.h
diff --git a/ssl.h b/ssl.h
index c292008..62e75d5 100644 (file)
--- a/ssl.h
+++ b/ssl.h
 #ifndef POPPROXY_SSL_H
 #define POPPROXY_SSL_H
 
-#include <gnet.h>
 #include "nethook.h"
+#include "hcconn.h"
 
-net_hook_t* ssl_hook_new (GConn*, char*);
+struct ssl_data
+{
+  char *server;
+  gnutls_session_t session;
+  GString *buffer;
+  gboolean handshaking;
+};
+
+net_hook_t* ssl_hook_new (HCConn*, char*, char *);
 void ssl_destroy (net_hook_t*);
 
+net_hook_t * ssl_server_hook_new (net_hook_t *, char *, char *);
+
 #endif