]> git.ipfire.org Git - thirdparty/openssl.git/commit
Ensure GCM "update" failures return 0 on error
authorMatt Caswell <matt@openssl.org>
Mon, 22 Jun 2020 15:01:31 +0000 (16:01 +0100)
committerMatt Caswell <matt@openssl.org>
Mon, 6 Jul 2020 08:26:09 +0000 (09:26 +0100)
commitee0c849e5a1c26ed16c08311efdfd78c8e4c8221
tree3d3826e5005ac5c2fe78fb47589e4b3cb3495f4d
parent978cc3648d02551c6ada328708306dad2d3ce07a
Ensure GCM "update" failures return 0 on error

EVP_CipherUpdate is supposed to return 1 for success or 0 for error.
However for GCM ciphers it was sometimes returning -1 for error.

Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/12288)
providers/implementations/ciphers/ciphercommon_gcm.c