diff options
| author | Daniel Stenberg <daniel@haxx.se> | 2005-04-22 20:56:26 +0000 | 
|---|---|---|
| committer | Daniel Stenberg <daniel@haxx.se> | 2005-04-22 20:56:26 +0000 | 
| commit | 543fbe14eee5dbbd81f1e9ec2004d5f327504367 (patch) | |
| tree | 69e252861612b64efb6503eda2efdc95f0ea9ef9 /lib | |
| parent | e02ab66120169e8cf8d811de3d5210441a584cfd (diff) | |
Fixed the CN extraction
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/gtls.c | 6 | 
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/gtls.c b/lib/gtls.c index fff5d5e62..7ca8a0f42 100644 --- a/lib/gtls.c +++ b/lib/gtls.c @@ -308,9 +308,13 @@ Curl_gtls_connect(struct connectdata *conn,    size=sizeof(certbuf);    rc = gnutls_x509_crt_get_dn_by_oid(x509_cert, GNUTLS_OID_X520_COMMON_NAME,                                       0, /* the first and only one */ -                                     TRUE, /* give to me raw please */ +                                     FALSE,                                       certbuf,                                       &size); +  if(rc) { +    infof(data, "error fetching CN from cert:%s\n", +          gnutls_strerror(rc)); +  }    /* This function will check if the given certificate's subject matches the       given hostname. This is a basic implementation of the matching described  | 
