Home
last modified time | relevance | path

Searched refs:user_cred (Results 1 – 3 of 3) 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/rust/crates/grpcio-sys/grpc/src/core/ext/filters/client_channel/
Dhttp_proxy.cc52 char* GetHttpProxyServer(const grpc_channel_args* args, char** user_cred) { in GetHttpProxyServer() argument
53 GPR_ASSERT(user_cred != nullptr); in GetHttpProxyServer()
94 *user_cred = authority_strs[0]; in GetHttpProxyServer()
117 char* user_cred = nullptr; in MapName() local
118 *name_to_resolve = GetHttpProxyServer(args, &user_cred); in MapName()
180 if (user_cred != nullptr) { in MapName()
183 grpc_base64_encode(user_cred, strlen(user_cred), 0, 0); in MapName()
194 gpr_free(user_cred); in MapName()
199 gpr_free(user_cred); in MapName()
/external/perfetto/src/base/
Dunix_socket.cc757 struct ucred user_cred; in ReadPeerCredentialsPosix() local
758 socklen_t len = sizeof(user_cred); in ReadPeerCredentialsPosix()
760 int res = getsockopt(fd, SOL_SOCKET, SO_PEERCRED, &user_cred, &len); in ReadPeerCredentialsPosix()
762 peer_uid_ = user_cred.uid; in ReadPeerCredentialsPosix()
763 peer_pid_ = user_cred.pid; in ReadPeerCredentialsPosix()
765 struct xucred user_cred; in ReadPeerCredentialsPosix() local
766 socklen_t len = sizeof(user_cred); in ReadPeerCredentialsPosix()
767 int res = getsockopt(sock_raw_.fd(), 0, LOCAL_PEERCRED, &user_cred, &len); in ReadPeerCredentialsPosix()
768 PERFETTO_CHECK(res == 0 && user_cred.cr_version == XUCRED_VERSION); in ReadPeerCredentialsPosix()
769 peer_uid_ = static_cast<uid_t>(user_cred.cr_uid); in ReadPeerCredentialsPosix()