T. Bharath's comments about SSL cleanup incorporated, and the two new

curl_global_* functions
This commit is contained in:
Daniel Stenberg
2001-05-28 14:12:43 +00:00
parent a9d0a85842
commit d300cf4d84
4 changed files with 64 additions and 7 deletions

View File

@@ -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)