Lines Matching refs:auth_packet

279 		MYSQLND_PACKET_AUTH auth_packet;  in mysqlnd_auth_handshake()  local
281 conn->payload_decoder_factory->m.init_auth_packet(&auth_packet); in mysqlnd_auth_handshake()
283 auth_packet.client_flags = mysql_flags; in mysqlnd_auth_handshake()
284 auth_packet.max_packet_size = session_options->max_allowed_packet; in mysqlnd_auth_handshake()
286 auth_packet.charset_no = charset->nr; in mysqlnd_auth_handshake()
288 auth_packet.charset_no = server_charset_no; in mysqlnd_auth_handshake()
291 auth_packet.send_auth_data = TRUE; in mysqlnd_auth_handshake()
292 auth_packet.user = user; in mysqlnd_auth_handshake()
293 auth_packet.db = db; in mysqlnd_auth_handshake()
294 auth_packet.db_len = db_len; in mysqlnd_auth_handshake()
296 auth_packet.auth_data = auth_plugin_data; in mysqlnd_auth_handshake()
297 auth_packet.auth_data_len = auth_plugin_data_len; in mysqlnd_auth_handshake()
298 auth_packet.auth_plugin_name = auth_protocol; in mysqlnd_auth_handshake()
301 auth_packet.connect_attr = conn->options->connect_attr; in mysqlnd_auth_handshake()
304 if (!PACKET_WRITE(conn, &auth_packet)) { in mysqlnd_auth_handshake()
305 PACKET_FREE(&auth_packet); in mysqlnd_auth_handshake()
310 conn->charset = mysqlnd_find_charset_nr(auth_packet.charset_no); in mysqlnd_auth_handshake()
313 PACKET_FREE(&auth_packet); in mysqlnd_auth_handshake()
410 MYSQLND_PACKET_AUTH auth_packet; in mysqlnd_auth_change_user() local
412 conn->payload_decoder_factory->m.init_auth_packet(&auth_packet); in mysqlnd_auth_change_user()
414 auth_packet.is_change_user_packet = TRUE; in mysqlnd_auth_change_user()
415 auth_packet.user = user; in mysqlnd_auth_change_user()
416 auth_packet.db = db; in mysqlnd_auth_change_user()
417 auth_packet.db_len = db_len; in mysqlnd_auth_change_user()
418 auth_packet.silent = silent; in mysqlnd_auth_change_user()
420 auth_packet.auth_data = auth_plugin_data; in mysqlnd_auth_change_user()
421 auth_packet.auth_data_len = auth_plugin_data_len; in mysqlnd_auth_change_user()
422 auth_packet.auth_plugin_name = auth_protocol; in mysqlnd_auth_change_user()
425 auth_packet.connect_attr = conn->options->connect_attr; in mysqlnd_auth_change_user()
429 auth_packet.charset_no = conn->charset->nr; in mysqlnd_auth_change_user()
432 if (!PACKET_WRITE(conn, &auth_packet)) { in mysqlnd_auth_change_user()
435 PACKET_FREE(&auth_packet); in mysqlnd_auth_change_user()
439 PACKET_FREE(&auth_packet); in mysqlnd_auth_change_user()