| |
|
|
|
cURL Mailing List Monthly Index Single Mail
curl-library Mailing List Archives
Re: ssl
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 28 May 2001 15:05:09 +0200 (MET DST)
On Mon, 28 May 2001, T. Bharath wrote:
(The docs for OpenSSL really is in a sorry state, which leads to problems
> Regarding use of SSL in libCurl i find that SSL_load_error_strings(); and
It is named Curl_SSLConnect() in recent versions. The functionality hasn't
> These two functions are to be called once in a process Now consider a
Indeed...
> I am really not sure the implications of invoking the functions mutiple
Agreed. If nothing else, it'll at least cause memory leaks.
But libcurl can't know if it'll be used for multiple threads or not, why it
Anyway, I'll make two new functions for "global" SSL inits and cleanups.
> ERR_remove_state(0); (this is thread specific and has to be called in
So SSL_free() doesn't take care of that?
> EVP_cleanup();
What's that doing?
> ERR_free_strings();
I'll make that a "global" free.
> I am using a older version of the libCurl so i tried placing them in
The whole concept of which things that get freed where was changed quite a
> but this was leading to a crash when multiple threads were involved since
> ERR_free_strings(); should be called only on application cleanup.
> So the best option was to remove SSL_load_error_strings(); and
This sounds like a good idea, but also quite "big" changes. I think I'll
Two functions for the "global" scope, only to be done once per application,
curl_global_init()
... then, to make older applications still run fine, I'll have a check in
> I cannot send a diff since i am not using the latest version
Ah, but you _should_ use a later version! ;-)
Thanks a lot for this feedback.
--
Daniel Stenberg -- curl dude -- http://curl.haxx.se/
_______________________________________________
Curl-library mailing list
Curl-library_at_lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/curl-library
Received on 2001-05-28
These mail archives are generated by hypermail. |
Page updated November 12, 2010.
web site info