cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Accessing a SSL structre through SSL_CTX in the CURLcode sslctxfun(CURL *curl, void *sslctx, void *parm) callback.

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 6 Sep 2010 19:56:25 +0200 (CEST)

On Mon, 6 Sep 2010, Mehmet Bozkurt wrote:

> This might be kind of off topic but here goes anyway! I would like to know
> if there is any way to access the SSL structure associated with the current
> connection through the data provided in the callback sslctxfun()?

You use OpenSSL functions!

> I have an application which needs access to the server certificate chain and
> it seems as if it is only possible through an SSL object (with
> SSL_get_peer_cert_chain(ssl)) and I only have access to an SSL_CTX in the
> callback.

Nope. See CURLOPT_CERTINFO and CURLINFO_CERTINFO.

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