Skip to content

use existing function for comparing auth data #704

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 29, 2022

Conversation

skoef
Copy link
Contributor

@skoef skoef commented Jun 24, 2022

Through time, I made a couple of changes to a local branch of go-mysql I'm using. While I was casually going over the diffs between my branch and the upstream master, I noticed that I could optimise something: comparing the client's authentication data during the handshake is abstracted to compareNativePasswordAuthData for mysql_native_password while this is not the case during auth switching. So I think this is duplicate code and can be simplified like this!

@lance6716 lance6716 merged commit be3ff84 into go-mysql-org:master Jun 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants