diff --git a/include/mariadb_com.h b/include/mariadb_com.h index bb4d5627a..9841ad3f6 100644 --- a/include/mariadb_com.h +++ b/include/mariadb_com.h @@ -174,7 +174,7 @@ enum enum_server_command * after the TLS handshake. * */ -#define CLIENT_CAN_SSL_V2 (1ULL << 37) +#define CLIENT_CAN_SSL_V2 (1ULL << 28) #define CLIENT_PROGRESS (1UL << 29) /* client supports progress indicator */ #define CLIENT_PROGRESS_OBSOLETE CLIENT_PROGRESS #define CLIENT_SSL_VERIFY_SERVER_CERT (1UL << 30) diff --git a/plugins/auth/my_auth.c b/plugins/auth/my_auth.c index 84255be0b..3497248a8 100644 --- a/plugins/auth/my_auth.c +++ b/plugins/auth/my_auth.c @@ -211,7 +211,7 @@ static int send_client_reply_packet(MCPVIO_EXT *mpvio, #if defined(HAVE_TLS) && !defined(EMBEDDED_LIBRARY) bool server_supports_ssl_v2= - !!(mysql->extension->mariadb_server_capabilities & (MARIADB_CLIENT_CAN_SSL_V2 >> 32)); + !!(mysql->server_capabilities & CLIENT_CAN_SSL_V2); #endif /* see end= buff+32 below, fixed size of the packet is 32 bytes */