-
Committer:
Miguel Araujo
-
Date:
2014-06-30 10:50:19 UTC
-
Revision ID:
miguel.araujo@oracle.com-20140630105019-cnygdkux99oj4hpi
- ignore the trailing '\0' on auth-plugin-data if the challenge is 21 bytes long (fixes #71165):
* we assume that auth-plugin-data is always 20 bytes
* if we're behing a 5.5.7 or up server that supports authentication plugins the challenge can be 21 bytes long
* see: http://dev.mysql.com/doc/internals/en/connection-phase-packets.html#packet-Protocol::HandshakeResponse41
- added unit-test: test_mysqld_handshake_plugin_auth_20bytes() to check a 20 bytes long handshake using an authentication plugin
- added missing unit-test: test_mysqld_check_password() to test network_mysqld_proto_password_check()