diff options
author | Peiwei Hu <jlu.hpw@foxmail.com> | 2022-05-28 23:51:32 +0800 |
---|---|---|
committer | Todd Short <todd.short@me.com> | 2022-06-02 10:36:56 -0400 |
commit | 92d0d7ea9be40909ee79fb8861641a61eead2431 (patch) | |
tree | f7844b2da51b2ac8b4225bfebabcbbcf543600ec /apps/ec.c | |
parent | c2f7614fb7b93fe3792068077ff01384f42f39bc (diff) |
Fix the checks of EVP_PKEY_check
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Todd Short <todd.short@me.com>
(Merged from https://github.com/openssl/openssl/pull/18424)
Diffstat (limited to 'apps/ec.c')
-rw-r--r-- | apps/ec.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -230,7 +230,7 @@ int ec_main(int argc, char **argv) BIO_printf(bio_err, "unable to check EC key\n"); goto end; } - if (!EVP_PKEY_check(pctx)) + if (EVP_PKEY_check(pctx) <= 0) BIO_printf(bio_err, "EC Key Invalid!\n"); else BIO_printf(bio_err, "EC Key valid.\n"); |