public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Wes Hardaker <opensource@hardakers.net>
To: git-commits@fedoraproject.org
Subject: [rpms/perl-Net-DNS-SEC] epel10.3: A patch to support bind's new private key file format
Date: Mon, 19 Oct 2026 14:05:50 GMT	[thread overview]
Message-ID: <179241875027.1.9375788183344347169.rpms-perl-Net-DNS-SEC-b8d08891a4ac@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/perl-Net-DNS-SEC
Branch : epel10.3
Commit : b8d08891a4ac5b7fcf8b7c97c8695297c8f7125d
Author : Wes Hardaker <opensource@hardakers.net>
Date   : 2011-01-06T08:14:10-08:00
Stats  : +108/-1 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/perl-Net-DNS-SEC/c/b8d08891a4ac5b7fcf8b7c97c8695297c8f7125d?branch=epel10.3

Log:
A patch to support bind's new private key file format

---
diff --git a/perl-Net-DNS-SEC.spec b/perl-Net-DNS-SEC.spec
index 3264f36..2d7f576 100644
--- a/perl-Net-DNS-SEC.spec
+++ b/perl-Net-DNS-SEC.spec
@@ -1,6 +1,6 @@
 Name:           perl-Net-DNS-SEC
 Version:        0.16
-Release:        3%{?dist}
+Release:        4%{?dist}
 Summary:        DNSSEC modules for Perl
 License:        GPL+ or Artistic 
 Group:          Development/Libraries
@@ -22,6 +22,7 @@ BuildRequires:  perl(Time::Local)
 BuildRequires:  perl(Digest::BubbleBabble)
 BuildRequires:  perl(Digest::SHA)
 BuildRequires:  perl(MIME::Base32)
+Patch1:         v0.16-v1.3-private-key-format.patch
 
 # neither are picked up automagically.
 Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
@@ -38,6 +39,8 @@ RSA and DSA crypto routines are supported.
 %prep
 %setup -q -n Net-DNS-SEC-%{version}
 
+%patch1 -p1 -b .v1-3
+
 %build
 %{__perl} Makefile.PL INSTALLDIRS=vendor
 make %{?_smp_mflags}
@@ -66,6 +69,9 @@ rm -rf %{buildroot}
 %{_mandir}/man3/*
 
 %changelog
+* Thu Jan  6 2011 Wes Hardaker <wjhns174@hardakers.net> - 0.16-4
+- added support for the v1.3 private key format
+
 * Thu Sep 23 2010 Wes Hardaker <wjhns174@hardakers.net> - 0.16-3
 - rebuild after prereq now properly in the system
 

diff --git a/v0.16-v1.3-private-key-format.patch b/v0.16-v1.3-private-key-format.patch
new file mode 100644
index 0000000..1a8b47c
--- /dev/null
+++ b/v0.16-v1.3-private-key-format.patch
@@ -0,0 +1,101 @@
+diff --git a/SEC/Private.pm b/SEC/Private.pm
+index 52dd298..bcdc5b8 100644
+--- a/SEC/Private.pm
++++ b/SEC/Private.pm
+@@ -26,7 +26,8 @@ sub new {
+     my $self={};
+     my    ($Modulus,$PublicExponent,$PrivateExponent,$Prime1,
+ 	   $Prime2,$Exponent1,$Exponent2,$Coefficient,
+-	   $prime_p,$subprime_q,$base_g,$private_val_x,$public_val_y);
++	   $prime_p,$subprime_q,$base_g,$private_val_x,$public_val_y,
++	   $Created, $Publish, $Activate);
+     
+ 
+     bless ($self,$class);
+@@ -51,7 +52,7 @@ sub new {
+     
+     while (<KEYFH>) {
+ 	if (/Private-key-format: (v\d*\.\d*)/) {
+-	    if ($1 ne "v1.2") {
++	    if ($1 ne "v1.2" && $1 ne "v1.3") {
+ 		croak "Private Key Format not regognized";
+ 	    }
+ 	}elsif	    (/^Algorithm:\s*(\d*)/) {
+@@ -87,7 +88,14 @@ sub new {
+ 	    $private_val_x=decode_base64($1);
+ 	} elsif (/^Public_value\(y\):\s*(\S+)/) { 
+ 	    $public_val_y=decode_base64($1);
+-	}
++	} elsif (/^Created\(y\):\s*(\S+)/) { 
++	    $Created=$1;
++	} elsif (/^Publish\(y\):\s*(\S+)/) { 
++	    $Publish=$1;
++	} elsif (/^Activate\(y\):\s*(\S+)/) { 
++	    $Activate=$1;
++	} 
++	
+     }
+     close(KEYFH);
+ 
+@@ -130,6 +138,14 @@ sub new {
+ 	$private_dsa->set_pub_key($public_val_y);
+ 	$self->{"privatekey"}=$private_dsa;
+     }
++
++    if (defined($Created)) {
++	# new fields in v1.3
++	$self->{'created'} = $Created;
++	$self->{'publish'} = $Publish;
++	$self->{'activate'} = $Activate;
++    }
++
+     return $self;
+ 
+ }
+@@ -162,6 +178,24 @@ sub signame {
+ }
+ 
+ 
++sub created {
++    my $self=shift;
++    return $self->{'created'} if (exists($self->{'created'}));
++}
++
++
++sub publish {
++    my $self=shift;
++    return $self->{'publish'} if (exists($self->{'publish'}));
++}
++
++
++sub activate {
++    my $self=shift;
++    return $self->{'activate'} if (exists($self->{'activate'}));
++}
++
++
+ # Little helper function to put a BigInt into a binary (unsigned,
+ #network order )
+ 
+@@ -356,14 +390,19 @@ or Crypt::OpenSSL::DSA object. This is really only relevant to the
+ Net::DNS::RR::SIG class.
+ 
+ 
+-=head2  algorithm, keytag, signame
++=head2  algorithm, keytag, signame, created, publish, activate
+  
+  $private->algorithm
+  $private->keytag
+  $private->signame
++ $private->created
++ $private->publish
++ $private->activate
+ 
+ Returns components as determined from the filename and needed by
+-Net::DNS::RR::RRSIG.
++Net::DNS::RR::RRSIG.  The 'created', 'publish' and 'activate'
++components are only available in version 1.3 or higher formatted
++files.
+ 
+ 
+ =head1 RSASHA1 specific helper functions

                 reply	other threads:[~2026-10-19 14:05 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179241875027.1.9375788183344347169.rpms-perl-Net-DNS-SEC-b8d08891a4ac@fedoraproject.org \
    --to=opensource@hardakers.net \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox