summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2000-09-11 22:21:38 +0000
committerRichard Levitte <levitte@openssl.org>2000-09-11 22:21:38 +0000
commit05c2b37176e15f86f2ca2f96745f5258aa9b1192 (patch)
treee911c610e8de4bc01362f4b9c4b645af51e5d5c2 /apps
parent8c0514f7419d4749c7b967f83e086eac7bd625d7 (diff)
DSA_verify() and DSA_sign() might return -1...
Diffstat (limited to 'apps')
-rw-r--r--apps/speed.c4
1 files 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);