mirror of
https://github.com/MariaDB/server.git
synced 2025-01-15 19:42:28 +01:00
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:
parent
d85490afab
commit
0dfa0eef59
1 changed files with 9 additions and 6 deletions
|
@ -259,14 +259,17 @@ new_VioSSLFd(const char *key_file, const char *cert_file,
|
|||
}
|
||||
|
||||
/* DH stuff */
|
||||
dh=get_dh2048();
|
||||
if (!SSL_CTX_set_tmp_dh(ssl_fd->ssl_context, dh))
|
||||
if (!is_client_method)
|
||||
{
|
||||
*error= SSL_INITERR_DH;
|
||||
goto err3;
|
||||
}
|
||||
dh=get_dh2048();
|
||||
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"));
|
||||
|
||||
|
|
Loading…
Reference in a new issue