Streaming BIOs assume they can write to NULL BIOs
authortb <tb@openbsd.org>
Wed, 15 Mar 2023 06:14:02 +0000 (06:14 +0000)
committertb <tb@openbsd.org>
Wed, 15 Mar 2023 06:14:02 +0000 (06:14 +0000)
commita8fef8b0f531d3795d6470e4b9119bba20d18f3b
tree49e413c7f77ae8bec7564d08c0ae9c92908a0c05
parentec747b4beaa253269b2c18925e90dec4dc91d328
Streaming BIOs assume they can write to NULL BIOs

At least SMIME_text() relies on this. Pushing an error on the stack trips
PKCS7 regress in py-cryptography, so indicate nothing was written instead
of throwing an error.

Reported by Alex Gaynor a while back

ok jsing
lib/libcrypto/bio/bio_lib.c