Home
last modified time | relevance | path

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

/third_party/grpc/src/core/lib/iomgr/
Dtcp_server_custom.cc219 grpc_resolved_address peer_name; in finish_accept() local
223 memset(&peer_name, 0, sizeof(grpc_resolved_address)); in finish_accept()
224 peer_name.len = GRPC_MAX_SOCKADDR_SIZE; in finish_accept()
226 socket, reinterpret_cast<grpc_sockaddr*>(&peer_name.addr), in finish_accept()
227 reinterpret_cast<int*>(&peer_name.len)); in finish_accept()
229 peer_name_string = grpc_sockaddr_to_uri(&peer_name); in finish_accept()
Dtcp_server_windows.cc307 grpc_resolved_address peer_name; in on_accept() local
315 peer_name.len = sizeof(struct sockaddr_storage); in on_accept()
349 int peer_name_len = (int)peer_name.len; in on_accept()
350 err = getpeername(sock, (grpc_sockaddr*)peer_name.addr, &peer_name_len); in on_accept()
351 peer_name.len = (size_t)peer_name_len; in on_accept()
354 peer_name_string = grpc_sockaddr_to_uri(&peer_name); in on_accept()
/third_party/grpc/src/core/lib/security/security_connector/
Dssl_utils.cc170 grpc_error* grpc_ssl_check_peer_name(absl::string_view peer_name, in grpc_ssl_check_peer_name() argument
173 if (!peer_name.empty() && !grpc_ssl_host_matches_name(peer, peer_name)) { in grpc_ssl_check_peer_name()
175 absl::StrCat("Peer name ", peer_name, " is not in peer certificate") in grpc_ssl_check_peer_name()
215 absl::string_view peer_name) { in grpc_ssl_host_matches_name() argument
218 grpc_core::SplitHostPort(peer_name, &allocated_name, &ignored_port); in grpc_ssl_host_matches_name()
Dssl_utils.h50 grpc_error* grpc_ssl_check_peer_name(absl::string_view peer_name,
110 absl::string_view peer_name);
/third_party/libnl/lib/route/link/
Dveth.c276 const char *peer_name, pid_t pid) in rtnl_link_veth_add() argument
287 if (peer_name) in rtnl_link_veth_add()
288 rtnl_link_set_name(peer, peer_name); in rtnl_link_veth_add()
/third_party/grpc/src/core/lib/security/security_connector/ssl/
Dssl_security_connector.cc49 const char* peer_name, const tsi_peer* peer, in ssl_check_peer() argument
56 if (peer_name != nullptr && !grpc_ssl_host_matches_name(peer, peer_name)) { in ssl_check_peer()
58 absl::StrCat("Peer name ", peer_name, " is not in peer certificate") in ssl_check_peer()
/third_party/grpc/test/core/end2end/tests/
Dsimple_request.cc91 static void check_peer(char* peer_name) { in check_peer() argument
93 if (strncmp(peer_name, "unix:/", strlen("unix:/")) == 0) { in check_peer()
94 GPR_ASSERT(strncmp(peer_name, "unix:/tmp/grpc_fullstack_test.", in check_peer()
/third_party/grpc/src/core/lib/security/security_connector/tls/
Dtls_security_connector.cc669 grpc_error* TlsCheckHostName(const char* peer_name, const tsi_peer* peer) { in TlsCheckHostName() argument
671 if (peer_name != nullptr && !grpc_ssl_host_matches_name(peer, peer_name)) { in TlsCheckHostName()
673 absl::StrCat("Peer name ", peer_name, " is not in peer certificate") in TlsCheckHostName()
Dtls_security_connector.h221 grpc_error* TlsCheckHostName(const char* peer_name, const tsi_peer* peer);