Groups
Groups
Sign in
Groups
Groups
curlpp
Conversations
About
Send feedback
Help
curlpp ssl callback function
130 views
Skip to first unread message
princeofporsche
unread,
Jul 15, 2011, 11:50:55 AM
7/15/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to curlpp
Hi All,
I am trying to write a curlpp ssl callback function on the client side
to do a custom verification of the server side certificate.
Here's a snippet.
m_sMyRequest.setOpt<cURLpp::Options::SslVerifyPeer>(true);
m_sMyRequest.setOpt<cURLpp::Options::SslVerifyHost>(2);
m_sMyRequest.setOpt<cURLpp::Options::SslCtxFunction>(sslctxfun);
What should the signature of the sslctxfun() callback function.
I came across sample C ssl callback function listed under libcurl
examples:
static CURLcode sslctxfun(CURL * curl, void * sslctx, void * parm);
But the same callback signature doesn't seem to work for curlpp. The
curlpp documentation lacks a proper C++ ssl example.
Any help is appreciated.
Thanks.
Aditya
Reply all
Reply to author
Forward
0 new messages