parent
06aa77ae33
commit
a0c461434c
@ -1236,8 +1236,9 @@ gtls_connect_step3(struct connectdata *conn,
|
|||||||
|
|
||||||
|
|
||||||
rc = gnutls_x509_crt_get_dn2(x509_cert, &certfields);
|
rc = gnutls_x509_crt_get_dn2(x509_cert, &certfields);
|
||||||
if(rc != 0)
|
if(rc)
|
||||||
return CURLE_OUT_OF_MEMORY;
|
infof(data, "Failed to get certificate name\n");
|
||||||
|
else {
|
||||||
infof(data, "\t subject: %s\n", certfields.data);
|
infof(data, "\t subject: %s\n", certfields.data);
|
||||||
|
|
||||||
certclock = gnutls_x509_crt_get_activation_time(x509_cert);
|
certclock = gnutls_x509_crt_get_activation_time(x509_cert);
|
||||||
@ -1245,10 +1246,12 @@ gtls_connect_step3(struct connectdata *conn,
|
|||||||
|
|
||||||
certclock = gnutls_x509_crt_get_expiration_time(x509_cert);
|
certclock = gnutls_x509_crt_get_expiration_time(x509_cert);
|
||||||
showtime(data, "expire date", certclock);
|
showtime(data, "expire date", certclock);
|
||||||
|
}
|
||||||
|
|
||||||
rc = gnutls_x509_crt_get_issuer_dn2(x509_cert, &certfields);
|
rc = gnutls_x509_crt_get_issuer_dn2(x509_cert, &certfields);
|
||||||
if(rc != 0)
|
if(rc)
|
||||||
return CURLE_OUT_OF_MEMORY;
|
infof(data, "Failed to get certificate issuer\n");
|
||||||
|
else
|
||||||
infof(data, "\t issuer: %s\n", certfields.data);
|
infof(data, "\t issuer: %s\n", certfields.data);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user