Home
last modified time | relevance | path

Searched refs:null_terminated_body (Results 1 – 1 of 1) sorted by relevance

/external/grpc-grpc/src/core/lib/security/credentials/oauth2/
Doauth2_credentials.cc121 char* null_terminated_body = nullptr; in grpc_oauth2_token_fetcher_credentials_parse_server_response() local
133 null_terminated_body = in grpc_oauth2_token_fetcher_credentials_parse_server_response()
135 null_terminated_body[response->body_length] = '\0'; in grpc_oauth2_token_fetcher_credentials_parse_server_response()
136 memcpy(null_terminated_body, response->body, response->body_length); in grpc_oauth2_token_fetcher_credentials_parse_server_response()
142 null_terminated_body != nullptr ? null_terminated_body : ""); in grpc_oauth2_token_fetcher_credentials_parse_server_response()
150 json = grpc_json_parse_string(null_terminated_body); in grpc_oauth2_token_fetcher_credentials_parse_server_response()
152 gpr_log(GPR_ERROR, "Could not parse JSON from %s", null_terminated_body); in grpc_oauth2_token_fetcher_credentials_parse_server_response()
200 if (null_terminated_body != nullptr) gpr_free(null_terminated_body); in grpc_oauth2_token_fetcher_credentials_parse_server_response()