public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: nucleo <nucleo@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/kvirc] rawhide: Fix compilation with openssl 4
Date: Fri, 24 Jul 2026 22:16:27 GMT [thread overview]
Message-ID: <178493138720.1.18244849032247162274.rpms-kvirc-4d647a6fe37c@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/kvirc
Branch : rawhide
Commit : 4d647a6fe37c34d9d475f6ef926702a2964ce2ec
Author : nucleo <nucleo@fedoraproject.org>
Date : 2026-07-25T01:16:19+03:00
Stats : +39/-0 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/kvirc/c/4d647a6fe37c34d9d475f6ef926702a2964ce2ec?branch=rawhide
Log:
Fix compilation with openssl 4
---
diff --git a/d1de244fe7b45355237a871192d2680d9d9f1e86.patch b/d1de244fe7b45355237a871192d2680d9d9f1e86.patch
new file mode 100644
index 0000000..f593961
--- /dev/null
+++ b/d1de244fe7b45355237a871192d2680d9d9f1e86.patch
@@ -0,0 +1,38 @@
+From d1de244fe7b45355237a871192d2680d9d9f1e86 Mon Sep 17 00:00:00 2001
+From: ctrlaltca <ctrlaltca@gmail.com>
+Date: Sat, 13 Jun 2026 12:29:46 +0200
+Subject: [PATCH] Fix compilation with openssl 4 (#2765)
+
+---
+ src/kvilib/net/KviSSL.cpp | 13 ++++++++++++-
+ 1 file changed, 12 insertions(+), 1 deletion(-)
+
+diff --git a/src/kvilib/net/KviSSL.cpp b/src/kvilib/net/KviSSL.cpp
+index 1adaf7e28..9741373cc 100644
+--- a/src/kvilib/net/KviSSL.cpp
++++ b/src/kvilib/net/KviSSL.cpp
+@@ -953,12 +953,23 @@ void KviSSLCertificate::extractSignature()
+
+ m_szSignatureContents = "";
+
+- for(i = 0; i < sig->length; i++)
++#if OPENSSL_VERSION_NUMBER >= 0x10100005L
++ int length = ASN1_STRING_length(sig);
++#else
++ int length = sig->length;
++#endif
++ for(i = 0; i < length; i++)
+ {
+ if(m_szSignatureContents.hasData())
+ m_szSignatureContents.append(":");
++#if OPENSSL_VERSION_NUMBER >= 0x10100005L
++ const unsigned char *data = ASN1_STRING_get0_data(sig);
++ m_szSignatureContents.append(hexdigits[(data[i] & 0xf0) >> 4]);
++ m_szSignatureContents.append(hexdigits[(data[i] & 0x0f)]);
++#else
+ m_szSignatureContents.append(hexdigits[(sig->data[i] & 0xf0) >> 4]);
+ m_szSignatureContents.append(hexdigits[(sig->data[i] & 0x0f)]);
++#endif
+ }
+ }
+
diff --git a/kvirc.spec b/kvirc.spec
index 1982e88..908127c 100644
--- a/kvirc.spec
+++ b/kvirc.spec
@@ -8,6 +8,7 @@ URL: https://www.kvirc.net/
Source: %{forgeurl}/archive/refs/tags/%{version}/%{name}-%{version}.tar.gz
# https://fedoraproject.org/wiki/Packaging:CryptoPolicies
Patch: kvirc-5.0.0_enforce_system_crypto.patch
+Patch: https://github.com/kvirc/KVIrc/commit/d1de244fe7b45355237a871192d2680d9d9f1e86.patch
BuildRequires: enchant2-devel
BuildRequires: audiofile-devel
reply other threads:[~2026-07-24 22:16 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=178493138720.1.18244849032247162274.rpms-kvirc-4d647a6fe37c@fedoraproject.org \
--to=nucleo@fedoraproject.org \
--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