[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [Libevent-users] [PATCH] Add sample/https-client.c, an example of stacking evhttp as a client on top of bufferevent_ssl.



On Thu, Mar 7, 2013 at 7:59 PM, Patrick Pelletier <ppelletier@xxxxxxxxxx> wrote:
> On 03/07/2013 08:51 AM, Nick Mathewson wrote:
>>
>> Thanks! Is there no way to do this *without* importing a big pile of code
>> from curl? That seems kinda extreme.
>
>
> We could go back to Catalin's original, which accepts certificates that
> don't match the host.  It guess it's a question of what an example should
> be: is it just to show the libevent part, requiring the user to look
> elsewhere to put together a complete solution, or is it meant to be a
> stand-alone example of how to do https with libevent, that the user could
> copy as a basis for their own code?

Hm. Yeah, I'd rather have an example that does the right thing, I guess.

I'm still not happy with so much boilerplate, but since I haven't seen
a better alternative, I'm merging this into the master branch.
There's nothing stopping us from tightening it up more in the future.
If anybody has more stuff that I should look at, please open a pull
request or something?

thanks,
-- 
Nick
***********************************************************************
To unsubscribe, send an e-mail to majordomo@xxxxxxxxxxxxx with
unsubscribe libevent-users    in the body.