From: Ben Laurie Date: Thu, 11 Mar 2004 17:39:49 +0000 (+0000) Subject: Spelling the test right helps. X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=766519fc12bcbbd8dfadb1d08c2c461203e535b1;p=oweals%2Fopenssl.git Spelling the test right helps. --- diff --git a/fips/dsa/fips_dssvs.c b/fips/dsa/fips_dssvs.c index a2884a9bf7..052be67be9 100644 --- a/fips/dsa/fips_dssvs.c +++ b/fips/dsa/fips_dssvs.c @@ -126,7 +126,7 @@ int main(int argc,char **argv) { if(argc != 2) { - fprintf(stderr,"%s [primes|pqg]\n",argv[0]); + fprintf(stderr,"%s [prime|pqg]\n",argv[0]); exit(1); } if(!FIPS_mode_set(1,argv[0])) @@ -135,10 +135,15 @@ int main(int argc,char **argv) ERR_print_errors(BIO_new_fp(stderr,BIO_NOCLOSE)); exit(1); } - if(!strcmp(argv[1],"primes")) + if(!strcmp(argv[1],"prime")) primes(); - else + else if(!strcmp(argv[1],"pqg")) pqg(); + else + { + fprintf(stderr,"Don't know how to %s.\n",argv[1]); + exit(1); + } return 0; }