17 #include <my_global.h>
29 #define ORDINARY_QUESTION "\2"
30 #define LAST_QUESTION "\3"
31 #define LAST_PASSWORD "\4"
32 #define PASSWORD_QUESTION "\5"
58 unsigned char *pkt, cmd= 0;
87 if (cmd == 0 || cmd == 254)
94 if ((cmd == LAST_PASSWORD[0] || cmd == PASSWORD_QUESTION[0]) && *pkt == 0)
102 res= vio->
write_packet(vio, (
const unsigned char *) reply,
109 }
while (cmd != LAST_QUESTION[0] && cmd != PASSWORD_QUESTION[0]);
116 mysql_declare_client_plugin(AUTHENTICATION)
119 "Dialog Client Authentication Plugin",
127 mysql_end_client_plugin;