From: Richard Levitte Date: Mon, 11 Sep 2000 22:21:38 +0000 (+0000) Subject: DSA_verify() and DSA_sign() might return -1... X-Git-Tag: OpenSSL-engine-0_9_6-beta2~13^2~1 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=05c2b37176e15f86f2ca2f96745f5258aa9b1192;p=oweals%2Fopenssl.git DSA_verify() and DSA_sign() might return -1... --- 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);