vendor/bundle/ruby/2.7.0/gems/dnsruby-1.61.5/lib/dnsruby/key_cache.rb
#:nodoc: all
#  Cache includes expiration time for keys
#  Cache removes expired records
:nodoc: all
Cache includes expiration time for keys
Cache removes expired records
: nodoc : all Cache includes expiration time for keys Cache removes expired records
def add_rrset(k)
      k.sigs.each { |sig|
        if (sig.type_covered = Types.DNSKEY)
          if (sig.inception <= Time.now.to_i)
            if (sig.expiration > Time.now.to_i)
              k.rrs.each {|rr| priv_add_key(rr, sig.expiration)}
            end
          end
        end
      }
    end
def add_rrset ( k ) k . sigs . each { | sig | if ( sig . type_covered = Types . DNSKEY ) if ( sig . inception <= Time . now . to_i ) if ( sig . expiration > Time . now . to_i ) k . rrs . each { | rr | priv_add_key ( rr , sig . expiration ) } end end end } end
:nodoc: all
Cache includes expiration time for keys
Cache removes expired records
: nodoc : all Cache includes expiration time for keys Cache removes expired records
#  Get expiration from the RRSIG #  There can be several RRSIGs here, one for each key which has signed the RRSet #  We want to choose the one with the most secure signing algorithm, key length, #  and the longest expiration time - not easy! #  for now, we simply accept all signed keys #  Check sig.expiration, sig.algorithm #  add the keys to the store
k
<not_specific>