Lines Matching refs:auth_resp_packet

55 	MYSQLND_PACKET_AUTH_RESPONSE * auth_resp_packet = NULL;  in mysqlnd_auth_handshake()  local
60 auth_resp_packet = conn->protocol->m.get_auth_response_packet(conn->protocol, FALSE TSRMLS_CC); in mysqlnd_auth_handshake()
62 if (!auth_resp_packet) { in mysqlnd_auth_handshake()
114 if (FAIL == PACKET_READ(auth_resp_packet, conn) || auth_resp_packet->response_code >= 0xFE) { in mysqlnd_auth_handshake()
115 if (auth_resp_packet->response_code == 0xFE) { in mysqlnd_auth_handshake()
117 if (!auth_resp_packet->new_auth_protocol) { in mysqlnd_auth_handshake()
121 …*switch_to_auth_protocol = mnd_pestrndup(auth_resp_packet->new_auth_protocol, auth_resp_packet->ne… in mysqlnd_auth_handshake()
122 *switch_to_auth_protocol_len = auth_resp_packet->new_auth_protocol_len; in mysqlnd_auth_handshake()
123 if (auth_resp_packet->new_auth_protocol_data) { in mysqlnd_auth_handshake()
124 *switch_to_auth_protocol_data_len = auth_resp_packet->new_auth_protocol_data_len; in mysqlnd_auth_handshake()
126 …memcpy(*switch_to_auth_protocol_data, auth_resp_packet->new_auth_protocol_data, *switch_to_auth_pr… in mysqlnd_auth_handshake()
132 } else if (auth_resp_packet->response_code == 0xFF) { in mysqlnd_auth_handshake()
133 if (auth_resp_packet->sqlstate[0]) { in mysqlnd_auth_handshake()
134 …strlcpy(conn->error_info->sqlstate, auth_resp_packet->sqlstate, sizeof(conn->error_info->sqlstate)… in mysqlnd_auth_handshake()
135 …BG_ERR_FMT("ERROR:%u [SQLSTATE:%s] %s", auth_resp_packet->error_no, auth_resp_packet->sqlstate, au… in mysqlnd_auth_handshake()
137 …SET_CLIENT_ERROR(*conn->error_info, auth_resp_packet->error_no, UNKNOWN_SQLSTATE, auth_resp_packet in mysqlnd_auth_handshake()
142 …EW_MESSAGE(conn->last_message, conn->last_message_len, auth_resp_packet->message, auth_resp_packet in mysqlnd_auth_handshake()
147 PACKET_FREE(auth_resp_packet); in mysqlnd_auth_handshake()