mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 03:52:35 +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,6 +259,8 @@ new_VioSSLFd(const char *key_file, const char *cert_file,
|
||||||
}
|
}
|
||||||
|
|
||||||
/* DH stuff */
|
/* DH stuff */
|
||||||
|
if (!is_client_method)
|
||||||
|
{
|
||||||
dh=get_dh2048();
|
dh=get_dh2048();
|
||||||
if (!SSL_CTX_set_tmp_dh(ssl_fd->ssl_context, dh))
|
if (!SSL_CTX_set_tmp_dh(ssl_fd->ssl_context, dh))
|
||||||
{
|
{
|
||||||
|
@ -267,6 +269,7 @@ new_VioSSLFd(const char *key_file, const char *cert_file,
|
||||||
}
|
}
|
||||||
|
|
||||||
DH_free(dh);
|
DH_free(dh);
|
||||||
|
}
|
||||||
|
|
||||||
DBUG_PRINT("exit", ("OK 1"));
|
DBUG_PRINT("exit", ("OK 1"));
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue