]> granicus.if.org Git - openssl/commitdiff
Fix s_server -ssl2. Previously this reported "Error setting EC curve"
authorMatt Caswell <matt@openssl.org>
Wed, 19 Nov 2014 16:02:49 +0000 (16:02 +0000)
committerMatt Caswell <matt@openssl.org>
Wed, 19 Nov 2014 23:55:42 +0000 (23:55 +0000)
Reviewed-by: Dr. Stephen Henson <steve@openssl.org>
apps/s_server.c

index c9764e923bb3f5aa1e76c863d2486fa762bb22ba..8a28bdd69f08cbc3d8092229ee37c23193568614 100644 (file)
@@ -1408,7 +1408,10 @@ int MAIN(int argc, char *argv[])
                        { www=3; }
 #ifndef OPENSSL_NO_SSL2
                else if (strcmp(*argv,"-ssl2") == 0)
-                       { meth=SSLv2_server_method(); }
+                       {
+                       no_ecdhe=1;
+                       meth=SSLv2_server_method();
+                       }
 #endif
 #ifndef OPENSSL_NO_SSL3_METHOD
                else if (strcmp(*argv,"-ssl3") == 0)