Home
last modified time | relevance | path

Searched refs:ATTR_NONCE (Results 1 – 10 of 10) sorted by relevance

/webrtc/stun/src/textattrs/
H A Dtextattrs_test.rs225 m.add(ATTR_NONCE, v.as_bytes()); in test_nonce_get_from()
233 let result = TextAttribute::get_from_as(&m2, ATTR_NONCE); in test_nonce_get_from()
249 let r = TextAttribute::get_from_as(&m, ATTR_NONCE)?; in test_nonce_get_from()
252 let (r_attr, ok) = m.attributes.get(ATTR_NONCE); in test_nonce_get_from()
265 attr: ATTR_NONCE, in test_nonce_add_to_invalid()
278 let result = TextAttribute::get_from_as(&m, ATTR_NONCE); in test_nonce_add_to_invalid()
298 attr: ATTR_NONCE, in test_nonce_add_to()
303 let v = m.get(ATTR_NONCE)?; in test_nonce_add_to()
/webrtc/stun/src/
H A Dtextattrs.rs58 ATTR_NONCE => MAX_NONCE_B, in add_to()
87 ATTR_NONCE => {} in get_from_as()
H A Dattributes.rs44 ATTR_NONCE => "NONCE", in fmt()
100 pub const ATTR_NONCE: AttrType = AttrType(0x0015); // NONCE constant
/webrtc/stun/benches/
H A Dbench.rs11 ATTR_CHANNEL_NUMBER, ATTR_DONT_FRAGMENT, ATTR_ERROR_CODE, ATTR_MESSAGE_INTEGRITY, ATTR_NONCE,
200 let nonce = Nonce::new(ATTR_NONCE, "nonce".to_owned()); in benchmark_message_build_overhead()
534 let n = Nonce::new(ATTR_NONCE, "nonce".to_owned()); in benchmark_text_attributes()
546 let n = Nonce::new(ATTR_NONCE, nonce); in benchmark_text_attributes()
557 let mut n = Nonce::new(ATTR_NONCE, "nonce".to_owned()); in benchmark_text_attributes()
/webrtc/turn/src/client/relay_conn/
H A Drelay_conn_test.rs53 nonce: Nonce::new(ATTR_NONCE, "nonce".to_owned()), in test_relay_conn()
/webrtc/turn/src/server/request/
H A Drequest_test.rs106 Nonce::new(ATTR_NONCE, STATIC_KEY.to_owned()).add_to(&mut m)?; in test_allocation_lifetime_deletion_zero_lifetime()
/webrtc/stun/src/message/
H A Dmessage_test.rs307 ATTR_NONCE, in test_attr_type_string()
611 assert!(!m.contains(ATTR_NONCE), "message should not contain nonce"); in test_message_contains()
/webrtc/turn/src/server/
H A Drequest.rs152 let mut nonce_attr = Nonce::new(ATTR_NONCE, String::new()); in authenticate_request()
255 Box::new(Nonce::new(ATTR_NONCE, nonce)), in respond_with_nonce()
/webrtc/turn/src/client/
H A Dmod.rs510 let nonce = Nonce::get_from_as(&res, ATTR_NONCE)?; in allocate()
H A Drelay_conn.rs443 match Nonce::get_from_as(msg, ATTR_NONCE) { in set_nonce_from_msg()