Skip to main content

refuse_unsigned_open

Function refuse_unsigned_open 

Source
pub(crate) fn refuse_unsigned_open(
    state: &AppState,
    device_id: &str,
    path: &str,
    headers: &HeaderMap,
) -> Option<Response>
Expand description

The answer, when a read of the paired device device_id for path (a feed open, or a history page or an attachment with its query) is not signed as a computer’s must be (§3: signing::open_signed_text, by the key the computer paired with, over this computer’s certificate fingerprint, fresh, and with a nonce it hasn’t used). A phone’s open needs no signature, as before.