code
stringlengths
26
124k
docstring
stringlengths
23
125k
func_name
stringlengths
1
98
language
stringclasses
1 value
repo
stringlengths
5
53
path
stringlengths
7
151
url
stringlengths
50
211
license
stringclasses
7 values
def check_ds(key, ds_rrset)#:nodoc: all 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) # Check sig.expiration, sig.algorithm 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_ds
ruby
collabnix/kubelabs
.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/single_verifier.rb
https://github.com/collabnix/kubelabs/blob/master/.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/single_verifier.rb
Apache-2.0
def verify(msg, keys = nil) if (msg.kind_of?RRSet) if (msg.type == Types.DNSKEY) return verify_key_rrset(msg, keys) end if ((msg.type == Types.DS) || (msg.type == Types.DLV)) return verify_ds_rrset(msg, keys) end return verify_rrset(msg, keys) end # Use the set of trusted keys to check any RRSets we can, ideally # those of other DNSKEY RRSets first. Then, see if we can use any of the # new total set of keys to check the rest of the rrsets. # Return true if we can verify the whole message. msg.each_section do |section| # print "Checking section : #{section}\n" ds_rrsets = section.rrsets(Types.DS) if ((!ds_rrsets || ds_rrsets.length == 0) && (@verifier_type == VerifierType::DLV)) ds_rrsets = section.rrsets(Types.DLV) end ds_rrsets.each {|ds_rrset| if ((ds_rrset && ds_rrset.rrs.length > 0) && !verify_ds_rrset(ds_rrset, keys, msg)) raise VerifyError.new("Failed to verify DS RRSet") # return false end } key_rrsets = section.rrsets(Types.DNSKEY) key_rrsets.each {|key_rrset| if ((key_rrset && key_rrset.rrs.length > 0) && !verify_key_rrset(key_rrset, keys)) raise VerifyError.new("Failed to verify DNSKEY RRSet") # return false end } end verify_nsecs(msg) # Then, look through all the remaining RRSets, and verify them all (unless not necessary). msg.section_rrsets.each do |section, rrsets| rrsets.each do |rrset| # If delegation NS or glue AAAA/A, then don't expect RRSIG. # Otherwise, expect RRSIG and fail verification if RRSIG is not present if ((section == "authority") && (rrset.type == Types.NS)) # Check for delegation dsrrset = msg.authority.rrsets('DS')[0] if ((msg.answer.size == 0) && (!dsrrset) && (rrset.type == Types.NS)) # (isDelegation) # Now check NSEC(3) records for absence of DS and SOA nsec = msg.authority.rrsets('NSEC')[0] if (!nsec || (nsec.length == 0)) nsec = msg.authority.rrsets('NSEC3')[0] end if (nsec && (nsec.rrs.length > 0)) if (!(nsec.rrs()[0].types.include?'DS') || !(nsec.rrs()[0].types.include?'SOA')) next # delegation which we expect to be unsigned - so don't verify it! end end end # If NS records delegate the name to the child's nameservers, then they MUST NOT be signed if (rrset.type == Types.NS) # all_delegate = true # rrset.rrs.each {|rr| # name = Name.create(rr.nsdname) # name.absolute = true # if (!(name.subdomain_of?(rr.name))) # all_delegate = false # end # } # if (all_delegate && rrset.sigs.length == 0) # next # end if ((rrset.name.canonical == msg.question()[0].qname.canonical) && (rrset.sigs.length == 0)) next end end end if (section == "additional") # check for glue # if the ownername (in the addtional section) of the glue address is the same or longer as the ownername of the NS record, it is glue if (msg.additional.size > 0) arec = msg.additional.rrsets('A')[0] if (!arec || arec.rrs.length == 0) arec = msg.additional.rrsets('AAAA')[0] end ns_rrsets = msg.additional.rrsets('NS') ns_rrsets.each {|ns_rrset| if (ns_rrset.length > 0) nsname = ns_rrset.rrs()[0].name if (arec && arec.rrs().length > 0) aname = arec.rrs()[0].name if (nsname.subdomain_of?aname) next end end end } end end # If records are in additional, and no RRSIG, that's Ok - just don't use them! if ((section == "additional") && (rrset.sigs.length == 0)) # @TODO@ Make sure that we don't cache these records! next end # else verify RRSet # print "About to verify #{rrset.name}, #{rrset.type}\n" if (!verify_rrset(rrset, keys)) # print "FAILED TO VERIFY RRSET #{rrset.name}, #{rrset.type}\n" TheLog.debug("Failed to verify rrset") return false end end end return true end
Verify the specified message (or RRSet) using the set of trusted keys. If keys is a DNSKEY, or an Array or RRSet of DNSKEYs, then keys is added to the set of trusted keys before the message (or RRSet) is verified. If msg is a Dnsruby::Message, then any signed DNSKEY or DS RRSets are processed first, and any new keys are added to the trusted key set before the other RRSets are checked. msg can be a Dnsruby::Message or Dnsruby::RRSet. keys may be nil, or a KeyCache or an RRSet of Dnsruby::RR::DNSKEY Returns true if the message verifies OK, and false otherwise.
verify
ruby
collabnix/kubelabs
.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/single_verifier.rb
https://github.com/collabnix/kubelabs/blob/master/.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/single_verifier.rb
Apache-2.0
def set_logger(logger) Dnsruby.log = logger end
Set a new Logger for use by Dnsruby
set_logger
ruby
collabnix/kubelabs
.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/the_log.rb
https://github.com/collabnix/kubelabs/blob/master/.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/the_log.rb
Apache-2.0
def present(*args) ttl = 0 rdata = "" klass = Classes.ANY if (args.length>=1) # domain (RFC2136, Section 2.4.4) name = args[0] type = Types.ANY if (args.length>=2) # RRSET (RFC2136, Section 2.4.1) type = args[1] end if (args.length > 2) # RRSET (RFC2136, Section 2.4.2) klass = Classes.new(zone()[0].zclass) rdata=args[2] end rec = RR.create("#{name} #{ttl} #{klass} #{type} #{rdata}") add_pre(rec) return rec else raise ArgumentError.new("Wrong number of arguments (#{args.length} for 1 or 2) for Update#present") end end
Ways to create the prerequisite records (exists, notexists, inuse, etc. - RFC2136, section 2.4) (1) RRset exists (value independent). At least one RR with a specified NAME and TYPE (in the zone and class specified by the Zone Section) must exist. update.present(name, type) (2) RRset exists (value dependent). A set of RRs with a specified NAME and TYPE exists and has the same members with the same RDATAs as the RRset specified here in this Section. update.present(name, type, rdata) (4) Name is in use. At least one RR with a specified NAME (in the zone and class specified by the Zone Section) must exist. Note that this prerequisite is NOT satisfied by empty nonterminals. update.present(name)
present
ruby
collabnix/kubelabs
.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/update.rb
https://github.com/collabnix/kubelabs/blob/master/.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/update.rb
Apache-2.0
def absent(*args) ttl = 0 rdata = "" klass = Classes.NONE if (args.length>=1) # domain (RFC2136, Section 2.4.5) name = args[0] type = Types.ANY if (args.length==2) # RRSET (RFC2136, Section 2.4.3) type = args[1] end rec = RR.create("#{name} #{ttl} #{klass} #{type} #{rdata}") add_pre(rec) return rec else raise ArgumentError.new("Wrong number of arguments (#{args.length} for 1 or 2) for Update#absent") end end
Ways to create the prerequisite records (exists, notexists, inuse, etc. - RFC2136, section 2.4) Can be called with one arg : update.absent(name) (5) Name is not in use. No RR of any type is owned by a specified NAME. Note that this prerequisite IS satisfied by empty nonterminals. Or with two : update.absent(name, type) (3) RRset does not exist. No RRs with a specified NAME and TYPE (in the zone and class denoted by the Zone Section) can exist.
absent
ruby
collabnix/kubelabs
.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/update.rb
https://github.com/collabnix/kubelabs/blob/master/.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/update.rb
Apache-2.0
def add(*args) zoneclass=zone()[0].zclass case args[0] when Array args[0].each do |resource| add(resource) end when RR # Make sure that the Class is the same as the zone resource = args[0] if (resource.klass != zoneclass) raise ArgumentError.new("Wrong class #{resource.klass} for update (should be #{zoneclass})!") end add_update(resource) return resource else name=args[0] type=args[1] ttl=args[2] rdata=args[3] resource = nil if (Types.new(type) == Types.TXT) instring = "#{name} #{ttl} #{zoneclass} #{type} "; if (String === rdata) instring += " '#{rdata}'" elsif (Array === rdata) rdata.length.times {|rcounter| instring += " '#{rdata[rcounter]}' " } else instring += rdata end resource = RR.create(instring) else resource = RR.create("#{name} #{ttl} #{zoneclass} #{type} #{rdata}") end add_update(resource) return resource end # @TODO@ Should be able to take RRSet! end
Ways to create the update records (add, delete, RFC2136, section 2.5) " 2.5.1 - Add To An RRset RRs are added to the Update Section whose NAME, TYPE, TTL, RDLENGTH and RDATA are those being added, and CLASS is the same as the zone class. Any duplicate RRs will be silently ignored by the primary master." update.add(rr) update.add([rr1, rr2]) update.add(name, type, ttl, rdata)
add
ruby
collabnix/kubelabs
.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/update.rb
https://github.com/collabnix/kubelabs/blob/master/.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/update.rb
Apache-2.0
def delete(*args) ttl = 0 klass = Classes.ANY rdata="" resource = nil case args.length when 1 # name resource = RR.create("#{args[0]} #{ttl} #{klass} #{Types.ANY} #{rdata}") add_update(resource) when 2 # name, type resource = RR.create("#{args[0]} #{ttl} #{klass} #{args[1]} #{rdata}") add_update(resource) when 3 # name, type, rdata name = args[0] type = args[1] rdata = args[2] if (Types.new(type) == Types.TXT) instring = "#{name} #{ttl} IN #{type} "; if (String === rdata) instring += " '#{rdata}'" elsif (Array === rdata) rdata.length.times {|rcounter| instring += " '#{rdata[rcounter]}' " } else instring += rdata end resource = RR.create(instring) else resource = RR.create("#{name} #{ttl} IN #{type} #{rdata}") end resource.klass = Classes.NONE add_update(resource) end return resource end
Ways to create the update records (add, delete, RFC2136, section 2.5) 2.5.2 - Delete An RRset update.delete(name, type) 2.5.3 - Delete All RRsets From A Name update.delete(name) 2.5.4 - Delete An RR From An RRset update.delete(name, type, rdata)
delete
ruby
collabnix/kubelabs
.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/update.rb
https://github.com/collabnix/kubelabs/blob/master/.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/update.rb
Apache-2.0
def do_validate # while (true) # item = nil # print "Waiting to pop validation item\n" # # @@mutex.synchronize{ # item = @@validation_queue.pop # # } # print "Popped validation request\n" # client_id, client_queue, response, err, query, st, res = item validated_ok = validate(@query, @response, @res) validated_ok = false if (@error && !(NXDomain === @error)) cache_if_valid(@query, @response) # Now send the response back to the client... # print "#{Time.now} : Got result for #{@query.question()[0].qname}, #{@query.question()[0].qtype}\n" if (validated_ok) @st.push_validation_response_to_select(@client_id, @client_queue, @response, nil, @query, @res) else @st.push_validation_response_to_select(@client_id, @client_queue, @response, @response.security_error, @query, @res) end # end end
def add_to_queue(item) print "ADding to validator queue\n" # @@mutex.synchronize{ @@validation_queue.push(item) # } end
do_validate
ruby
collabnix/kubelabs
.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/validator_thread.rb
https://github.com/collabnix/kubelabs/blob/master/.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/validator_thread.rb
Apache-2.0
def initialize(origin, soa_minimum = nil, soa_ttl = nil) @origin = origin.to_s if (!Name.create(@origin).absolute?) @origin = @origin.to_s + "." end @soa_ttl = soa_ttl if (soa_minimum && !@last_explicit_ttl) @last_explicit_ttl = soa_minimum else @last_explicit_ttl = 0 end @last_explicit_class = Classes.new("IN") @last_name = nil @continued_line = nil @in_quoted_section = false end
Create a new ZoneReader. The zone origin is required. If the desired SOA minimum and TTL are passed in, then they are used as default values.
initialize
ruby
collabnix/kubelabs
.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/zone_reader.rb
https://github.com/collabnix/kubelabs/blob/master/.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/zone_reader.rb
Apache-2.0
def process_file(source) if source.is_a?(String) File.open(source) do |file| process_io(file) end else process_io(source) end end
Takes a filename string, or any type of IO object, and attempts to load a zone. Returns a list of RRs if successful, nil otherwise.
process_file
ruby
collabnix/kubelabs
.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/zone_reader.rb
https://github.com/collabnix/kubelabs/blob/master/.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/zone_reader.rb
Apache-2.0
def process_io(io) zone = nil io.each do |line| begin ret = process_line(line) if (ret) rr = RR.create(ret) if (!zone) zone = [] end zone.push(rr) end rescue Exception raise ParseException.new("Error reading line #{io.lineno} of #{io.inspect} : [#{line}]") end end return zone end
Iterate over each line in a IO object, and process it. Returns a list of RRs if successful, nil otherwise.
process_io
ruby
collabnix/kubelabs
.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/zone_reader.rb
https://github.com/collabnix/kubelabs/blob/master/.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/zone_reader.rb
Apache-2.0
def process_line(line, do_prefix_hack = false) return nil if (line[0,1] == ";") line = strip_comments(line) return nil if (line.strip.length == 0) return nil if (!line || (line.length == 0)) @in_quoted_section = false if !@continued_line if (line.index("$ORIGIN") == 0) @origin = line.split()[1].strip # $ORIGIN <domain-name> [<comment>] # print "Setting $ORIGIN to #{@origin}\n" return nil end if (line.index("$TTL") == 0) @last_explicit_ttl = get_ttl(line.split()[1].strip) # $TTL <ttl> # print "Setting $TTL to #{ttl}\n" return nil end if (@continued_line) # Add the next line until we see a ")" # REMEMBER TO STRIP OFF COMMENTS!!! @continued_line = strip_comments(@continued_line) line = @continued_line.rstrip.chomp + " " + line if (line.index(")")) # OK @continued_line = false end end open_bracket = line.index("(") if (open_bracket) # Keep going until we see ")" index = line.index(")") if (index && (index > open_bracket)) # OK @continued_line = false else @continued_line = line end end return nil if @continued_line line = strip_comments(line) + "\n" # If SOA, then replace "3h" etc. with expanded seconds # begin return normalise_line(line, do_prefix_hack) # rescue Exception => e # print "ERROR parsing line #{@line_num} : #{line}\n" # return "\n", Types::ANY # end end
Process the next line of the file Returns a string representing the normalised line.
process_line
ruby
collabnix/kubelabs
.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/zone_reader.rb
https://github.com/collabnix/kubelabs/blob/master/.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/zone_reader.rb
Apache-2.0
def normalise_line(line, do_prefix_hack = false) # Note that a freestanding "@" is used to denote the current origin - we can simply replace that straight away # Remove the ( and ) # Note that no domain name may be specified in the RR - in that case, last_name should be used. How do we tell? Tab or space at start of line. # If we have text in the record, then ignore that in the parsing, and stick it on again at the end stored_line = ""; if (line.index('"') != nil) stored_line = line[line.index('"'), line.length]; line = line [0, line.index('"')] end if ((line[0,1] == " ") || (line[0,1] == "\t")) line = @last_name + " " + line end line.chomp! line.sub!(/\s+@$/, " #{@origin}") # IN CNAME @ line.sub!(/^@\s+/, "#{@origin} ") # IN CNAME @ line.sub!(/\s+@\s+/, " #{@origin} ") line.strip! # o We need to identify the domain name in the record, and then split = line.split(' ') # split on whitespace name = split[0].strip if (name.index"\\") ls =[] Name.create(name).labels.each {|el| ls.push(Name.decode(el.to_s))} new_name = ls.join('.') if (!(/\.\z/ =~ name)) new_name += "." + @origin else new_name += "." end line = new_name + " " (split.length - 1).times {|i| line += "#{split[i+1]} "} line += "\n" name = new_name split = line.split # o add $ORIGIN to it if it is not absolute elsif !(/\.\z/ =~ name) new_name = name + "." + @origin line.sub!(name, new_name) name = new_name split = line.split end # If the second field is not a number, then we should add the TTL to the line # Remember we can get "m" "w" "y" here! So need to check for appropriate regexp... found_ttl_regexp = (split[1]=~/^[0-9]+[smhdwSMHDW]/) if (found_ttl_regexp == 0) # Replace the formatted ttl with an actual number ttl = get_ttl(split[1]) line = name + " #{ttl} " @last_explicit_ttl = ttl (split.length - 2).times {|i| line += "#{split[i+2]} "} line += "\n" split = line.split elsif (((split[1]).to_i == 0) && (split[1] != "0")) # Add the TTL if (!@last_explicit_ttl) # If this is the SOA record, and no @last_explicit_ttl is defined, # then we need to try the SOA TTL element from the config. Otherwise, # find the SOA Minimum field, and use that. # We should also generate a warning to that effect # How do we know if it is an SOA record at this stage? It must be, or # else @last_explicit_ttl should be defined # We could put a marker in the RR for now - and replace it once we know # the actual type. If the type is not SOA then, then we can raise an error line = name + " %MISSING_TTL% " else line = name + " #{@last_explicit_ttl} " end (split.length - 1).times {|i| line += "#{split[i+1]} "} line += "\n" split = line.split else @last_explicit_ttl = split[1].to_i end # Now see if the clas is included. If not, then we should default to the last class used. begin klass = Classes.new(split[2]) @last_explicit_class = klass rescue ArgumentError # Wasn't a CLASS # So add the last explicit class in line = "" (2).times {|i| line += "#{split[i]} "} line += " #{@last_explicit_class} " (split.length - 2).times {|i| line += "#{split[i+2]} "} line += "\n" split = line.split rescue Error end # Add the type so we can load the zone one RRSet at a time. type = Types.new(split[3].strip) is_soa = (type == Types::SOA) type_was = type if (type == Types.RRSIG) # If this is an RRSIG record, then add the TYPE COVERED rather than the type - this allows us to load a complete RRSet at a time type = Types.new(split[4].strip) end type_string=prefix_for_rrset_order(type, type_was) @last_name = name if !([Types::NAPTR, Types::TXT].include?type_was) line.sub!("(", "") line.sub!(")", "") end if (is_soa) if (@soa_ttl) # Replace the %MISSING_TTL% text with the SOA TTL from the config line.sub!(" %MISSING_TTL% ", " #{@soa_ttl} ") else # Can we try the @last_explicit_ttl? if (@last_explicit_ttl) line.sub!(" %MISSING_TTL% ", " #{@last_explicit_ttl} ") end end line = replace_soa_ttl_fields(line) if (!@last_explicit_ttl) soa_rr = Dnsruby::RR.create(line) @last_explicit_ttl = soa_rr.minimum end end line = line.strip if (stored_line && stored_line != "") line += " " + stored_line.strip end # We need to fix up any non-absolute names in the RR # Some RRs have a single name, at the end of the string - # to do these, we can just check the last character for "." and add the # "." + origin string if necessary if ([Types::MX, Types::NS, Types::AFSDB, Types::NAPTR, Types::RT, Types::SRV, Types::CNAME, Types::MB, Types::MG, Types::MR, Types::PTR, Types::DNAME].include?type_was) # if (line[line.length-1, 1] != ".") if (!(/\.\z/ =~ line)) line = line + "." + @origin.to_s end end # Other RRs have several names. These should be parsed by Dnsruby, # and the names adjusted there. if ([Types::MINFO, Types::PX, Types::RP].include?type_was) parsed_rr = Dnsruby::RR.create(line) case parsed_rr.type when Types::MINFO if (!parsed_rr.rmailbx.absolute?) parsed_rr.rmailbx = parsed_rr.rmailbx.to_s + "." + @origin.to_s end if (!parsed_rr.emailbx.absolute?) parsed_rr.emailbx = parsed_rr.emailbx.to_s + "." + @origin.to_s end when Types::PX if (!parsed_rr.map822.absolute?) parsed_rr.map822 = parsed_rr.map822.to_s + "." + @origin.to_s end if (!parsed_rr.mapx400.absolute?) parsed_rr.mapx400 = parsed_rr.mapx400.to_s + "." + @origin.to_s end when Types::RP if (!parsed_rr.mailbox.absolute?) parsed_rr.mailbox = parsed_rr.mailbox.to_s + "." + @origin.to_s end if (!parsed_rr.txtdomain.absolute?) parsed_rr.txtdomain = parsed_rr.txtdomain.to_s + "." + @origin.to_s end end line = parsed_rr.to_s end if (do_prefix_hack) return line + "\n", type_string, @last_name end return line+"\n" end
Take a line from the input zone file, and return the normalised form do_prefix_hack should always be false
normalise_line
ruby
collabnix/kubelabs
.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/zone_reader.rb
https://github.com/collabnix/kubelabs/blob/master/.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/zone_reader.rb
Apache-2.0
def get_ttl(ttl_text_in) # If no letter afterwards, then in seconds already # Could be e.g. "3d4h12m" - unclear if "4h5w" is legal - best assume it is # So, search out each letter in the string, and get the number before it. ttl_text = ttl_text_in.downcase index = ttl_text.index(/[whdms]/) if (!index) return ttl_text.to_i end last_index = -1 total = 0 while (index) letter = ttl_text[index] number = ttl_text[last_index + 1, index-last_index-1].to_i new_number = 0 case letter when 115 then # "s" new_number = number when 109 then # "m" new_number = number * 60 when 104 then # "h" new_number = number * 3600 when 100 then # "d" new_number = number * 86400 when 119 then # "w" new_number = number * 604800 end total += new_number last_index = index index = ttl_text.index(/[whdms]/, last_index + 1) end return total end
Get the TTL in seconds from the m, h, d, w format
get_ttl
ruby
collabnix/kubelabs
.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/zone_reader.rb
https://github.com/collabnix/kubelabs/blob/master/.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/zone_reader.rb
Apache-2.0
def prefix_for_rrset_order(type, type_was) # :nodoc: all # Now make sure that NSEC(3) RRs go to the back of the list if ['NSEC', 'NSEC3'].include?type.string if (type_was == Types::RRSIG) # Get the RRSIG first type_string = "ZZ" + type.string else type_string = "ZZZ" + type.string end elsif type == Types::DNSKEY type_string = "0" + type.string elsif type == Types::NS # Make sure that we see the NS records first so we know the delegation status type_string = "1" + type.string else type_string = type.string end return type_string end
This method is included only for OpenDNSSEC support. It should not be used otherwise. Frig the RR type so that NSEC records appear last in the RRSets. Also make sure that DNSKEYs come first (so we have a key to verify the RRSet with!).
prefix_for_rrset_order
ruby
collabnix/kubelabs
.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/zone_reader.rb
https://github.com/collabnix/kubelabs/blob/master/.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/zone_reader.rb
Apache-2.0
def transfer(zone) servers = @server if (servers.class == String) servers=[servers] end xfr = nil exception = nil servers.each do |server| begin server=Config.resolve_server(server) xfr = do_transfer(zone, server) break rescue Exception => e exception = e end end if (xfr == nil && exception != nil) raise exception end return xfr end
Perform a zone transfer (RFC1995) If an IXFR query is unsuccessful, then AXFR is tried (and @transfer_type is set to AXFR) TCP is used as the only transport If AXFR is performed, then the zone will be returned as a set of records : zt = Dnsruby::ZoneTransfer.new zt.transfer_type = Dnsruby::Types.AXFR zt.server = "ns0.validation-test-servers.nominet.org.uk" zone = zt.transfer("validation-test-servers.nominet.org.uk") soa = zone[0] rec1 = zone[1] print zone.to_s If IXFR is performed, then the incrementals will be returned as a set of Deltas. Each Delta contains the start and end SOA serial number, as well as an array of adds and deletes that occurred between the start and end. zt = Dnsruby::ZoneTransfer.new zt.transfer_type = Dnsruby::Types.IXFR zt.server = "ns0.validation-test-servers.nominet.org.uk" zt.serial = 2007090401 deltas = zt.transfer("validation-test-servers.nominet.org.uk") assert_equal("Should show up in transfer", deltas[0].adds[1].data)
transfer
ruby
collabnix/kubelabs
.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/zone_transfer.rb
https://github.com/collabnix/kubelabs/blob/master/.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/zone_transfer.rb
Apache-2.0
def compare_serial(s1, s2) if s1 == s2 return 0 end if s1 < s2 and (s2 - s1) < (2**31) return 1 end if s1 > s2 and (s1 - s2) > (2**31) return 1 end if s1 < s2 and (s2 - s1) > (2**31) return -1 end if s1 > s2 and (s1 - s2) < (2**31) return -1 end return 0 end
Compare two serials according to RFC 1982. Return 0 if equal, -1 if s1 is bigger, 1 if s1 is smaller.
compare_serial
ruby
collabnix/kubelabs
.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/zone_transfer.rb
https://github.com/collabnix/kubelabs/blob/master/.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/zone_transfer.rb
Apache-2.0
def initialize(data) @data = data @index = 0 @limit = data.length yield self if block_given? end
Creates an instance of the decoder, optionally with code block to be executed with the instance as its parameter.
initialize
ruby
collabnix/kubelabs
.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/message/decoder.rb
https://github.com/collabnix/kubelabs/blob/master/.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/message/decoder.rb
Apache-2.0
def has_remaining? @limit > @index end
Has bytes remaining in the binary string to be parsed?
has_remaining?
ruby
collabnix/kubelabs
.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/message/decoder.rb
https://github.com/collabnix/kubelabs/blob/master/.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/message/decoder.rb
Apache-2.0
def assert_buffer_position_valid(end_position) unless (0..@limit).include?(end_position) raise DecodeError.new("requested position of #{end_position} must be between 0 and buffer size (#{@limit}).") end end
Asserts that the specified position is a valid position in the buffer. If not, raises a DecodeError. If so, does nothing.
assert_buffer_position_valid
ruby
collabnix/kubelabs
.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/message/decoder.rb
https://github.com/collabnix/kubelabs/blob/master/.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/message/decoder.rb
Apache-2.0
def get_byte_at(position) assert_buffer_position_valid(position) return nil if @data[position].nil? @data[position].getbyte(0) end
Gets the byte value at the specified position
get_byte_at
ruby
collabnix/kubelabs
.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/message/decoder.rb
https://github.com/collabnix/kubelabs/blob/master/.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/message/decoder.rb
Apache-2.0
def get_length16 len, = self.get_unpack('n') save_limit = @limit @limit = @index + len parsed_data = yield(len) if @index < @limit message = "Junk exists; limit = #{@limit}, index = #{@index}" raise DecodeError.new(message) end assert_buffer_position_valid(@index) @limit = save_limit parsed_data end
Gets a 16-bit length field from the binary string and yields to the block. This will be the length of the next item to parse in the binary string. Returns the object returned from that block. When this method returns, @index will point to the byte after the 16-bit length field.
get_length16
ruby
collabnix/kubelabs
.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/message/decoder.rb
https://github.com/collabnix/kubelabs/blob/master/.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/message/decoder.rb
Apache-2.0
def get_bytes(len = @limit - @index) bytes = @data[@index, len] @index += len bytes end
Returns the specified number of bytes from the binary string. Length defaults to the remaining (not yet processed) size of the string.
get_bytes
ruby
collabnix/kubelabs
.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/message/decoder.rb
https://github.com/collabnix/kubelabs/blob/master/.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/message/decoder.rb
Apache-2.0
def get_unpack(template) len = 0 template.bytes.each do |byte| case byte.chr when 'c', 'C', 'h', 'H' len += 1 when 'n' len += 2 when 'N' len += 4 when '*' len = @limit - @index else raise StandardError.new("unsupported template: '#{byte.chr}' in '#{template}'") end end assert_buffer_position_valid(@index + len) number_array = @data.unpack("@#{@index}#{template}") @index += len number_array end
Calls String.unpack to get numbers as specified in the template string.
get_unpack
ruby
collabnix/kubelabs
.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/message/decoder.rb
https://github.com/collabnix/kubelabs/blob/master/.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/message/decoder.rb
Apache-2.0
def get_string len = get_byte_at(@index) || 0 assert_buffer_position_valid(@index + 1 + len) data_item = @data[@index + 1, len] @index += 1 + len data_item end
Gets a string whose 1-byte length is at @index, and the string starting at @index + 1.
get_string
ruby
collabnix/kubelabs
.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/message/decoder.rb
https://github.com/collabnix/kubelabs/blob/master/.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/message/decoder.rb
Apache-2.0
def get_string_list strings = [] strings << get_string while has_remaining? strings end
Gets all strings from @index to the end of the binary string.
get_string_list
ruby
collabnix/kubelabs
.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/message/decoder.rb
https://github.com/collabnix/kubelabs/blob/master/.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/message/decoder.rb
Apache-2.0
def initialize(*args) @header = Header.new() # @question = Section.new(self) @question = [] @answer = Section.new(self) @authority = Section.new(self) @additional = Section.new(self) @tsigstate = :Unsigned @signing = false @tsigkey = nil @answerfrom = nil @answerip = nil @send_raw = false @do_validation = true @do_caching = true @security_level = SecurityLevel.UNCHECKED @security_error = nil @cached = false type = Types::A klass = Classes::IN if (args.length > 0) name = args[0] if (args.length > 1) type = Types.new(args[1]) if (args.length > 2) klass = Classes.new(args[2]) end end add_question(name, type, klass) end end
Create a new Message. Takes optional name, type and class type defaults to A, and klass defaults to IN * Dnsruby::Message.new('example.com') # defaults to A, IN * Dnsruby::Message.new('example.com', 'AAAA') * Dnsruby::Message.new('example.com', Dnsruby::Types.PTR, 'HS')
initialize
ruby
collabnix/kubelabs
.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/message/message.rb
https://github.com/collabnix/kubelabs/blob/master/.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/message/message.rb
Apache-2.0
def rrset(name, type, klass = Classes::IN) [@answer, @authority, @additional].each do |section| if (rrset = section.rrset(name, type, klass)).length > 0 return rrset end end RRSet.new end
Return the first rrset of the specified attributes in the message
rrset
ruby
collabnix/kubelabs
.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/message/message.rb
https://github.com/collabnix/kubelabs/blob/master/.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/message/message.rb
Apache-2.0
def rrsets(type, klass=Classes::IN) rrsetss = [] [@answer, @authority, @additional].each do |section| if (rrsets = section.rrsets(type, klass)).length > 0 rrsets.each { |rrset| rrsetss.push(rrset) } end end rrsetss end
Return the rrsets of the specified type in the message
rrsets
ruby
collabnix/kubelabs
.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/message/message.rb
https://github.com/collabnix/kubelabs/blob/master/.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/message/message.rb
Apache-2.0
def section_rrsets(type = nil, include_opt = false) ret = {} %w(answer authority additional).each do |section| ret[section] = self.send(section).rrsets(type, include_opt) end ret end
Return a hash, with the section as key, and the RRSets in that section as the data : {section => section_rrs}
section_rrsets
ruby
collabnix/kubelabs
.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/message/message.rb
https://github.com/collabnix/kubelabs/blob/master/.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/message/message.rb
Apache-2.0
def add_question(question, type=Types.A, klass=Classes.IN) unless question.kind_of?(Question) question = Question.new(question, type, klass) end @question << question update_counts end
Add a new Question to the Message. Takes either a Question, or a name, and an optional type and class. * msg.add_question(Question.new('example.com', 'MX')) * msg.add_question('example.com') # defaults to Types.A, Classes.IN * msg.add_question('example.com', Types.LOC)
add_question
ruby
collabnix/kubelabs
.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/message/message.rb
https://github.com/collabnix/kubelabs/blob/master/.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/message/message.rb
Apache-2.0
def add_answer!(rr) _add_answer(rr, true) end
When adding an RR to a Dnsruby::Message, add_answer checks to see if it already occurs, and, if so, does not add it again. This method adds the record whether or not it already occurs. This is needed in order to add a SOA record twice for an AXFR response.
add_answer!
ruby
collabnix/kubelabs
.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/message/message.rb
https://github.com/collabnix/kubelabs/blob/master/.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/message/message.rb
Apache-2.0
def each_section [@answer, @authority, @additional].each { |section| yield section} end
Yields each section (question, answer, authority, additional)
each_section
ruby
collabnix/kubelabs
.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/message/message.rb
https://github.com/collabnix/kubelabs/blob/master/.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/message/message.rb
Apache-2.0
def tsig if @additional.last if @additional.last.rr_type == Types.TSIG return @additional.last end end nil end
Returns the TSIG record from the ADDITIONAL section, if one is present.
tsig
ruby
collabnix/kubelabs
.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/message/message.rb
https://github.com/collabnix/kubelabs/blob/master/.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/message/message.rb
Apache-2.0
def set_tsig(*args) if args.length == 1 if args[0].instance_of?(RR::TSIG) @tsigkey = args[0] elsif args[0].instance_of?(Hash) @tsigkey = RR.create({:type=>'TSIG', :klass=>'ANY'}.merge(args[0])) else raise ArgumentError.new('Wrong type of argument to Dnsruby::Message#set_tsig - should be TSIG or Hash') end elsif args.length == 2 @tsigkey = RR.create({:type=>'TSIG', :klass=>'ANY', :name=>args[0], :key=>args[1]}) else raise ArgumentError.new('Wrong number of arguments to Dnsruby::Message#set_tsig') end end
Sets the TSIG to sign this message with. Can either be a Dnsruby::RR::TSIG object, or it can be a (name, key) tuple, or it can be a hash which takes Dnsruby::RR::TSIG attributes (e.g. name, key, fudge, etc.)
set_tsig
ruby
collabnix/kubelabs
.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/message/message.rb
https://github.com/collabnix/kubelabs/blob/master/.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/message/message.rb
Apache-2.0
def signed? @tsigstate == :Signed || @tsigstate == :Verified || @tsigstate == :Failed end
Was this message signed by a TSIG?
signed?
ruby
collabnix/kubelabs
.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/message/message.rb
https://github.com/collabnix/kubelabs/blob/master/.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/message/message.rb
Apache-2.0
def verified? @tsigstate == :Verified end
If this message was signed by a TSIG, was the TSIG verified?
verified?
ruby
collabnix/kubelabs
.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/message/message.rb
https://github.com/collabnix/kubelabs/blob/master/.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/message/message.rb
Apache-2.0
def sign!(*args) #:nodoc: all if args.length > 0 set_tsig(*args) sign! else if @tsigkey && (@tsigstate == :Unsigned) @tsigkey.apply(self) end end end
Signs the message. If used with no arguments, then the message must have already been set (set_tsig). Otherwise, the arguments can either be a Dnsruby::RR::TSIG object, or a (name, key) tuple, or a hash which takes Dnsruby::RR::TSIG attributes (e.g. name, key, fudge, etc.) NOTE that this method should only be called by the resolver, rather than the client code. To use signing from the client, call Dnsruby::Resolver#tsig=
sign!
ruby
collabnix/kubelabs
.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/message/message.rb
https://github.com/collabnix/kubelabs/blob/master/.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/message/message.rb
Apache-2.0
def encode(canonical=false) if @tsigkey && (@tsigstate == :Unsigned) && !@signing @signing = true sign! @signing = false end return MessageEncoder.new { |msg| header = @header header.encode(msg) @question.each { |q| msg.put_name(q.qname) msg.put_pack('nn', q.qtype.code, q.qclass.code) } [@answer, @authority, @additional].each { |rr| rr.each { |r| msg.put_rr(r, canonical) } } }.to_s end
Return the encoded form of the message If there is a TSIG record present and the record has not been signed then sign it
encode
ruby
collabnix/kubelabs
.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/message/message.rb
https://github.com/collabnix/kubelabs/blob/master/.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/message/message.rb
Apache-2.0
def initialize(qname, qtype = :not_provided, qclass = :not_provided) raise ArgumentError.new('qname must not be nil') if qname.nil? @qtype = (qtype == :not_provided) ? Types::A : Types.new(qtype) @qclass = (qclass == :not_provided) ? Classes::IN : Classes.new(qclass) set_qname(qname, qtype == :not_provided) end
Creates a question object from the domain, type, and class passed as arguments. If a String is passed in, a Name, IPv4 or IPv6 object is created. If an IPv4 or IPv6 object is used then the type is set to PTR.
initialize
ruby
collabnix/kubelabs
.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/message/question.rb
https://github.com/collabnix/kubelabs/blob/master/.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/message/question.rb
Apache-2.0
def rrset(name, type=Types.A, klass=Classes::IN) rrs = select{|rr| type_ok = (rr.type==type) if rr.type == Types::RRSIG type_ok = (rr.type_covered == type) end unless /\.\z/ =~ name.to_s name = name.to_s + '.' end type_ok && (rr.klass == klass) && (rr.name.to_s(true).downcase == name.to_s().downcase) } rrset = RRSet.new() rrs.each do |rr| rrset.add(rr) end rrset end
Return the rrset of the specified type in this section
rrset
ruby
collabnix/kubelabs
.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/message/section.rb
https://github.com/collabnix/kubelabs/blob/master/.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/message/section.rb
Apache-2.0
def rrsets(type = nil, include_opt = false) if type && !(Types === type) type = Types.new(type) end ret = [] each do |rr| next if (!include_opt && (rr.type == Types::OPT)) # if (type) # next if ((rr.type == Types.RRSIG) && (type != Types.RRSIG) && (rr.type_covered != type)) # next if (rr.type != type) # end if (type) # if this is an rrsig type, then : # only include it if the type_covered is the type requested, # OR if the type requested is an RRSIG if rr.type == Types::RRSIG if (rr.type_covered == type) || (type == Types::RRSIG) else next end # next if ((rr.type_covered != type) || (type != Types.RRSIG)) elsif rr.type != type next end end found_rrset = false ret.each do |rrset| found_rrset = rrset.add(rr) break if found_rrset end unless found_rrset ret.push(RRSet.new(rr)) end end ret end
Return an array of all the rrsets in the section
rrsets
ruby
collabnix/kubelabs
.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/message/section.rb
https://github.com/collabnix/kubelabs/blob/master/.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/message/section.rb
Apache-2.0
def from_string(input) @address = IPv4.create(input) end
Create the RR from a standard string
from_string
ruby
collabnix/kubelabs
.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/resource/A.rb
https://github.com/collabnix/kubelabs/blob/master/.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/resource/A.rb
Apache-2.0
def from_string(input) @prefixes = Prefixes.create(input) end
Create the RR from a standard string
from_string
ruby
collabnix/kubelabs
.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/resource/APL.rb
https://github.com/collabnix/kubelabs/blob/master/.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/resource/APL.rb
Apache-2.0
def from_data(data) #:nodoc: all flags, protocol, algorithm, @key = data @make_new_key_tag = false self.flags=(flags) self.protocol=(protocol) self.algorithm=(algorithm) @make_new_key_tag = true get_new_key_tag end
def bad_flags? if ((@flags & ~ZONE_KEY & ~SEP_KEY) > 0) return true end return false end
from_data
ruby
collabnix/kubelabs
.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/resource/DNSKEY.rb
https://github.com/collabnix/kubelabs/blob/master/.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/resource/DNSKEY.rb
Apache-2.0
def key_tag_pre_revoked if (!revoked?) return key_tag end new_key = clone new_key.revoked = false return new_key.key_tag end
Return the the key tag this key would have had before it was revoked If the key is not revoked, then the current key_tag will be returned
key_tag_pre_revoked
ruby
collabnix/kubelabs
.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/resource/DNSKEY.rb
https://github.com/collabnix/kubelabs/blob/master/.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/resource/DNSKEY.rb
Apache-2.0
def key_tag if (!@key_tag) @make_new_key_tag = true get_new_key_tag end return @key_tag end
Return the tag for this key
key_tag
ruby
collabnix/kubelabs
.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/resource/DNSKEY.rb
https://github.com/collabnix/kubelabs/blob/master/.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/resource/DNSKEY.rb
Apache-2.0
def digest_key(*args) # key, digest_type) digest_type = @digest_type key = args[0] if (args.length == 2) digest_type = args[1] end data = MessageEncoder.new {|msg| msg.put_name(key.name, true) key.encode_rdata(msg, true) }.to_s if (digest_type.code == 1) digestbin = OpenSSL::Digest::SHA1.digest(data) return digestbin elsif (digest_type.code == 2) digestbin = OpenSSL::Digest::SHA256.digest(data) return digestbin elsif (digest_type.code == 4) digestbin = OpenSSL::Digest::SHA384.digest(data) return digestbin end end
Return the digest of the specified DNSKEY RR
digest_key
ruby
collabnix/kubelabs
.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/resource/DS.rb
https://github.com/collabnix/kubelabs/blob/master/.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/resource/DS.rb
Apache-2.0
def check_key(key) if ((key.key_tag == @key_tag) && (key.algorithm == @algorithm)) digestbin = digest_key(key) if (@digestbin == digestbin) if (!key.zone_key?) else return true end else end end return false end
Check if the key's digest is the same as that stored in the DS record
check_key
ruby
collabnix/kubelabs
.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/resource/DS.rb
https://github.com/collabnix/kubelabs/blob/master/.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/resource/DS.rb
Apache-2.0
def rdata_to_string [longitude, latitude, altitude].join(' ') end
From the RFC: GPOS has the following format: <owner> <ttl> <class> GPOS <longitude> <latitude> <altitude> We handle the rdata, the RR superclass does the rest.
rdata_to_string
ruby
collabnix/kubelabs
.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/resource/GPOS.rb
https://github.com/collabnix/kubelabs/blob/master/.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/resource/GPOS.rb
Apache-2.0
def hit_string # Return hex value [@hit.to_s].pack("H*").gsub("\n", "") end
HIT field - stored in binary : client methods should handle base16(hex) encoding
hit_string
ruby
collabnix/kubelabs
.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/resource/HIP.rb
https://github.com/collabnix/kubelabs/blob/master/.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/resource/HIP.rb
Apache-2.0
def public_key_string [@public_key.to_s].pack("m*").gsub("\n", "") end
Public Key field - presentation format is base64 - public_key methods reused from IPSECKEY
public_key_string
ruby
collabnix/kubelabs
.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/resource/HIP.rb
https://github.com/collabnix/kubelabs/blob/master/.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/resource/HIP.rb
Apache-2.0
def latlon retlat, retlon = nil if (@version == 0) retlat = latlon2deg(@latitude); retlon = latlon2deg(@longitude); end return retlat, retlon end
Returns the latitude and longitude as floating-point degrees. Positive numbers represent north latitude or east longitude; negative numbers represent south latitude or west longitude. lat, lon = rr.latlon system("xearth", "-pos", "fixed #{lat} #{lon}")
latlon
ruby
collabnix/kubelabs
.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/resource/LOC.rb
https://github.com/collabnix/kubelabs/blob/master/.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/resource/LOC.rb
Apache-2.0
def idp ret = [@afi, @idi].join('') return ret end
The RR's initial domain part (the AFI and IDI fields).
idp
ruby
collabnix/kubelabs
.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/resource/NSAP.rb
https://github.com/collabnix/kubelabs/blob/master/.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/resource/NSAP.rb
Apache-2.0
def dsp ret = [@dfi,@aa,rsvd,@rd,@area,@id,@sel].join('') return ret end
The RR's domain specific part (the DFI, AA, Rsvd, RD, Area, ID, and SEL fields).
dsp
ruby
collabnix/kubelabs
.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/resource/NSAP.rb
https://github.com/collabnix/kubelabs/blob/master/.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/resource/NSAP.rb
Apache-2.0
def str2bcd(s, bytes) retval = ""; digits = bytes * 2; string = sprintf("%#{digits}s", s); string.tr!(" ","0"); i=0; bytes.times do bcd = string[i*2, 2]; retval += [bcd.to_i(16)].pack("C"); i+=1 end return retval; end
------------------------------------------------------------------------------ Usage: str2bcd(STRING, NUM_BYTES) Takes a string representing a hex number of arbitrary length and returns an equivalent BCD string of NUM_BYTES length (with NUM_BYTES * 2 digits), adding leading zeros if necessary. ------------------------------------------------------------------------------
str2bcd
ruby
collabnix/kubelabs
.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/resource/NSAP.rb
https://github.com/collabnix/kubelabs/blob/master/.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/resource/NSAP.rb
Apache-2.0
def opt_out? @flags == OPT_OUT end
If the Opt-Out flag is set, the NSEC3 record covers zero or more unsigned delegations.
opt_out?
ruby
collabnix/kubelabs
.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/resource/NSEC3.rb
https://github.com/collabnix/kubelabs/blob/master/.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/resource/NSEC3.rb
Apache-2.0
def salt return NSEC3.encode_salt(@salt) end
The Salt field is appended to the original owner name before hashing in order to defend against pre-calculated dictionary attacks.
salt
ruby
collabnix/kubelabs
.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/resource/NSEC3.rb
https://github.com/collabnix/kubelabs/blob/master/.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/resource/NSEC3.rb
Apache-2.0
def salt return NSEC3.encode_salt(@salt) end
The Salt field is appended to the original owner name before hashing in order to defend against pre-calculated dictionary attacks.
salt
ruby
collabnix/kubelabs
.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/resource/NSEC3PARAM.rb
https://github.com/collabnix/kubelabs/blob/master/.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/resource/NSEC3PARAM.rb
Apache-2.0
def from_data(data) #:nodoc: all hash_alg, flags, iterations, _salt_length, salt = data self.hash_alg=(hash_alg) self.flags=(flags) self.iterations=(iterations) # self.salt_length=(salt_length) # self.salt=(salt) @salt=salt end
def salt_length=(l) # :nodoc: all if ((l < 0) || (l > 255)) raise DecodeError.new("NSEC3 salt length must be between 0 and 255") end @salt_length = l end
from_data
ruby
collabnix/kubelabs
.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/resource/NSEC3PARAM.rb
https://github.com/collabnix/kubelabs/blob/master/.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/resource/NSEC3PARAM.rb
Apache-2.0
def rdata_to_string "#{next_domain} #{NxtTypes.codes_to_names(types).join(' ')}" end
From the RFC: NXT has the following format: foo.nil. NXT big.foo.nil NS KEY SOA NXT <owner> NXT <next_domain> <record types> We handle the rdata, the RR superclass does the rest.
rdata_to_string
ruby
collabnix/kubelabs
.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/resource/NXT.rb
https://github.com/collabnix/kubelabs/blob/master/.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/resource/NXT.rb
Apache-2.0
def code_to_name(number) Types.to_string(number) || "TYPE#{number}" end
Convert a numeric type code to its corresponding name (e.g. "A" => 1). Unknown types are named "TYPE#{number}".
code_to_name
ruby
collabnix/kubelabs
.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/resource/NXT.rb
https://github.com/collabnix/kubelabs/blob/master/.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/resource/NXT.rb
Apache-2.0
def name_to_code(name) code = Types.to_code(name) if code.nil? matches = /^TYPE(\d+)$/.match(name) code = matches[1].to_i if matches end code end
Convert a type name to its corresponding numeric type code. Names matching /^TYPE(\d+)$/ are assumed to have a code corresponding to the numeric value of the substring following 'TYPE'.
name_to_code
ruby
collabnix/kubelabs
.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/resource/NXT.rb
https://github.com/collabnix/kubelabs/blob/master/.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/resource/NXT.rb
Apache-2.0
def names_to_codes(names) names.map { |s| name_to_code(s) } end
For a given array of type names, return an array of codes.
names_to_codes
ruby
collabnix/kubelabs
.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/resource/NXT.rb
https://github.com/collabnix/kubelabs/blob/master/.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/resource/NXT.rb
Apache-2.0
def names_string_to_codes(name_string) names_to_codes(name_string.split(' ')) end
For the specified string containing names (e.g. 'A NS'), return an array containing the corresponding codes.
names_string_to_codes
ruby
collabnix/kubelabs
.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/resource/NXT.rb
https://github.com/collabnix/kubelabs/blob/master/.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/resource/NXT.rb
Apache-2.0
def codes_to_names(codes) codes.map { |code| code_to_name(code) } end
For the given array of type codes, return an array of their corresponding names.
codes_to_names
ruby
collabnix/kubelabs
.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/resource/NXT.rb
https://github.com/collabnix/kubelabs/blob/master/.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/resource/NXT.rb
Apache-2.0
def codes_to_string(codes) codes.sort.map { |code| code_to_name(code) }.join(' ') end
Generate a string containing the names corresponding to the numeric type codes. Sort it by the numeric type code, ascending.
codes_to_string
ruby
collabnix/kubelabs
.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/resource/NXT.rb
https://github.com/collabnix/kubelabs/blob/master/.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/resource/NXT.rb
Apache-2.0
def binary_string_to_codes(binary_string) bitmap_number = BitMapping.binary_string_to_number(binary_string) assert_legal_bitmap_value(bitmap_number) BitMapping.number_to_set_bit_positions_array(bitmap_number) end
From a binary string of type code bits, return an array of type codes.
binary_string_to_codes
ruby
collabnix/kubelabs
.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/resource/NXT.rb
https://github.com/collabnix/kubelabs/blob/master/.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/resource/NXT.rb
Apache-2.0
def binary_string_to_names(binary_string) codes = binary_string_to_codes(binary_string) codes_to_names(codes) end
From a binary string of type code bits, return an array of type names.
binary_string_to_names
ruby
collabnix/kubelabs
.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/resource/NXT.rb
https://github.com/collabnix/kubelabs/blob/master/.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/resource/NXT.rb
Apache-2.0
def codes_to_binary_string(codes) codes = codes.sort unless legal_code_value?(codes.first) && legal_code_value?(codes.last) raise ArgumentError.new("All codes must be between 1 and 127: #{codes.inspect}.") end bitmap_number = BitMapping.set_bit_position_array_to_number(codes) BitMapping.number_to_binary_string(bitmap_number) end
From an array of type codes, return a binary string.
codes_to_binary_string
ruby
collabnix/kubelabs
.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/resource/NXT.rb
https://github.com/collabnix/kubelabs/blob/master/.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/resource/NXT.rb
Apache-2.0
def assert_legal_bitmap_value(number) max_value = NxtTypes::MAX_BITMAP_NUMBER_VALUE if number > max_value raise ArgumentError.new("Bitmap maximum value is #{max_value} (0x#{max_value.to_s(16)}).") end if number & 1 == 1 raise ArgumentError.new("Bitmap number must not have low bit set.") end end
Assert that the specified number is a legal value with which to instantiate a NXT type bitmap. Raise on error, do nothing on success.
assert_legal_bitmap_value
ruby
collabnix/kubelabs
.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/resource/NXT.rb
https://github.com/collabnix/kubelabs/blob/master/.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/resource/NXT.rb
Apache-2.0
def to_s type_codes = bitmap.to_set_bit_position_array NxtTypes.codes_to_string(type_codes) end
Output types in dig format, e.g. "A AAAA NXT"
to_s
ruby
collabnix/kubelabs
.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/resource/NXT.rb
https://github.com/collabnix/kubelabs/blob/master/.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/resource/NXT.rb
Apache-2.0
def initialize(*args) @type = Types.new('OPT') @ttl = nil @options=nil if (args.length > 0) self.payloadsize=(args[0]) if (args.length > 1) self.flags=(args[1]) if (args.length > 2) self.options=(args[2]) else self.options=nil end else self.flags=0 end else self.payloadsize=0 end end
@TODO@ Add BADVERS to an XRCode CodeMapper object Can be called with up to 3 arguments, none of which must be present * OPT.new() * OPT.new(size) * OPT.new(size,flags) * OPT.new(size,flags,options)
initialize
ruby
collabnix/kubelabs
.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/resource/OPT.rb
https://github.com/collabnix/kubelabs/blob/master/.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/resource/OPT.rb
Apache-2.0
def flags_from_ttl if (@ttl) return [@ttl].pack("N") else return [0].pack("N") end end
From RFC 2671 : 4.3. The fixed part of an OPT RR is structured as follows: Field Name Field Type Description ------------------------------------------------------ NAME domain name empty (root domain) TYPE u_int16_t OPT CLASS u_int16_t sender's UDP payload size TTL u_int32_t extended RCODE and flags RDLEN u_int16_t describes RDATA RDATA octet stream {attribute,value} pairs 4.6. The extended RCODE and flags (which OPT stores in the RR TTL field) are structured as follows: +0 (MSB) +1 (LSB) +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ 0: | EXTENDED-RCODE | VERSION | +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ 2: | Z | +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ EXTENDED-RCODE Forms upper 8 bits of extended 12-bit RCODE. Note that EXTENDED-RCODE value "0" indicates that an unextended RCODE is in use (values "0" through "15"). VERSION Indicates the implementation level of whoever sets it. Full conformance with this specification is indicated by version "0."
flags_from_ttl
ruby
collabnix/kubelabs
.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/resource/OPT.rb
https://github.com/collabnix/kubelabs/blob/master/.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/resource/OPT.rb
Apache-2.0
def sameRRset(rec) if @klass != rec.klass || @name.downcase != rec.name.downcase return false elsif (rec.type == Types.RRSIG) && (@type == Types.RRSIG) return rec.type_covered == self.type_covered end [rec, self].each do |rr| if rr.type == Types::RRSIG return (@type == rr.type_covered) || (rec.type == rr.type_covered) end end @type == rec.type end
Determines if two Records could be part of the same RRset. This compares the name, type, and class of the Records; the ttl and rdata are not compared.
sameRRset
ruby
collabnix/kubelabs
.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/resource/RR.rb
https://github.com/collabnix/kubelabs/blob/master/.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/resource/RR.rb
Apache-2.0
def to_s s = name ? (name.to_s(true) + "\t") : '' s << [ttl, klass, type, rdata_to_string].map(&:to_s).join("\t") end
Returns a string representation of the RR in zone file format
to_s
ruby
collabnix/kubelabs
.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/resource/RR.rb
https://github.com/collabnix/kubelabs/blob/master/.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/resource/RR.rb
Apache-2.0
def rdata_to_string (@rdata && @rdata.length > 0) ? @rdata : 'no rdata' end
Get a string representation of the data section of the RR (in zone file format)
rdata_to_string
ruby
collabnix/kubelabs
.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/resource/RR.rb
https://github.com/collabnix/kubelabs/blob/master/.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/resource/RR.rb
Apache-2.0
def rrs return @rrs[0, @rrs.length-@num_sigs] end
The RRs (not RRSIGs) stored in this RRSet
rrs
ruby
collabnix/kubelabs
.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/resource/RRSet.rb
https://github.com/collabnix/kubelabs/blob/master/.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/resource/RRSet.rb
Apache-2.0
def add(rin, do_clone = true) if (rin.instance_of?RRSet) ret = false [rin.rrs, rin.sigs].each {|rr| ret = add(rr)} return ret end # r = RR.create(r.to_s) # clone the record r = nil if do_clone r = rin.clone else r = rin end if (@rrs.size() == 0) # && !(r.type == Types.RRSIG)) return privateAdd(r) end # Check the type, klass and ttl are correct first = @rrs[0] if (!r.sameRRset(first)) return false # raise ArgumentError.new("record does not match rrset") end if (!(r.type == Types::RRSIG) && (!(first.type == Types::RRSIG))) if (r.ttl != first.ttl) # RFC2181, section 5.2 if (r.ttl > first.ttl) r.ttl=(first.ttl) else @rrs.each do |rr| rr.ttl = r.ttl end end end end return privateAdd(r) # return true end
Add the RR to this RRSet Takes a copy of the RR by default. To suppress this, pass false as the second parameter.
add
ruby
collabnix/kubelabs
.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/resource/RRSet.rb
https://github.com/collabnix/kubelabs/blob/master/.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/resource/RRSet.rb
Apache-2.0
def type if (@rrs[0]) return @rrs[0].type end return nil end
Return the type of this RRSet
type
ruby
collabnix/kubelabs
.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/resource/RRSet.rb
https://github.com/collabnix/kubelabs/blob/master/.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/resource/RRSet.rb
Apache-2.0
def klass return @rrs[0].klass end
Return the klass of this RRSet
klass
ruby
collabnix/kubelabs
.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/resource/RRSet.rb
https://github.com/collabnix/kubelabs/blob/master/.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/resource/RRSet.rb
Apache-2.0
def ttl return @rrs[0].ttl end
Return the ttl of this RRSet
ttl
ruby
collabnix/kubelabs
.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/resource/RRSet.rb
https://github.com/collabnix/kubelabs/blob/master/.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/resource/RRSet.rb
Apache-2.0
def from_string(string) #:nodoc: all Dnsruby.log.error("Dnsruby::RR::TKEY#from_string called, but no text format defined for TKEY") end
Create the RR from a standard string
from_string
ruby
collabnix/kubelabs
.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/resource/TKEY.rb
https://github.com/collabnix/kubelabs/blob/master/.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/resource/TKEY.rb
Apache-2.0
def from_string(input) values = input.split(' ', 4) self.usage = values[0].to_i self.selector = values[1].to_i self.matching_type = values[2].to_i self.data = values[3] verify end
Create the RR from a standard string
from_string
ruby
collabnix/kubelabs
.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/resource/TLSA.rb
https://github.com/collabnix/kubelabs/blob/master/.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/resource/TLSA.rb
Apache-2.0
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. 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.
apply
ruby
collabnix/kubelabs
.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/resource/TSIG.rb
https://github.com/collabnix/kubelabs/blob/master/.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/resource/TSIG.rb
Apache-2.0
def sig_data(tsig_rr, time_signed=@time_signed) #:nodoc: all return MessageEncoder.new { |msg| msg.put_name(tsig_rr.name.downcase, true) msg.put_pack('nN', tsig_rr.klass.code, tsig_rr.ttl) msg.put_name(tsig_rr.algorithm.downcase, true) time_high = (time_signed >> 32) time_low = (time_signed & 0xFFFFFFFF) msg.put_pack('nN', time_high, time_low) msg.put_pack('n', tsig_rr.fudge) msg.put_pack('n', tsig_rr.error) msg.put_pack('n', tsig_rr.other_size) msg.put_bytes(tsig_rr.other_data) }.to_s end
Private method to return the TSIG RR data to be signed
sig_data
ruby
collabnix/kubelabs
.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/resource/TSIG.rb
https://github.com/collabnix/kubelabs/blob/master/.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/resource/TSIG.rb
Apache-2.0
def verify(query, response, response_bytes, buf="") # 4.6. Client processing of answer # # When a client receives a response from a server and expects to see a # TSIG, it first checks if the TSIG RR is present in the response. # Otherwise, the response is treated as having a format error and # discarded. The client then extracts the TSIG, adjusts the ARCOUNT, # and calculates the keyed digest in the same way as the server. If # the TSIG does not validate, that response MUST be discarded, unless # the RCODE is 9 (NOTAUTH), in which case the client SHOULD attempt to # verify the response as if it were a TSIG Error response, as specified # in [4.3]. A message containing an unsigned TSIG record or a TSIG # record which fails verification SHOULD not be considered an # acceptable response; the client SHOULD log an error and continue to # wait for a signed response until the request times out. # So, this verify method should simply remove the TSIG RR and calculate # the MAC (using original request MAC if required). # Should set tsigstate on packet appropriately, and return error. # Side effect is packet is stripped of TSIG. # Resolver (or client) can then decide what to do... msg_tsig_rr = response.tsig if (!verify_common(response)) return false end new_msg_tsig_rr = generate(response, query, buf, response_bytes, msg_tsig_rr) if (msg_tsig_rr.mac == new_msg_tsig_rr.mac) response.tsigstate = :Verified response.tsigerror = RCode.NOERROR return true else response.tsigstate = :Failed response.tsigerror = RCode.BADSIG return false end end
Verify a response. This method will be called by Dnsruby::SingleResolver before passing a response to the client code. The TSIG record will be removed from packet before passing to client, and the Message#tsigstate and Message#tsigerror will be set accordingly. Message#tsigstate will be set to one of : * :Failed * :Verified
verify
ruby
collabnix/kubelabs
.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/resource/TSIG.rb
https://github.com/collabnix/kubelabs/blob/master/.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/resource/TSIG.rb
Apache-2.0
def verify_envelope(response, response_bytes) # RFC2845 Section 4.4 # ----- # A DNS TCP session can include multiple DNS envelopes. This is, for # example, commonly used by zone transfer. Using TSIG on such a # connection can protect the connection from hijacking and provide data # integrity. The TSIG MUST be included on the first and last DNS # envelopes. It can be optionally placed on any intermediary # envelopes. It is expensive to include it on every envelopes, but it # MUST be placed on at least every 100'th envelope. The first envelope # is processed as a standard answer, and subsequent messages have the # following digest components: # # * Prior Digest (running) # * DNS Messages (any unsigned messages since the last TSIG) # * TSIG Timers (current message) # # This allows the client to rapidly detect when the session has been # altered; at which point it can close the connection and retry. If a # client TSIG verification fails, the client MUST close the connection. # If the client does not receive TSIG records frequently enough (as # specified above) it SHOULD assume the connection has been hijacked # and it SHOULD close the connection. The client SHOULD treat this the # same way as they would any other interrupted transfer (although the # exact behavior is not specified). # ----- # # Each time a new envelope comes in, this method is called on the QUERY TSIG RR. # It will set the response tsigstate to :Verified :Intermediate or :Failed # as appropriate. # Keep digest going of messages as they come in (and mark them intermediate) # When TSIG comes in, work out what key should be and check. If OK, mark # verified. Can reset digest then. if (!@buf) @num_envelopes = 0 @last_signed = 0 end @num_envelopes += 1 if (!response.tsig) if ((@num_envelopes > 1) && (@num_envelopes - @last_signed < 100)) Dnsruby.log.debug("Receiving intermediate envelope in TSIG TCP session") response.tsigstate = :Intermediate response.tsigerror = RCode.NOERROR @buf = @buf + response_bytes return else response.tsigstate = :Failed Dnsruby.log.error("Expecting signed packet") return false end end @last_signed = @num_envelopes # We have a TSIG - process it! tsig = response.tsig if (@num_envelopes == 1) Dnsruby.log.debug("First response in TSIG TCP session - verifying normally") # Process it as a standard answer ok = verify(@query, response, response_bytes) if (ok) mac_bytes = MessageEncoder.new {|m| m.put_pack('n', tsig.mac_size) m.put_bytes(tsig.mac) }.to_s @buf = mac_bytes end return ok end Dnsruby.log.debug("Processing TSIG on TSIG TCP session") if (!verify_common(response)) return false end # Now add the current message data - remember to frig the arcount response_bytes = Header.decrement_arcount_encoded(response_bytes) @buf += response_bytes[0, response.tsigstart] # Let's add the timers timers_data = MessageEncoder.new { |msg| time_high = (tsig.time_signed >> 32) time_low = (tsig.time_signed & 0xFFFFFFFF) msg.put_pack('nN', time_high, time_low) msg.put_pack('n', tsig.fudge) }.to_s @buf += timers_data mac = calculate_mac(tsig.algorithm, @buf) if (mac != tsig.mac) Dnsruby.log.error("TSIG Verify error on TSIG TCP session") response.tsigstate = :Failed return false end mac_bytes = MessageEncoder.new {|m| m.put_pack('n', mac.length) m.put_bytes(mac) }.to_s @buf=mac_bytes response.tsigstate = :Verified response.tsigerror = RCode.NOERROR return true end
Checks TSIG signatures across sessions of multiple DNS envelopes. This method is called each time a new envelope comes in. The envelope is checked - if a TSIG is present, them the stream so far is verified, and the response#tsigstate set to :Verified. If a TSIG is not present, and does not need to be present, then the message is added to the digest stream and the response#tsigstate is set to :Intermediate. If there is an error with the TSIG verification, then the response#tsigstate is set to :Failed. Like verify, this method will only be called by the Dnsruby::SingleResolver class. Client code need not call this method directly.
verify_envelope
ruby
collabnix/kubelabs
.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/resource/TSIG.rb
https://github.com/collabnix/kubelabs/blob/master/.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/resource/TSIG.rb
Apache-2.0
def from_string(str) #:nodoc: all parts = str.split("[:/]") if (parts.length < 2 || parts.length > 3) raise ArgumentException.new("Invalid TSIG key specification") end if (parts.length == 3) return TSIG.new(parts[0], parts[1], parts[2]); else return TSIG.new(HMAC_MD5, parts[0], parts[1]); end end
Create the RR from a standard string
from_string
ruby
collabnix/kubelabs
.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/resource/TSIG.rb
https://github.com/collabnix/kubelabs/blob/master/.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/lib/dnsruby/resource/TSIG.rb
Apache-2.0
def test_dnskey_from_string dnskey = Dnsruby::RR.create(INPUT) # assert(!dnskey.bad_flags?) assert_equal(3, dnskey.protocol) assert_equal(256, dnskey.flags) assert_equal(Dnsruby::Algorithms::RSASHA1, dnskey.algorithm) assert_equal(Dnsruby::RR::DNSKEY::ZONE_KEY, dnskey.flags & Dnsruby::RR::DNSKEY::ZONE_KEY) assert_equal(0, dnskey.flags & Dnsruby::RR::DNSKEY::SEP_KEY) dnskey2 = Dnsruby::RR.create(dnskey.to_s) assert(dnskey2.to_s == dnskey.to_s, "#{dnskey.to_s} not equal to \n#{dnskey2.to_s}") end
def test_bad_flag dnskey = Dnsruby::RR.create(BADINPUT) assert_equal(384, dnskey.flags) assert(dnskey.bad_flags?) end
test_dnskey_from_string
ruby
collabnix/kubelabs
.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/test/tc_dnskey.rb
https://github.com/collabnix/kubelabs/blob/master/.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/test/tc_dnskey.rb
Apache-2.0
def gpos_from_response # query = Message.new(EXAMPLE_HOSTNAME, 'GPOS') # query_binary = "E0\u0000\u0000\u0000\u0001\u0000\u0000\u0000\u0000\u0000\u0000\u0001a\adnsruby\u0003com\u0000\u0000\e\u0000\u0001" # response, _error = Resolver.new('127.0.0.1').query_raw(query) response_binary = "E0\x84\x80\x00\x01\x00\x01\x00\x01\x00\x01\x01a\adnsruby\x03com\x00\x00\e\x00\x01\xC0\f\x00\e\x00\x01\x00\x00*0\x00\x0F\x0410.0\x0420.0\x0430.0\xC0\x0E\x00\x02\x00\x01\x00\x00*0\x00\x06\x03ns1\xC0\x0E\xC0F\x00\x01\x00\x01\x00\x00*0\x00\x04\x7F\x00\x00\x01" response = Message.decode(response_binary) # response_binary = "\xE7\x01\x85\x90\x00\x01\x00\x01\x00\x01\x00\x01\x01g\adnsruby\x03com" + # "\x00\x00\e\x00\x01\xC0\f\x00\e\x00\x01\x00\t:\x80\x00\x0F\x0420.0\x0430.0\x0410.0" + # "\xC0\x0E\x00\x02\x00\x01\x00\t:\x80\x00\x05\x02ns\xC0\x0E\xC0F\x00\x01\x00\x01\x00" + # "\t:\x80\x00\x04\xC0\xA8\x01\n"; nil # # response = Message.decode(response_binary) response.answer[0] end
Returns a GPOS record returned by a BIND server configured with the zone file shown at the bottom of this file. I (keithrbennett) was unable to find a GPOS record on the public Internet to use for live testing.
gpos_from_response
ruby
collabnix/kubelabs
.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/test/tc_gpos.rb
https://github.com/collabnix/kubelabs/blob/master/.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/test/tc_gpos.rb
Apache-2.0
def test_to_s actual = gpos_from_response.to_s.split expected = %w(a.dnsruby.com. 10800 IN GPOS 10.0 20.0 30.0) assert_equal(expected, actual) end
should be: <owner> <ttl> <class> GPOS <longitude> <latitude> <altitude>
test_to_s
ruby
collabnix/kubelabs
.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/test/tc_gpos.rb
https://github.com/collabnix/kubelabs/blob/master/.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/test/tc_gpos.rb
Apache-2.0
def test_hs_class_returns_notimp_code_and_error resolver_host = 'a.gtld-servers.net' resolver = Dnsruby::Resolver.new(resolver_host) resolver.query_timeout = 20 message = Dnsruby::Message.new('test.com', 'A', 'HS') response, error = resolver.send_plain_message(message) assert_equal(Dnsruby::RCode::NOTIMP, response.rcode) assert_equal(Dnsruby::NotImp, error.class) end
Illustrates that when a message whose class is 'HS' is sent to a DNS server that does not support the HS class, using send_plain_message, the response returns with an rcode of NOTIMP and a Dnsruby::NotImp error.
test_hs_class_returns_notimp_code_and_error
ruby
collabnix/kubelabs
.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/test/tc_hs.rb
https://github.com/collabnix/kubelabs/blob/master/.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/test/tc_hs.rb
Apache-2.0
def sample_message Message.new('cnn.com', 'A') end
Creates and returns sample message: ;; QUESTION SECTION (1 record) ;; cnn.com. IN A ;; Security Level : UNCHECKED ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 7195 ;; flags: ; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
sample_message
ruby
collabnix/kubelabs
.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/test/tc_message.rb
https://github.com/collabnix/kubelabs/blob/master/.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/test/tc_message.rb
Apache-2.0
def test_proc domain = 'example.com'; tests = [ [ 1, RR.create('foo.example.com 60 IN A 10.0.0.1'), RR.create('foo.example.com 60 IN A 10.0.0.1'), ], [ 2, RR.create('foo.example.com 60 IN A 10.0.0.1'), RR.create('bar.example.com 60 IN A 10.0.0.1'), ], [ 1, # RFC 2136 section 1.1 RR.create('foo.example.com 60 IN A 10.0.0.1'), RR.create('foo.example.com 60 IN A 10.0.0.1'), RR.create('foo.example.com 90 IN A 10.0.0.1'), ], [ 3, RR.create('foo.example.com 60 IN A 10.0.0.1'), RR.create('foo.example.com 60 IN A 10.0.0.2'), RR.create('foo.example.com 60 IN A 10.0.0.3'), ], [ 3, RR.create('foo.example.com 60 IN A 10.0.0.1'), RR.create('foo.example.com 60 IN A 10.0.0.2'), RR.create('foo.example.com 60 IN A 10.0.0.3'), RR.create('foo.example.com 60 IN A 10.0.0.1'), ], [ 3, RR.create('foo.example.com 60 IN A 10.0.0.1'), RR.create('foo.example.com 60 IN A 10.0.0.2'), RR.create('foo.example.com 60 IN A 10.0.0.1'), RR.create('foo.example.com 60 IN A 10.0.0.4'), ], ] methods = { 'add_answer' => 'ancount', 'add_authority' => 'nscount', 'add_additional' => 'arcount', } tests.each do | try | count = try.shift; rrs = try; methods.each do |method, count_meth| packet = Message.new(domain) rrs.each do |rr| packet.send(method,rr) end assert_equal(count, packet.header.send(count_meth), "#{method} right for #{rrs.inspect}"); assert_equal(count, packet.header.send(count_meth), "#{method} right for #{rrs.inspect}"); end end end
def test_packUniquePush testProc('unique_push'); end # def test_packetSafePush # begin # testProc('safe_push'); # flunk("Shouldn't work!") # rescue Exception # end # end def testProc (method)
test_proc
ruby
collabnix/kubelabs
.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/test/tc_packet_unique_push.rb
https://github.com/collabnix/kubelabs/blob/master/.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/test/tc_packet_unique_push.rb
Apache-2.0
def verify(message_data_as_hex_string, canonical = false) # Dnsruby.log.level = Logger::DEBUG message = Message.decode([message_data_as_hex_string].pack('H*').force_encoding("ASCII-8BIT")) Message.decode(message.encode(canonical)) end
Tests that message raises no error when decoded, encoded, and decoded again.
verify
ruby
collabnix/kubelabs
.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/test/tc_ptrin.rb
https://github.com/collabnix/kubelabs/blob/master/.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/test/tc_ptrin.rb
Apache-2.0
def test_non_canonical verify( 'f8f681900001000200030005076578616d706c6503636f6d0000010001c00c0001000100014f0c00045db8d822c00c002e000100014f0c00a20001080200015180580ec93f57f38df906a8076578616d706c6503636f6d006ae1882b1536a15c44f5813671af57bf9cae0366cff2ec085d6dedfddff0c469fa827ceec953de7cc1eee634f4cf695dc2caa2074f95199a5582e51e63b336d8f091d18c0c1a307ae3f5508ec650c4085a95e54e2c2451d9fc9ae04b4e62f3d1a1689e9507c3692fb84817a70afd3e9cdf066f73cc4ac11ed080a30d2af31510b457b5c04b0002000100014f0c001401620c69616e612d73657276657273036e657400c04b0002000100014f0c00040161c0e9c04b002e000100014f0c00a2000208020001518058109f4c57f56c1906a8076578616d706c6503636f6d006d8dd0fdbd0a0b0bfe7e4306a4a001bb7a13df2faedb1702a329243c326b915191335e99e16a236de99360547efa96ec6ee547a6dcfab94b57de6f7891bcaf99a2ef5d3c72d5bc18d1bf05ff4473f527bd8f2e6621489ab531dfb6a973e37e0f0be52740a362599058b204097a04c96492e527bfca6a22338eb865b51156c2ab0e6940c10700010001000004940004c72b8735c107001c00010001e209001020010500008f00000000000000000053c0e700010001000004940004c72b8535c0e7001c00010001e209001020010500008d000000000000000000530000291000000080000000') end
example.com A IN (2-byte size removed at beginning)
test_non_canonical
ruby
collabnix/kubelabs
.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/test/tc_ptrin.rb
https://github.com/collabnix/kubelabs/blob/master/.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/test/tc_ptrin.rb
Apache-2.0
def test_canonical verify( 'bb7a81900001041200000001023332033139370234360332303707696e2d61646472046172706100000c0001c00c000c0001000008aa0017116270666f726772656174706c61696e733203636f6d00c00c000c0001000008aa00130e64657369676e6564666f7262696702636e00c00c000c0001000008aa000f0a6f66666963653230303702636800c00c000c0001000008aa000e0977696e646f77737870026b7a00c00c000c0001000008aa00150f77696e646f77733230303074657374036f726700c00c000c0001000008aa000e0b77696e646f77736e743938c0bfc00c000c0001000008aa0016117370726f7374616a77797a77616e696f6d02706c00c00c000c0001000008aa000f09697462727565636b65036e657400c00c000c0001000008aa001512626c7565796f6e6465726169726c696e6573c0bfc00c000c0001000008aa00140f6d73646e746563686e6574746f757202667200c00c000c0001000008aa000c0977696e646f77733938c085c00c000c0001000008aa00130a6f66666963653230303703636f6d026d7800c00c000c0001000008aa000906617a7572696bc116c00c000c0001000008aa00140f65756772616e747361647669736f7202697400c00c000c0001000008aa00171477696e646f7773787067616d6561647669736f72c0bfc00c000c0001000008aa000e09697462727565636b6502646500c00c000c0001000008aa00100b77696e646f77737275627902686b00c00c000c0001000008aa00120977696e646f7773787003636f6d02677400c00c000c0001000008aa000e0b77696e646f777332303037c0bfc00c000c0001000008aa00151268756d6f6e676f7573696e737572616e6365c04ac00c000c0001000008aa001411756b636f6d6d756e697479617761726473c116c00c000c0001000008aa00130a77696e64736f77737870036e657402646f00c00c000c0001000008aa001509646f776e6c6f616473086263656e7472616cc04ac00c000c0001000008aa000e09666f726566726f6e7402617400c00c000c0001000008aa00120d726573706f6e7365706f696e74026c7400c00c000c0001000008aa00130e65766572796f6e6567657473697402657500c00c000c0001000008aa000e09666f726566726f6e7402626500c00c000c0001000008aa00100977696e646f77737870036f7267c2b5c00c000c0001000008aa00120977696e646f777378700372656302726f00c00c000c0001000008aa00120d726573706f6e7365706f696e7402706800c00c000c0001000008aa0015126361707375726c6573756363657332303038c116c00c000c0001000008aa000e0977696e646f7773787002706e00c00c000c0001000008aa000e0b77696e646f777332303030c085c00c000c0001000008aa001815636f686f76696e6579617264616e6477696e657279c04ac00c000c0001000008aa00120977696e646f7773787003636f6d02746c00c00c000c0001000008aa00140f65756772616e747361647669736f72026c7600c00c000c0001000008aa00140f65756772616e747361647669736f7202636c00c00c000c0001000008aa00181164656679616c6c6368616c6c656e67657303636f6dc21dc00c000c0001000008aa00110e7374617274736f6d657468696e67c347c00c000c0001000008aa00100977696e646f77737870036f7267c23bc00c000c0001000008aa00100977696e646f77737870036f7267c0fcc00c000c0001000008aa0016136f666672652d65626c6f75697373616e746573c0bfc00c000c0001000008aa00140b77696e646f77737275627903636f6d02657300c00c000c0001000008aa000f0a6f66666963653230303702636100c00c000c0001000008aa000e0977696e646f7773787002616d00c00c000c0001000008aa001109626570636c6567616c02636f02756b00c00c000c0001000008aa000d0877696e646f77787002747600c00c000c0001000008aa00110977696e646f7773787004696e666fc381c00c000c0001000008aa001f1c786e2d2d66726465726d697474656c2d72617467656265722d333962c201c00c000c0001000008aa00110e65766572796f6e65676574736974c531c00c000c0001000008aa00151268756d6f6e676f7573696e737572616e6365c0bfc00c000c0001000008aa00110e696973646961676e6f7374696373c0bfc00c000c0001000008aa00160f65756772616e747361647669736f7203636f6dc0fcc00c000c0001000008aa000b06666c6578676f02696e00c00c000c0001000008aa00120f696e73696465647269766532303032c04ac00c000c0001000008aa00100d726573706f6e7365706f696e74c18bc00c000c0001000008aa001815636f6e736f6c6964617465646d657373656e676572c116c00c000c0001000008aa000c09666f726566726f6e74c678c00c000c0001000008aa00140b77696e646f77737275627903636f6d02766500c00c000c0001000008aa0017146761676e657a2d656e2d65666669636163697465c0bfc00c000c0001000008aa000f0c636f686f76696e6579617264c0bfc00c000c0001000008aa001714636f6e73756d6572676f6f647373656d696e6172c04ac00c000c0001000008aa001310666f726f706572737065637469766173c0bfc00c000c0001000008aa00120977696e646f7773787003636f6d02616900c00c000c0001000008aa00170e65766572796f6e6567657473697403636f6d02617500c00c000c0001000008aa00120977696e646f77737870036e657402766900c00c000c0001000008aa00120f77696e646f77733230303074657374c116c00c000c0001000008aa00180f65756772616e747361647669736f7203636f6d02707400c00c000c0001000008aa00100b77696e646f777332303030026e6c00c00c000c0001000008aa000c0977696e646f77733935c0bfc00c000c0001000008aa0014117365727665757273616e736c696d697465c116c00c000c0001000008aa0015126d6963726f736f6674666f726566726f6e74c2f0c00c000c0001000008aa000e0977696e646f7773787002736e00c00c000c0001000008aa000e0977696e646f7773787002736300c00c000c0001000008aa0017146d6963726f736f667474696d65657870656e7365c04ac00c000c0001000008aa001c19647269766572646576656c6f706572636f6e666572656e6365c0bfc00c000c0001000008aa000b0877696e646f777870c82bc00c000c0001000008aa000b0661786170746102727500c00c000c0001000008aa000f09666f726566726f6e7402636fc678c00c000c0001000008aa000b0877696e646f777870c436c00c000c0001000008aa000c09626570636c6567616cc04ac00c000c0001000008aa000b0877696e646f777870c456c00c000c0001000008aa000b06666c6578676f02746d00c00c000c0001000008aa0017146761676e657a2d656e2d65666669636163697465c116c00c000c0001000008aa0015126d6963726f736f6674666f726566726f6e74c158c00c000c0001000008aa00110e636c7562736d61727470686f6e65c116c00c000c0001000008aa000c09666f726566726f6e74c158c00c000c0001000008aa00100d726573706f6e7365706f696e74c347c00c000c0001000008aa0015126361707375726c6573756363657332303038c0bfc00c000c0001000008aa000c09666f726566726f6e74c52dc00c000c0001000008aa000906666c6578676fc84bc00c000c0001000008aa00100977696e646f77737870036f7267c39fc00c000c0001000008aa00151273747265616d6c696e6566696e616e636573c04ac00c000c0001000008aa00130d726573706f6e7365706f696e740362697a00c00c000c0001000008aa00120d726573706f6e7365706f696e7402646b00c00c000c0001000008aa000f0c6d6f6e6e6f7576656c616d69c158c00c000c0001000008aa00120f77696e646f77733230303074657374c04ac00c000c0001000008aa000f0c666f75727468636f66666565c04ac00c000c0001000008aa001310666f726f706572737065637469766173c116c00c000c0001000008aa00110e6272757465666f72636567616d65c04ac00c000c0001000008aa000c09696e73656775726f73c116c00c000c0001000008aa00100d726573706f6e7365706f696e74c381c00c000c0001000008aa000f0c647269766572646576636f6ec04ac00c000c0001000008aa001611666f727265746e696e677373797374656d026e6f00c00c000c0001000008aa00140f65756772616e747361647669736f72026c7500c00c000c0001000008aa00100977696e646f77737870036e6574c436c00c000c0001000008aa00120977696e646f7773787003636f6d02666a00c00c000c0001000008aa00140d726573706f6e7365706f696e7403636f6dc06ac00c000c0001000008aa00100d726573706f6e7365706f696e74c580c00c000c0001000008aa000c09666f726566726f6e74c085c00c000c0001000008aa000e0977696e646f7773787002686e00c00c000c0001000008aa00161370736f65786563757469766573656d696e6172c04ac00c000c0001000008aa000906656e6779726fc04ac00c000c0001000008aa00110e6361736866696e616e6369616c73c04ac00c000c0001000008aa00151268756d6f6e676f7573696e737572616e6365c116c00c000c0001000008aa001512636f6e666f726d6974656c6963656e636573c0bfc00c000c0001000008aa0019166c65732d646f696774732d64616e732d6c652d6e657ac158c00c000c0001000008aa000e0977696e646f7773787002616700c00c000c0001000008aa000d0a676f746f746563686564c04ac00c000c0001000008aa00110e667574757265706f73746d61696cc580c00c000c0001000008aa0019166c7574746572636f6e7472656c657069726174616765c0bfc00c000c0001000008aa0014116c756365726e657075626c697368696e67c04ac00c000c0001000008aa000c09666f726566726f6e74cb26c00c000c0001000008aa000e0977696e646f7773787002757a00c00c000c0001000008aa000d0a636f686f77696e657279c116c00c000c0001000008aa001310657870657269656e6365746563686564c04ac00c000c0001000008aa00191677696e646f7773647269766572646576656c6f706572c0bfc00c000c0001000008aa000b0877696e646f777870cac6c00c000c0001000008aa00100d726573706f6e7365706f696e74c70ac00c000c0001000008aa000e0977696e646f7773787002666d00c00c000c0001000008aa00100d726573706f6e7365706f696e74c951c00c000c0001000008aa00130a6f66666963653230303703636f6d02736700c00c000c0001000008aa00110e64657369676e6564666f72626967c116c00c000c0001000008aa000b086370616475766f6cc0bfc00c000c0001000008aa000d0877696e646f777870026d6e00c00c000c0001000008aa000c09666f726566726f6e74c201c00c000c0001000008aa000e0977696e646f77737870026d7500c00c000c0001000008aa000a07666f7269656e74c04ac00c000c0001000008aa000c0977696e646f77737870cfa3c00c000c0001000008aa00100d6c6573626f6e736f7574696c73c0bfc00c000c0001000008aa0014117365727665757273616e736c696d697465c04ac00c000c0001000008aa000e0b6f66666963657265616479cb26c00c000c0001000008aa00120d726573706f6e7365706f696e7402626f00c00c000c0001000008aa000b086d6f6e727562616ec04ac00c000c0001000008aa00100d726573706f6e7365706f696e74c085c00c000c0001000008aa00100d726573706f6e7365706f696e74c54cc00c000c0001000008aa00110e6a65646572686174736472617566c116c00c000c0001000008aa001e1b647269766572646576656c6f706d656e74636f6e666572656e6365c0bfc00c000c0001000008aa000e0b77696e646f777372756279c84bc00c000c0001000008aa001613636f6e666f726d6974652d6c6963656e636573c116c00c000c0001000008aa0015126361707375726c6573756363657332303038c04ac00c000c0001000008aa000d0877696e646f77787002677300c00c000c0001000008aa000d0a7374756f73626f726e65c116c00c000c0001000008aa000c09666f726566726f6e74c18bc00c000c0001000008aa0013106a656465722d686174732d6472617566c201c00c000c0001000008aa0014116d6f62696c657063646576656c6f706572c04ac00c000c0001000008aa00100977696e646f77737870036f7267c3dac00c000c0001000008aa00160d726573706f6e7365706f696e7403636f6d026d7900c00c000c0001000008aa000f0c636f686f76696e6579617264c04ac00c000c0001000008aa00120f73656d696e61697265732d6e617635c158c00c000c0001000008aa000f0c647269766572646576636f6ec116c00c000c0001000008aa000b0877696e646f777870c566c00c000c0001000008aa000f0c6469676974616c616e76696cc04ac00c000c0001000008aa00100d726573706f6e7365706f696e74c158c00c000c0001000008aa000c0977696e646f77733938c04ac00c000c0001000008aa0018156e61762d636f6d706c69616e636577656263617374c04ac00c000c0001000008aa00110e70726f6a656374657870656e7365c04ac00c000c0001000008aa000906666c6578676fc0bfc00c000c0001000008aa000f0877696e646f77787003636f6dc8d8c00c000c0001000008aa000b086c69666563616d73c04ac00c000c0001000008aa00120f696d6167696e657a6c617375697465c0bfc00c000c0001000008aa00171474616b65636f6e74726f6c6f66706179726f6c6cc04ac00c000c0001000008aa0019166772617068696364657369676e696e73746974757465c04ac00c000c0001000008aa00130d726573706f6e7365706f696e7402636fc2f0c00c000c0001000008aa000e0b77696e646f777372756279c498c00c000c0001000008aa000c09697462727565636b65c0bfc00c000c0001000008aa001a17636c756270617274656e61697265737365727669636573c116c00c000c0001000008aa000d0a696d6167696e65637570c580c00c000c0001000008aa000e0b77696e646f777372756279cf52c00c000c0001000008aa001714617a7572696b726973656f667065726174686961c0bfc00c000c0001000008aa00100d726573706f6e7365706f696e74c7cbc00c000c0001000008aa001c19647269766572646576656c6f706572636f6e666572656e6365c04ac00c000c0001000008aa000f0c6d6f6e6e6f7576656c616d69c04ac00c000c0001000008aa000c09626c6f6f6477616b65c04ac00c000c0001000008aa00110e6a65646572686174736472617566c201c00c000c0001000008aa00120d726573706f6e7365706f696e7402646d00c00c000c0001000008aa001613636f6e666f726d6974652d6c6963656e636573c0bfc00c000c0001000008aa00120f696d6167696e657a6c617375697465c158c00c000c0001000008aa000c09666f726566726f6e74c951c00c000c0001000008aa000c09666f726566726f6e74c531c00c000c0001000008aa000e0b77696e646f777332303037cb07c00c000c0001000008aa00110e6d6f62696c6574656368746f7572c116c00c000c0001000008aa000e0b77696e646f777332303036c116c00c000c0001000008aa00120f63656e747265646573757361676573c0bfc00c000c0001000008aa001e1b786e2d2d66726465726d697474656c72617467656265722d713662c201c00c000c0001000008aa000b06666c6578676f02757300c00c000c0001000008aa00120d726573706f6e7365706f696e7402736500c00c000c0001000008aa0007046f727063cb26c00c000c0001000008aa001512696e666f726d61736a6f6e7373797374656dcc27c00c000c0001000008aa001109666f726566726f6e7402636f026b7200c00c000c0001000008aa00130a6f66666963653230303703636f6d02627200c00c000c0001000008aa000e0977696e646f7773787002626900c00c000c0001000008aa00252277696e646f7773647269766572646576656c6f706d656e74636f6e666572656e6365c04ac00c000c0001000008aa001310666f726f706572737065637469766173c04ac00c000c0001000008aa000a077061726c616e6fc04ac00c000c0001000008aa00110e696973646961676e6f7374696373c116c00c000c0001000008aa000906617a7572696bc0bfc00c000c0001000008aa000c09696e73656775726f73c04ac00c000c0001000008aa000e0977696e646f77737870026b6700c00c000c0001000008aa000e0977696e646f7773787002636700c00c000c0001000008aa00150e65766572796f6e65676574736974036e6574c7cfc00c000c0001000008aa000d0a636f686f77696e657279c04ac00c000c0001000008aa00120f6d797374617274757063656e746572c04ac00c000c0001000008aa001714706c75736465343030646966666572656e636573c54cc00c000c0001000008aa00100d726573706f6e7365706f696e74c0bfc00c000c0001000008aa0015126c6573646f6967747364616e736c656e657ac158c00c000c0001000008aa000c0970726f736577617265c116c00c000c0001000008aa000e0b6374726f70656e6f726d65c04ac00c000c0001000008aa000c0970726f736577617265c04ac00c000c0001000008aa000f0c77696e646f77732d32303030c84bc00c000c0001000008aa00120f696d70726f7665616e616c79736973c04ac00c000c0001000008aa000c09666f726566726f6e74c1c4c00c000c0001000008aa00191664656375706c657a766f747265706f74656e7469656cc04ac00c000c0001000008aa001a17686572617573666f72646572756e67736d656973746572c201c00c000c0001000008aa001411627033666f726772656174706c61696e73c04ac00c000c0001000008aa00120f696d6167696e65726c617375697465c04ac00c000c0001000008aa00120f696d6167696e65726c617375697465c158c00c000c0001000008aa00100d726573706f6e7365706f696e74c59cc00c000c0001000008aa000d0a77696e7465726e616c73c04ac00c000c0001000008aa0009046575676102677200c00c000c0001000008aa000e0b6374726f70656e6f726d65c116c00c000c0001000008aa001411756b636f6d6d756e697479617761726473c0bfc00c000c0001000008aa0015126c6573646f6967747364616e736c656e657ac0bfc00c000c0001000008aa0009066f6666726573d967c00c000c0001000008aa00100d6f70656e74797065666f72756dc04ac00c000c0001000008aa00100d726573706f6e7365706f696e74da48c00c000c0001000008aa00150d726573706f6e7365706f696e7402636f02696c00c00c000c0001000008aa001916656e68616e6365796f757270656f706c656173736574c04ac00c000c0001000008aa0015126d6963726f736f6674666f726566726f6e74c951c00c000c0001000008aa0015126d6963726f736f6674666f726566726f6e74c21dc00c000c0001000008aa00100d63696f2d636f6d6d756e697479c085c00c000c0001000008aa0015126d6963726f736f6674666f726566726f6e74c580c00c000c0001000008aa0013106a656465722d686174732d6472617566c0bfc00c000c0001000008aa001815666f65726465726d697474656c7261746765626572c201c00c000c0001000008aa000c09626570636c6567616cc116c00c000c0001000008aa0019166d69677265727665727376697375616c73747564696fc0bfc00c000c0001000008aa000f0c6270666f72736f6c6f6d6f6ec04ac00c000c0001000008aa0019166f6666696365706f75726c65736574756469616e7473c0bfc00c000c0001000008aa00100d627033666f72736f6c6f6d6f6ec04ac00c000c0001000008aa00090669746865726fd6e4c00c000c0001000008aa0014116d6f62696c657063646576656c6f706572c0bfc00c000c0001000008aa000b08706f636b65747063c116c00c000c0001000008aa001512636f6e666f726d6974656c6963656e636573c116c00c000c0001000008aa000c096576726f706c616e6fda48c00c000c0001000008aa001a17636c756270617274656e61697265737365727669636573c0bfc00c000c0001000008aa001c19647269766572646576656c6f706572636f6e666572656e6365c116c00c000c0001000008aa00171467702d636f6d706c69616e636577656263617374c04ac00c000c0001000008aa000e0b7061636b746f7574656e31c0bfc00c000c0001000008aa0019166c65732d646f696774732d64616e732d6c652d6e657ac04ac00c000c0001000008aa001109686f77746f74656c6c02636f026e7a00c00c000c0001000008aa001e1b647269766572646576656c6f706d656e74636f6e666572656e6365c04ac00c000c0001000008aa0015126d6963726f736f6674666f726566726f6e74d696c00c000c0001000008aa000e0b7061636b746f7574656e31c116c00c000c0001000008aa001512636f6e666f726d6974656c6963656e636573c04ac00c000c0001000008aa000b0877696e646f777870c39fc00c000c0001000008aa0015126d6963726f736f6674666f726566726f6e74c531c00c000c0001000008aa001613736d61727470686f6e65636f6d6d756e697479c04ac00c000c0001000008aa001e1b647269766572646576656c6f706d656e74636f6e666572656e6365c116c00c000c0001000008aa000f0c6d6f6e6e6f7576656c616d69c116c00c000c0001000008aa000f0c7061636b746f7574656e756ec0bfc00c000c0001000008aa00110e65766572796f6e65676574736974c54cc00c000c0001000008aa00100d77696e646f77736d6f62696c65d696c00c000c0001000008aa001b126d6963726f736f6674666f726566726f6e7403636f6d02747700c00c000c0001000008aa00120f6d73646e746563686e6574746f7572c04ac00c000c0001000008aa00120977696e646f77737870036f726702747000c00c000c0001000008aa00120f6f6e6c696e6573706f746c69676874c0bfc00c000c0001000008aa00100d6c6573626f6e736f7574696c73c116c00c000c0001000008aa000a076f6e6d79776179cb26c00c000c0001000008aa000c09696f2d6d6f64656c6cc201c00c000c0001000008aa000a076f6e6563617265c04ac00c000c0001000008aa00110e726973656f667065726174686961c04ac00c000c0001000008aa000f0c636c7562706f636b65747063c04ac00c000c0001000008aa001a176d6963726f736f66742d6272616e6368656e766964656fc201c00c000c0001000008aa0009066370616e646cc04ac00c000c0001000008aa0015126d6963726f736f6674666f726566726f6e74c0bfc00c000c0001000008aa0013106a656465722d686174732d6472617566c116c00c000c0001000008aa000c096f6e6d79776179756bc04ac00c000c0001000008aa000a07636f6e746f736fc04ac00c000c0001000008aa000b086e61766973696f6ec085c00c000c0001000008aa0014116361702d7375722d6c652d737563636573c0bfc00c000c0001000008aa000c09696e73656775726f73c0bfc00c000c0001000008aa00141164656679616c6c6368616c6c656e676573c1c4c00c000c0001000008aa000c096c6561726e32617370c116c00c000c0001000008aa00100d66696e656172747363686f6f6cc116c00c000c0001000008aa00110e646f776e6c6f616467726f6f7665c04ac00c000c0001000008aa0015126d6963726f736f6674666f726566726f6e74d702c00c000c0001000008aa000f0c7061636b746f7574656e756ec04ac00c000c0001000008aa0009066370616e646cc0bfc00c000c0001000008aa0015126d6963726f736f6674666f726566726f6e74c52dc00c000c0001000008aa00120f646566726167636f6d6d616e646572c04ac00c000c0001000008aa0015126d6963726f736f6674666f726566726f6e74c39fc00c000c0001000008aa001a17636c756270617274656e61697265737365727669636573c04ac00c000c0001000008aa0023206d6f6465726e65722d76657277616c74756e677361726265697473706c61747ac201c00c000c0001000008aa0015126d6963726f736f6674666f726566726f6e74c085c00c000c0001000008aa000c09666f726566726f6e74c39fc00c000c0001000008aa0013106a656465722d686174732d6472617566c04ac00c000c0001000008aa00100d77696e646f77736d6f62696c65c531c00c000c0001000008aa00110e65766572796f6e65676574736974c580c00c000c0001000008aa00131074686570686f6e652d636f6d70616e79c04ac00c000c0001000008aa00110e646f776e6c6f616467726f6f7665c116c00c000c0001000008aa0015126c6573646f6967747364616e736c656e657ac116c00c000c0001000008aa0014116d616e6167656669786564617373657473c04ac00c000c0001000008aa000c09707261786973746167c085c00c000c0001000008aa00150e65766572796f6e65676574736974036f7267c583c00c000c0001000008aa0015126f666672652d65626c6f75697373616e7465c04ac00c000c0001000008aa000c09697462727565636b65c04ac00c000c0001000008aa0014116d616e6167656669786564617373657473c0bfc00c000c0001000008aa000f0c6d6963726f736f6674646f70c116c00c000c0001000008aa000e0b77696e646f777332303030c2f0c00c000c0001000008aa0015126d6963726f736f6674666f726566726f6e74cc27c00c000c0001000008aa0016136e6f74666f7270726f66697473656d696e6172c04ac00c000c0001000008aa00120f696d6167696e657a6c617375697465c116c00c000c0001000008aa00100d726573706f6e7365706f696e74d6e4c00c000c0001000008aa000c09666f726566726f6e74df83c00c000c0001000008aa0013106e6f72746877696e6474726164657273c04ac00c000c0001000008aa00100d77696e646f77736d6f62696c65c201c00c000c0001000008aa00131069697377656263617374736572696573c0bfc00c000c0001000008aa001815636f6e736f6c6964617465646d657373656e676572c04ac00c000c0001000008aa00120d726573706f6e7365706f696e7402636300c00c000c0001000008aa0014116d616e6167656669786564617373657473c116c00c000c0001000008aa000e0977696e646f7773787002766300c00c000c0001000008aa00100d646f746e657465787065727473c2f0c00c000c0001000008aa00110e6a65646572686174736472617566c0bfc00c000c0001000008aa000f0c6e636f6d706173736c616273c04ac00c000c0001000008aa00110e65766572796f6e65676574736974c201c00c000c0001000008aa000d0a6c697477617265696e63c116c00c000c0001000008aa0021066f666672657317656e7472657072656e6575722d73757065726865726f73c04ac00c000c0001000008aa0015126d6963726f736f6674666f726566726f6e74d6e4c00c000c0001000008aa00100d72656e636f6e7472652d333630c116c00c000c0001000008aa000e0b6d756e63686f6e74686973c0bfc00c000c0001000008aa0015126d6963726f736f6674666f726566726f6e74df83c00c000c0001000008aa00120f696d6167696e657a6c617375697465c04ac00c000c0001000008aa0015126d6963726f736f6674666f726566726f6e74c0fcc00c000c0001000008aa00100d77696e646f77736e7432303030c0bfc00c000c0001000008aa000f0c6d6f6e2d7061636b2d70726fc04ac00c000c0001000008aa00110e646f776e6c6f616467726f6f7665c0bfc00c000c0001000008aa000c09646f742d7472757468c04ac00c000c0001000008aa00100d6465667261676d616e61676572c04ac00c000c0001000008aa000c0965727073797374656dcc27c00c000c0001000008aa00161372656c65766572746f75736c65736465666973c04ac00c000c0001000008aa0015126d6963726f736f6674666f726566726f6e74c04ac00c000c0001000008aa0013106f66667265732d6d6963726f736f6674c0bfc00c000c0001000008aa000c076f6e6d7977617902666900c00c000c0001000008aa000f0c746563686461797332303038c0bfc00c000c0001000008aa000906637368617270c116c00c000c0001000008aa0015126f666672652d65626c6f75697373616e7465c116c00c000c0001000008aa000906666c6578676fc158c00c000c0001000008aa0015126d737368617265706f696e74666f72756d73c0bfc00c000c0001000008aa000e0b6c6f6f6b6f7574736f6674c04ac00c000c0001000008aa001b126d6963726f736f6674666f726566726f6e7403636f6d02617200c00c000c0001000008aa0009066370616e646cc116c00c000c0001000008aa00120f6d7977696e646f77736d6f62696c65df7fc00c000c0001000008aa000c09706f636b65746d736ec580c00c000c0001000008aa00120f6f6e6c696e6573706f746c69676874c04ac00c000c0001000008aa000d0a6f666669636532303037c96bc00c000c0001000008aa001815636f6e736f6c6964617465646d657373656e676572c0bfc00c000c0001000008aa001a1777696e646f77736d6f62696c65636f6d6d6d756e697479c0bfc00c000c0001000008aa00201d6f6666696365736d616c6c627573696e6573736163636f756e74696e67c04ac00c000c0001000008aa00120f696d6167696e65726c617375697465c0bfc00c000c0001000008aa000b086e636f6d70617373c04ac00c000c0001000008aa00181577696e646f7773616e7974696d6575706772616465c04ac00c000c0001000008aa000e0b77696e646f777332303036cb07c00c000c0001000008aa0015126d6963726f736f6674666f726566726f6e74dde0c00c000c0001000008aa001411657874656e646572736d6172746c697374c04ac00c000c0001000008aa00110e646973636f766572746563686564c04ac00c000c0001000008aa0017126d6963726f736f6674666f726566726f6e74026a7000c00c000c0001000008aa0014116c756365726e657075626c697368696e67c0bfc00c000c0001000008aa0015126d6963726f736f6674666f726566726f6e74d22dc00c000c0001000008aa000b0872656d69782d3038c04ac00c000c0001000008aa00232077696e646f7773647269766572646576656c6f706572636f6e666572656e6365c116c00c000c0001000008aa00100d6f666669636572656164797063cb26c00c000c0001000008aa00110e6d6963726f736f66746174636573c04ac00c000c0001000008aa0017126d6963726f736f6674666f726566726f6e7402696500c00c000c0001000008aa000c09666f726566726f6e74cf52c00c000c0001000008aa000f0c666f75727468636f66666565c116c00c000c0001000008aa00120f6d7977696e646f77736d6f62696c65c06ac00c000c0001000008aa00100d6c6573626f6e736f7574696c73c04ac00c000c0001000008aa0015126d6963726f736f6674666f726566726f6e74c1c4c00c000c0001000008aa00110e6d6963726f736f667468656c7073c04ac00c000c0001000008aa001c196d6963726f736f6674627573696e6573737365637572697479c085c00c000c0001000008aa00100d776f6f6467726f766562616e6bc0bfc00c000c0001000008aa0014116c756365726e657075626c697368696e67c116c00c000c0001000008aa000f0c666f75727468636f66666565c0bfc00c000c0001000008aa0015126d6963726f736f6674666f726566726f6e74c7cbc00c000c0001000008aa000f0c636f686f76696e6579617264c116c00c000c0001000008aa000f0c6d6963726f736f6674646f70c0bfc00c000c0001000008aa000e0b77696e646f777372756279d696c00c000c0001000008aa000f086d736d6f62696c6504696e666f00c00c000c0001000008aa0015126d6963726f736f6674666f726566726f6e74c54cc00c000c0001000008aa00140d6d6f62696c65326d61726b6574046d6f626900c00c000c0001000008aa0015126d6963726f736f6674666f726566726f6e74d678c00c000c0001000008aa000e0b6d756e63686f6e74686973c04ac00c000c0001000008aa000b086370616475766f6cc116c00c000c0001000008aa000e0b70726f746563746d797063dde0c00c000c0001000008aa00161372656c65766572746f75736c65736465666973c116c00c000c0001000008aa00191677696e646f77736d6f62696c65636f6d6d756e697479c0bfc00c000c0001000008aa00120f736572766572756e6c656173686564c0bfc00c000c0001000008aa000b08706f636b65747063c04ac00c000c0001000008aa000f0c746563686461797332303038c04ac00c000c0001000008aa000d0a64697265637462616e64c04ac00c000c0001000008aa001b1877696e646f7773647269766572646576656c6f706d656e74c04ac00c000c0001000008aa000f0c647269766572646576636f6ec0bfc00c000c0001000008aa00191672657461696c65786563757469766573656d696e6172c0bfc00c000c0001000008aa000d0a77696e7465726e616c73c0bfc00c000c0001000008aa0019166c7574746572636f6e7472656c657069726174616765c04ac00c000c0001000008aa000b0877696e646f777870c432c00c000c0001000008aa001613736d61727470686f6e65636f6d6d756e697479c116c00c000c0001000008aa000b086d6170706f696e74c116c00c000c0001000008aa000d0a6c697477617265696e63c0bfc00c000c0001000008aa0019166772617068696364657369676e696e73746974757465c116c00c000c0001000008aa000b086d6163746f706961c04ac00c000c0001000008aa0015126d6963726f736f6674666f726566726f6e74cf56c00c000c0001000008aa0015126d737368617265706f696e74666f72756d73c116c00c000c0001000008aa000e0b746f726b74686567616d65c04ac00c000c0001000008aa0019166c65732d646f696774732d64616e732d6c652d6e657ac0bfc00c000c0001000008aa0015126d737368617265706f696e74666f72756d73c04ac00c000c0001000008aa00100d70726f74656374796f75727063dde0c00c000c0001000008aa0015127465636e6f6c6f67696179656d7072657361c0bfc00c000c0001000008aa00120f6d73646e746563686e6574746f7572c116c00c000c0001000008aa00100d72657461696c77656263617374c04ac00c000c0001000008aa00120f736f7574687269646765766964656fc116c00c000c0001000008aa000e0b63616d70757367616d6573c54cc00c000c0001000008aa001613636f6e666f726d6974652d6c6963656e636573c04ac00c000c0001000008aa0015127465636e6f6c6f67696179656d7072657361c04ac00c000c0001000008aa0015126d6963726f736f6674666f726566726f6e74c347c00c000c0001000008aa001a1777696e646f77736d6f62696c65636f6d6d6d756e697479c116c00c000c0001000008aa000e0b77696e67746970746f7973c116c00c000c0001000008aa000d0a6f666669636532303037c04ac00c000c0001000008aa0019166c7574746572636f6e7472656c657069726174616765c116c00c000c0001000008aa00100d72656e636f6e74726573333630c0bfc00c000c0001000008aa001512746865736572766572756e6c656173686564c116c00c000c0001000008aa00120f6d6963726f736f66746d6f62696c65cb07c00c000c0001000008aa00120f6d73646e746563686e6574746f7572c0bfc00c000c0001000008aa00100d77696e646f77736d6f62696c65d6e4c00c000c0001000008aa000f0c7061636b746f7574656e756ec116c00c000c0001000008aa00150c77696e646f7773766973746103636f6d02747200c00c000c0001000008aa00100d6d6f62696c65326d61726b6574c04ac00c000c0001000008aa00120f63656e747265646573757361676573c04ac00c000c0001000008aa00100b77696e646f77733230303002736b00c00c000c0001000008aa00100d77696e646f77736d6f62696c65c580c00c000c0001000008aa000b087465636865643036c04ac00c000c0001000008aa001815636f686f76696e6579617264616e6477696e657279c0bfc00c000c0001000008aa000f0c657264636f6d6d616e646572c04ac00c000c0001000008aa0015127465636e6f6c6f67696179656d7072657361c116c00c000c0001000008aa000f0c747265797265736561726368c0bfc00c000c0001000008aa00181170696374757265697470726f6475637473036d736ec04ac00c000c0001000008aa00100d776f6f6467726f766562616e6bc116c00c000c0001000008aa000805776d766864c04ac00c000c0001000008aa0013106f66667265732d6d6963726f736f6674c116c00c000c0001000008aa00120f63656e747265646573757361676573c116c00c000c0001000008aa00100977696e646f77736e74046e616d6500c00c000c0001000008aa000a0777696e646f7773c116c00c000c0001000008aa001310746f646f736c6f656e7469656e64656ec04ac00c000c0001000008aa00161372656c6576657a746f75736c65736465666973c158c00c000c0001000008aa00141164656679616c6c6368616c6c656e676573c347c00c000c0001000008aa000e0b6374726f70656e6f726d65c0bfc00c000c0001000008aa00100977696e646f77736e740367656ec678c00c000c0001000008aa000d0a636f686f77696e657279c0bfc00c000c0001000008aa00120f6c6f67697374696b6b73797374656dcc27c00c000c0001000008aa00110977696e646f7773787002707002617a00c00c000c0001000008aa000c0970726f736577617265c0bfc00c000c0001000008aa00110e6a65646572686174736472617566c04ac00c000c0001000008aa000d0a6c696e7465726e616c73c04ac00c000c0001000008aa0014116d6f62696c657063646576656c6f706572c116c00c000c0001000008aa00151277696e646f7773656d6265646465646b6974c04ac00c000c0001000008aa000f0c76697375616c73747564696fc116c00c000c0001000008aa000e0b77696e646f77736c6f676fc116c00c000c0001000008aa000d0a77696e7465726e616c73cb07c00c000c0001000008aa00252272656e636f6e747265732d636f6c6c6563746976697465732d6d6963726f736f6674c04ac00c000c0001000008aa000a0769742d6865726fd6e4c00c000c0001000008aa000a0777696e646f7773cc27c00c000c0001000008aa000d0a6c697477617265696e63c04ac00c000c0001000008aa000b086370616475766f6cc04ac00c000c0001000008aa00120f6d7977696e646f77736d6f62696c65cc9fc00c000c0001000008aa001c196d6963726f736f66746c6963656e736573746174656d656e74c04ac00c000c0001000008aa000a0772656d69783038c0bfc00c000c0001000008aa000d0a77696e7465726e616c73c201c00c000c0001000008aa001310746563686e65746368616c6c656e6765c04ac00c000c0001000008aa000a076e746673646f73c04ac00c000c0001000008aa001310746f646f736c6f656e7469656e64656ec0bfc00c000c0001000008aa00130e73707261766e6f75636573746f7502637a00c00c000c0001000008aa0019166c65732d646f696774732d64616e732d6c652d6e657ac116c00c000c0001000008aa00100d6d6963726f736f6674686f6d65c54cc00c000c0001000008aa000e0b7061636b746f7574656e31c04ac00c000c0001000008aa001916666f65726465726d697474656c2d7261746765626572c201c00c000c0001000008aa000d0a77696e7465726e616c73c580c00c000c0001000008aa00161372656c6576657a746f75736c65736465666973c54cc00c000c0001000008aa00100d6d6f62696c65326d61726b6574c32dc00c000c0001000008aa00252277696e646f7773647269766572646576656c6f706d656e74636f6e666572656e6365c0bfc00c000c0001000008aa00120977696e646f77736e74036f726702627a00c00c000c0001000008aa00100d72656e636f6e7472652d333630c04ac00c000c0001000008aa00110e6d6963726f736f667468656c7073c54cc00c000c0001000008aa00232077696e646f7773647269766572646576656c6f706572636f6e666572656e6365c04ac00c000c0001000008aa0019166772617068696364657369676e696e73746974757465c0bfc00c000c0001000008aa0019166d69677265727665727376697375616c73747564696fc04ac00c000c0001000008aa000f0c6d736f666669636532303037c1c4c00c000c0001000008aa00120f63656e747265646573757361676573c158c00c000c0001000008aa00252277696e646f7773647269766572646576656c6f706d656e74636f6e666572656e6365c116c00c000c0001000008aa00110c77696e646f7773766973746102626700c00c000c0001000008aa000c0977696e646f77733938f3fac00c000c0001000008aa00120f6d6963726f736f66746d6f62696c65edf7c00c000c0001000008aa00120f736f7574687269646765766964656fc0bfc00c000c0001000008aa0016136f666672652d65626c6f75697373616e746573c04ac00c000c0001000008aa000f0c746564736c656d6f6e616964c04ac00c000c0001000008aa000e0b6e69676874636173746572c04ac00c000c0001000008aa00110e6d6f62696c6574656368746f7572c0bfc00c000c0001000008aa00100977696e646f77736e74036e6574c0fcc00c000c0001000008aa00100d6f70656e74797065666f72756dc116c00c000c0001000008aa000c09776861636b65647476c04ac00c000c0001000008aa000f0c6d6963726f736f6674646f70c04ac00c000c0001000008aa000c0977696e646f77736e74c4edc00c000c0001000008aa00100d77696e646f77736d6f62696c65c1c4c00c000c0001000008aa000c0977696e646f77737870c436c00c000c0001000008aa001b1877696e646f7773647269766572646576656c6f706d656e74c116c00c000c0001000008aa000b086263656e7472616cc54cc00c000c0001000008aa00151277696465776f726c64696d706f7274657273c04ac00c000c0001000008aa000c097374756f73626f726ec0bfc00c000c0001000008aa000f0c7461696c7370696e746f7973c04ac00c000c0001000008aa0013106d616b656f7665726d796f6666696365c04ac00c000c0001000008aa000d0a6d7366746d6f62696c65c116c00c000c0001000008aa0015126c6573646f6967747364616e736c656e657ac04ac00c000c0001000008aa0015126d6963726f736f6674666f726566726f6e74c06ac00c000c0001000008aa0015126d6963726f736f6674666f726566726f6e74c678c00c000c0001000008aa00161372656c6576657a746f75736c65736465666973c04ac00c000c0001000008aa00100d6d73646e6368616c6c656e6765c04ac00c000c0001000008aa0019166f6666696365706f75726c65736574756469616e7473c116c00c000c0001000008aa00120f736f7574687269646765766964656fc04ac00c000c0001000008aa00191672657461696c65786563757469766573656d696e6172c116c00c000c0001000008aa00110e6d6f62696c657365727669636573edf7c00c000c0001000008aa001307776562686f7374086e61766973696f6ec04ac00c000c0001000008aa00100d726573706f6e7365706f696e74f3a0c00c000c0001000008aa00120b7a65726f76697275736573036f7267dde3c00c000c0001000008aa00120f6d7977696e646f77736d6f62696c65c347c00c000c0001000008aa0016136f666672652d65626c6f75697373616e746573c116c00c000c0001000008aa00100d77696e646f77736d6f62696c65df83c00c000c0001000008aa0015126d6f62696c657063646576656c6f70657273c0bfc00c000c0001000008aa00100977696e646f77736e7403636f6df9cec00c000c0001000008aa000d0a77696e7465726e616c73c116c00c000c0001000008aa00100d747670686f746f766965776572c04ac00c000c0001000008aa00191677696e646f77736d6f62696c65636f6d6d756e697479c04ac00c000c0001000008aa00100b77696e646f77737275627902766e00c00c000c0001000008aa00100d6d6f62696c6564657669636573edf7c00c000c0001000008aa000f0c746563686564626f73746f6ec04ac00c000c0001000008aa00110e6d6f62696c6574656368746f7572c04ac00c000c0001000008aa00100d74617675746174726f6e636865c04ac00c000c0001000008aa00110e706179726f6c6c77656263617374c04ac00c000c0001000008aa00100d776577616e7474686562657374c04ac00c000c0001000008aa00151277696465776f726c64696d706f7274657273c0bfc00c000c0001000008aa001a1777696e646f77736d6f62696c65636f6d6d6d756e697479c04ac00c000c0001000008aa001c196d6963726f736f66746c6963656e736573746174656d656e74c54cc00c000c0001000008aa0015126d6963726f736f6674697461636164656d79c04ac00c000c0001000008aa00100d72656e636f6e7472652d333630c0bfc00c000c0001000008aa000c0977696e646f77737870c30ec00c000c0001000008aa000c0977696e646f77736e74c7a8c00c000c0001000008aa0015126d6963726f736f6674666f726566726f6e74cb26c00c000c0001000008aa000e0b77696e67746970746f7973c04ac00c000c0001000008aa001613737570706f727477696e646f77737669737461c158c00c000c0001000008aa0013106e6f72746877696e6474726164657273c0bfc00c000c0001000008aa00232077696e646f7773647269766572646576656c6f706572636f6e666572656e6365c0bfc00c000c0001000008aa000e0b76796b6b6572736c616273c04ac00c000c0001000008aa0015126d6963726f736f6674666f726566726f6e74c18bc00c000c0001000008aa000f0c747265797265736561726368c116c00c000c0001000008aa000c09746563686564766970c04ac00c000c0001000008aa00191677696e646f77736d6f62696c65636f6d6d756e697479c116c00c000c0001000008aa000e0b74696d6534746563686564c04ac00c000c0001000008aa000f0c72656e636f6e747265333630c0bfc00c000c0001000008aa0014116d6963726f736f6674736d616c6c62697ac04ac00c000c0001000008aa00191677696e646f7773647269766572646576656c6f706572c116c00c000c0001000008aa0014116d616e616765636f6c6c656374696f6e73c04ac00c000c0001000008aa000b086263656e7472616cc531c00c000c0001000008aa00100d706f776572746f676574686572c04ac00c000c0001000008aa00191677696e646f7773647269766572646576656c6f706572c04ac00c000c0001000008aa000a077265736b697473c04ac00c000c0001000008aa0015126d6963726f736f6674666f726566726f6e74c201c00c000c0001000008aa00161377696e7465726e616c737265736f7572636573c04ac00c000c0001000008aa000c0977696e646f77736e74f3fac00c000c0001000008aa00100977696e646f77736e74036f7267cc81c00c000c0001000008aa0015126d6963726f736f6674666f726566726f6e74e8acc00c000c0001000008aa00230e64657369676e6564666f726269670264650e64657369676e6564666f72626967c201c00c000c0001000008aa00141164656679616c6c6368616c6c656e676573c7cbc00c000c0001000008aa000e0977696e646f7773787002676d00c00c000c0001000008aa00151277696e7465726e616c73736f667477617265c04ac00c000c0001000008aa00151277696465776f726c64696d706f7274657273c116c00c000c0001000008aa000e0b77696e646f777372756279ec43c00c000c0001000008aa000a0772656d69783038c116c00c000c0001000008aa000f0c6d61696e66756e6374696f6ec04ac00c000c0001000008aa000d0a7374756f73626f726e65c04ac00c000c0001000008aa000f0c6f666669636573797374656ddde0c00c000c0001000008aa001e1b6d6963726f736f66742d627573696e6573732d7365637572697479c085c00c000c0001000008aa000e0b77696e646f777372756279c201c00c000c0001000008aa000b0872656d69782d3038c116c00c000c0001000008aa00120f7265616c6d656e74656772616e6465c04ac00c000c0001000008aa0008056d73657070c04ac00c000c0001000008aa00100d77696e646f77736d6f62696c65df7fc00c000c0001000008aa00110e72656e636f6e747265732d333630c116c00c000c0001000008aa00100977696e646f77736e74036e6574f656c00c000c0001000008aa00100d7374756f73626f726e73686f77c04ac00c000c0001000008aa0018156d6963726f736f66746269636f6e666572656e6365c04ac00c000c0001000008aa000b0877696e646f777870d804c00c000c0001000008aa000e0b696e6e6f766174652d756bc116c00c000c0001000008aa00141164656679616c6c6368616c6c656e676573d696c00c000c0001000008aa0015126d6963726f736f6674666f726566726f6e74c116c00c000c0001000008aa00100977696e646f77736e74036e6574f9cec00c000c0001000008aa00160f65756772616e747361647669736f7203636f6dda48c00c000c0001000008aa00120f696d6167696e65726c617375697465c116c00c000c0001000008aa00120f736572766572756e6c656173686564c116c00c000c0001000008aa00110e64657369676e6564666f72626967cc27c00c000c0001000008aa000e0b667278736f667477617265c04ac00c000c0001000008aa000f0c6d6f6e2d7061636b2d70726fc0bfc00c000c0001000008aa000d0a73686172656476696577c04ac00c000c0001000008aa00110977696e646f77736e7402636f02637200c00c000c0001000008aa000e0b77696e646f777372756279c085c00c000c0001000008aa00140c77696e646f7773766973746102636f02696400c00c000c0001000008aa00141164656679616c6c6368616c6c656e676573c2f0c00c000c0001000008aa00110e676174656b656570657274657374c2f0c00c000c0001000008aa000e0b77696e646f777372756279c18bc00c000c0001000008aa000e0b66616d696c797761766573c54cc00c000c0001000008aa00120f6f6e6c696e6573706f746c69676874c116c00c000c0001000008aa00120f65756772616e747361647669736f72f8a8c00c000c0001000008aa000b06666c6578676f026d7000c00c000c0001000008aa001613696d706f737369626c65637265617475726573c54cc00c000c0001000008aa00170f65756772616e747361647669736f7202636f02687500c00c000c0001000008aa000c0977696e646f77736e74c7e9c00c000c0001000008aa000906666c6578676fec43c00c000c0001000008aa00120f65756772616e747361647669736f72da48c00c000c0001000008aa000e0b77696e646f777372756279c951c00c000c0001000008aa00120f6d7977696e646f77736d6f62696c65c54cc00c000c0001000008aa00110e64657369676e6564666f72626967ec43c00c000c0001000008aa0015126f666672652d65626c6f75697373616e7465c0bfc00c000c0001000008aa00100977696e646f77737870036f7267c436c00c000c0001000008aa000b0872656d69782d3038c0bfc00c000c0001000008aa000e0977696e646f77737870026e6600c00c000c0001000008aa00191672657461696c65786563757469766573656d696e6172c04ac00c000c0001000008aa000b086d6163746f706961c116c00c000c0001000008aa00100d6d6f62696c6564657669636573cb07c00c000c0001000008aa000a0773776175646974f3fac00c000c0001000008aa00110e726973656f667065726174686961c0bfc00c000c0001000008aa00252272656e636f6e747265732d636f6c6c6563746976697465732d6d6963726f736f6674c116c00c000c0001000008aa00141177696e646f777373657276657232303038c0fcc00c000c0001000008aa000c096d73706172746e6572c04ac00c000c0001000008aa00110e6f66667265732d656e6f726d6573c04ac00c000c0001000008aa00100d74617675746174726f6e636865c0bfc00c000c0001000008aa00100d6d61726769657374726176656cc04ac00c000c0001000008aa00120f65756772616e747361647669736f72e429c00c000c0001000008aa00161372656c6576657a746f75736c65736465666973c0bfc00c000c0001000008aa000d0a74656368656474696d65c04ac00c000c0001000008aa0019166d6963726f736f667464656d616e64706c616e6e6572c04ac00c000c0001000008aa000e0b77696e646f77736c6f676fc04ac00c000c0001000008aa001a176d6963726f736f6674627573696e657373617761726473c04ac00c000c0001000008aa00130b77696e646f77737275627902636f027a6100c00c000c0001000008aa00110c77696e646f77737669737461026e7500c00c000c0001000008aa00171477696e646f7773787067616d6561647669736f72c04ac00c000c0001000008aa00100d747670686f746f766965776572c59cc00c000c0001000008aa00110e64657369676e6564666f72626967c32dc00c000c0001000008aa000f0c77696e7465726e616c736573c04ac00c000c0001000008aa0015126d6963726f736f6674666f726566726f6e74c84bc00c000c0001000008aa000f0c6e666c666576657232303032c04ac00c000c0001000008aa00100d726573706f6e7365706f696e74c65fc00c000c0001000008aa00140f65756772616e747361647669736f7202656500c00c000c0001000008aa000b086e636f6d70617373c54cc00c000c0001000008aa001512746865736572766572756e6c656173686564c04ac00c000c0001000008aa000b06666c6578676f02687400c00c000c0001000008aa00161372656c6576657a746f75736c65736465666973c116c00c000c0001000008aa00110e72657475726e746f746563686564c04ac00c000c0001000008aa00100977696e646f77736e7403636f6dc7edc00c000c0001000008aa000e0b77696e646f777372756279da48c00c000c0001000008aa000e0b77696e646f777372756279c82bc00c000c0001000008aa00130b77696e646f77737275627902636f02687500c00c000c0001000008aa000d0a65737469656d706f6465c0bfc00c000c0001000008aa00110e676174656b656570657274657374c085c00c000c0001000008aa00131074686570686f6e652d636f6d70616e79c0bfc00c000c0001000008aa00120f6865726f7368617070656e68657265dde0c00c000c0001000008aa00100b77696e646f77737275627902616500c00c000c0001000008aa00100977696e646f7773787003636f6dc456c00c000c0001000008aa00161372656c65766572746f75736c65736465666973c0bfc00c000c0001000008aa000f0c75732d6d6963726f736f6674c04ac00c000c0001000008aa0017147669737461666f72796f7572627573696e657373c04ac00c000c0001000008aa000f0c746563686d616b656f766572dde0c00c000c0001000008aa00100977696e646f777378700362697ac0fcc00c000c0001000008aa001b03777777146d6963726f736f6674737570706c79636861696ec04ac00c000c0001000008aa00120977696e646f777378700377656202746a00c00c000c0001000008aa000b0877696e646f777870cc61c00c000c0001000008aa00120f65756772616e747361647669736f72cc27c00c000c0001000008aa000906666c6578676fd6e4c00c000c0001000008aa00110e667574757265706f73746d61696cc116c00c000c0001000008aa000c097374756f73626f726ec116c00c000c0001000008aa0014116d6963726f736f667464796e616d696373c158c00c000c0001000008aa00110e72656e636f6e747265732d333630c0bfc00c000c0001000008aa00100d726973656f666e6174696f6e73c54cc00c000c0001000008aa0009067265736b6974c04ac00c000c0001000008aa00160e64657369676e6564666f7262696702636f027a6100c00c000c0001000008aa000a07737570706f7274e66dc00c000c0001000008aa000f0877696e646f777870036f7267c436c00c000c0001000008aa001a176d6963726f736f6674627573696e657373617761726473c116c00c000c0001000008aa00131074686570686f6e652d636f6d70616e79c116c00c000c0001000008aa0009066d7377776870c04ac00c000c0001000008aa000e0b77696e646f777372756279e429c00c000c0001000008aa00110e64657369676e6564666f72626967c085c00c000c0001000008aa000a0774656d70757269c0bfc00c000c0001000008aa00110e64657369676e6564666f72626967c347c00c000c0001000008aa000e0977696e646f77736e7402636600c00c000c0001000008aa001310746f646f736c6f656e7469656e64656ec531c00c000c0001000008aa000b06666c6578676f02706b00c00c000c0001000008aa0015126d6963726f736f6674666f726566726f6e74cf52c00c000c0001000008aa000e0b77696e646f777372756279c96bc00c000c0001000008aa00151277656273746f72616765706172746e657273c04ac00c000c0001000008aa00120f65756772616e747361647669736f72c347c00c000c0001000008aa000d0a77696e7465726e616c73edf7c00c000c0001000008aa00120977696e646f7773787003636f6d02746a00c00c000c0001000008aa001411726576656e7565616e64657870656e7365c04ac00c000c0001000008aa00110e64657369676e6564666f72626967c21dc00c000c0001000008aa001411636f6e636572746d6f62696c656c697665c54cc00c000c0001000008aa00100d72656e636f6e74726573333630c116c00c000c0001000008aa00110e766973696f696e666f776f636865c201c00c000c0001000008aa000e0977696e646f77737870026d6400c00c000c0001000008aa00140f65756772616e747361647669736f7202736900c00c000c0001000008aa000e0b77696e646f777372756279d3f7c00c000c0001000008aa000f0c77696e696e7465726e616c73c04ac00c000c0001000008aa00100d68617a6d6173766976656d6173c04ac00c000c0001000008aa000b086263656e7472616cc201c00c000c0001000008aa001512746865736572766572756e6c656173686564c0bfc00c000c0001000008aa0013106865726f657368617070656e68657265dde0c00c000c0001000008aa000a0772656d69783038c04ac00c000c0001000008aa001310746f646f736c6f656e7469656e64656ec116c00c000c0001000008aa00100977696e646f77736e74036f7267f656c00c000c0001000008aa0019166d69677265727665727376697375616c73747564696fc116c00c000c0001000008aa0015126d6963726f736f6674666f726566726f6e74c498c00c000c0001000008aa000c0977696e646f77737870cf52c00c000c0001000008aa000e0b696e6e6f766174652d756bc0bfc00c000c0001000008aa00100977696e646f7773787003636f6dc381c00c000c0001000008aa000c09766973696f32303033c201c00c000c0001000008aa000d0a796f7572746563686564c04ac00c000c0001000008aa00120b77696e646f77737275627903636f6dc951c00c000c0001000008aa00120977696e646f77736e7403636f6d026a6d00c00c000c0001000008aa00110e64657369676e6564666f72626967cb07c00c000c0001000008aa000e0b6d756e63686f6e74686973c116c00c000c0001000008aa00120f65756772616e747361647669736f72c531c00c000c0001000008aa00110e64657369676e6564666f72626967cb26c00c000c0001000008aa000d0a6d7366746d6f62696c65c0bfc00c000c0001000008aa000f0c746563686461797332303038c116c00c000c0001000008aa000906666c6578676fdb0ec00c000c0001000008aa00110e667574757265706f73746d61696cc04ac00c000c0001000008aa00171464657361666961746f646f736c6f737265746f73c04ac00c000c0001000008aa00120f65756772616e747361647669736f72c201c00c000c0001000008aa00100977696e646f7773787003636f6df656c00c000c0001000008aa001815636f686f76696e6579617264616e6477696e657279c116c00c000c0001000008aa00120b77696e646f77737275627903636f6dc39fc00c000c0001000008aa000d0877696e646f77787002686d00c00c000c0001000008aa00100d676f746f7779646f7072616379c0fcc00c000c0001000008aa000d0a6f666669636532303037c201c00c000c0001000008aa00110e64657369676e6564666f72626967c54cc00c000c0001000008aa000e0b77696e646f777372756279f8a8c00c000c0001000008aa000c09726166616574617469d702c00c000c0001000008aa00180f65756772616e747361647669736f7203636f6d02637900c00c000c0001000008aa00120f6d736163726f7373616d6572696361c04ac00c000c0001000008aa001613736d61727470686f6e65636f6d6d756e697479c0bfc00c000c0001000008aa000e0977696e646f7773787002727700c00c000c0001000008aa00120977696e646f777378700362697a02706b00c00c000c0001000008aa00110e64657369676e6564666f72626967c0bfc00c000c0001000008aa000d0a6672787265706f727473c04ac00c000c0001000008aa00110e72656e636f6e747265732d333630c04ac00c000c0001000008aa001411636f6e73756c746f72696f6f6666696365c531c00c000c0001000008aa000d06666c6578676f03636f6dffdec00c000c0001000008aa000e0b77696e646f777372756279dde0c00c000c0001000008aa00110c77696e646f7773766973746102697300c00c000c0001000008aa00141164656679616c6c6368616c6c656e676573c580c00c000c0001000008aa00100d7374756f73626f726e73686f77c116c00c000c0001000008aa00100d726573706f6e7365706f696e74c0fcc00c000c0001000008aa000e0b696e6e6f766174652d756bc04ac00c000c0001000008aa00120f65756772616e747361647669736f72c580c00c000c0001000008aa000d0a7369646577696e646572edf7c00c000c0001000008aa00120f6d6963726f73667473757266616365c04ac00c000c0001000008aa000e0b77696e646f777372756279c476c00c000c0001000008aa000e0977696e646f7773787002627300c00c000c0001000008aa00120f65756772616e747361647669736f72cb07c00c000c0001000008aa00110e64657369676e6564666f72626967d3f7c00c000c0001000008aa000d0877696e646f77787002746f00c00c000c0001000008aa00120f65756772616e747361647669736f72f3fac00c000c0001000008aa00120f65756772616e747361647669736f72d696c00c000c0001000008aa00110e7374756f73626f726e6573686f77c04ac00c000c0001000008aa00120f65756772616e747361647669736f72c2f0c00c000c0001000008aa000906747279696973c04ac00c000c0001000008aa00110e7374756f73626f726e6573686f77c116c00c000c0001000008aa00151273636174656e61696c74756f736572766572c1c4c00c000c0001000008aa00100d76697375616c2d73747564696fc04ac00c000c0001000008aa0016137072657373746865677265656e627574746f6ec116c00c000c0001000008aa000e0b77696e646f777372756279c2f0c00c000c0001000008aa000c0977696e646f77737870d35ac00c000c0001000008aa000b06666c6578676f02617300c00c000c0001000008aa000b086263656e7472616cc1c4c00c000c0001000008aa0015126e6261696e73696465647269766532303033c04ac00c000c0001000008aa00120977696e646f777378700362697a02746a00c00c000c0001000008aa00100977696e646f7773787003636f6dc2b5c00c000c0001000008aa00120f736572766572756e6c656173686564c04ac00c000c0001000008aa000c0977696e646f77737870c9c9c00c000c0001000008aa00221f6d6f6465726e657276657277616c74756e677361726265697473706c61747ac201c00c000c0001000008aa00090661747461696ecc27c00c000c0001000008aa00120977696e646f7773787003636f6d02627300c00c000c0001000008aa000906666c6578676fffdec00c000c0001000008aa000f0c77696e646f77737669737461f9cec00c000c0001000008aa00120f65756772616e747361647669736f72f3a0c00c000c0001000008aa000e0b77696e646f777332303030c04ac00c000c0001000008aa00120f65756772616e747361647669736f72c085c00c000c0001000008aa00110977696e646f7773787002636f02696d00c00c000c0001000008aa000c0977696e646f77737870fbe9c00c000c0001000008aa000e0977696e646f7773787002696f00c00c000c0001000008aa000906666c6578676fc96bc00c000c0001000008aa000d0a6f666669636532303037c158c00c000c0001000008aa001411636f6e73756c746f72696f6f6666696365c116c00c000c0001000008aa00120d726573706f6e7365706f696e7402616500c00c000c0001000008aa000e0b77696e646f777372756279c678c00c000c0001000008aa000e0b77696e646f777372756279c7cbc00c000c0001000008aa001512746f646f732d6c6f2d656e7469656e64656ec531c00c000c0001000008aa000e0b77696e646f777372756279c158c00c000c0001000008aa00110c77696e646f77737669737461026c6100c00c000c0001000008aa00100977696e646f77737870036f7267c456c00c000c0001000008aa00110e726973656f667065726174686961c116c00c000c0001000008aa001a176d6963726f736f6674627573696e657373617761726473c0bfc00c000c0001000008aa000f0977696e646f7773787002636fce71c00c000c0001000008aa000906666c6578676fd702c00c000c0001000008aa000e0b7265616c69747966616d65c54cc00c000c0001000008aa00120f65756772616e747361647669736f72c158c00c000c0001000008aa00120977696e646f77737870036f7267026a6500c00c000c0001000008aa000906617a7572696bc04ac00c000c0001000008aa00120f73657276657273636174656e61746fc1c4c00c000c0001000008aa000e0b6e61766973696f6e78616ccc27c00c000c0001000008aa000f0c74687265652d646567726565c04ac00c000c0001000008aa000e0977696e646f7773787002616300c00c000c0001000008aa00100977696e646f77737870036e6574c456c00c000c0001000008aa000f0977696e646f7773787002636fc3dac00c000c0001000008aa00100977696e646f77737870036f7267c7edc00c000c0001000008aa000c0977696e646f77737870c04ac00c000c0001000008aa00120d726573706f6e7365706f696e7402687500c00c000c0001000008aa000f0c646972656374616363657373c0bfc00c000c0001000008aa00100d726573706f6e7365706f696e74c32dc00c000c0001000008aa00100977696e646f77737870036e6574c3dac00c000c0001000008aa00100d6d6963726f736f667473706c61c04ac00c000c0001000008aa00100d76657374706f636b657463666fc116c00c000c0001000008aa00120f65756772616e747361647669736f72d3f7c00c000c0001000008aa00100977696e646f7773787003696e74f656c00c000c0001000008aa000d0a6f666669636532303037dde0c00c000c0001000008aa00100d7374756f73626f726e73686f77c0bfc00c000c0001000008aa00100977696e646f7773787003636f6dcfd5c00c000c0001000008aa00110e7374756f73626f726e6573686f77c0bfc00c000c0001000008aa00110e64657369676e6564666f72626967c498c00c000c0001000008aa00150d726573706f6e7365706f696e7402636f027a6100c00c000c0001000008aa000c0977696e646f77737870d183c00c000c0001000008aa0014116d6963726f736f66746d6f6d656e74756dc04ac00c000c0001000008aa00120d726573706f6e7365706f696e7402777300c00c000c0001000008aa000c0977696e646f77737870ff66c00c000c0001000008aa000e0977696e646f7773787002617300c00c000c0001000008aa001b1877696e646f7773647269766572646576656c6f706d656e74c0bfc00c000c0001000008aa00110977696e646f7773787002636f02636b00c00c000c0001000008aa00120f686f6d652d7075626c697368696e67c04ac00c000c0001000008aa001a176d6963726f736f6674627573696e657373617761726473c531c00c000c0001000008aa00110e64657369676e6564666f72626967c2f0c00c000c0001000008aa00100977696e646f77736e7403696e74f656c00c000c0001000008aa000e0b77696e646f777372756279d6e4c00c000c0001000008aa000d0877696e646f777870026e6600c00c000c0001000008aa00100977696e646f77737870036f6666c7acc00c000c0001000008aa000f0c6d6f6e2d7061636b2d70726fc116c00c000c0001000008aa00100d747670686f746f766965776572c116c00c000c0001000008aa000e0b77696e646f777372756279c65fc00c000c0001000008aa00100d74617675746174726f6e636865c116c00c000c0001000008aa00110977696e646f77737870046669726dc381c00c000c0001000008aa000d0a64616e69736372617a79c04ac00c000c0001000008aa00171477696e646f7773787067616d6561647669736f72c116c00c000c0001000008aa000b086263656e7472616cc7cbc00c000c0001000008aa001a176265737365727769737365722d77657474626577657262c201c00c000c0001000008aa000e0b77696e646f777332303030c116c00c000c0001000008aa0011096d6963726f736f667402636f026d7a00c00c000c0001000008aa000906666c6578676fc580c00c000c0001000008aa000e06666c6578676f02636f02637200c00c000c0001000008aa00120f65756772616e747361647669736f72c0fcc00c000c0001000008aa00120f65756772616e747361647669736f72c30ec00c000c0001000008aa000f0c72656e636f6e747265333630c116c00c000c0001000008aa000b0877696e646f777870dfbfc00c000c0001000008aa00110e676174656b656570657274657374c0fcc00c000c0001000008aa000c0977696e646f77737870f656c00c000c0001000008aa000e0877696e646f77787002636fce71c00c000c0001000008aa00100977696e646f77737870036f7267f656c00c000c0001000008aa00120977696e646f77737870036e657402706b00c00c000c0001000008aa000c09666f726566726f6e74e8acc00c000c0001000008aa00120977696e646f7773787003636f6d02656300c00c000c0001000008aa001714617a7572696b726973656f667065726174686961c04ac00c000c0001000008aa0019166d616e616765796f757270656f706c65617373657473c04ac00c000c0001000008aa000f0877696e646f777870036e6574dfbfc00c000c0001000008aa001512626c7565796f6e6465726169726c696e6573c116c00c000c0001000008aa000b086263656e7472616cc84bc00c000c0001000008aa000e0977696e646f77737870026c6b00c00c000c0001000008aa000e0b77696e646f777372756279d702c00c000c0001000008aa000906666c6578676fd696c00c000c0001000008aa00131077696e646f77737669737461626c6f67c158c00c000c0001000008aa000d0a65737469656d706f6465c04ac00c000c0001000008aa00100d726573706f6e7365706f696e74c201c00c000c0001000008aa00120f65756772616e747361647669736f72c84bc00c000c0001000008aa00141164656679616c6c6368616c6c656e676573e8acc00c000c0001000008aa00100d726573706f6e7365706f696e74ee38c00c000c0001000008aa000d0a65737469656d706f6465c116c00c000c0001000008aa00120977696e646f7773787003636f6d026e6600c00c000c0001000008aa00120977696e646f7773787003636f6d02756100c00c000c0001000008aa000f0977696e646f7773787002636fc7edc00c000c0001000008aa00100d737465776f73626f7273686f77c116c00c000c0001000008aa00120b77696e646f77737275627903636f6dc158c00c000c0001000008aa001714617a7572696b726973656f667065726174686961c116c00c000c0001000008aa00100977696e646f77737870036e6574dfbfc00c000c0001000008aa00100d737465776f73626f7273686f77c0bfc00c000c0001000008aa000c0977696e646f77737870f9cac00c000c0001000008aa00120977696e646f77737870036f726702706500c00c000c0001000008aa000c06666c6578676f02636fc7edc00c000c0001000008aa00100977696e646f77737870036f7267cc81c00c000c0001000008aa0013106865726f657368617070656e68657265c0fcc00c000c0001000008aa00100977696e646f77737870036e6574f9cec00c000c0001000008aa00100977696e646f7773787003636f6ddfbfc00c000c0001000008aa001411756b636f6d6d756e697479617761726473c04ac00c000c0001000008aa00252272656e636f6e747265732d636f6c6c6563746976697465732d6d6963726f736f6674c0bfc00c000c0001000008aa00100977696e646f77737870036e6574f656c00c000c0001000008aa00100977696e646f7773787003636f6dcdc4c00c000c0001000008aa00100d726573706f6e7365706f696e74c456c00c000c0001000008aa000d0a7374756f73626f726e65c0bfc00c000c0001000008aa000906666c6578676fcb26c00c000c0001000008aa00120d726573706f6e7365706f696e7402656300c00c000c0001000008aa000c09626570636c6567616cc0bfc00c000c0001000008aa000a0777696e32303030c84bc00c000c0001000008aa0014117365727665757273616e736c696d697465c0bfc00c000c0001000008aa000e037777770764657664617973dde0c00c000c0001000008aa000e0977696e646f77737870026c6900c00c000c0001000008aa000d0a6f666669636532303037c7cbc00c000c0001000008aa00100d726573706f6e7365706f696e74f8a8c00c000c0001000008aa00100977696e646f77737870036f7267cfd5c00c000c0001000008aa00160f65756772616e747361647669736f7203636f6dc381c00c000c0001000008aa00160d726573706f6e7365706f696e7403636f6d02706100c00c000c0001000008aa000e0977696e646f7773787002686d00c00c000c0001000008aa000e0977696e646f77737870026c6100c00c000c0001000008aa00120f65756772616e747361647669736f72ec43c00c000c0001000008aa000e0b77696e646f777372756279c0fcc00c000c0001000008aa000c097374756f73626f726ec04ac00c000c0001000008aa000e0977696e646f7773787002737400c00c000c0001000008aa00120f65756772616e747361647669736f72cb26c00c000c0001000008aa000b08676f6d656e74616cc54cc00c000c0001000008aa00100977696e646f77737870036e6574c23bc00c000c0001000008aa000b0877696e646f777870d720c00c000c0001000008aa00100d726573706f6e7365706f696e74edf7c00c000c0001000008aa00120977696e646f7773787003636f6d026a6d00c00c000c0001000008aa000f06666c6578676f03636f6d02756100c00c000c0001000008aa000b0877696e646f777870c8d8c00c000c0001000008aa0014116361702d7375722d6c652d737563636573c04ac00c000c0001000008aa000906666c6578676fc59cc00c000c0001000008aa000906617a7572696be429c00c000c0001000008aa000906666c6578676fc116c00c000c0001000008aa000f0c6d6f6e6e6f7576656c616d69c0bfc00c000c0001000008aa00120d726573706f6e7365706f696e7402627300c00c000c0001000008aa00160d726573706f6e7365706f696e7403636f6d02756100c00c000c0001000008aa00100977696e646f77737870036f7267c381c00c000c0001000008aa0014116361702d7375722d6c652d737563636573c116c00c000c0001000008aa00120b77696e646f77737275627903636f6dffdec00c000c0001000008aa00100d726573706f6e7365706f696e74c96bc00c000c0001000008aa00100977696e646f7773787003636f6dc7edc00c000c0001000008aa00110e64657369676e6564666f72626967cc9fc00c000c0001000008aa00110b77696e646f77737275627902636fc70ec00c000c0001000008aa000906666c6578676fdf83c00c000c0001000008aa00120977696e646f7773787003636f6d026e6900c00c000c0001000008aa000c096575726f706c616e6fda48c00c000c0001000008aa000f0977696e646f7773787002636fcfd5c00c000c0001000008aa000f06666c6578676f03636f6d02706b00c00c000c0001000008aa00120d726573706f6e7365706f696e7402656500c00c000c0001000008aa00120d726573706f6e7365706f696e74026d6100c00c000c0001000008aa000c0977696e646f77737870f9cec00c000c0001000008aa000e0b77696e646f777372756279eb60c00c000c0001000008aa00160f65756772616e747361647669736f7203636f6dc158c00c000c0001000008aa000c0977696e646f77737870dfbfc00c000c0001000008aa000c0977696e646f77737870c456c00c000c0001000008aa00100d726573706f6e7365706f696e74d678c00c000c0001000008aa000c0977696e646f77737870f3fac00c000c0001000008aa00100d726573706f6e7365706f696e74c06ac00c000c0001000008aa000e0b6270677765626361737433c04ac00c000c0001000008aa00100d726573706f6e7365706f696e74c2f0c00c000c0001000008aa000f0c66616d696c792d7761766573c54cc00c000c0001000008aa00120977696e646f77737870036e6574026a6500c00c000c0001000008aa00100b77696e646f77737275627902687500c00c000c0001000008aa000b06616d616c676102707300c00c000c0001000008aa00120977696e646f77737870036e657402706500c00c000c0001000008aa000f0c626c696e7874686567616d65c04ac00c000c0001000008aa00120977696e646f77737870036f726702687500c00c000c0001000008aa000d0a6f666669636532303037c84bc00c000c0001000008aa000f06616d616c676103636f6d02707300c00c000c0001000008aa000e0977696e646f7773787002736800c00c000c0001000008aa00120f77696e646f77737369646573686f77c04ac00c000c0001000008aa000b0877696e646f777870ce71c00c000c0001000008aa00070462657461f6f5c00c000c0001000008aa000e0b656169736f6c7574696f6ec085c00c000c0001000008aa0013106f66667265732d6d6963726f736f6674c04ac00c000c0001000008aa00100d726573706f6e7365706f696e74df7fc00c000c0001000008aa000d0a6f666669636532303037d3f7c00c000c0001000008aa00140d726573706f6e7365706f696e7403636f6dffdec00c000c0001000008aa00100d77696e646f77736e7432303030c116c00c000c0001000008aa00110e72657461696c7765626361737473c04ac00c000c0001000008aa000906666c6578676ff8a8c00c000c0001000008aa00120f65756772616e747361647669736f72c381c00c000c0001000008aa000c09666f726566726f6e74c0fcc00c000c0001000008aa00100977696e646f77737870036e6574cfd5c00c000c0001000008aa00120977696e646f777378700573746f7265c381c00c000c0001000008aa00110977696e646f77737870026d7902746a00c00c000c0001000008aa00120f65756772616e747361647669736f72c82fc00c000c0001000008aa00140d726573706f6e7365706f696e7403636f6dc456c00c000c0001000008aa00120977696e646f77737870036f726702706b00c00c000c0001000008aa00100977696e646f7773787003636f6dc09fc00c000c0001000008aa000d06666c6578676f03636f6dc158c00c000c0001000008aa00131069697377656263617374736572696573c116c00c000c0001000008aa000d0a756c74696d6174657063c04ac00c000c0001000008aa000e0b77696e646f777372756279e970c00c000c0001000008aa000b06616d616c676102707200c00c000c0001000008aa000e0977696e646f7773787002737200c00c000c0001000008aa00110e64657369676e6564666f72626967eb60c00c000c0001000008aa000b0866616272696b616dc04ac00c000c0001000008aa000c0977696e646f77737870f600c00c000c0001000008aa00110977696e646f7773787002636f02747400c00c000c0001000008aa000b0877696e646f777870dfbbc00c000c0001000008aa00110e667574757265706f73746d61696cc0bfc00c000c0001000008aa000d0a6f666669636532303037c580c00c000c0001000008aa00100d726573706f6e7365706f696e74dde0c00c000c0001000008aa000e0977696e646f7773787002676c00c00c000c0001000008aa00100d726573706f6e7365706f696e74d702c00c000c0001000008aa000906617a7572696bc580c00c000c0001000008aa0017146761676e657a2d656e2d65666669636163697465c04ac00c000c0001000008aa00120f686f6c6964617968656c70626f6f6bc04ac00c000c0001000008aa00100d726573706f6e7365706f696e74df83c00c000c0001000008aa00100d6469736b636f6d6d616e646572c04ac00c000c0001000008aa00100d72656164797365747368617265c54cc00c000c0001000008aa000b0877696e646f777870c237c00c000c0001000008aa00100d66696e656172747363686f6f6cc0bfc00c000c0001000008aa0014117461626c65747063646576656c6f706572c04a0000290200000080000000', true) end
32.197.46.207.in-addr.arpa: type PTR, class IN (2-byte size removed at beginning)
test_canonical
ruby
collabnix/kubelabs
.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/test/tc_ptrin.rb
https://github.com/collabnix/kubelabs/blob/master/.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/test/tc_ptrin.rb
Apache-2.0
def test_reverse_lookup m = Message.new("8.8.8.8", Types.PTR) r = Resolver.new q=Queue.new r.send_async(m,q,q) _id, ret, _error=q.pop assert(ret.kind_of?(Message)) no_pointer=true ret.each_answer do |answer| if (answer.type==Types.PTR) no_pointer=false assert(answer.domainname.to_s=~/google/) end end assert(!no_pointer) end
@TODO@ Implement!! But then, why would anyone want to do this? def test_many_threaded_clients assert(false, "IMPLEMENT!") end
test_reverse_lookup
ruby
collabnix/kubelabs
.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/test/tc_resolver.rb
https://github.com/collabnix/kubelabs/blob/master/.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/test/tc_resolver.rb
Apache-2.0
def test_nxdomain resolver = Resolver.new q = Queue.new resolver .send_async(Message.new(BAD_DOMAIN_NAME, Types.A), q, 1) id, m, error = q.pop assert(id==1, "Id should have been 1 but was #{id}") assert(m.rcode == RCode.NXDOMAIN, "Expected NXDOMAIN but got #{m.rcode} instead.") assert_error_is_exception(error, NXDomain) end
def test_bad_host res = Resolver.new({:nameserver => "localhost"}) res.retry_times=1 res.retry_delay=0 res.query_timeout = 1 q = Queue.new res.send_async(Message.new("example.com", Types.A), q, q) id, m, err = q.pop assert(id==q) assert(m == nil) assert(err.kind_of?(OtherResolvError) || err.kind_of?(IOError), "OtherResolvError or IOError expected : got #{err.class}") end
test_nxdomain
ruby
collabnix/kubelabs
.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/test/tc_resolver.rb
https://github.com/collabnix/kubelabs/blob/master/.bundles_cache/ruby/2.6.0/gems/dnsruby-1.70.0/test/tc_resolver.rb
Apache-2.0