public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Christina Fu <cfu@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/jss] pqc: Resolves: rhbz #1221295
Date: Tue, 28 Jul 2026 16:48:28 GMT [thread overview]
Message-ID: <178525730829.1.14839424142426196347.rpms-jss-3af0c8d7b66d@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/jss
Branch : pqc
Commit : 3af0c8d7b66df3aa5f1e83604a029f94f3545953
Author : Christina Fu <cfu@redhat.com>
Date : 2016-06-30T17:02:11-07:00
Stats : +40/-1 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/jss/c/3af0c8d7b66df3aa5f1e83604a029f94f3545953?branch=pqc
Log:
Resolves: rhbz #1221295
* Bugzilla Bug #1221295 - jss fails to decode EncryptedKey >> EnvelopedData
(cfu for roysjosh@gmail.com)
---
diff --git a/jss-crmf-envelopedData.patch b/jss-crmf-envelopedData.patch
new file mode 100644
index 0000000..13c21d7
--- /dev/null
+++ b/jss-crmf-envelopedData.patch
@@ -0,0 +1,33 @@
+diff -up jss-4.2.6/mozilla/security/jss/org/mozilla/jss/pkix/crmf/EncryptedKey.java.roysjosh jss-4.2.6/mozilla/security/jss/org/mozilla/jss/pkix/crmf/EncryptedKey.java
+--- jss-4.2.6/mozilla/security/jss/org/mozilla/jss/pkix/crmf/EncryptedKey.java.roysjosh 2016-06-24 14:51:48.929122053 -0700
++++ jss-4.2.6/mozilla/security/jss/org/mozilla/jss/pkix/crmf/EncryptedKey.java 2016-06-24 14:52:29.487027005 -0700
+@@ -127,7 +127,8 @@ public class EncryptedKey implements ASN
+ } else {
+ Assert._assert(type == ENVELOPED_DATA);
+ Assert._assert(envelopedData != null);
+- envelopedData.encode(implicitTag, ostream);
++ EXPLICIT explicit = new EXPLICIT( new Tag(0), envelopedData );
++ explicit.encode(tag, ostream);
+ }
+ }
+
+@@ -147,7 +148,9 @@ public class EncryptedKey implements ASN
+ choicet = new CHOICE.Template();
+
+ choicet.addElement( EncryptedValue.getTemplate() );
+- choicet.addElement( new Tag(0), ANY.getTemplate() );
++ choicet.addElement( new EXPLICIT.Template(
++ new Tag(0),
++ ANY.getTemplate() ));
+ }
+
+ public boolean tagMatch(Tag tag) {
+@@ -164,7 +167,7 @@ public class EncryptedKey implements ASN
+ return new EncryptedKey( (EncryptedValue) choice.getValue() );
+ } else {
+ Assert._assert( choice.getTag().equals(new Tag(0)) );
+- return new EncryptedKey( (ANY) choice.getValue() );
++ return new EncryptedKey( (ANY) ((EXPLICIT) choice.getValue()).getContent() );
+ }
+
+ } catch(InvalidBERException e) {
diff --git a/jss.spec b/jss.spec
index b44a83f..cc15c1c 100644
--- a/jss.spec
+++ b/jss.spec
@@ -1,6 +1,6 @@
Name: jss
Version: 4.2.6
-Release: 40%{?dist}
+Release: 41%{?dist}
Summary: Java Security Services (JSS)
Group: System Environment/Libraries
@@ -52,6 +52,7 @@ Patch27: jss-Fixed-build-failures.patch
Patch28: jss-VerifyCertificate-enhancement.patch
Patch29: jss-lunasaUnwrap.patch
Patch30: jss-symkey-enhancements.patch
+Patch31: jss-crmf-envelopedData.patch
%description
@@ -99,6 +100,7 @@ This package contains the API documentation for JSS.
%patch28 -p1
%patch29 -p1
%patch30 -p1
+%patch31 -p1
%build
[ -z "$JAVA_HOME" ] && export JAVA_HOME=%{_jvmdir}/java
@@ -203,6 +205,10 @@ rm -rf $RPM_BUILD_ROOT
%changelog
+* Fri Jun 24 2016 Christina Fu <cfu@redhat.com> - 4.2.6-41
+- Bugzilla 1221295 jss fails to decode EncryptedKey >> EnvelopedData
+ (cfu for roysjosh@gmail.com)
+
* Thu May 19 2016 Christina Fu <cfu@redhat.com> - 4.2.6-40
- Bugzilla 1074208 - pass up exact JSS certificate validation errors from NSS
(edewata)
reply other threads:[~2026-07-28 16:48 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=178525730829.1.14839424142426196347.rpms-jss-3af0c8d7b66d@fedoraproject.org \
--to=cfu@redhat.com \
--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