From: Kurt Roeckx Date: Sat, 14 Mar 2015 22:23:26 +0000 (+0100) Subject: Don't send a for ServerKeyExchange for kDHr and kDHd X-Git-Tag: OpenSSL_1_0_2b~156 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fe82be2b33714949e24f107af94b5b75206a28cd;p=openssl Don't send a for ServerKeyExchange for kDHr and kDHd The certificate already contains the DH parameters in that case. ssl3_send_server_key_exchange() would fail in that case anyway. Reviewed-by: Matt Caswell (cherry picked from commit 93f1c13619c5b41f2dcfdbf6ae666f867922a87a) --- diff --git a/ssl/d1_srvr.c b/ssl/d1_srvr.c index eafa0127b7..a184150e56 100644 --- a/ssl/d1_srvr.c +++ b/ssl/d1_srvr.c @@ -486,7 +486,7 @@ int dtls1_accept(SSL *s) #ifndef OPENSSL_NO_PSK || ((alg_k & SSL_kPSK) && s->ctx->psk_identity_hint) #endif - || (alg_k & (SSL_kEDH | SSL_kDHr | SSL_kDHd)) + || (alg_k & SSL_kDHE) || (alg_k & SSL_kEECDH) || ((alg_k & SSL_kRSA) && (s->cert->pkeys[SSL_PKEY_RSA_ENC].privatekey == NULL