version 1.33, 2023/04/14 06:47:07 |
version 1.34, 2023/11/13 11:50:36 |
|
|
ASN1_TIME *nB = X509_get_notBefore(x); |
ASN1_TIME *nB = X509_get_notBefore(x); |
|
|
BIO_puts(STDout, "notBefore="); |
BIO_puts(STDout, "notBefore="); |
if (ASN1_time_parse(nB->data, nB->length, NULL, |
if (!ASN1_TIME_to_tm(nB, NULL)) |
0) == -1) |
|
BIO_puts(STDout, |
BIO_puts(STDout, |
"INVALID RFC5280 TIME"); |
"INVALID RFC5280 TIME"); |
else |
else |
|
|
ASN1_TIME *nA = X509_get_notAfter(x); |
ASN1_TIME *nA = X509_get_notAfter(x); |
|
|
BIO_puts(STDout, "notAfter="); |
BIO_puts(STDout, "notAfter="); |
if (ASN1_time_parse(nA->data, nA->length, NULL, |
if (!ASN1_TIME_to_tm(nA, NULL)) |
0) == -1) |
|
BIO_puts(STDout, |
BIO_puts(STDout, |
"INVALID RFC5280 TIME"); |
"INVALID RFC5280 TIME"); |
else |
else |