From: Rob Stradling Date: Tue, 10 Sep 2013 10:45:37 +0000 (+0100) Subject: Fix compilation with no-ec and/or no-tlsext. X-Git-Tag: OpenSSL_1_0_2-beta1~276^2~4 X-Git-Url: https://git.openssl.org/gitweb/?a=commitdiff_plain;ds=sidebyside;h=5fa3b5478834029c69ad110e563eea13f1aa06e0;hp=07df5018befd637a2a02ebd767969aa953200b3f;p=openssl.git Fix compilation with no-ec and/or no-tlsext. --- diff --git a/ssl/s3_lib.c b/ssl/s3_lib.c index d70286612c..26c0e96aed 100644 --- a/ssl/s3_lib.c +++ b/ssl/s3_lib.c @@ -4132,15 +4132,15 @@ SSL_CIPHER *ssl3_choose_cipher(SSL *s, STACK_OF(SSL_CIPHER) *clnt, ii=sk_SSL_CIPHER_find(allow,c); if (ii >= 0) { +#if !defined(OPENSSL_NO_EC) && !defined(OPENSSL_NO_TLSEXT) if ((alg_k & SSL_kEECDH) && (alg_a & SSL_aECDSA) && s->s3->is_probably_safari) { if (!ret) ret=sk_SSL_CIPHER_value(allow,ii); + continue; } - else - { - ret=sk_SSL_CIPHER_value(allow,ii); - break; - } +#endif + ret=sk_SSL_CIPHER_value(allow,ii); + break; } } return(ret);