diff options
author | jkim <jkim@FreeBSD.org> | 2014-08-07 21:04:42 +0000 |
---|---|---|
committer | jkim <jkim@FreeBSD.org> | 2014-08-07 21:04:42 +0000 |
commit | 2bfd7007417a2cd7c442bf1162e609303f217744 (patch) | |
tree | 2ead8295addf0f92cbe4bf28f39105c909a6702f /crypto/openssl/apps/ca.c | |
parent | 95576e5070819ac5bc80e16b237dc5a0061ed9a4 (diff) | |
download | FreeBSD-src-2bfd7007417a2cd7c442bf1162e609303f217744.zip FreeBSD-src-2bfd7007417a2cd7c442bf1162e609303f217744.tar.gz |
MFC: r269682
Merge OpenSSL 1.0.1i.
Diffstat (limited to 'crypto/openssl/apps/ca.c')
-rw-r--r-- | crypto/openssl/apps/ca.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/crypto/openssl/apps/ca.c b/crypto/openssl/apps/ca.c index 1cf50e0..9c25026 100644 --- a/crypto/openssl/apps/ca.c +++ b/crypto/openssl/apps/ca.c @@ -1620,12 +1620,14 @@ static int certify(X509 **xret, char *infile, EVP_PKEY *pkey, X509 *x509, { ok=0; BIO_printf(bio_err,"Signature verification problems....\n"); + ERR_print_errors(bio_err); goto err; } if (i == 0) { ok=0; BIO_printf(bio_err,"Signature did not match the certificate request\n"); + ERR_print_errors(bio_err); goto err; } else @@ -2777,6 +2779,9 @@ char *make_revocation_str(int rev_type, char *rev_arg) revtm = X509_gmtime_adj(NULL, 0); + if (!revtm) + return NULL; + i = revtm->length + 1; if (reason) i += strlen(reason) + 1; |