curl-library
Re: libcurl with ssl dumps core (repost as subscriber)
Date: Fri, 4 Apr 2003 15:13:39 +0200 (CEST)
On Thu, 3 Apr 2003, Alex Hristov wrote:
> I'm trying to use libcurl within a dynamic library function to submit an
> XML request over https, but am consistently getting core dumps during the
> SSL handshaking (see below).
>
> I've tried using curl 7.10.3 and 7.10.4 with OpenSSL 0.9.6i. The code seems
> to work OK when ran as part of a stand-alone executable, but the problem
> occurs when executed as .so plugin.
Could it be that you're not using curl_global_init() and thus inits the SSL
stuff multiple times? This is clearly involving OpenSSL...
> Also, I'm using OpenSSL to establish SSL-encrypted connections to LDAP
> (based on LDAP C SDK) from within the same plugin, and that works OK.
And is that also initing the SSL stuff?
> curl_easy_setopt(curl, CURLOPT_RANDOM_FILE, "/dev/urandom");
This isn't necessary, this is made by default.
> #0 0xfc87eb84 in ssl23_connect (s=0x14abba8) at s23_clnt.c:144
> 144 if (cb != NULL) cb(s,SSL_CB_HANDSHAKE_START,1);
Uh, this looks really bad. Is this a callback pointer gone wild?
-- Daniel Stenberg -- curl, cURL, Curl, CURL. Groks URLs. ------------------------------------------------------- This SF.net email is sponsored by: ValueWeb: Dedicated Hosting for just $79/mo with 500 GB of bandwidth! No other company gives more support or power for your dedicated server http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/Received on 2003-04-04