Fix PKCS7_verify to not have an error stack if it succeeds.
authorShane Lontis <shane.lontis@oracle.com>
Fri, 28 May 2021 01:42:41 +0000 (11:42 +1000)
committerShane Lontis <shane.lontis@oracle.com>
Sun, 30 May 2021 22:45:58 +0000 (08:45 +1000)
commitf505161e62d558b3f8442b264ccbf8112ebd58ef
tree9f75545656de64a5fb0fe47a1f497450d19ba214
parent43dbe3b72de0ba4ebd20e9e6a2c526ef747326ab
Fix PKCS7_verify to not have an error stack if it succeeds.

Revert a change in behavior to BIO_write(). If a NULL BIO
is passed, no error is raised and the return value is 0. There are
many places where the return code from the write was not checked,
resulting in an error stack with no error status being returned.

Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15493)
crypto/bio/bio_lib.c
doc/man3/BIO_read.pod
test/build.info
test/pkcs7_test.c [new file with mode: 0644]
test/recipes/80-test_cms.t