public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/omniORB] rawhide: Add omniORB_openssl4.patch
@ 2026-07-21 16:59 Sandro Mani
0 siblings, 0 replies; only message in thread
From: Sandro Mani @ 2026-07-21 16:59 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/omniORB
Branch : rawhide
Commit : 56295d7a4afb0ea98e7ac39f55eae6c7fe2af4be
Author : Sandro Mani <manisandro@gmail.com>
Date : 2026-07-21T18:59:02+02:00
Stats : +44/-0 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/omniORB/c/56295d7a4afb0ea98e7ac39f55eae6c7fe2af4be?branch=rawhide
Log:
Add omniORB_openssl4.patch
---
diff --git a/omniORB.spec b/omniORB.spec
index f2d2937..b278529 100644
--- a/omniORB.spec
+++ b/omniORB.spec
@@ -19,6 +19,8 @@ Source1: omniORB-nameserver.init
Source2: omniORB-nameserver.logrotate
Source3: omniORB.cfg
Source4: omniNames.service
+# Fix build against openssl-4.x
+Patch0: omniORB_openssl4.patch
BuildRequires: gcc-c++
BuildRequires: make
diff --git a/omniORB_openssl4.patch b/omniORB_openssl4.patch
new file mode 100644
index 0000000..83fdb29
--- /dev/null
+++ b/omniORB_openssl4.patch
@@ -0,0 +1,42 @@
+diff -rupN omniORB-4.3.4/src/lib/omniORB/orbcore/http/httpConnection.cc omniORB-4.3.4-new/src/lib/omniORB/orbcore/http/httpConnection.cc
+--- omniORB-4.3.4/src/lib/omniORB/orbcore/http/httpConnection.cc 2024-10-04 17:15:53.000000000 +0200
++++ omniORB-4.3.4-new/src/lib/omniORB/orbcore/http/httpConnection.cc 2026-07-21 18:47:21.431421321 +0200
+@@ -2554,14 +2554,14 @@ httpConnection::setPeerDetails() {
+
+ int lastpos = -1;
+
+- X509_NAME* name = X509_get_subject_name(peer_cert);
++ const X509_NAME* name = X509_get_subject_name(peer_cert);
+ lastpos = X509_NAME_get_index_by_NID(name, NID_commonName, lastpos);
+
+ if (lastpos == -1)
+ return;
+
+- X509_NAME_ENTRY* ne = X509_NAME_get_entry(name, lastpos);
+- ASN1_STRING* asn1_str = X509_NAME_ENTRY_get_data(ne);
++ const X509_NAME_ENTRY* ne = X509_NAME_get_entry(name, lastpos);
++ const ASN1_STRING* asn1_str = X509_NAME_ENTRY_get_data(ne);
+
+ // Convert to native code set
+ cdrMemoryStream stream;
+diff -rupN omniORB-4.3.4/src/lib/omniORB/orbcore/ssl/sslConnection.cc omniORB-4.3.4-new/src/lib/omniORB/orbcore/ssl/sslConnection.cc
+--- omniORB-4.3.4/src/lib/omniORB/orbcore/ssl/sslConnection.cc 2024-10-04 17:15:53.000000000 +0200
++++ omniORB-4.3.4-new/src/lib/omniORB/orbcore/ssl/sslConnection.cc 2026-07-21 18:41:25.429536670 +0200
+@@ -548,14 +548,14 @@ sslConnection::setPeerDetails() {
+
+ int lastpos = -1;
+
+- X509_NAME* name = X509_get_subject_name(peer_cert);
++ const X509_NAME* name = X509_get_subject_name(peer_cert);
+ lastpos = X509_NAME_get_index_by_NID(name, NID_commonName, lastpos);
+
+ if (lastpos == -1)
+ return;
+
+- X509_NAME_ENTRY* ne = X509_NAME_get_entry(name, lastpos);
+- ASN1_STRING* asn1_str = X509_NAME_ENTRY_get_data(ne);
++ const X509_NAME_ENTRY* ne = X509_NAME_get_entry(name, lastpos);
++ const ASN1_STRING* asn1_str = X509_NAME_ENTRY_get_data(ne);
+
+ // Convert to native code set
+ cdrMemoryStream stream;
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-07-21 16:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-21 16:59 [rpms/omniORB] rawhide: Add omniORB_openssl4.patch Sandro Mani
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox