Skip to content

Commit

Permalink
Merge pull request #440 from neheb/n
Browse files Browse the repository at this point in the history
Switch X509_get_notAfter to get0 variant
  • Loading branch information
michalvasko authored Jun 27, 2019
2 parents 6a10e99 + 019f473 commit 4928197
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cli/commands.c
Original file line number Diff line number Diff line change
Expand Up @@ -1659,7 +1659,11 @@ parse_cert(const char *name, const char *path)
BIO_printf(bio_out, "\n");

BIO_printf(bio_out, "Valid until: ");
#if OPENSSL_VERSION_NUMBER < 0x10100000L // < 1.1.0
ASN1_TIME_print(bio_out, X509_get_notAfter(cert));
#else
ASN1_TIME_print(bio_out, X509_get0_notAfter(cert));
#endif
BIO_printf(bio_out, "\n");

has_san = 0;
Expand Down

0 comments on commit 4928197

Please sign in to comment.