]> git.ipfire.org Git - thirdparty/openssl.git/commit
ENCODER & DECODER: set params on all encoder/decoder instances, unconditionally
authorRichard Levitte <levitte@openssl.org>
Fri, 16 Oct 2020 05:58:33 +0000 (07:58 +0200)
committerRichard Levitte <levitte@openssl.org>
Sat, 17 Oct 2020 09:56:37 +0000 (11:56 +0200)
commit9096809b209a03eb3948242e702b19526e675d57
tree41b610b4676cb6fa04816d7072f3258fc3a5d2e1
parenta1fc4642e1cedbce54945da36d256bbb12ff752d
ENCODER & DECODER: set params on all encoder/decoder instances, unconditionally

OSSL_DECODER_CTX_set_params() and OSSL_ENCODER_CTX_set_params() would
stop as soon as a decoder / encoder instance failed, which leaves the
rest of them with a possibly previous and different value.

Instead, these functions will now call them all, but will return 0 if
any of the instance calls failed.

Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/13156)
crypto/encode_decode/decoder_meth.c
crypto/encode_decode/encoder_meth.c