summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2002-08-14 12:16:27 +0000
committerRichard Levitte <levitte@openssl.org>2002-08-14 12:16:27 +0000
commit90f5a2b6fedaa952d015bb845ca075ef2eeba566 (patch)
tree0a0a3ae203baf510cafd56ccddbb6fe549f092cf
parentbf625abe295000cc8526ee1ca3a1363cf6bf1f03 (diff)
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
-rw-r--r--ssl/ssltest.c19
1 files changed, 16 insertions, 3 deletions
diff --git a/ssl/ssltest.c b/ssl/ssltest.c
index 30473b5ff2..c84c643c2e 100644
--- a/ssl/ssltest.c
+++ b/ssl/ssltest.c
@@ -418,12 +418,22 @@ int main(int argc, char *argv[])
debug=1;
else if (strcmp(*argv,"-reuse") == 0)
reuse=1;
-#ifndef OPENSSL_NO_DH
else if (strcmp(*argv,"-dhe1024") == 0)
+ {
+#ifndef OPENSSL_NO_DH
dhe1024=1;
+#else
+ fprintf(stderr,"ignoring -dhe1024, since I'm compiled without DH\n";
+#endif
+ }
else if (strcmp(*argv,"-dhe1024dsa") == 0)
+ {
+#ifndef OPENSSL_NO_DH
dhe1024dsa=1;
+#else
+ fprintf(stderr,"ignoring -dhe1024, since I'm compiled without DH\n";
#endif
+ }
else if (strcmp(*argv,"-no_dhe") == 0)
no_dhe=1;
else if (strcmp(*argv,"-no_ecdhe") == 0)
@@ -514,13 +524,16 @@ int main(int argc, char *argv[])
{
comp = COMP_RLE;
}
-#ifndef OPENSSL_NO_ECDH
else if (strcmp(*argv,"-named_curve") == 0)
{
if (--argc < 1) goto bad;
+#ifndef OPENSSL_NO_ECDH
named_curve = *(++argv);
- }
+#else
+ fprintf(stderr,"ignoring -named_curve, since I'm compiled without ECDH\n"
+ ++argv;
#endif
+ }
else if (strcmp(*argv,"-app_verify") == 0)
{
app_verify = 1;