pub struct Paired {
pub pairing: Pairing,
pub identity: Option<CapturedIdentity>,
}Available on crate feature
connect-client only.Expand description
What a completed pairing leaves you holding.
Fields§
§pairing: PairingEverything the protocol agreed: who, where, and with which first access token.
identity: Option<CapturedIdentity>The certificate chain the server presented during a LAN pairing.
For a LAN endpoint this is what the specification tells you to pin:
S2C §4 — “The client must pin the self-signed CA (root) certificate, and
trust this certificate for the remainder of the pairing relation.”
Implementations§
Source§impl Paired
impl Paired
Sourcepub fn pin(&self) -> Option<Fingerprint>
pub fn pin(&self) -> Option<Fingerprint>
The certificate every later connection to this peer is pinned to, if any.
The CA captured during a LAN pairing, whose leaf the challenge response verified.
None for a WAN peer, which the public PKI vouches for. Persist it beside the
access token: 32 bytes, and without it every later connection to this device is
unauthenticated.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Paired
impl Freeze for Paired
impl Move for Paired
impl RefUnwindSafe for Paired
impl Send for Paired
impl Sync for Paired
impl Unpin for Paired
impl UnsafeUnpin for Paired
impl UnwindSafe for Paired
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more