From 05c2b37176e15f86f2ca2f96745f5258aa9b1192 Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Mon, 11 Sep 2000 22:21:38 +0000 Subject: [PATCH] DSA_verify() and DSA_sign() might return -1... --- apps/speed.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/speed.c b/apps/speed.c index dcb9bae893..c468e33721 100644 --- a/apps/speed.c +++ b/apps/speed.c @@ -1210,7 +1210,7 @@ int MAIN(int argc, char **argv) { rsa_num=DSA_sign(EVP_PKEY_DSA,buf,20,buf2, &kk,dsa_key[j]); - if (rsa_num == 0) + if (rsa_num <= 0) { BIO_printf(bio_err,"DSA sign failure\n"); ERR_print_errors(bio_err); @@ -1233,7 +1233,7 @@ int MAIN(int argc, char **argv) { rsa_num2=DSA_verify(EVP_PKEY_DSA,buf,20,buf2, kk,dsa_key[j]); - if (rsa_num2 == 0) + if (rsa_num2 <= 0) { BIO_printf(bio_err,"DSA verify failure\n"); ERR_print_errors(bio_err); -- 2.25.1