Lines Matching refs:auth_resp_packet
257 MYSQLND_PACKET_AUTH_RESPONSE auth_resp_packet; in mysqlnd_auth_handshake() local
261 conn->payload_decoder_factory->m.init_auth_response_packet(&auth_resp_packet); in mysqlnd_auth_handshake()
325 if (FAIL == PACKET_READ(conn, &auth_resp_packet) || auth_resp_packet.response_code >= 0xFE) { in mysqlnd_auth_handshake()
326 if (auth_resp_packet.response_code == 0xFE) { in mysqlnd_auth_handshake()
328 if (!auth_resp_packet.new_auth_protocol) { in mysqlnd_auth_handshake()
332 …*switch_to_auth_protocol = mnd_pestrndup(auth_resp_packet.new_auth_protocol, auth_resp_packet.new_… in mysqlnd_auth_handshake()
333 *switch_to_auth_protocol_len = auth_resp_packet.new_auth_protocol_len; in mysqlnd_auth_handshake()
334 if (auth_resp_packet.new_auth_protocol_data) { in mysqlnd_auth_handshake()
335 *switch_to_auth_protocol_data_len = auth_resp_packet.new_auth_protocol_data_len; in mysqlnd_auth_handshake()
337 …memcpy(*switch_to_auth_protocol_data, auth_resp_packet.new_auth_protocol_data, *switch_to_auth_pro… in mysqlnd_auth_handshake()
343 } else if (auth_resp_packet.response_code == 0xFF) { in mysqlnd_auth_handshake()
344 if (auth_resp_packet.sqlstate[0]) { in mysqlnd_auth_handshake()
345 …strlcpy(conn->error_info->sqlstate, auth_resp_packet.sqlstate, sizeof(conn->error_info->sqlstate)); in mysqlnd_auth_handshake()
346 …DBG_ERR_FMT("ERROR:%u [SQLSTATE:%s] %s", auth_resp_packet.error_no, auth_resp_packet.sqlstate, aut… in mysqlnd_auth_handshake()
348 …SET_CLIENT_ERROR(conn->error_info, auth_resp_packet.error_no, UNKNOWN_SQLSTATE, auth_resp_packet.e… in mysqlnd_auth_handshake()
353 mysqlnd_set_string(&conn->last_message, auth_resp_packet.message, auth_resp_packet.message_len); in mysqlnd_auth_handshake()
356 PACKET_FREE(&auth_resp_packet); in mysqlnd_auth_handshake()