vendor/bundle/ruby/2.7.0/gems/dnsruby-1.61.5/lib/dnsruby/resource/TSIG.rb
# Generates a TSIG record and adds it to the message.
# Takes an optional original_request argument for the case where this is
# a response to a query (RFC2845 3.4.1)
# 
# Message#tsigstate will be set to :Signed.
Generates a TSIG record and adds it to the message.
Takes an optional original_request argument for the case where this is
a response to a query (RFC2845 3.4.1)

Message#tsigstate will be set to :Signed.
Generates a TSIG record and adds it to the message . Takes an optional original_request argument for the case where this is a response to a query ( RFC2845 3 . 4 . 1 ) Message#tsigstate will be set to : Signed .
def apply(message, original_request=nil)
        if (!message.signed?)
          tsig_rr = generate(message, original_request)
          message.add_additional(tsig_rr)
          message.tsigstate = :Signed
          @query = message
          tsig_rr.query = message
        end
      end
def apply ( message , original_request = nil ) if ( ! message . signed? ) tsig_rr = generate ( message , original_request ) message . add_additional ( tsig_rr ) message . tsigstate = :Signed @query = message tsig_rr . query = message end end
Generates a TSIG record and adds it to the message.
Generates a TSIG record and adds it to the message .
message
<not_specific>
original_request
<not_specific>