| From 7dce31ed85b2e2299e63e7704ae2ffa7ce08d1c5 Mon Sep 17 00:00:00 2001 | |
| From: Bernd Kuhls <bernd@kuhls.net> | |
| Date: Tue, 1 Sep 2026 22:44:06 +0200 | |
| Subject: [PATCH] SecurityCertificateManager.cpp: fix build with OpenSSL 4.0.0 | |
| https://github.com/openssl/openssl/issues/29117 | |
| Upstream: https://github.com/ibrdtn/ibrdtn/pull/287 | |
| Signed-off-by: Bernd Kuhls <bernd@kuhls.net> | |
| --- | |
| src/security/SecurityCertificateManager.cpp | 6 +++--- | |
| 1 file changed, 3 insertions(+), 3 deletions(-) | |
| diff --git a/src/security/SecurityCertificateManager.cpp b/src/security/SecurityCertificateManager.cpp | |
| index f2bbb017..0093d418 100644 | |
| --- a/src/security/SecurityCertificateManager.cpp | |
| +++ b/src/security/SecurityCertificateManager.cpp | |
| @@ -146,8 +146,8 @@ namespace dtn | |
| throw SecurityCertificateException("certificate or common-name is empty"); | |
| } | |
| - X509_NAME *cert_name; | |
| - X509_NAME_ENTRY *name_entry; | |
| + const X509_NAME *cert_name; | |
| + const X509_NAME_ENTRY *name_entry; | |
| ASN1_STRING *eid_string; | |
| int lastpos = -1; | |
| unsigned char *utf8_eid; | |
| @@ -188,7 +188,7 @@ namespace dtn | |
| } | |
| /* retrieve the string */ | |
| - ASN1_STRING *asn1 = X509_NAME_ENTRY_get_data(name_entry); | |
| + const ASN1_STRING *asn1 = X509_NAME_ENTRY_get_data(name_entry); | |
| if(!asn1){ | |
| IBRCOMMON_LOGGER_TAG(SecurityCertificateManager::TAG, error) << "X509_NAME_ENTRY_get_data returned NULL unexpectedly." << IBRCOMMON_LOGGER_ENDL; | |
| continue; | |
| -- | |
| 2.47.3 | |