MySQL Lists are EOL. Please join:

List:Commits« Previous MessageNext Message »
From:mmatthews Date:August 1 2006 8:28pm
Subject:Connector/J commit: r5590 - branches/branch_5_1/connector-j/src/com/mysql/jdbc
View as plain text  
Modified:
   branches/branch_5_1/connector-j/src/com/mysql/jdbc/MysqlIO.java
Log:
Added comment about where 0x14 comes for in secureAuth411().

Modified: branches/branch_5_1/connector-j/src/com/mysql/jdbc/MysqlIO.java
===================================================================
--- branches/branch_5_1/connector-j/src/com/mysql/jdbc/MysqlIO.java	2006-08-01 15:17:24 UTC (rev 5589)
+++ branches/branch_5_1/connector-j/src/com/mysql/jdbc/MysqlIO.java	2006-08-01 20:28:37 UTC (rev 5590)
@@ -2569,7 +2569,7 @@
         packet.writeString(user);
 
         if (password.length() != 0) {
-            packet.writeByte((byte) 0x14);
+            packet.writeByte((byte) 0x14); // length of 20, SHA-1 is 160 bits
 
             try {
                 packet.writeBytesNoNull(Security.scramble411(password, this.seed));

Thread
Connector/J commit: r5590 - branches/branch_5_1/connector-j/src/com/mysql/jdbcmmatthews1 Aug