vendor/bundle/ruby/2.7.0/gems/dnsruby-1.61.5/lib/dnsruby/single_verifier.rb
#  Check that the key fits a signed DS record key details
#  If so, then add the key to the trusted keys
Check that the key fits a signed DS record key details
If so, then add the key to the trusted keys
Check that the key fits a signed DS record key details If so then add the key to the trusted keys
def check_ds(key, ds_rrset)
      expiration = 0
      found = false
      ds_rrset.sigs.each { |sig|
        if ((sig.type_covered == Types.DS) || ((sig.type_covered == Types.DLV)&& (@verifier_type==VerifierType::DLV)))
          if (sig.inception <= Time.now.to_i)
            if (sig.expiration > expiration)
              expiration = sig.expiration
            end
          end
        end
      }
      if (expiration > 0)
        ds_rrset.rrs.each { |ds|
          if ((ds.type === Types.DS) || ((ds.type == Types.DLV) && (@verifier_type == VerifierType::DLV)))
            if (ds.check_key(key))
              @trusted_keys.add_key_with_expiration(key, expiration)
              found = true
            end
          end
        }
      end
      return found
    end
def check_ds ( key , ds_rrset ) expiration = 0 found = false ds_rrset . sigs . each { | sig | if ( ( sig . type_covered == Types . DS ) || ( ( sig . type_covered == Types . DLV ) && ( @verifier_type == VerifierType :: DLV ) ) ) if ( sig . inception <= Time . now . to_i ) if ( sig . expiration > expiration ) expiration = sig . expiration end end end } if ( expiration > 0 ) ds_rrset . rrs . each { | ds | if ( ( ds . type === Types . DS ) || ( ( ds . type == Types . DLV ) && ( @verifier_type == VerifierType :: DLV ) ) ) if ( ds . check_key ( key ) ) @trusted_keys . add_key_with_expiration ( key , expiration ) found = true end end } end return found end
Check that the key fits a signed DS record key details
If so, then add the key to the trusted keys
Check that the key fits a signed DS record key details If so then add the key to the trusted keys
#:nodoc: all #  Check sig.expiration, sig.algorithm
key
<not_specific>
ds_rrset
<not_specific>