Don't stop -cipher from working.
authorDr. Stephen Henson <steve@openssl.org>
Sun, 30 Nov 2008 22:01:31 +0000 (22:01 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Sun, 30 Nov 2008 22:01:31 +0000 (22:01 +0000)
apps/s_server.c

index 3b7fb0776524c226f307297a4844112af4b347bb..12d39c35bb166b858da231dd4f3ecdb6042a5b08 100644 (file)
@@ -1222,16 +1222,16 @@ bad:
                        goto end;
                        }
                psk_identity = "JPAKE";
+               if (cipher)
+                       {
+                       BIO_printf(bio_err, "JPAKE sets cipher to PSK\n");
+                       goto end;
+                       }
+               cipher = "PSK";
                }
 
-       if (cipher)
-               {
-               BIO_printf(bio_err, "JPAKE sets cipher to PSK\n");
-               goto end;
-               }
-       cipher = "PSK";
 #endif
-               
+
        SSL_load_error_strings();
        OpenSSL_add_ssl_algorithms();