You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

15 lines
535 B

--- a/src/ne_openssl.c
+++ b/src/ne_openssl.c
@@ -230,10 +230,10 @@ void ne_ssl_cert_validity_time(const ne_ssl_certificate *cert,
time_t *from, time_t *until)
{
if (from) {
- *from = asn1time_to_timet(X509_get_notBefore(cert->subject));
+ *from = asn1time_to_timet(X509_get0_notBefore(cert->subject));
}
if (until) {
- *until = asn1time_to_timet(X509_get_notAfter(cert->subject));
+ *until = asn1time_to_timet(X509_get0_notAfter(cert->subject));
}
}