summaryrefslogtreecommitdiff
path: root/dev-libs/Ice/files/cpp_src_Ice_SSL_OpenSSLTransceiverI_cpp.patch
blob: 009ed3b8458314948b87885eb78f139520b1ebe1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff '--color=auto' -urN ice-3.8.0.orig/cpp/src/Ice/SSL/OpenSSLTransceiverI.cpp ice-3.8.0/cpp/src/Ice/SSL/OpenSSLTransceiverI.cpp
--- ice-3.8.0.orig/cpp/src/Ice/SSL/OpenSSLTransceiverI.cpp	2025-12-31 10:50:53.164681476 +0100
+++ ice-3.8.0/cpp/src/Ice/SSL/OpenSSLTransceiverI.cpp	2025-12-31 10:55:15.474024349 +0100
@@ -197,7 +197,11 @@
         if (_incoming)
         {
             // SSL_get1_peer_certificate increases the reference count of the certificate before returning it.
+#ifndef LIBRESSL_VERSION_NUMBER
             X509* peerCertificate = SSL_get1_peer_certificate(_ssl);
+#else
+            X509* peerCertificate = SSL_get_peer_certificate(_ssl);
+#endif
             if (peerCertificate)
             {
                 _peerCertificate = peerCertificate;