curves can be set in both client and server
authorDr. Stephen Henson <steve@openssl.org>
Wed, 21 Nov 2012 17:01:46 +0000 (17:01 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Wed, 21 Nov 2012 17:01:46 +0000 (17:01 +0000)
ssl/ssl_conf.c

index dc0a3f04e5ae2a916d18ef6ac0d8d02a10109c73..0de97f8a78889196e55ae1aa8f64509cc62a423c 100644 (file)
@@ -246,8 +246,6 @@ static int cmd_client_sigalgs(SSL_CONF_CTX *cctx, const char *value)
 static int cmd_curves(SSL_CONF_CTX *cctx, const char *value)
        {
        int rv;
-       if (!(cctx->flags & SSL_CONF_FLAG_CLIENT))
-               return -2;
        if (cctx->ssl)
                rv = SSL_set1_curves_list(cctx->ssl, value);
        /* NB: ctx == NULL performs syntax checking only */