aboutsummaryrefslogtreecommitdiff
path: root/lib/polarssl.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/polarssl.h')
-rw-r--r--lib/polarssl.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/polarssl.h b/lib/polarssl.h
index 12b3db28c..af3b28b89 100644
--- a/lib/polarssl.h
+++ b/lib/polarssl.h
@@ -25,6 +25,11 @@
#ifdef USE_POLARSSL
+/* Called on first use PolarSSL, setup threading if supported */
+int polarssl_init(void);
+void polarssl_cleanup(void);
+
+
CURLcode Curl_polarssl_connect(struct connectdata *conn, int sockindex);
CURLcode Curl_polarssl_connect_nonblocking(struct connectdata *conn,
@@ -43,8 +48,8 @@ size_t Curl_polarssl_version(char *buffer, size_t size);
int Curl_polarssl_shutdown(struct connectdata *conn, int sockindex);
/* API setup for PolarSSL */
-#define curlssl_init() (1)
-#define curlssl_cleanup() Curl_nop_stmt
+#define curlssl_init() polarssl_init()
+#define curlssl_cleanup() polarssl_cleanup()
#define curlssl_connect Curl_polarssl_connect
#define curlssl_connect_nonblocking Curl_polarssl_connect_nonblocking
#define curlssl_session_free(x) Curl_polarssl_session_free(x)