MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / revocation_check_thread_safe

Function revocation_check_thread_safe

nodedb/src/control/security/crl.rs:282–288  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

280
281 #[test]
282 fn revocation_check_thread_safe() {
283 let store = Arc::new(RwLock::new(CrlStore::new()));
284 store.write().unwrap().revoked_serials.insert("AA".into());
285
286 assert!(check_revocation(&store, "AA"));
287 assert!(!check_revocation(&store, "BB"));
288 }
289}

Callers

nothing calls this directly

Calls 2

insertMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected