DSA_verify() and DSA_sign() might return -1...

This commit is contained in:
Richard Levitte 2000-09-11 22:21:38 +00:00
parent 8c0514f741
commit 05c2b37176

View File

@ -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);