Skip to content

Commit

Permalink
debug failing mysql 8 thats not failing locally
Browse files Browse the repository at this point in the history
  • Loading branch information
eileencodes committed Mar 13, 2024
1 parent 04d407b commit 96b52a4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/client.c
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,13 @@ int trilogy_auth_recv(trilogy_conn_t *conn, trilogy_handshake_t *handshake)
return read_ok_packet(conn);

case TRILOGY_PACKET_AUTH_MORE_DATA: {
bool use_ssl = (conn->socket->opts.flags & TRILOGY_CAPABILITIES_SSL) != 0;
if (!use_ssl) {
fprintf(stderr, "====== oh no! ssl isn't being used?!\n");
}
else {
fprintf(stderr, "====== well huh it's working fine?\n");
}
uint8_t byte = conn->packet_buffer.buff[1];
switch (byte) {
case FAST_AUTH_OK:
Expand Down

0 comments on commit 96b52a4

Please sign in to comment.