Eliminate pointless variable.

This commit is contained in:
Ben Laurie 2004-01-31 16:30:13 +00:00
parent 7575c7e3bb
commit bcb0a64421

View File

@ -35,7 +35,6 @@ int DESTest(EVP_CIPHER_CTX *ctx,
unsigned char *out, unsigned char *in, int len)
{
const EVP_CIPHER *cipher = NULL;
int ret = 1;
int kt = 0;
if (ctx)
@ -58,8 +57,6 @@ int DESTest(EVP_CIPHER_CTX *ctx,
printf("Unknown mode: %s\n", amode);
exit(1);
}
if (ret)
{
if (akeysz != 64 && akeysz != 192)
{
printf("Invalid key size: %d\n", akeysz);
@ -117,8 +114,7 @@ int DESTest(EVP_CIPHER_CTX *ctx,
}
EVP_Cipher(ctx, out, in, len);
}
}
return ret;
return 1;
}
/*-----------------------------------------------*/