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.

14 lines
422 B

  1. --- a/cli/commands.c
  2. +++ b/cli/commands.c
  3. @@ -1659,7 +1659,11 @@ parse_cert(const char *name, const char *path)
  4. BIO_printf(bio_out, "\n");
  5. BIO_printf(bio_out, "Valid until: ");
  6. +#if OPENSSL_VERSION_NUMBER < 0x10100000L // < 1.1.0
  7. ASN1_TIME_print(bio_out, X509_get_notAfter(cert));
  8. +#else
  9. + ASN1_TIME_print(bio_out, X509_get0_notAfter(cert));
  10. +#endif
  11. BIO_printf(bio_out, "\n");
  12. has_san = 0;