pub fn message_tbs<M: BinEncodable>(
    previous_hash: Option<&[u8]>,
    message: &M,
    pre_tsig: &TSIG,
    key_name: &Name
) -> ProtoResult<Vec<u8>>
Available on crate feature dnssec only.
Expand description

Return the byte-message to be authenticated with a TSIG

Arguments

  • previous_hash - hash of previous message in case of message chaining, or of query in case of response. Should be None for query
  • message - the message to authenticate. Should not be modified after calling message_tbs except for adding the TSIG record
  • pre_tsig - TSIG rrdata, possibly with missing mac. Should not be modified in any other way after callin message_tbs
  • key_name - name of they key, should be the same as the name known by the remove server/client