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

Diff for /src/usr.bin/openssl/s_cb.c between version 1.3 and 1.4

version 1.3, 2015/02/08 10:22:45 version 1.4, 2015/07/20 21:52:07
Line 166 
Line 166 
         switch (err) {          switch (err) {
         case X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT:          case X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT:
                 BIO_puts(bio_err, "issuer= ");                  BIO_puts(bio_err, "issuer= ");
                 X509_NAME_print_ex(bio_err, X509_get_issuer_name(err_cert),                  if (err_cert == NULL)
                     0, XN_FLAG_ONELINE);                          BIO_puts(bio_err, "<error getting cert>");
                   else
                           X509_NAME_print_ex(bio_err,
                               X509_get_issuer_name(err_cert), 0, XN_FLAG_ONELINE);
                 BIO_puts(bio_err, "\n");                  BIO_puts(bio_err, "\n");
                 break;                  break;
         case X509_V_ERR_CERT_NOT_YET_VALID:          case X509_V_ERR_CERT_NOT_YET_VALID:
         case X509_V_ERR_ERROR_IN_CERT_NOT_BEFORE_FIELD:          case X509_V_ERR_ERROR_IN_CERT_NOT_BEFORE_FIELD:
                 BIO_printf(bio_err, "notBefore=");                  BIO_printf(bio_err, "notBefore=");
                 ASN1_TIME_print(bio_err, X509_get_notBefore(err_cert));                  if (err_cert == NULL)
                           BIO_printf(bio_err, " <error getting cert>");
                   else
                           ASN1_TIME_print(bio_err, X509_get_notBefore(err_cert));
                 BIO_printf(bio_err, "\n");                  BIO_printf(bio_err, "\n");
                 break;                  break;
         case X509_V_ERR_CERT_HAS_EXPIRED:          case X509_V_ERR_CERT_HAS_EXPIRED:
         case X509_V_ERR_ERROR_IN_CERT_NOT_AFTER_FIELD:          case X509_V_ERR_ERROR_IN_CERT_NOT_AFTER_FIELD:
                 BIO_printf(bio_err, "notAfter=");                  BIO_printf(bio_err, "notAfter=");
                 ASN1_TIME_print(bio_err, X509_get_notAfter(err_cert));                  if (err_cert == NULL)
                           BIO_printf(bio_err, " <error getting cert>");
                   else
                           ASN1_TIME_print(bio_err, X509_get_notAfter(err_cert));
                 BIO_printf(bio_err, "\n");                  BIO_printf(bio_err, "\n");
                 break;                  break;
         case X509_V_ERR_NO_EXPLICIT_POLICY:          case X509_V_ERR_NO_EXPLICIT_POLICY:

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4