| 1 | package Net::DNS::RR::CDNSKEY; | ||||||||||
| 2 | |||||||||||
| 3 | 1 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 1 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | 1 | our $VERSION = (qw$Id: CDNSKEY.pm 2003 2025-01-21 12:06:06Z willem $)[2]; | |||||||||
| 6 | |||||||||||
| 7 | 1 | ▶ | use base qw(Net::DNS::RR::DNSKEY); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 8 | |||||||||||
| 9 | |||||||||||
| 10 | =head1 NAME | ||||||||||
| 11 | |||||||||||
| 12 | Net::DNS::RR::CDNSKEY - DNS CDNSKEY resource record | ||||||||||
| 13 | |||||||||||
| 14 | =cut | ||||||||||
| 15 | |||||||||||
| 16 | 1 | ▶ | use integer; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 17 | |||||||||||
| 18 | |||||||||||
| 19 | 5 | ▶ | sub _format_rdata { ## format rdata portion of RR string. | ||||||||
|
Subroutine
_format_rdata: called CC=2 SCAR=6.9
| |||||||||||
| 20 | 5 | my $self = shift; | |||||||||
| 21 | |||||||||||
| 22 | 5 | ▶ | return $self->SUPER::_format_rdata() if $self->algorithm; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 23 | 2 | return my @rdata = @{$self}{qw(flags protocol algorithm)}, "AA=="; | |||||||||
| 24 | } | ||||||||||
| 25 | |||||||||||
| 26 | |||||||||||
| 27 | 22 | ▶ | sub algorithm { | ||||||||
|
Subroutine
algorithm: called CC=3 SCAR=11.0
Pod
documented
| |||||||||||
| 28 | 22 | my ( $self, $arg ) = @_; | |||||||||
| 29 | 22 | ▶ | return $self->SUPER::algorithm($arg) if $arg; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 30 | 15 | ▶ | return $self->SUPER::algorithm() unless defined $arg; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 31 | 2 | @{$self}{qw(flags protocol algorithm keybin)} = ( 0, 3, 0, chr(0) ); | |||||||||
| 32 | 2 | return; | |||||||||
| 33 | } | ||||||||||
| 34 | |||||||||||
| 35 | |||||||||||
| 36 | 1 | 1; | |||||||||
| 37 | __END__ | ||||||||||