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