Skip to content

Commit

Permalink
undo some of the commit
Browse files Browse the repository at this point in the history
  • Loading branch information
osheroff committed Apr 19, 2019
1 parent af3a940 commit a8e2720
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ public final class ClientCapabilities {
public static final int MULTI_RESULTS = 1 << 17; /* enable/disable multi-results */
public static final int PS_MULTI_RESULTS = 1 << 18; /* multi-results in ps-protocol */
public static final int PLUGIN_AUTH = 1 << 19; /* client supports plugin authentication */
public static final int PLUGIN_AUTH_LEN_ENC = 1 << 21;
public static final int SSL_VERIFY_SERVER_CERT = 1 << 30;
public static final int REMEMBER_OPTIONS = 1 << 31;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,4 @@ public int getServerCollation() {
return serverCollation;
}

public void setScramble(String s) {
this.scramble = s;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,10 @@ public byte[] toByteArray() throws IOException {
int clientCapabilities = this.clientCapabilities;
if (clientCapabilities == 0) {
clientCapabilities = ClientCapabilities.LONG_FLAG |
ClientCapabilities.PROTOCOL_41 |
ClientCapabilities.SECURE_CONNECTION |
ClientCapabilities.LONG_PASSWORD |
ClientCapabilities.PLUGIN_AUTH;
ClientCapabilities.PROTOCOL_41 | ClientCapabilities.SECURE_CONNECTION;
if (schema != null) {
clientCapabilities |= ClientCapabilities.CONNECT_WITH_DB;
}
clientCapabilities |= ClientCapabilities.PLUGIN_AUTH_LEN_ENC;
}
buffer.writeInteger(clientCapabilities, 4);
buffer.writeInteger(0, 4); // maximum packet length
Expand All @@ -77,7 +73,6 @@ public byte[] toByteArray() throws IOException {
if (schema != null) {
buffer.writeZeroTerminatedString(schema);
}
buffer.writeZeroTerminatedString("mysql_native_password");
return buffer.toByteArray();
}

Expand Down

0 comments on commit a8e2720

Please sign in to comment.