fix handling of "automatic" in file mode
authorDr. Stephen Henson <steve@openssl.org>
Thu, 6 Dec 2012 21:53:05 +0000 (21:53 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Thu, 6 Dec 2012 21:53:05 +0000 (21:53 +0000)
ssl/ssl_conf.c

index 23754739bb9720203a4eb20cf6ea58cbf9fffbf3..940d5a88ddcf8dbd4c581e4b0790d5a86d4026a3 100644 (file)
@@ -272,7 +272,12 @@ static int cmd_ecdhparam(SSL_CONF_CTX *cctx, const char *value)
                        onoff = 0;
                        value++;
                        }
-               if (strcasecmp(value, "automatic"))
+               if (!strcasecmp(value, "automatic"))
+                       {
+                       if (onoff != -1)
+                               onoff = 1;
+                       }
+               else if (onoff != -1)
                        return 0;
                }
        else if (cctx->flags & SSL_CONF_FLAG_CMDLINE)