Function tor_dirmgr::bridgedesc::process_document

source ·
fn process_document<R: Runtime>(
    runtime: &R,
    config: &BridgeDescDownloadConfig,
    text: &str
) -> Result<Downloaded, Error>
Available on crate feature bridge-client only.
Expand description

Processes and analyses a textual descriptor document into a Downloaded

Parses it, checks the signature, checks the document validity times, and if that’s all good, calculates when will want to refetch it.