CHROMIUM: openssl: make 'verify' easier to use

1) Make it print a newline after the end of its error output; if there is no
   BIO error, the output is printed with no newline.
2) Return a nonzero exit code if any cert failed to verify - 0 for all okay,
   1 for a usage error, and 2 for a verification failure.

This patch was originally added in
chromiumos-overlay:2ea51e44669062977689ff09a43ac8438f55673f

BUG=chromium-os:15581,chromium-os:21100
TEST=security_OpenSSLRegression

Reviewed-on: http://gerrit.chromium.org/gerrit/2224
Change-Id: Ibb6866634b5ae649441db87ffdb3ee5a2ebfb687
Signed-off-by: Elly Jones <ellyjones@chromium.org>
1 file changed