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§
- Account
Pin - One pin an account holds, as a
Tablekeeps it: the global source of pins. - PinSet
- The pins of the certificate a person presented: what a
PinSourcelooks for. Each issha256:<hex>, lowercase. - Table
Pins - Pins kept in any
TableofAccountPins: 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
textis a pin, and if so whether it is one ofwanted.