dnsruby 1.23 → 1.24

Sign up to get free protection for your applications and to get access to all the features.
@@ -19,7 +19,7 @@ module Dnsruby
19
19
  NS, CNAME, DNAME, DNSKEY, SOA, PTR, HINFO, MINFO, MX, TXT,
20
20
  ISDN, MB, MG, MR, NAPTR, NSAP, OPT, RP, RT, X25,
21
21
  SPF, CERT, LOC, TSIG, TKEY, ANY, RRSIG, NSEC, DS, NSEC3,
22
- NSEC3PARAM
22
+ NSEC3PARAM, DLV
23
23
  ] #:nodoc: all
24
24
 
25
25
  # module IN contains ARPA Internet specific RRs
data/test/tc_ds.rb CHANGED
@@ -3,6 +3,8 @@ require 'openssl'
3
3
  require 'dnsruby'
4
4
 
5
5
  class DsTest < Test::Unit::TestCase
6
+ DLVINPUT = "dskey.example.com. 86400 IN DLV 60485 5 1 ( 2BB183AF5F22588179A53B0A" +
7
+ "98631FAD1A292118 )"
6
8
  INPUT = "dskey.example.com. 86400 IN DS 60485 5 1 ( 2BB183AF5F22588179A53B0A" +
7
9
  "98631FAD1A292118 )"
8
10
  DNSKEY = "dskey.example.com. 86400 IN DNSKEY 256 3 5 ( AQOeiiR0GOMYkDshWoSKz9Xz" +
@@ -78,4 +80,15 @@ class DsTest < Test::Unit::TestCase
78
80
  assert_equal(ds.to_s, right_ds.to_s)
79
81
  end
80
82
 
83
+ def test_dlv_from_string
84
+ dlv = Dnsruby::RR.create(DLVINPUT)
85
+ assert_equal(60485, dlv.key_tag)
86
+ assert_equal(Algorithms.RSASHA1, dlv.algorithm)
87
+ assert_equal(1, dlv.digest_type)
88
+ assert_equal("2BB183AF5F22588179A53B0A98631FAD1A292118", dlv.digest)
89
+
90
+ dlv2 = Dnsruby::RR.create(dlv.to_s)
91
+ assert(dlv2.to_s == dlv.to_s)
92
+ end
93
+
81
94
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dnsruby
3
3
  version: !ruby/object:Gem::Version
4
- version: "1.23"
4
+ version: "1.24"
5
5
  platform: ruby
6
6
  authors:
7
7
  - AlexD
@@ -9,7 +9,7 @@ autorequire: dnsruby
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-12-05 00:00:00 +00:00
12
+ date: 2008-12-16 00:00:00 +00:00
13
13
  default_executable:
14
14
  dependencies: []
15
15