| /webrtc/turn/src/auth/ |
| H A D | mod.rs | 13 fn auth_handle(&self, username: &str, realm: &str, src_addr: SocketAddr) -> Result<Vec<u8>>; in auth_handle() 22 let username = format!("{}", t.as_secs()); in generate_long_term_credentials() localVariable 23 let password = long_term_credentials(&username, shared_secret); in generate_long_term_credentials() 24 Ok((username, password)) in generate_long_term_credentials() 27 fn long_term_credentials(username: &str, shared_secret: &str) -> String { in long_term_credentials() 32 let password = hmac::sign(&mac, username.as_bytes()).as_ref().to_vec(); in long_term_credentials() 37 pub fn generate_auth_key(username: &str, realm: &str, password: &str) -> Vec<u8> { in generate_auth_key() 53 username, in auth_handle() 58 let t = Duration::from_secs(username.parse::<u64>()?); in auth_handle() 65 let password = long_term_credentials(username, &self.shared_secret); in auth_handle() [all …]
|
| H A D | auth_test.rs | 5 let username = "1599491771"; in test_lt_cred() localVariable 9 let actual_password = long_term_credentials(username, shared_secret); in test_lt_cred() 20 let username = "60"; in test_generate_auth_key() localVariable 27 let actual_key = generate_auth_key(username, realm, password); in test_generate_auth_key() 75 let (username, password) = in test_new_long_term_auth_handler() 83 username, in test_new_long_term_auth_handler()
|
| /webrtc/webrtc/src/ice_transport/ |
| H A D | ice_server.rs | 9 pub username: String, field 32 if self.username.is_empty() || self.credential.is_empty() { in urls() 35 url.username = self.username.clone(); in urls() 71 username: "unittest".to_owned(), in test_ice_server_validate_success() 80 username: "unittest".to_owned(), in test_ice_server_validate_success() 116 username: "unittest".to_owned(), in test_ice_server_validate_failure() 125 username: "unittest".to_owned(), in test_ice_server_validate_failure() 134 username: "unittest".to_owned(), in test_ice_server_validate_failure() 156 username: "unittest".to_owned(), in test_ice_server_validate_failure_err_stun_query()
|
| /webrtc/.github/ |
| H A D | FUNDING.yml | 4 patreon: WebRTCrs # Replace with a single Patreon username 5 open_collective: webrtc-rs # Replace with a single Open Collective username 6 ko_fi: # Replace with a single Ko-fi username 9 liberapay: # Replace with a single Liberapay username 10 issuehunt: # Replace with a single IssueHunt username 11 otechie: # Replace with a single Otechie username
|
| /webrtc/turn/src/client/relay_conn/ |
| H A D | relay_conn_test.rs | 8 username: Username, field 18 fn username(&self) -> Username { in username() method 19 self.username.clone() in username() 44 username: Username::new(ATTR_USERNAME, "username".to_owned()), in test_relay_conn()
|
| /webrtc/turn/src/client/ |
| H A D | client_test.rs | 18 username: String::new(), in create_listening_test_client() 39 username: String::new(), in create_listening_test_client_with_stun_serv() 123 fn auth_handle(&self, username: &str, realm: &str, _src_addr: SocketAddr) -> Result<Vec<u8>> { in auth_handle() 124 Ok(generate_auth_key(username, realm, "pass")) in auth_handle() 162 username: "foo".to_owned(), in test_client_nonce_expiration()
|
| H A D | mod.rs | 52 pub username: String, field 65 username: Username, field 84 fn username(&self) -> Username { in username() method 85 self.username.clone() in username() 193 username: Username::new(ATTR_USERNAME, config.username), in new() 514 self.username.text.clone(), in allocate() 526 Box::new(self.username.clone()), in allocate()
|
| H A D | relay_conn.rs | 42 fn username(&self) -> Username; in username() method 403 setters.push(Box::new(obs.username())); in create_permissions() 472 Box::new(obs.username()), in refresh_allocation() 550 Box::new(obs.username()), in bind()
|
| /webrtc/turn/src/allocation/ |
| H A D | mod.rs | 46 pub username: String, field 57 username: String, in new() 62 username, in new() 77 username: Username, field 100 username: Username, in new() 109 username, in new() 256 username: self.username.text.clone(), in close()
|
| H A D | allocation_manager.rs | 64 alloc.username.text.clone(), in get_allocations_info() 88 username: Username, in create_allocation() 107 username, in create_allocation() 145 let match_name = allocation.username.text == name; in delete_allocations_by_username()
|
| /webrtc/ice/src/util/ |
| H A D | mod.rs | 25 let mut username = Username::new(ATTR_USERNAME, String::new()); in assert_inbound_username() localVariable 26 username.get_from(m)?; in assert_inbound_username() 28 if username.to_string() != expected_username { in assert_inbound_username() 33 username, in assert_inbound_username()
|
| /webrtc/turn/src/server/ |
| H A D | server_test.rs | 32 fn auth_handle(&self, username: &str, _realm: &str, _src_addr: SocketAddr) -> Result<Vec<u8>> { in auth_handle() 33 if let Some(pw) = self.cred_map.get(username) { in auth_handle() 75 username: String::new(), in test_server_simple() 229 username: String::new(), in test_server_vnet_send_binding_request() 266 username: "user".to_owned(), in test_server_vnet_echo_via_relay()
|
| H A D | mod.rs | 83 pub async fn delete_allocations_by_username(&self, username: String) -> Result<()> { in delete_allocations_by_username() 90 tx.send(Command::DeleteAllocations(username, Arc::new(closed_rx))) in delete_allocations_by_username()
|
| /webrtc/stun/src/ |
| H A D | integrity.rs | 69 pub fn new_long_term_integrity(username: String, realm: String, password: String) -> Self { in new_long_term_integrity() 70 let s = vec![username, realm, password].join(CREDENTIALS_SEP); in new_long_term_integrity()
|
| /webrtc/ice/src/candidate/ |
| H A D | candidate_relay_test.rs | 73 username: "username".to_owned(), in test_relay_only_connection() 91 username: "username".to_owned(), in test_relay_only_connection()
|
| /webrtc/turn/examples/ |
| H A D | turn_server_udp.rs | 29 username: &str, in auth_handle() 33 if let Some(pw) = self.cred_map.get(username) { in auth_handle()
|
| H A D | turn_client_udp.rs | 84 username: cred[0].to_string(), in main()
|
| /webrtc/ice/src/agent/ |
| H A D | agent_selector.rs | 116 let username = in nominate_pair() localVariable 122 Box::new(Username::new(ATTR_USERNAME, username)), in nominate_pair() 278 let username = ufrag_pwd.remote_ufrag.clone() + ":" + ufrag_pwd.local_ufrag.as_str(); in ping_candidate() localVariable 283 Box::new(Username::new(ATTR_USERNAME, username)), in ping_candidate() 430 let username = ufrag_pwd.remote_ufrag.clone() + ":" + ufrag_pwd.local_ufrag.as_str(); in ping_candidate() localVariable 435 Box::new(Username::new(ATTR_USERNAME, username)), in ping_candidate()
|
| H A D | agent_test.rs | 261 let (username, local_pwd, tie_breaker) = { in test_handle_peer_reflexive_udp_pflx_candidate() 274 Box::new(Username::new(ATTR_USERNAME, username)), in test_handle_peer_reflexive_udp_pflx_candidate() 617 fn build_msg(c: MessageClass, username: String, key: String) -> Result<Message> { in build_msg() 622 Box::new(Username::new(ATTR_USERNAME, username)), in build_msg() 687 let username = { in test_inbound_validity() localVariable 716 let username = { in test_inbound_validity() localVariable 745 let username = { in test_inbound_validity() localVariable 772 let (username, local_pwd) = { in test_inbound_validity() 781 &mut build_msg(CLASS_REQUEST, username, local_pwd)?, in test_inbound_validity() 802 let (username, local_pwd) = { in test_inbound_validity() [all …]
|
| H A D | agent_vnet_test.rs | 206 username: &str, in auth_handle() 210 if let Some(pw) = self.cred_map.get(username) { in auth_handle() 531 username: "user".to_owned(), in test_connectivity_vnet_full_cone_nats_on_both_ends() 593 username: "user".to_owned(), in test_connectivity_vnet_symmetric_nats_on_both_ends()
|
| /webrtc/stun/src/textattrs/ |
| H A D | textattrs_test.rs | 84 let username = "username".to_owned(); in test_username() localVariable 87 text: username.clone(), in test_username() 116 username, in test_username()
|
| /webrtc/ice/src/url/ |
| H A D | mod.rs | 111 pub username: String, field 233 username: "".to_owned(), in parse_url()
|
| /webrtc/turn/src/allocation/allocation_manager/ |
| H A D | allocation_manager_test.rs | 395 fn auth_handle(&self, username: &str, realm: &str, _src_addr: SocketAddr) -> Result<Vec<u8>> { in auth_handle() 396 Ok(generate_auth_key(username, realm, "pass")) in auth_handle() 425 async fn create_client(username: String, server_port: u16) -> Result<Client> { in create_client() 431 username, in create_client() 484 .for_each(|(_, ai)| match ai.username.as_str() { in test_get_allocations_info()
|
| /webrtc/sdp/src/description/ |
| H A D | media.rs | 124 pub fn with_ice_credentials(self, username: String, password: String) -> Self { in with_ice_credentials() 125 self.with_value_attribute("ice-ufrag".to_string(), username) in with_ice_credentials()
|
| /webrtc/stun/benches/ |
| H A D | bench.rs | 199 let username = Username::new(ATTR_USERNAME, "username".to_owned()); in benchmark_message_build_overhead() localVariable 208 Box::new(username.clone()), in benchmark_message_build_overhead() 224 let _ = username.add_to(&mut m); in benchmark_message_build_overhead()
|