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: merge from f14
Date: Mon, 19 Oct 2026 14:04:42 GMT	[thread overview]
Message-ID: <179241868247.1.7329822304274568260.rpms-perl-Net-DNS-SEC-6447558c4b02@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/perl-Net-DNS-SEC
Branch : epel10
Commit : 6447558c4b02be54706041c52c72e103254bd3b5
Author : Wes Hardaker <opensource@hardakers.net>
Date   : 2011-06-23T09:51:09-07:00
Stats  : +116/-3 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/perl-Net-DNS-SEC/c/6447558c4b02be54706041c52c72e103254bd3b5?branch=epel10

Log:
merge from f14

---
diff --git a/perl-Net-DNS-SEC.spec b/perl-Net-DNS-SEC.spec
index 8c2e42e..5315bc8 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:        5%{?dist}
+Release:        6%{?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 Jun 23 2011 Wes Hardaker <wjhns174@hardakers.net> - 0.16-6
+- added support for the v1.3 private key format
+
 * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.16-5
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
 

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

diff --git a/perl-Net-DNS-SEC.spec b/perl-Net-DNS-SEC.spec
index 2d7f576..5315bc8 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:        4%{?dist}
+Release:        6%{?dist}
 Summary:        DNSSEC modules for Perl
 License:        GPL+ or Artistic 
 Group:          Development/Libraries
@@ -69,9 +69,15 @@ rm -rf %{buildroot}
 %{_mandir}/man3/*
 
 %changelog
-* Thu Jan  6 2011 Wes Hardaker <wjhns174@hardakers.net> - 0.16-4
+* Thu Jun 23 2011 Wes Hardaker <wjhns174@hardakers.net> - 0.16-6
 - added support for the v1.3 private key format
 
+* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.16-5
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
+
+* Tue Dec 21 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.16-4
+- 661697 rebuild for fixing problems with vendorach/lib
+
 * Thu Sep 23 2010 Wes Hardaker <wjhns174@hardakers.net> - 0.16-3
 - rebuild after prereq now properly in the system
 

                 reply	other threads:[~2026-10-19 14:04 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=179241868247.1.7329822304274568260.rpms-perl-Net-DNS-SEC-6447558c4b02@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