Skip to content
Permalink
Browse files

Merge pull request #120 from yurriy/caching_sha2_password-fix

Compatibility with MySQL server 8.0
  • Loading branch information
9EOR9 committed Oct 8, 2019
2 parents c6403c4 + 538da15 commit 44a598030542e690b55bbe014ca3dd9732e69d37
Showing with 0 additions and 8 deletions.
  1. +0 −8 plugins/auth/caching_sha2_pw.c
@@ -275,14 +275,6 @@ static int auth_caching_sha2_client(MYSQL_PLUGIN_VIO *vio, MYSQL *mysql)
memmove(mysql->scramble_buff, packet, SCRAMBLE_LENGTH);
mysql->scramble_buff[SCRAMBLE_LENGTH]= 0;

/* if a tls session is active we need to send plain password */
if (mysql->client_flag & CLIENT_SSL)
{
if (vio->write_packet(vio, (unsigned char *)mysql->passwd, (int)strlen(mysql->passwd) + 1))
return CR_ERROR;
return CR_OK;
}

/* send empty packet if no password was provided */
if (!mysql->passwd || !mysql->passwd[0])
{

0 comments on commit 44a5980

Please sign in to comment.
You can’t perform that action at this time.