Home
last modified time | relevance | path

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

/external/grpc-grpc/src/core/ext/filters/client_channel/
Dhttp_proxy.cc45 static char* get_http_proxy_server(char** user_cred) { in get_http_proxy_server() argument
46 GPR_ASSERT(user_cred != nullptr); in get_http_proxy_server()
73 *user_cred = authority_strs[0]; in get_http_proxy_server()
108 char* user_cred = nullptr; in proxy_mapper_map_name() local
109 *name_to_resolve = get_http_proxy_server(&user_cred); in proxy_mapper_map_name()
170 if (user_cred != nullptr) { in proxy_mapper_map_name()
173 grpc_base64_encode(user_cred, strlen(user_cred), 0, 0); in proxy_mapper_map_name()
185 gpr_free(user_cred); in proxy_mapper_map_name()
191 gpr_free(user_cred); in proxy_mapper_map_name()
/external/perfetto/src/base/
Dunix_socket.cc527 struct ucred user_cred; in ReadPeerCredentials() local
528 socklen_t len = sizeof(user_cred); in ReadPeerCredentials()
530 int res = getsockopt(fd, SOL_SOCKET, SO_PEERCRED, &user_cred, &len); in ReadPeerCredentials()
532 peer_uid_ = user_cred.uid; in ReadPeerCredentials()
533 peer_pid_ = user_cred.pid; in ReadPeerCredentials()
535 struct xucred user_cred; in ReadPeerCredentials()
536 socklen_t len = sizeof(user_cred); in ReadPeerCredentials()
537 int res = getsockopt(sock_raw_.fd(), 0, LOCAL_PEERCRED, &user_cred, &len); in ReadPeerCredentials()
538 PERFETTO_CHECK(res == 0 && user_cred.cr_version == XUCRED_VERSION); in ReadPeerCredentials()
539 peer_uid_ = static_cast<uid_t>(user_cred.cr_uid); in ReadPeerCredentials()