Searched refs:nonces (Results 1 – 4 of 4) sorted by relevance
| /webrtc/turn/src/server/ |
| H A D | mod.rs | 34 pub(crate) nonces: Arc<Mutex<HashMap<String, Instant>>>, field 48 nonces: Arc::new(Mutex::new(HashMap::new())), in new() 57 let nonces = Arc::clone(&s.nonces); in new() localVariable 71 nonces, in new() 146 nonces: Arc<Mutex<HashMap<String, Instant>>>, in read_loop() 206 nonces: Arc::clone(&nonces), in read_loop()
|
| H A D | request.rs | 57 pub nonces: Arc<Mutex<HashMap<String, Instant>>>, field 77 nonces: Arc::new(Mutex::new(HashMap::new())), in new() 171 let mut nonces = self.nonces.lock().await; in authenticate_request() localVariable 173 let to_be_deleted = if let Some(nonce_creation_time) = nonces.get(&nonce_attr.text) { in authenticate_request() 183 nonces.remove(&nonce_attr.text); in authenticate_request() 240 let mut nonces = self.nonces.lock().await; in respond_with_nonce() localVariable 241 if nonces.contains_key(&nonce) { in respond_with_nonce() 244 nonces.insert(nonce.clone(), Instant::now()); in respond_with_nonce()
|
| /webrtc/turn/src/server/request/ |
| H A D | request_test.rs | 78 let mut nonces = r.nonces.lock().await; in test_allocation_lifetime_deletion_zero_lifetime() localVariable 79 nonces.insert(STATIC_KEY.to_owned(), Instant::now()); in test_allocation_lifetime_deletion_zero_lifetime()
|
| /webrtc/turn/src/client/ |
| H A D | client_test.rs | 177 let mut nonces = server.nonces.lock().await; in test_client_nonce_expiration() localVariable 178 nonces.clear(); in test_client_nonce_expiration()
|