The main client function of the GSSAPI plugin. */
| 80 | The main client function of the GSSAPI plugin. |
| 81 | */ |
| 82 | static int gssapi_auth_client(MYSQL_PLUGIN_VIO *vio, MYSQL *mysql) |
| 83 | { |
| 84 | int packet_len; |
| 85 | unsigned char *packet; |
| 86 | char spn[PRINCIPAL_NAME_MAX + 1]; |
| 87 | char mech[MECH_NAME_MAX + 1]; |
| 88 | |
| 89 | /* read from server for service principal name */ |
| 90 | packet_len= vio->read_packet(vio, &packet); |
| 91 | if (packet_len < 0) |
| 92 | { |
| 93 | return CR_ERROR; |
| 94 | } |
| 95 | parse_server_packet((char *)packet, (size_t)packet_len, spn, mech); |
| 96 | return auth_client(spn, mech, mysql, vio); |
| 97 | } |
| 98 | |
| 99 | |
| 100 | /* register client plugin */ |
nothing calls this directly
no test coverage detected