summaryrefslogtreecommitdiff
path: root/tls.h
diff options
context:
space:
mode:
Diffstat (limited to 'tls.h')
-rw-r--r--tls.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/tls.h b/tls.h
new file mode 100644
index 0000000..a4650af
--- /dev/null
+++ b/tls.h
@@ -0,0 +1,16 @@
+#ifndef TLS_H
+#define TLS_H
+
+#include <openssl/ssl.h>
+
+extern int smtps;
+extern SSL *ssl;
+
+void ssl_free(SSL *myssl);
+void ssl_exit(int status);
+# define _exit ssl_exit
+
+const char *ssl_error();
+const char *ssl_error_str();
+
+#endif