PATH:
usr
/
local
/
lib
/
node_modules
/
ghost-cli
/
node_modules
/
mysql
/
lib
/
protocol
/
packets
module.exports = AuthSwitchRequestPacket; function AuthSwitchRequestPacket(options) { options = options || {}; this.status = 0xfe; this.authMethodName = options.authMethodName; this.authMethodData = options.authMethodData; } AuthSwitchRequestPacket.prototype.parse = function parse(parser) { this.status = parser.parseUnsignedNumber(1); this.authMethodName = parser.parseNullTerminatedString(); this.authMethodData = parser.parsePacketTerminatedBuffer(); }; AuthSwitchRequestPacket.prototype.write = function write(writer) { writer.writeUnsignedNumber(1, this.status); writer.writeNullTerminatedString(this.authMethodName); writer.writeBuffer(this.authMethodData); };
[-] ComQueryPacket.js
[edit]
[-] HandshakeInitializationPacket.js
[edit]
[+]
..
[-] ComChangeUserPacket.js
[edit]
[-] EofPacket.js
[edit]
[-] LocalDataFilePacket.js
[edit]
[-] OldPasswordPacket.js
[edit]
[-] ResultSetHeaderPacket.js
[edit]
[-] SSLRequestPacket.js
[edit]
[-] RowDataPacket.js
[edit]
[-] EmptyPacket.js
[edit]
[-] AuthSwitchResponsePacket.js
[edit]
[-] OkPacket.js
[edit]
[-] ComQuitPacket.js
[edit]
[-] UseOldPasswordPacket.js
[edit]
[-] AuthSwitchRequestPacket.js
[edit]
[-] ComStatisticsPacket.js
[edit]
[-] ErrorPacket.js
[edit]
[-] FieldPacket.js
[edit]
[-] index.js
[edit]
[-] StatisticsPacket.js
[edit]
[-] Field.js
[edit]
[-] ComPingPacket.js
[edit]
[-] ClientAuthenticationPacket.js
[edit]