diff options
Diffstat (limited to 'lib/easy.c')
-rw-r--r-- | lib/easy.c | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/lib/easy.c b/lib/easy.c index ead4da73a..2c0520a65 100644 --- a/lib/easy.c +++ b/lib/easy.c @@ -73,16 +73,30 @@ #include "urldata.h" #include <curl/curl.h> #include "transfer.h" -#include <curl/types.h> +#include "ssluse.h" #define _MPRINTF_REPLACE /* use our functions only */ #include <curl/mprintf.h> +CURLcode curl_global_init(void) +{ + Curl_SSL_init(); + return CURLE_OK; +} + +void curl_global_cleanup(void) +{ + Curl_SSL_cleanup(); +} + CURL *curl_easy_init(void) { CURLcode res; struct UrlData *data; + /* Make sure we inited the global SSL stuff */ + Curl_SSL_init(); + /* We use curl_open() with undefined URL so far */ res = Curl_open((CURL **)&data, NULL); if(res != CURLE_OK) |