summaryrefslogtreecommitdiffstats
path: root/fips/rsa/fips_rsavtest.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/rsa/fips_rsavtest.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/rsa/fips_rsavtest.c')
-rw-r--r--fips/rsa/fips_rsavtest.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/fips/rsa/fips_rsavtest.c b/fips/rsa/fips_rsavtest.c
index df33842691..7685c74ef0 100644
--- a/fips/rsa/fips_rsavtest.c
+++ b/fips/rsa/fips_rsavtest.c
@@ -82,14 +82,18 @@ int main(int argc, char *argv[])
#include "fips_utl.h"
-int rsa_test(FILE *out, FILE *in, int saltlen);
+int rsa_vtest(FILE *out, FILE *in, int saltlen);
static int rsa_printver(FILE *out,
BIGNUM *n, BIGNUM *e,
const EVP_MD *dgst,
unsigned char *Msg, long Msglen,
unsigned char *S, long Slen, int Saltlen);
+#ifdef FIPS_ALGVS
+int fips_rsavtest_main(int argc, char **argv)
+#else
int main(int argc, char **argv)
+#endif
{
FILE *in = NULL, *out = NULL;
@@ -138,7 +142,7 @@ int main(int argc, char **argv)
goto end;
}
- if (!rsa_test(out, in, Saltlen))
+ if (!rsa_vtest(out, in, Saltlen))
{
fprintf(stderr, "FATAL RSAVTEST file processing error\n");
goto end;
@@ -159,7 +163,7 @@ int main(int argc, char **argv)
#define RSA_TEST_MAXLINELEN 10240
-int rsa_test(FILE *out, FILE *in, int Saltlen)
+int rsa_vtest(FILE *out, FILE *in, int Saltlen)
{
char *linebuf, *olinebuf, *p, *q;
char *keyword, *value;