cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re:Re: Hi, Why CURLINFO_SSL_VERIFYRESULT always return 0.

From: 志平林 <larry.lin_at_outlook.com>
Date: Sun, 4 May 2014 02:15:27 +0000

Hi Mischa,
I mean the errorInfo is always 0.After debug, I found:SSL connection failed in ossl_connect_step2(), and ossl_connect_common returned, so data->set.ssl.certverifyresult will not be set.After add data->set.ssl.certverifyresult=SSL_get_verify_result(connssl->handle) in ossl_connect_step2(), I can get right errorInfo.
Thanks> Date: Thu, 1 May 2014 10:03:26 +0200
> From: Mischa Salle <mischa.salle_at_gmail.com>
> To: libcurl development <curl-library_at_cool.haxx.se>
> Subject: Re: Hi, Why CURLINFO_SSL_VERIFYRESULT always return 0.
> Message-ID:
> <CAD38tB3yBt43QeBtFmarChx8ejqw9=8U2v0Xmqk-Y2P87gO39g_at_mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> Hi Larry,
> we need to know a bit more about what you are doing, such as which options
> you might have disabled, but first of all, do you mean the return value of
> curl_easy_getinfo() is 0 or errorInfo is 0. The former is expected (it is
> actually CURLE_OK), the latter is not expected unless the actual
> verification succeeded.
>
> Best regards,
> Mischa
>
>
> On Tue, Apr 29, 2014 at 3:11 PM, ??? <larry.lin_at_outlook.com> wrote:
>
> > Hi all,
> >
> > I am using libcurl 7.31.0.
> > I got similar issue to the following case:
> > https://bugs.php.net/bug.php?id=43158
> >
> > I am sure the certification failed, and I want to get the detail error
> > information through:
> > curl_easy_getinfo(curl, CURLINFO_SSL_VERIFYRESULT, &errorInfo);
> >
> > But it always return 0.
> > Is it a libcurl known bug?
> > Anybody can help me?
> >
> > thanks
> >
> > -------------------------------------------------------------------
> > List admin: http://cool.haxx.se/list/listinfo/curl-library
> > Etiquette: http://curl.haxx.se/mail/etiquette.html
> >
>
>
>
> --
> Van Boshuizenstraat 443
> 1082 AR Amsterdam
> The Netherlands
> Tel. (+31/0)20-4043782
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <http://cool.haxx.se/pipermail/curl-library/attachments/20140501/e3c8aa47/attachment-0001.html>
>
> ------------------------------
>
> Subject: Digest Footer
>
> _______________________________________________
> curl-library mailing list
> curl-library_at_cool.haxx.se
> http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-library
>
>
> ------------------------------
>
> End of curl-library Digest, Vol 105, Issue 1
> ********************************************
                                               

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2014-05-04