summaryrefslogtreecommitdiffstats
path: root/fips/aes/fips_aesavs.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2011-11-01 13:45:30 +0000
committerDr. Stephen Henson <steve@openssl.org>2011-11-01 13:45:30 +0000
commit8b8096d082292211cc977af195e9b12c88c26de3 (patch)
treee87a03240248b023aa8cbb45963d6d1a91d5dd19 /fips/aes/fips_aesavs.c
parent9ab6d6813ec544a15f6aea3d4af83629fa1eb4e5 (diff)
Add support for multicall fips_algvs utility combining functionality
of all fips test utilities in a single binary and some minimal script parsing for platforms lacking a suitable shell. In order to keep changes to the build system to a minimum it #includes all the utilities C source files (yuck).
Diffstat (limited to 'fips/aes/fips_aesavs.c')
-rw-r--r--fips/aes/fips_aesavs.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/fips/aes/fips_aesavs.c b/fips/aes/fips_aesavs.c
index 84bcbac32a..9a09964221 100644
--- a/fips/aes/fips_aesavs.c
+++ b/fips/aes/fips_aesavs.c
@@ -780,7 +780,7 @@ static int proc_file(char *rqfile, char *rspfile)
if(do_mct(amode, akeysz, aKey, iVec,
dir, (unsigned char*)plaintext, len,
rfp) < 0)
- EXIT(1);
+ err = 1;
}
else
{
@@ -862,7 +862,11 @@ static int proc_file(char *rqfile, char *rspfile)
aes_test -d xxxxx.xxx
The default is: -d req.txt
--------------------------------------------------*/
+#ifdef FIPS_ALGVS
+int fips_aesavs_main(int argc, char **argv)
+#else
int main(int argc, char **argv)
+#endif
{
char *rqlist = "req.txt", *rspfile = NULL;
FILE *fp = NULL;
@@ -915,7 +919,7 @@ int main(int argc, char **argv)
if (proc_file(rfn, rspfile))
{
printf(">>> Processing failed for: %s <<<\n", rfn);
- EXIT(1);
+ return 1;
}
}
fclose(fp);
@@ -929,7 +933,6 @@ int main(int argc, char **argv)
printf(">>> Processing failed for: %s <<<\n", fn);
}
}
- EXIT(0);
return 0;
}