/external/wpa_supplicant_8/src/rsn_supp/ |
D | tdls.c | 86 static void wpa_tdls_peer_free(struct wpa_sm *sm, struct wpa_tdls_peer *peer); 88 struct wpa_tdls_peer *peer); 178 static int wpa_tdls_del_key(struct wpa_sm *sm, struct wpa_tdls_peer *peer) in wpa_tdls_del_key() argument 180 if (wpa_sm_set_key(sm, WPA_ALG_NONE, peer->addr, in wpa_tdls_del_key() 191 static int wpa_tdls_set_key(struct wpa_sm *sm, struct wpa_tdls_peer *peer) in wpa_tdls_set_key() argument 197 if (peer->tk_set) { in wpa_tdls_set_key() 207 MAC2STR(peer->addr)); in wpa_tdls_set_key() 213 switch (peer->cipher) { in wpa_tdls_set_key() 229 MAC2STR(peer->addr)); in wpa_tdls_set_key() 230 if (wpa_sm_set_key(sm, alg, peer->addr, 0, 1, rsc, sizeof(rsc), in wpa_tdls_set_key() [all …]
|
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/framed/ |
D | Spdy3ConnectionTest.java | 63 try (MockSpdyPeer peer = new MockSpdyPeer()) { in clientCreatesStreamAndServerReplies() argument 65 peer.acceptFrame(); // SYN_STREAM in clientCreatesStreamAndServerReplies() 66 peer.sendFrame() in clientCreatesStreamAndServerReplies() 68 peer.sendFrame().data(true, 1, new Buffer().writeUtf8("robot"), 5); in clientCreatesStreamAndServerReplies() 69 peer.acceptFrame(); // DATA in clientCreatesStreamAndServerReplies() 70 peer.play(); in clientCreatesStreamAndServerReplies() 73 FramedConnection connection = connection(peer, SPDY3); in clientCreatesStreamAndServerReplies() 83 MockSpdyPeer.InFrame synStream = peer.takeFrame(); in clientCreatesStreamAndServerReplies() 91 MockSpdyPeer.InFrame requestData = peer.takeFrame(); in clientCreatesStreamAndServerReplies() 97 try (MockSpdyPeer peer = new MockSpdyPeer()) { in headersOnlyStreamIsClosedAfterReplyHeaders() argument [all …]
|
D | Http2ConnectionTest.java | 54 try (MockSpdyPeer peer = new MockSpdyPeer()) { in serverPingsClientHttp2() argument 55 peer.setVariantAndClient(HTTP_2, false); in serverPingsClientHttp2() 58 peer.sendFrame().ping(false, 2, 3); in serverPingsClientHttp2() 59 peer.acceptFrame(); // PING in serverPingsClientHttp2() 60 peer.play(); in serverPingsClientHttp2() 63 connection(peer, HTTP_2); in serverPingsClientHttp2() 66 MockSpdyPeer.InFrame ping = peer.takeFrame(); in serverPingsClientHttp2() 76 try (MockSpdyPeer peer = new MockSpdyPeer()) { in clientPingsServerHttp2() argument 77 peer.setVariantAndClient(HTTP_2, false); in clientPingsServerHttp2() 80 peer.acceptFrame(); // PING in clientPingsServerHttp2() [all …]
|
/external/wpa_supplicant_8/wpa_supplicant/ |
D | ibss_rsn.c | 30 struct ibss_rsn_peer *peer; in ibss_rsn_get_peer() local 32 for (peer = ibss_rsn->peers; peer; peer = peer->next) in ibss_rsn_get_peer() 33 if (os_memcmp(addr, peer->addr, ETH_ALEN) == 0) in ibss_rsn_get_peer() 35 return peer; in ibss_rsn_get_peer() 39 static void ibss_rsn_free(struct ibss_rsn_peer *peer) in ibss_rsn_free() argument 41 eloop_cancel_timeout(ibss_rsn_auth_timeout, peer, NULL); in ibss_rsn_free() 42 wpa_auth_sta_deinit(peer->auth); in ibss_rsn_free() 43 wpa_sm_deinit(peer->supp); in ibss_rsn_free() 44 os_free(peer); in ibss_rsn_free() 50 struct ibss_rsn_peer *peer = ctx; in supp_set_state() local [all …]
|
/external/libwebsockets/lib/misc/ |
D | peer-limits.c | 31 struct lws_peer *peer) in __lws_peer_remove_from_peer_wait_list() argument 36 if (*p == peer) { in __lws_peer_remove_from_peer_wait_list() 50 struct lws_peer *peer) in __lws_peer_add_to_peer_wait_list() argument 52 __lws_peer_remove_from_peer_wait_list(context, peer); in __lws_peer_add_to_peer_wait_list() 54 peer->peer_wait_list = context->peer_wait_list; in __lws_peer_add_to_peer_wait_list() 55 context->peer_wait_list = peer; in __lws_peer_add_to_peer_wait_list() 66 struct lws_peer *peer; in lws_get_or_create_peer() local 118 peer = lws_zalloc(sizeof(*peer), "peer"); in lws_get_or_create_peer() 119 if (!peer) { in lws_get_or_create_peer() 126 peer->next = context->pl_hash_table[hash]; in lws_get_or_create_peer() [all …]
|
/external/rust/crates/grpcio-sys/grpc/test/core/security/ |
D | alts_security_connector_test.cc | 42 tsi_peer peer; in test_empty_certificate_type_failure() local 43 GPR_ASSERT(tsi_construct_peer(0, &peer) == TSI_OK); in test_empty_certificate_type_failure() 45 grpc_alts_auth_context_from_tsi_peer(&peer); in test_empty_certificate_type_failure() 47 tsi_peer_destruct(&peer); in test_empty_certificate_type_failure() 51 tsi_peer peer; in test_empty_peer_property_failure() local 52 GPR_ASSERT(tsi_construct_peer(1, &peer) == TSI_OK); in test_empty_peer_property_failure() 55 &peer.properties[0]) == TSI_OK); in test_empty_peer_property_failure() 57 grpc_alts_auth_context_from_tsi_peer(&peer); in test_empty_peer_property_failure() 59 tsi_peer_destruct(&peer); in test_empty_peer_property_failure() 63 tsi_peer peer; in test_missing_rpc_protocol_versions_property_failure() local [all …]
|
D | security_connector_test.cc | 56 static int check_peer_property(const tsi_peer* peer, in check_peer_property() argument 59 for (i = 0; i < peer->property_count; i++) { in check_peer_property() 60 const tsi_peer_property* prop = &peer->properties[i]; in check_peer_property() 109 tsi_peer peer; in test_unauthenticated_ssl_peer() local 111 GPR_ASSERT(tsi_construct_peer(2, &peer) == TSI_OK); in test_unauthenticated_ssl_peer() 114 &peer.properties[0]) == TSI_OK); in test_unauthenticated_ssl_peer() 118 &peer.properties[1]) == TSI_OK); in test_unauthenticated_ssl_peer() 120 grpc_ssl_peer_to_auth_context(&peer, GRPC_SSL_TRANSPORT_SECURITY_TYPE); in test_unauthenticated_ssl_peer() 126 GPR_ASSERT(check_ssl_peer_equivalence(&peer, &rpeer)); in test_unauthenticated_ssl_peer() 129 tsi_peer_destruct(&peer); in test_unauthenticated_ssl_peer() [all …]
|
/external/grpc-grpc/test/core/security/ |
D | alts_security_connector_test.cc | 36 tsi_peer peer; in test_invalid_input_failure() local 40 GPR_ASSERT(grpc_alts_auth_context_from_tsi_peer(&peer, nullptr) == in test_invalid_input_failure() 45 tsi_peer peer; in test_empty_certificate_type_failure() local 47 GPR_ASSERT(tsi_construct_peer(0, &peer) == TSI_OK); in test_empty_certificate_type_failure() 48 GPR_ASSERT(grpc_alts_auth_context_from_tsi_peer(&peer, &ctx) == in test_empty_certificate_type_failure() 51 tsi_peer_destruct(&peer); in test_empty_certificate_type_failure() 55 tsi_peer peer; in test_empty_peer_property_failure() local 57 GPR_ASSERT(tsi_construct_peer(1, &peer) == TSI_OK); in test_empty_peer_property_failure() 60 &peer.properties[0]) == TSI_OK); in test_empty_peer_property_failure() 61 GPR_ASSERT(grpc_alts_auth_context_from_tsi_peer(&peer, &ctx) == in test_empty_peer_property_failure() [all …]
|
D | security_connector_test.cc | 51 static int check_peer_property(const tsi_peer* peer, in check_peer_property() argument 54 for (i = 0; i < peer->property_count; i++) { in check_peer_property() 55 const tsi_peer_property* prop = &peer->properties[i]; in check_peer_property() 83 tsi_peer peer; in test_unauthenticated_ssl_peer() local 86 GPR_ASSERT(tsi_construct_peer(1, &peer) == TSI_OK); in test_unauthenticated_ssl_peer() 89 &peer.properties[0]) == TSI_OK); in test_unauthenticated_ssl_peer() 90 ctx = grpc_ssl_peer_to_auth_context(&peer); in test_unauthenticated_ssl_peer() 96 GPR_ASSERT(check_ssl_peer_equivalence(&peer, &rpeer)); in test_unauthenticated_ssl_peer() 99 tsi_peer_destruct(&peer); in test_unauthenticated_ssl_peer() 175 tsi_peer peer; in test_cn_only_ssl_peer_to_auth_context() local [all …]
|
/external/libnl/lib/route/link/ |
D | veth.c | 46 struct rtnl_link *peer = link->l_info; in veth_parse() local 61 peer->l_family = ifi->ifi_family; in veth_parse() 62 peer->l_arptype = ifi->ifi_type; in veth_parse() 63 peer->l_index = ifi->ifi_index; in veth_parse() 64 peer->l_flags = ifi->ifi_flags; in veth_parse() 65 peer->l_change = ifi->ifi_change; in veth_parse() 73 err = rtnl_link_info_parse(peer, peer_tb); in veth_parse() 90 struct rtnl_link *peer = link->l_info; in veth_dump_details() local 92 name = rtnl_link_get_name(peer); in veth_dump_details() 97 nl_dump_line(p, "%u\n", peer->l_index); in veth_dump_details() [all …]
|
/external/autotest/server/cros/bluetooth/ |
D | bluetooth_peer_update.py | 39 def run_cmd(peer, cmd): argument 43 result = peer.host.run(cmd) 56 def is_update_needed(peer, latest_commit): argument 63 return not is_commit_hash_equal(peer, latest_commit) 66 def is_commit_hash_equal(peer, latest_commit): argument 69 commit = peer.get_bt_commit_hash() 75 logging.debug('commit %s found on peer %s', commit, peer.host) 79 def perform_update(peer, latest_commit): argument 89 peer.host.send_file(bundle_path, '/tmp/') 107 status, _ = run_cmd(peer, cmd) [all …]
|
/external/grpc-grpc/test/core/util/ |
D | reconnect_server.cc | 63 char* peer; in on_connect() local 68 peer = grpc_endpoint_get_peer(tcp); in on_connect() 72 if (peer) { in on_connect() 73 last_colon = strrchr(peer, ':'); in on_connect() 74 if (server->peer == nullptr) { in on_connect() 75 server->peer = peer; in on_connect() 79 } else if (strncmp(server->peer, peer, in on_connect() 80 static_cast<size_t>(last_colon - peer)) != 0) { in on_connect() 81 gpr_log(GPR_ERROR, "mismatched peer! %s vs %s", server->peer, peer); in on_connect() 83 gpr_free(peer); in on_connect() [all …]
|
/external/rust/crates/grpcio-sys/grpc/src/core/lib/security/security_connector/local/ |
D | local_security_connector.cc | 50 const tsi_peer* peer) { in local_auth_context_create() argument 59 GPR_ASSERT(peer->property_count == 1); in local_auth_context_create() 60 const tsi_peer_property* prop = &peer->properties[0]; in local_auth_context_create() 69 void local_check_peer(tsi_peer peer, grpc_endpoint* ep, in local_check_peer() argument 114 size_t new_property_count = peer.property_count + 1; in local_check_peer() 117 for (size_t i = 0; i < peer.property_count; i++) { in local_check_peer() 118 new_properties[i] = peer.properties[i]; in local_check_peer() 120 if (peer.properties != nullptr) gpr_free(peer.properties); in local_check_peer() 121 peer.properties = new_properties; in local_check_peer() 127 &peer.properties[peer.property_count]); in local_check_peer() [all …]
|
/external/grpc-grpc/test/core/tsi/ |
D | ssl_transport_security_test.cc | 176 const tsi_peer* peer) { in check_alpn() argument 181 tsi_peer_get_property_by_name(peer, TSI_SSL_ALPN_SELECTED_PROTOCOL); in check_alpn() 193 check_basic_authenticated_peer_and_get_common_name(const tsi_peer* peer) { in check_basic_authenticated_peer_and_get_common_name() argument 195 tsi_peer_get_property_by_name(peer, TSI_CERTIFICATE_TYPE_PEER_PROPERTY); in check_basic_authenticated_peer_and_get_common_name() 200 peer, TSI_X509_SUBJECT_COMMON_NAME_PEER_PROPERTY); in check_basic_authenticated_peer_and_get_common_name() 206 tsi_peer* peer) { in check_session_reusage() argument 208 tsi_peer_get_property_by_name(peer, TSI_SSL_SESSION_REUSED_PEER_PROPERTY); in check_session_reusage() 219 void check_server0_peer(tsi_peer* peer) { in check_server0_peer() argument 221 check_basic_authenticated_peer_and_get_common_name(peer); in check_server0_peer() 226 peer, TSI_X509_SUBJECT_ALTERNATIVE_NAME_PEER_PROPERTY) == in check_server0_peer() [all …]
|
/external/rust/crates/grpcio-sys/grpc/src/core/lib/security/security_connector/ |
D | ssl_utils.cc | 153 grpc_error* grpc_ssl_check_alpn(const tsi_peer* peer) { in grpc_ssl_check_alpn() argument 157 tsi_peer_get_property_by_name(peer, TSI_SSL_ALPN_SELECTED_PROTOCOL); in grpc_ssl_check_alpn() 171 const tsi_peer* peer) { 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() 187 tsi_peer peer = grpc_shallow_peer_from_ssl_auth_context(auth_context); in grpc_ssl_check_call_host() local 188 if (grpc_ssl_host_matches_name(&peer, host)) status = GRPC_SECURITY_OK; in grpc_ssl_check_call_host() 199 grpc_shallow_peer_destruct(&peer); in grpc_ssl_check_call_host() 214 int grpc_ssl_host_matches_name(const tsi_peer* peer, in grpc_ssl_host_matches_name() argument 226 return tsi_ssl_peer_matches_name(peer, allocated_name); in grpc_ssl_host_matches_name() 260 const tsi_peer* peer, const char* transport_security_type) { in grpc_ssl_peer_to_auth_context() argument [all …]
|
/external/grpc-grpc/test/core/end2end/tests/ |
D | retry_too_many_attempts.cc | 121 char* peer; in test_retry_too_many_attempts() local 153 peer = grpc_call_get_peer(c); in test_retry_too_many_attempts() 154 GPR_ASSERT(peer != nullptr); in test_retry_too_many_attempts() 155 gpr_log(GPR_DEBUG, "client_peer_before_call=%s", peer); in test_retry_too_many_attempts() 156 gpr_free(peer); in test_retry_too_many_attempts() 195 peer = grpc_call_get_peer(s); in test_retry_too_many_attempts() 196 GPR_ASSERT(peer != nullptr); in test_retry_too_many_attempts() 197 gpr_log(GPR_DEBUG, "server_peer=%s", peer); in test_retry_too_many_attempts() 198 gpr_free(peer); in test_retry_too_many_attempts() 199 peer = grpc_call_get_peer(c); in test_retry_too_many_attempts() [all …]
|
D | retry_server_pushback_disabled.cc | 122 char* peer; in test_retry_server_pushback_disabled() local 159 peer = grpc_call_get_peer(c); in test_retry_server_pushback_disabled() 160 GPR_ASSERT(peer != nullptr); in test_retry_server_pushback_disabled() 161 gpr_log(GPR_DEBUG, "client_peer_before_call=%s", peer); in test_retry_server_pushback_disabled() 162 gpr_free(peer); in test_retry_server_pushback_disabled() 201 peer = grpc_call_get_peer(s); in test_retry_server_pushback_disabled() 202 GPR_ASSERT(peer != nullptr); in test_retry_server_pushback_disabled() 203 gpr_log(GPR_DEBUG, "server_peer=%s", peer); in test_retry_server_pushback_disabled() 204 gpr_free(peer); in test_retry_server_pushback_disabled() 205 peer = grpc_call_get_peer(c); in test_retry_server_pushback_disabled() [all …]
|
D | retry_server_pushback_delay.cc | 121 char* peer; in test_retry_server_pushback_delay() local 158 peer = grpc_call_get_peer(c); in test_retry_server_pushback_delay() 159 GPR_ASSERT(peer != nullptr); in test_retry_server_pushback_delay() 160 gpr_log(GPR_DEBUG, "client_peer_before_call=%s", peer); in test_retry_server_pushback_delay() 161 gpr_free(peer); in test_retry_server_pushback_delay() 200 peer = grpc_call_get_peer(s); in test_retry_server_pushback_delay() 201 GPR_ASSERT(peer != nullptr); in test_retry_server_pushback_delay() 202 gpr_log(GPR_DEBUG, "server_peer=%s", peer); in test_retry_server_pushback_delay() 203 gpr_free(peer); in test_retry_server_pushback_delay() 204 peer = grpc_call_get_peer(c); in test_retry_server_pushback_delay() [all …]
|
D | retry.cc | 121 char* peer; in test_retry() local 153 peer = grpc_call_get_peer(c); in test_retry() 154 GPR_ASSERT(peer != nullptr); in test_retry() 155 gpr_log(GPR_DEBUG, "client_peer_before_call=%s", peer); in test_retry() 156 gpr_free(peer); in test_retry() 202 peer = grpc_call_get_peer(s); in test_retry() 203 GPR_ASSERT(peer != nullptr); in test_retry() 204 gpr_log(GPR_DEBUG, "server_peer=%s", peer); in test_retry() 205 gpr_free(peer); in test_retry() 206 peer = grpc_call_get_peer(c); in test_retry() [all …]
|
D | retry_streaming_succeeds_before_replay_finished.cc | 128 char* peer; in test_retry_streaming_succeeds_before_replay_finished() local 160 peer = grpc_call_get_peer(c); in test_retry_streaming_succeeds_before_replay_finished() 161 GPR_ASSERT(peer != nullptr); in test_retry_streaming_succeeds_before_replay_finished() 162 gpr_log(GPR_DEBUG, "client_peer_before_call=%s", peer); in test_retry_streaming_succeeds_before_replay_finished() 163 gpr_free(peer); in test_retry_streaming_succeeds_before_replay_finished() 211 peer = grpc_call_get_peer(s); in test_retry_streaming_succeeds_before_replay_finished() 212 GPR_ASSERT(peer != nullptr); in test_retry_streaming_succeeds_before_replay_finished() 213 gpr_log(GPR_DEBUG, "server_peer=%s", peer); in test_retry_streaming_succeeds_before_replay_finished() 214 gpr_free(peer); in test_retry_streaming_succeeds_before_replay_finished() 215 peer = grpc_call_get_peer(c); in test_retry_streaming_succeeds_before_replay_finished() [all …]
|
D | default_host.cc | 104 char* peer; in test_invoke_simple_request() local 112 peer = grpc_call_get_peer(c); in test_invoke_simple_request() 113 GPR_ASSERT(peer != nullptr); in test_invoke_simple_request() 114 gpr_log(GPR_DEBUG, "client_peer_before_call=%s", peer); in test_invoke_simple_request() 115 gpr_free(peer); in test_invoke_simple_request() 156 peer = grpc_call_get_peer(s); in test_invoke_simple_request() 157 GPR_ASSERT(peer != nullptr); in test_invoke_simple_request() 158 gpr_log(GPR_DEBUG, "server_peer=%s", peer); in test_invoke_simple_request() 159 gpr_free(peer); in test_invoke_simple_request() 160 peer = grpc_call_get_peer(c); in test_invoke_simple_request() [all …]
|
/external/wpa_supplicant_8/src/pae/ |
D | ieee802_1x_kay.c | 193 mi = body->peer + i; in ieee802_1x_mka_dump_peer_body() 321 struct ieee802_1x_kay_peer *peer; in get_peer_mi() local 323 dl_list_for_each(peer, peers, struct ieee802_1x_kay_peer, list) { in get_peer_mi() 324 if (os_memcmp(peer->mi, mi, MI_LEN) == 0) in get_peer_mi() 325 return peer; in get_peer_mi() 383 struct ieee802_1x_kay_peer *peer; in ieee802_1x_kay_get_peer() local 385 peer = ieee802_1x_kay_get_live_peer(participant, mi); in ieee802_1x_kay_get_peer() 386 if (peer) in ieee802_1x_kay_get_peer() 387 return peer; in ieee802_1x_kay_get_peer() 443 struct ieee802_1x_kay_peer *peer; in ieee802_1x_kay_get_peer_sci() local [all …]
|
/external/grpc-grpc/src/core/lib/security/security_connector/ |
D | security_connector.cc | 104 const tsi_peer_property* tsi_peer_get_property_by_name(const tsi_peer* peer, in tsi_peer_get_property_by_name() argument 107 if (peer == nullptr) return nullptr; in tsi_peer_get_property_by_name() 108 for (i = 0; i < peer->property_count; i++) { in tsi_peer_get_property_by_name() 109 const tsi_peer_property* property = &peer->properties[i]; in tsi_peer_get_property_by_name() 138 tsi_peer peer, in grpc_security_connector_check_peer() argument 145 tsi_peer_destruct(&peer); in grpc_security_connector_check_peer() 147 sc->vtable->check_peer(sc, peer, auth_context, on_peer_checked); in grpc_security_connector_check_peer() 398 static void fake_check_peer(grpc_security_connector* sc, tsi_peer peer, argument 404 if (peer.property_count != 1) { 409 prop_name = peer.properties[0].name; [all …]
|
/external/webrtc/test/pc/e2e/media/ |
D | media_helper.cc | 35 void MediaHelper::MaybeAddAudio(TestPeer* peer) { in MaybeAddAudio() argument 36 if (!peer->params()->audio_config) { in MaybeAddAudio() 39 const AudioConfig& audio_config = peer->params()->audio_config.value(); in MaybeAddAudio() 41 peer->pc_factory()->CreateAudioSource(audio_config.audio_options); in MaybeAddAudio() 43 peer->pc_factory()->CreateAudioTrack(*audio_config.stream_label, source); in MaybeAddAudio() 47 peer->AddTrack(track, {sync_group, *audio_config.stream_label}); in MaybeAddAudio() 51 MediaHelper::MaybeAddVideo(TestPeer* peer) { in MaybeAddVideo() argument 53 Params* params = peer->params(); in MaybeAddVideo() 59 video_config, peer->ReleaseVideoSource(i), in MaybeAddVideo() 73 peer->pc_factory()->CreateVideoTrack(video_config.stream_label.value(), in MaybeAddVideo() [all …]
|
/external/rust/crates/grpcio-sys/grpc/src/core/lib/security/security_connector/alts/ |
D | alts_security_connector.cc | 51 void alts_check_peer(tsi_peer peer, in alts_check_peer() argument 55 grpc_core::internal::grpc_alts_auth_context_from_tsi_peer(&peer); in alts_check_peer() 56 tsi_peer_destruct(&peer); in alts_check_peer() 100 void check_peer(tsi_peer peer, grpc_endpoint* /*ep*/, in check_peer() argument 103 alts_check_peer(peer, auth_context, on_peer_checked); in check_peer() 165 void check_peer(tsi_peer peer, grpc_endpoint* /*ep*/, in check_peer() argument 168 alts_check_peer(peer, auth_context, on_peer_checked); in check_peer() 181 grpc_alts_auth_context_from_tsi_peer(const tsi_peer* peer) { in grpc_alts_auth_context_from_tsi_peer() argument 182 if (peer == nullptr) { in grpc_alts_auth_context_from_tsi_peer() 189 tsi_peer_get_property_by_name(peer, TSI_CERTIFICATE_TYPE_PEER_PROPERTY); in grpc_alts_auth_context_from_tsi_peer() [all …]
|