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

  1. --- a/src/ne_openssl.c
  2. +++ b/src/ne_openssl.c
  3. @@ -230,10 +230,10 @@ void ne_ssl_cert_validity_time(const ne_ssl_certificate *cert,
  4. time_t *from, time_t *until)
  5. {
  6. if (from) {
  7. - *from = asn1time_to_timet(X509_get_notBefore(cert->subject));
  8. + *from = asn1time_to_timet(X509_get0_notBefore(cert->subject));
  9. }
  10. if (until) {
  11. - *until = asn1time_to_timet(X509_get_notAfter(cert->subject));
  12. + *until = asn1time_to_timet(X509_get0_notAfter(cert->subject));
  13. }
  14. }