Skip to main content

Module pins

Module pins 

Source
Expand description

Where the pins of an account are kept: the contract a matcher asks, and the two sources that ship (a per-user file in authorized, and any Table of pins).

A pin is what one account has said it is known by: the SHA-256 of a whole certificate (a fingerprint) or of its public key (a key). The library never decides where pins live; a consumer gives the Matcher a PinSource by name.

Re-exports§

pub use authorized::AuthorizedFile;
pub use authorized::DirectReader;
pub use authorized::FileRead;
pub use authorized::PinFileReader;
pub use authorized::ReadFailure;
pub use authorized::TemplateError;

Modules§

authorized
A per-user file of pins, in the manner of ~/.ssh/authorized_keys.

Structs§

AccountPin
One pin an account holds, as a Table keeps it: the global source of pins.
PinSet
The pins of the certificate a person presented: what a PinSource looks for. Each is sha256:<hex>, lowercase.
TablePins
Pins kept in any Table of AccountPins: the global source, for a consumer whose pins live in one place.

Enums§

PinCheck
What a source found for one account.

Traits§

PinSource
A place pins are kept, asked about one account at a time.

Functions§

pin_matches
Whether text is a pin, and if so whether it is one of wanted.