Skip to main content

Module cookie

Module cookie 

Source
Expand description

Authentication where both parties prove the ability to read a “cookie” file from disk.

For full documentation of the protocol, see rpc-cookie-sketch.md

Re-exports§

use std::sync::Arc; 🔒
use std::sync::Mutex; 🔒
use std::sync::Weak; 🔒
use derive_deftly::Deftly; 🔒
use tor_rpc_connect::auth::RpcAuth; 🔒
use tor_rpc_connect::auth::cookie::Cookie; 🔒
use tor_rpc_connect::auth::cookie::CookieAuthMac; 🔒
use tor_rpc_connect::auth::cookie::CookieAuthNonce; 🔒
use tor_rpcbase as rpc; 🔒
use crate::Connection; 🔒
use super::AuthenticateReply; 🔒
use super::AuthenticationFailure; 🔒
use tor_rpcbase::templates::*; 🔒

Structs§

CookieAuthInProgress 🔒
An in-progress cookie authentication attempt.
CookieBegin 🔒
Begin authenticating on an RPC connection, using Cookie authentication.
CookieBeginReply 🔒
An RPC server’s response to an auth:cookie_begin request.
CookieContinue 🔒
Finish cookie authentication, returning a new RPC Session.

Functions§

cookie_begin 🔒
Invoke the auth:cookie_begin method on a connection.
cookie_continue 🔒
Invoke the auth:cookie_continue method on a CookieAuthInProgress