mirror of
https://github.com/moparisthebest/curl
synced 2025-02-28 09:21:50 -05:00
parent
06aa77ae33
commit
a0c461434c
@ -1236,20 +1236,23 @@ 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");
|
||||||
infof(data, "\t subject: %s\n", certfields.data);
|
else {
|
||||||
|
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);
|
||||||
showtime(data, "start date", certclock);
|
showtime(data, "start date", certclock);
|
||||||
|
|
||||||
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");
|
||||||
infof(data, "\t issuer: %s\n", certfields.data);
|
else
|
||||||
|
infof(data, "\t issuer: %s\n", certfields.data);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
gnutls_x509_crt_deinit(x509_cert);
|
gnutls_x509_crt_deinit(x509_cert);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user