Function tls1_check_ec_server_key is now redundant as we make
authorDr. Stephen Henson <steve@openssl.org>
Wed, 26 Dec 2012 14:27:27 +0000 (14:27 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Wed, 26 Dec 2012 14:27:27 +0000 (14:27 +0000)
appropriate checks in tls1_check_chain.
(backport from HEAD)

ssl/s3_lib.c
ssl/ssl_locl.h
ssl/t1_lib.c

index ac70eaf966ee0c723eae3568586a107432368c49..fd6fab3b8526980647d91d89469a765e080772b4 100644 (file)
@@ -3971,10 +3971,6 @@ SSL_CIPHER *ssl3_choose_cipher(SSL *s, STACK_OF(SSL_CIPHER) *clnt,
 
 #ifndef OPENSSL_NO_TLSEXT
 #ifndef OPENSSL_NO_EC
-               /* if we are considering an ECC cipher suite that uses our
-                * certificate check it */
-               if (alg_a & (SSL_aECDSA|SSL_aECDH))
-                       ok = ok && tls1_check_ec_server_key(s);
                /* if we are considering an ECC cipher suite that uses
                 * an ephemeral EC key check it */
                if (alg_k & SSL_kEECDH)
index 1b166caa56b556a092125cc202d6c5561deb1fae..49ad5fdb89749c6c908087fd03f41286ed9e7ef1 100644 (file)
@@ -1151,7 +1151,6 @@ int tls1_set_curves(unsigned char **pext, size_t *pextlen,
                        int *curves, size_t ncurves);
 int tls1_set_curves_list(unsigned char **pext, size_t *pextlen, 
                                const char *str);
-int tls1_check_ec_server_key(SSL *s);
 int tls1_check_ec_tmp_key(SSL *s);
 #endif /* OPENSSL_NO_EC */
 
index a2d9e62b36413e893169a589700fc95a292f1dbf..6e7abc7e97d0109e760504781741b18d45618c90 100644 (file)
@@ -563,14 +563,6 @@ static int tls1_check_cert_param(SSL *s, X509 *x)
                return 0;
        return tls1_check_ec_key(s, curve_id, &comp_id);
        }
-/* Check EC server key is compatible with client extensions */
-int tls1_check_ec_server_key(SSL *s)
-       {
-       CERT_PKEY *cpk = s->cert->pkeys + SSL_PKEY_ECC;
-       if (!cpk->x509 || !cpk->privatekey)
-               return 0;
-       return tls1_check_cert_param(s, cpk->x509);
-       }
 /* Check EC temporary key is compatible with client extensions */
 int tls1_check_ec_tmp_key(SSL *s)
        {