MCPcopy Create free account
hub / github.com/MariaDB/server / gssapi_auth_client

Function gssapi_auth_client

plugin/auth_gssapi/client_plugin.cc:82–97  ·  view source on GitHub ↗

The main client function of the GSSAPI plugin. */

Source from the content-addressed store, hash-verified

80 The main client function of the GSSAPI plugin.
81 */
82static 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 */

Callers

nothing calls this directly

Calls 3

parse_server_packetFunction · 0.85
read_packetMethod · 0.80
auth_clientFunction · 0.70

Tested by

no test coverage detected