aboutsummaryrefslogtreecommitdiffstats
path: root/protocols/ssl_client.h
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2005-12-16 18:58:00 +0100
committerWilmer van der Gaast <wilmer@gaast.net>2005-12-16 18:58:00 +0100
commit701acdd41542656493d753a75480bc0594ea74b9 (patch)
tree6c744a64385511df327f9fa8c3081d81d18b4770 /protocols/ssl_client.h
parentc4168f4cfe553d111941ee385a94facb5449652d (diff)
Non-blocking SSL handshakes for GnuTLS. The rest might come later, but is
slightly less important.
Diffstat (limited to 'protocols/ssl_client.h')
-rw-r--r--protocols/ssl_client.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/protocols/ssl_client.h b/protocols/ssl_client.h
index a829a7b1..719cd0c4 100644
--- a/protocols/ssl_client.h
+++ b/protocols/ssl_client.h
@@ -26,6 +26,12 @@
#include <glib.h>
#include "proxy.h"
+#define SSL_OK 0
+#define SSL_NOHANDSHAKE 1
+#define SSL_AGAIN 2
+
+extern int ssl_errno;
+
typedef void (*SslInputFunction)(gpointer, void*, GaimInputCondition);
G_MODULE_EXPORT void *ssl_connect( char *host, int port, SslInputFunction func, gpointer data );