MDEV-8957 [PATCH] Useless ssl_ctx_set_tmp_dh call in libmysql

Accepted patch of Georg: do not setup Differ-Hellman parameters on client.
This commit is contained in:
Oleksandr Byelkin 2015-11-15 10:44:20 +01:00
parent d85490afab
commit 0dfa0eef59

View file

@ -259,14 +259,17 @@ new_VioSSLFd(const char *key_file, const char *cert_file,
} }
/* DH stuff */ /* DH stuff */
dh=get_dh2048(); if (!is_client_method)
if (!SSL_CTX_set_tmp_dh(ssl_fd->ssl_context, dh))
{ {
*error= SSL_INITERR_DH; dh=get_dh2048();
goto err3; if (!SSL_CTX_set_tmp_dh(ssl_fd->ssl_context, dh))
} {
*error= SSL_INITERR_DH;
goto err3;
}
DH_free(dh); DH_free(dh);
}
DBUG_PRINT("exit", ("OK 1")); DBUG_PRINT("exit", ("OK 1"));