Update Bot
This commit is contained in:
9
node_modules/mysql2/lib/auth_plugins/sha256_password.js
generated
vendored
9
node_modules/mysql2/lib/auth_plugins/sha256_password.js
generated
vendored
@@ -3,7 +3,6 @@
|
||||
const PLUGIN_NAME = 'sha256_password';
|
||||
const crypto = require('crypto');
|
||||
const { xorRotating } = require('../auth_41');
|
||||
const Tls = require('tls');
|
||||
|
||||
const REQUEST_SERVER_KEY_PACKET = Buffer.from([1]);
|
||||
|
||||
@@ -33,14 +32,6 @@ module.exports =
|
||||
return (data) => {
|
||||
switch (state) {
|
||||
case STATE_INITIAL:
|
||||
if (
|
||||
connection.stream instanceof Tls.TLSSocket &&
|
||||
connection.stream.encrypted === true
|
||||
) {
|
||||
// We don't need to encrypt passwords over TLS connection
|
||||
return Buffer.from(`${password}\0`, 'utf8');
|
||||
}
|
||||
|
||||
scramble = data.slice(0, 20);
|
||||
// if client provides key we can save one extra roundrip on first connection
|
||||
if (pluginOptions.serverPublicKey) {
|
||||
|
||||
Reference in New Issue
Block a user