[BACK]Return to x509.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / openssl

Diff for /src/usr.bin/openssl/x509.c between version 1.33 and 1.34

version 1.33, 2023/04/14 06:47:07 version 1.34, 2023/11/13 11:50:36
Line 1156 
Line 1156 
                                 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
Line 1167 
Line 1166 
                                 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

Legend:
Removed from v.1.33  
changed lines
  Added in v.1.34