cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: retrieving SSL errors

From: Michael Wallner <mike_at_iworks.at>
Date: Fri, 09 Sep 2005 14:16:26 +0200

I wrote:

>>I wonder how you -if you do- retreive SSL errors
>>if CURL returns CURLE_SSL_CONNECT_ERROR?
>
>
> I just found the bit causing me this; curl fails to
> set the ssl message callback...
>
> This is happening suddenly, so I just assume an
> error on my side yet...

Hell this is sooo odd, anyone with a glass sphere around? 8-[
There's actually nothing what could make this call to
SSL_CTX_callback_ctrl fail...

long SSL_CTX_callback_ctrl(SSL_CTX *ctx, int cmd, void (*fp)())
        {
        switch(cmd)
                {
        case SSL_CTRL_SET_MSG_CALLBACK:
                ctx->msg_callback = (...)(fp);
                return 1;

        default:
                return(ctx->method->ssl_ctx_callback_ctrl(ctx,cmd,fp));
                }
        }

Puzzled,

-- 
Michael - < mike(@)php.net >
Received on 2005-09-09