summaryrefslogtreecommitdiffstats
path: root/crypto/evp/evp_test.c
diff options
context:
space:
mode:
authorBen Laurie <ben@openssl.org>2001-08-18 16:02:52 +0000
committerBen Laurie <ben@openssl.org>2001-08-18 16:02:52 +0000
commita8a004987c730aa433b18e3d1f91198eca18e324 (patch)
tree6c88dc444cd8de7400ef33ac334d6550a933d357 /crypto/evp/evp_test.c
parent0e36019977e78c34d6ea67b943fe17d4a01e769d (diff)
Add AES tests.
Diffstat (limited to 'crypto/evp/evp_test.c')
-rw-r--r--crypto/evp/evp_test.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/crypto/evp/evp_test.c b/crypto/evp/evp_test.c
index 811574b21b..efbe9fa3c9 100644
--- a/crypto/evp/evp_test.c
+++ b/crypto/evp/evp_test.c
@@ -206,7 +206,7 @@ int main(int argc,char **argv)
for( ; ; )
{
- char acLine[4096];
+ char line[4096];
char *p;
char *cipher;
unsigned char *iv,*key,*plaintext,*ciphertext;
@@ -214,11 +214,11 @@ int main(int argc,char **argv)
int kn,in,pn,cn;
ENGINE *e;
- if(!fgets((char *)acLine,sizeof acLine,f))
+ if(!fgets((char *)line,sizeof line,f))
break;
- if(acLine[0] == '#')
+ if(line[0] == '#' || line[0] == '\n')
continue;
- p=acLine;
+ p=line;
cipher=strsep(&p,":");
key=ustrsep(&p,":");
iv=ustrsep(&p,":");