cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-tracker Archives

[curl:bugs] #1290 Client code, ADH, servercert, and NULL certifcate

From: Daniel Stenberg <bagder_at_users.sf.net>
Date: Sun, 13 Oct 2013 09:15:00 +0000

I don't understand what you're saying. Why is this wrong? It fails since it can't get the cert and then it can't verify the cert/name parts so it fails. If that isn't wrong, please elaborate.

---
** [bugs:#1290] Client code, ADH, servercert, and NULL certifcate**
**Status:** open
**Created:** Sun Oct 13, 2013 09:12 AM UTC by Jeffrey Walton
**Last Updated:** Sun Oct 13, 2013 09:12 AM UTC
**Owner:** Daniel Stenberg
    // From ssluse.c, around line 2127
    connssl->server_cert = SSL_get_peer_certificate(connssl->handle);
    if(!connssl->server_cert) {
      if(strict)
        failf(data, "SSL: couldn't get peer certificate!");
      return CURLE_PEER_FAILED_VERIFICATION;
    }
In client code, `SSL_get_peer_certificate` will return `NULL` in the case of ADH *if* the server does not have a certificate to offer. If the user asked for ADH, then the return value might be misleading or even incorrect.
---
Sent from sourceforge.net because curl-tracker@cool.haxx.se is subscribed to https://sourceforge.net/p/curl/bugs/
To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/curl/admin/bugs/options.  Or, if this is a mailing list, you can unsubscribe from the mailing list.
Received on 2013-10-13

These mail archives are generated by hypermail.

donate! Page updated May 06, 2013.
web site info

File upload with ASP.NET