cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Using a client certificate when doing SSL

From: Adrian Michel <adrian_at_amichel.com>
Date: Tue, 2 Feb 2010 15:10:13 -0800

> If you need a temporary solution you can use CURLOPT_SSL_CTX_FUNCTION
>
> curl_easy_setopt(curl, CURLOPT_SSL_CTX_FUNCTION,
> curl_ssl_ctx_function); curl_easy_setopt(curl,
> CURLOPT_SSL_CTX_DATA, NULL);
>
> CURLcode curl_ssl_ctx_function(CURL * curl, void * sslctx,
> void * parm) {
> SSL_CTX * ctx = (SSL_CTX *) sslctx;
> // Play with SSL Context
> return CURLE_OK ;
> }
>

It turns out I won't need a client cert for the time being but I'll keep
this in mind for the future.

Thanks,

Adrian

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