[openssl-commits] [openssl] master update

Matt Caswell matt at openssl.org
Wed Mar 15 21:03:02 UTC 2017


The branch master has been updated
       via  dda12ce4e5c75da95088a1dc81815b80ec18821d (commit)
      from  d9aea0416249bf7fb2dd330dd9dde825ac5e4b94 (commit)


- Log -----------------------------------------------------------------
commit dda12ce4e5c75da95088a1dc81815b80ec18821d
Author: Benjamin Kaduk <bkaduk at akamai.com>
Date:   Tue Mar 14 17:53:46 2017 -0500

    Remove dead code
    
    tls1_get_curvelist() does not read from its third parameter, so
    the assignments prior to function call were dead code and can be removed.
    
    Reviewed-by: Richard Levitte <levitte at openssl.org>
    Reviewed-by: Matt Caswell <matt at openssl.org>
    (Merged from https://github.com/openssl/openssl/pull/2952)

-----------------------------------------------------------------------

Summary of changes:
 ssl/statem/extensions_clnt.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/ssl/statem/extensions_clnt.c b/ssl/statem/extensions_clnt.c
index d40c9ce..c6cd0ce 100644
--- a/ssl/statem/extensions_clnt.c
+++ b/ssl/statem/extensions_clnt.c
@@ -146,7 +146,6 @@ int tls_construct_ctos_supported_groups(SSL *s, WPACKET *pkt,
      * Add TLS extension supported_groups to the ClientHello message
      */
     /* TODO(TLS1.3): Add support for DHE groups */
-    pcurves = s->ext.supportedgroups;
     if (!tls1_get_curvelist(s, 0, &pcurves, &num_curves)) {
         SSLerr(SSL_F_TLS_CONSTRUCT_CTOS_SUPPORTED_GROUPS,
                ERR_R_INTERNAL_ERROR);
@@ -590,7 +589,6 @@ int tls_construct_ctos_key_share(SSL *s, WPACKET *pkt, unsigned int context,
         return 0;
     }
 
-    pcurves = s->ext.supportedgroups;
     if (!tls1_get_curvelist(s, 0, &pcurves, &num_curves)) {
         SSLerr(SSL_F_TLS_CONSTRUCT_CTOS_KEY_SHARE, ERR_R_INTERNAL_ERROR);
         return 0;
@@ -1301,7 +1299,6 @@ int tls_parse_stoc_key_share(SSL *s, PACKET *pkt, unsigned int context, X509 *x,
         }
 
         /* Validate the selected group is one we support */
-        pcurves = s->ext.supportedgroups;
         if (!tls1_get_curvelist(s, 0, &pcurves, &num_curves)) {
             SSLerr(SSL_F_TLS_PARSE_STOC_KEY_SHARE, ERR_R_INTERNAL_ERROR);
             return 0;


More information about the openssl-commits mailing list