X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=apps%2Fca.c;h=6e8fa273dba5117d8f5d6983b24858f20782638c;hb=1d97c8435171a7af575f73c526d79e1ef0ee5960;hp=934970d9e45e9742972e8ff263c5c317cd25bdb1;hpb=478b50cf67d6a91fdcd584cff57c58b7e863055d;p=thirdparty%2Fopenssl.git diff --git a/apps/ca.c b/apps/ca.c index 934970d9e4..6e8fa273db 100644 --- a/apps/ca.c +++ b/apps/ca.c @@ -709,7 +709,7 @@ bad: ERR_clear_error(); #ifdef RL_DEBUG if (!p) - BIO_printf(bio_err, "DEBUG: unique_subject undefined\n", p); + BIO_printf(bio_err, "DEBUG: unique_subject undefined\n"); #endif #ifdef RL_DEBUG BIO_printf(bio_err, "DEBUG: configured unique_subject is %d\n", @@ -1628,12 +1628,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 @@ -2800,6 +2802,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; @@ -2824,7 +2829,8 @@ char *make_revocation_str(int rev_type, char *rev_arg) return str; } -/* Convert revocation field to X509_REVOKED entry +/*- + * Convert revocation field to X509_REVOKED entry * return code: * 0 error * 1 OK