Class: Mysql::AuthenticationPacket

Inherits:
Object
  • Object
show all
Defined in:
lib/nose/proxy/mysql.rb

Overview

Add parsing of auth packets

Class Method Summary collapse

Class Method Details

.parse(_pkt) ⇒ Object

Parse the incoming authentication packet



239
240
241
242
243
244
245
246
247
248
# File 'lib/nose/proxy/mysql.rb', line 239

def self.parse(_pkt)
  # XXX: Unneeded for now since we don't handle auth
  # client_flags = pkt.ulong
  # max_packet_size = pkt.ulong
  # charset_number = pkt.lcb
  # f1 = pkt.read(23)
  # username = pkt.string
  # scrambled_password = pkt.lcs
  # databasename = pkt.string
end