added SSL support for POP using OpenSSL
[claws.git] / src / socket.h
index 93eaa36..a3a99f3 100644 (file)
 #  include <pthread.h>
 #endif
 
+#if USE_SSL
+#  include <openssl/crypto.h>
+#  include <openssl/x509.h>
+#  include <openssl/pem.h>
+#  include <openssl/ssl.h>
+#  include <openssl/err.h>
+#endif
+
 typedef struct _SockInfo       SockInfo;
 
 typedef enum
@@ -59,6 +67,9 @@ struct _SockInfo
        pthread_t connect_thr;
        pthread_mutex_t mutex;
 #endif
+#if USE_SSL
+       SSL *ssl;
+#endif
 };
 
 gint sock_set_nonblocking_mode         (SockInfo *sock, gboolean nonblock);