Debian Codegraph @

lib/Zonemaster/LDNS/RR/RRSIG.pm

raw symbols SCIP
1 package Zonemaster::LDNS::RR::RRSIGscip-perl cpan Zonemaster-LDNS 5.0.2 Zonemaster/LDNS/RR/RRSIG/;
2
3 use strictscip-perl cpan Zonemaster-LDNS 5.0.2 strict/;
4 use warningsscip-perl cpan Zonemaster-LDNS 5.0.2 warnings/;
5
6 use parentscip-perl cpan Zonemaster-LDNS 5.0.2 parent/ 'Zonemaster::LDNS::RR';
7
8 sub verifyscip-perl cpan Zonemaster-LDNS 5.0.2 Zonemaster/LDNS/RR/RRSIG/verify(). {
9 my ( $self, $rrset, $keys ) = @_scip-perl cpan Zonemaster-LDNS 5.0.2 Zonemaster/LDNS/RR/RRSIG/`@_`.;
10 my $msg = '';
11
12 return $self->verify_timescip-perl cpan Zonemaster-LDNS 5.0.2 Zonemaster/LDNS/RR/RRSIG/verify_time().( $rrset, $keys, timescip-perl cpan Zonemaster-LDNS 5.0.2 Zonemaster/LDNS/RR/RRSIG/time().(), $msg );
13 }
14
15 sub verify_strscip-perl cpan Zonemaster-LDNS 5.0.2 Zonemaster/LDNS/RR/RRSIG/verify_str(). {
16 my ( $self, $rrset, $keys ) = @_scip-perl cpan Zonemaster-LDNS 5.0.2 Zonemaster/LDNS/RR/RRSIG/`@_`.;
17 my $msg = '';
18
19 $self->verify_timescip-perl cpan Zonemaster-LDNS 5.0.2 Zonemaster/LDNS/RR/RRSIG/verify_time().( $rrset, $keys, timescip-perl cpan Zonemaster-LDNS 5.0.2 Zonemaster/LDNS/RR/RRSIG/time().(), $msg );
20
21 return $msg;
22 }
23
24 1;
25
26 =head1 NAME
27
28 Zonemaster::LDNS::RR::RRSIG - Type RRSIG record
29
30 =head1 DESCRIPTION
31
32 A subclass of L<Zonemaster::LDNS::RR>, so it has all the methods of that class available in addition to the ones documented here.
33
34 =head1 METHODS
35
36 =over
37
38 =item typecovered()
39
40 Returns a string with the name of the RR type this signature covers.
41
42 =item algorithm()
43
44 Returns the algorithm number.
45
46 =item labels()
47
48 Returns the number of labels that was used to calculate the signature.
49
50 =item origttl()
51
52 Returns the original TTL value.
53
54 =item expiration()
55
56 Returns the expiration time, as a time_t.
57
58 =item inception()
59
60 Returns the inception time, as a time_t.
61
62 =item keytag()
63
64 Returns the keytag.
65
66 =item signer()
67
68 Returns the signer name.
69
70 =item signature()
71
72 Returns the cryptographic signture in binary form.
73
74 =item verify($rrset_ref, $key_ref)
75
76 Cryptographically verifies that the signature in this object matches the given RRset and at least one of the given keys. C<$rrset_ref> should be a
77 reference to an array of RR objects, and C<$key_ref> a reference to an array of L<Zonemaster::LDNS::RR::DNSKEY> objects. This method simply returns a true
78 or false value, depending on the result och the check.
79
80 =item verify_str($rrset_ref, $key_ref)
81
82 Takes exactly the same arguments as L<verify()> and performs the same action, but instead of true/false it returns a string describing the result.
83 In the case of a successful result the message will be "All OK". For negative results, the string will describe the reason the verification failed.
84
85 =item verify_time($rrset_ref, $key_ref, $time, $msg)
86
87 This is the XS method doing the work for the previous two methods. C<$rrset_ref> and C<$key_ref> are the same as for the other methods. C<$time> is
88 the C<time_t> value for which the validation should be made (for the previous two methods it is set to the current computer time). C<$msg> should be
89 a writable scalar, and the string message describing the result will be but in it. The return value from the method is true/false.
90
91 =back