From a52bffb4ae07a2e91d38868ce8d9b9309f4aea3b Mon Sep 17 00:00:00 2001 From: Dmitri Smirnov Date: Tue, 13 Oct 2026 23:39:38 +0200 Subject: [PATCH] OpenSSL 4 compatibility (X509_get_subject_name and X509_NAME_get_entry return const pointers now) --- cdoc/Certificate.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cdoc/Certificate.cpp b/cdoc/Certificate.cpp index 1c047a41..6ff2d291 100644 --- a/cdoc/Certificate.cpp +++ b/cdoc/Certificate.cpp @@ -35,13 +35,13 @@ std::string Certificate::getName(int NID) const std::string cn; if(!cert) return cn; - X509_NAME *name = X509_get_subject_name(cert.get()); + const X509_NAME *name = X509_get_subject_name(cert.get()); if(!name) return cn; int pos = X509_NAME_get_index_by_NID(name, NID, -1); if(pos == -1) return cn; - X509_NAME_ENTRY *e = X509_NAME_get_entry(name, pos); + const X509_NAME_ENTRY *e = X509_NAME_get_entry(name, pos); if(!e) return cn; char *data = nullptr;