public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Jakub Jelen <jjelen@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/kryoptic] f44: Update asn1 dependency to 0.24
Date: Fri, 05 Jun 2026 19:12:27 GMT [thread overview]
Message-ID: <178068674735.1.691341592590930361.rpms-kryoptic-df19a9961c2b@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/kryoptic
Branch : f44
Commit : df19a9961c2b75c7dde800d0057f8714a45db494
Author : Jakub Jelen <jjelen@redhat.com>
Date : 2026-04-29T13:08:41-04:00
Stats : +123/-0 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/kryoptic/c/df19a9961c2b75c7dde800d0057f8714a45db494?branch=f44
Log:
Update asn1 dependency to 0.24
---
diff --git a/kryoptic-1.5.0-asn1.patch b/kryoptic-1.5.0-asn1.patch
new file mode 100644
index 0000000..bd44a52
--- /dev/null
+++ b/kryoptic-1.5.0-asn1.patch
@@ -0,0 +1,121 @@
+From 1e8c4164c81a5efc35afd46de3e2b40e27f77093 Mon Sep 17 00:00:00 2001
+From: Jakub Jelen <jjelen@redhat.com>
+Date: Thu, 9 Apr 2026 10:08:15 +0200
+Subject: [PATCH] Update to asn1 0.24.0
+
+Signed-off-by: Jakub Jelen <jjelen@redhat.com>
+---
+ Cargo.toml | 2 +-
+ src/kasn1/mod.rs | 6 ++++++
+ src/kasn1/pyca/pkcs.rs | 21 +++++++++++++++++----
+ 3 files changed, 24 insertions(+), 5 deletions(-)
+
+diff --git a/Cargo.toml b/Cargo.toml
+index f911da6a..d80276e1 100644
+--- a/Cargo.toml
++++ b/Cargo.toml
+@@ -53,7 +53,7 @@ test = true
+ bindgen = "0.72"
+
+ [dependencies]
+-asn1 = "0.22"
++asn1 = "0.24"
+ bimap = "0.6.3"
+ bitflags = "2.4.1"
+ constant_time_eq = "0.4.2"
+diff --git a/src/kasn1/mod.rs b/src/kasn1/mod.rs
+index baf85381..356f71eb 100644
+--- a/src/kasn1/mod.rs
++++ b/src/kasn1/mod.rs
+@@ -106,7 +106,10 @@ impl<'a> asn1::SimpleAsn1Readable<'a> for DerEncBigUint<'a> {
+ }
+ }
+ impl<'a> asn1::SimpleAsn1Writable for DerEncBigUint<'a> {
++ type Error = asn1::WriteError;
++
+ const TAG: asn1::Tag = asn1::BigUint::TAG;
++
+ /// Writes out a DerEncBigUint
+ fn write_data(&self, dest: &mut asn1::WriteBuf) -> asn1::WriteResult {
+ dest.push_slice(self.as_bytes())
+@@ -162,7 +165,10 @@ impl<'a> asn1::SimpleAsn1Readable<'a> for DerEncOctetString<'a> {
+ }
+ }
+ impl<'a> asn1::SimpleAsn1Writable for DerEncOctetString<'a> {
++ type Error = asn1::WriteError;
++
+ const TAG: asn1::Tag = asn1::Tag::primitive(0x04);
++
+ /// Writes out a DerEncOctetString
+ fn write_data(&self, dest: &mut asn1::WriteBuf) -> asn1::WriteResult {
+ dest.push_slice(self.as_bytes())
+diff --git a/src/kasn1/pyca/pkcs.rs b/src/kasn1/pyca/pkcs.rs
+index e4f35096..2b34d6e5 100644
+--- a/src/kasn1/pyca/pkcs.rs
++++ b/src/kasn1/pyca/pkcs.rs
+@@ -7,7 +7,7 @@
+ // 2.0, and the BSD License. See the LICENSE file in the root of this repository
+ // for complete details.
+
+-use asn1::{Asn1DefinedByWritable, SimpleAsn1Writable};
++use asn1::{Asn1DefinedByWritable, SimpleAsn1Writable, WriteError};
+
+ //use crate::oid;
+
+@@ -305,6 +305,8 @@ impl<'a> asn1::Asn1Readable<'a> for RawTlv<'a> {
+ }
+ }
+ impl asn1::Asn1Writable for RawTlv<'_> {
++ type Error = WriteError;
++
+ fn write(&self, w: &mut asn1::Writer<'_>) -> asn1::WriteResult {
+ w.write_tlv(self.tag, Some(self.value.len()), move |dest| {
+ dest.push_slice(self.value)
+@@ -366,10 +368,15 @@ impl<'a, T: asn1::SimpleAsn1Readable<'a>, U> asn1::SimpleAsn1Readable<'a>
+ }
+ }
+
+-impl<T: asn1::SimpleAsn1Writable, U: asn1::SimpleAsn1Writable>
+- asn1::SimpleAsn1Writable for Asn1ReadableOrWritable<T, U>
++impl<
++ T: asn1::SimpleAsn1Writable<Error = WriteError>,
++ U: asn1::SimpleAsn1Writable<Error = WriteError>,
++ > asn1::SimpleAsn1Writable for Asn1ReadableOrWritable<T, U>
+ {
++ type Error = asn1::WriteError;
++
+ const TAG: asn1::Tag = U::TAG;
++
+ fn write_data(&self, w: &mut asn1::WriteBuf) -> asn1::WriteResult {
+ match self {
+ Asn1ReadableOrWritable::Read(v) => T::write_data(v, w),
+@@ -680,6 +687,7 @@ impl<'a> asn1::SimpleAsn1Readable<'a> for UnvalidatedVisibleString<'a> {
+ }
+
+ impl asn1::SimpleAsn1Writable for UnvalidatedVisibleString<'_> {
++ type Error = WriteError;
+ const TAG: asn1::Tag = asn1::VisibleString::TAG;
+ fn write_data(&self, _: &mut asn1::WriteBuf) -> asn1::WriteResult {
+ unimplemented!();
+@@ -700,6 +708,7 @@ impl<'a> Utf8StoredBMPString<'a> {
+ }
+
+ impl asn1::SimpleAsn1Writable for Utf8StoredBMPString<'_> {
++ type Error = asn1::WriteError;
+ const TAG: asn1::Tag = asn1::BMPString::TAG;
+ fn write_data(&self, writer: &mut asn1::WriteBuf) -> asn1::WriteResult {
+ for ch in self.0.encode_utf16() {
+@@ -747,7 +756,11 @@ impl<'a, T: asn1::Asn1Readable<'a>> asn1::Asn1Readable<'a> for WithTlv<'a, T> {
+ }
+ }
+
+-impl<T: asn1::Asn1Writable> asn1::Asn1Writable for WithTlv<'_, T> {
++impl<T: asn1::Asn1Writable<Error = WriteError>> asn1::Asn1Writable
++ for WithTlv<'_, T>
++{
++ type Error = WriteError;
++
+ fn write(&self, w: &mut asn1::Writer<'_>) -> asn1::WriteResult<()> {
+ self.value.write(w)
+ }
+
diff --git a/kryoptic.spec b/kryoptic.spec
index 0a8c3d0..ba1dd2c 100644
--- a/kryoptic.spec
+++ b/kryoptic.spec
@@ -33,6 +33,8 @@ Source0: https://github.com/latchset/kryoptic/releases/download/v%{versio
Source1: https://github.com/latchset/kryoptic/releases/download/v%{version}/%{name}-%{version}.tar.gz.asc
Source2: https://people.redhat.com/~ssorce/simo_redhat.asc
%endif
+# https://github.com/latchset/kryoptic/pull/439
+Patch: kryoptic-1.5.0-asn1.patch
BuildRequires: cargo-rpm-macros >= 26
BuildRequires: openssl-devel
reply other threads:[~2026-06-05 19:12 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=178068674735.1.691341592590930361.rpms-kryoptic-df19a9961c2b@fedoraproject.org \
--to=jjelen@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