Instead of returning errors when certain flags are unusable, just ignore them.

That will make the test go through even if DH (or in some cases ECDH) aren't
built into OpenSSL.
PR: 216, part 2
This commit is contained in:
Richard Levitte
2002-08-14 12:18:29 +00:00
parent 7ee5c0a0a2
commit 425d06d178

View File

@@ -247,12 +247,22 @@ int main(int argc, char *argv[])
debug=1; debug=1;
else if (strcmp(*argv,"-reuse") == 0) else if (strcmp(*argv,"-reuse") == 0)
reuse=1; reuse=1;
#ifndef NO_DH
else if (strcmp(*argv,"-dhe1024") == 0) else if (strcmp(*argv,"-dhe1024") == 0)
{
#ifndef NO_DH
dhe1024=1; dhe1024=1;
else if (strcmp(*argv,"-dhe1024dsa") == 0) #else
dhe1024dsa=1; fprintf(stderr,"ignoring -dhe1024, since I'm compiled without DH\n";
#endif #endif
}
else if (strcmp(*argv,"-dhe1024dsa") == 0)
{
#ifndef NO_DH
dhe1024dsa=1;
#else
fprintf(stderr,"ignoring -dhe1024, since I'm compiled without DH\n";
#endif
}
else if (strcmp(*argv,"-no_dhe") == 0) else if (strcmp(*argv,"-no_dhe") == 0)
no_dhe=1; no_dhe=1;
else if (strcmp(*argv,"-ssl2") == 0) else if (strcmp(*argv,"-ssl2") == 0)