public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Sandro Mani <manisandro@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/omniORB] rawhide: Add omniORB_openssl4.patch
Date: Tue, 21 Jul 2026 16:59:10 GMT	[thread overview]
Message-ID: <178465315054.1.7248306303241874501.rpms-omniORB-56295d7a4afb@fedoraproject.org> (raw)

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;

                 reply	other threads:[~2026-07-21 16:59 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=178465315054.1.7248306303241874501.rpms-omniORB-56295d7a4afb@fedoraproject.org \
    --to=manisandro@gmail.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