]> git.ipfire.org Git - thirdparty/openssl.git/commit
Fix return value checking of BN_check_prime invocations
authorPW Hu <jlu.hpw@foxmail.com>
Fri, 5 Nov 2021 09:33:32 +0000 (17:33 +0800)
committerTomas Mraz <tomas@openssl.org>
Fri, 12 Nov 2021 10:20:48 +0000 (11:20 +0100)
commit680827a15f12c3b37a6335fcb992555cf300730e
treeeb992df2faf2d55a5cfd75228605938f4341637e
parented5b26ce0b34ec00bdd53d15854a22bccbb4d415
Fix return value checking of BN_check_prime invocations

Negative return value indicates an error so we bail out.

Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Kurt Roeckx <kurt@roeckx.be>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/16975)
crypto/bn/bn_rsa_fips186_4.c