Fix compilation with no-ec and/or no-tlsext.
authorRob Stradling <rob@comodo.com>
Tue, 10 Sep 2013 10:00:57 +0000 (11:00 +0100)
committerBen Laurie <ben@links.org>
Mon, 16 Sep 2013 14:07:52 +0000 (15:07 +0100)
ssl/s3_lib.c

index 5539d223391eb8349925a84656b8941fc5dacf6c..c2428f48224f354e08e8142532684b180662a814 100644 (file)
@@ -4021,15 +4021,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);