From: Ben Laurie Date: Thu, 13 Dec 2012 15:49:15 +0000 (+0000) Subject: Make verify return errors. X-Git-Tag: OpenSSL_1_0_2-beta1~546 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=5f4cf088647598ca57f66ef12a1c2c80e36237e6;p=oweals%2Fopenssl.git Make verify return errors. --- diff --git a/CHANGES b/CHANGES index 4d71d95af5..2a20e2224f 100644 --- a/CHANGES +++ b/CHANGES @@ -81,6 +81,9 @@ Changes between 1.0.1c and 1.0.1d [xx XXX xxxx] + *) Make openssl verify return errors. + [Chris Palmer and Ben Laurie] + *) Fix possible deadlock when decoding public keys. [Steve Henson] diff --git a/Makefile.org b/Makefile.org index 55273ea364..43d16cbcb1 100644 --- a/Makefile.org +++ b/Makefile.org @@ -444,7 +444,7 @@ rehash.time: certs apps [ -x "apps/openssl.exe" ] && OPENSSL="apps/openssl.exe" || :; \ OPENSSL_DEBUG_MEMORY=on; \ export OPENSSL OPENSSL_DEBUG_MEMORY; \ - $(PERL) tools/c_rehash certs) && \ + $(PERL) tools/c_rehash certs/demo) && \ touch rehash.time; \ else :; fi diff --git a/apps/verify.c b/apps/verify.c index 0f34b865ad..893670ff41 100644 --- a/apps/verify.c +++ b/apps/verify.c @@ -222,11 +222,19 @@ int MAIN(int argc, char **argv) goto end; } - if (argc < 1) check(cert_ctx, NULL, untrusted, trusted, crls, e); + ret = 0; + if (argc < 1) + { + if (1 != check(cert_ctx, NULL, untrusted, trusted, crls, e)) + ret = -1; + } else + { for (i=0; i