pub struct TsigKeyConfig {
pub name: String,
pub key_file: PathBuf,
pub algorithm: TsigAlgorithm,
pub fudge: u16,
}Available on crate features
sqlite and __dnssec only.Expand description
Configuration for a TSIG authentication signer key
Fields§
§name: StringThe key name
key_file: PathBufA path to the unencoded symmetric HMAC key data
algorithm: TsigAlgorithmThe key algorithm
fudge: u16Allowed +/- difference (in seconds) between the time a TSIG request was signed and when it is verified.
A fudge value that is too large may leave the server open to replay attacks. A fudge value that is too small may cause failures from latency and clock desynchronization.
RFC 8945 recommends a fudge value of 300 seconds (the default if not specified).
Trait Implementations§
Source§impl Debug for TsigKeyConfig
impl Debug for TsigKeyConfig
Source§impl<'de> Deserialize<'de> for TsigKeyConfig
impl<'de> Deserialize<'de> for TsigKeyConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for TsigKeyConfig
impl PartialEq for TsigKeyConfig
impl Eq for TsigKeyConfig
impl StructuralPartialEq for TsigKeyConfig
Auto Trait Implementations§
impl Freeze for TsigKeyConfig
impl RefUnwindSafe for TsigKeyConfig
impl Send for TsigKeyConfig
impl Sync for TsigKeyConfig
impl Unpin for TsigKeyConfig
impl UnsafeUnpin for TsigKeyConfig
impl UnwindSafe for TsigKeyConfig
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
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more