cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: [PATCH 2/2] throw CURLE_SSL_CERTPROBLEM in case peer rejects a cert

From: Kamil Dudka <kdudka_at_redhat.com>
Date: Sun, 21 Mar 2010 00:42:42 +0100

On Sunday 21 of March 2010 00:31:11 Daniel Stenberg wrote:
> On Fri, 19 Mar 2010, Kamil Dudka wrote:
> > I am fine with either variant. You choose. If it the negative value based
> > one is the way to go, we need to decide what to return in case of
> > EWOULDBLOCK.
>
> How about something along the lines I made in the attached patch? I
> modified the internal API for the SSL receive function to allow the SSL
> library to properly return the exact error code or -1 for EWOULDBLOCK.

Overall I like the idea, though I haven't tested the patch yet. Should we
do something like that for the Curl_ssl_send() equivalent, to keep the API
uniform?

Kamil
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-03-21