From 6a6940d043fcd55215f6d662982ea3e8b72bef39 Mon Sep 17 00:00:00 2001 From: Muhammad Moinur Rahman Date: Sat, 10 Jun 2023 15:04:06 +0200 Subject: [PATCH] audio/mumble: Fix build with OpenSSL 3 and later Approved by: portmgr (blanket) --- .../files/patch-src_SelfSignedCertificate.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 audio/mumble/files/patch-src_SelfSignedCertificate.cpp diff --git a/audio/mumble/files/patch-src_SelfSignedCertificate.cpp b/audio/mumble/files/patch-src_SelfSignedCertificate.cpp new file mode 100644 index 000000000000..354788be773f --- /dev/null +++ b/audio/mumble/files/patch-src_SelfSignedCertificate.cpp @@ -0,0 +1,15 @@ +--- src/SelfSignedCertificate.cpp.orig 2023-06-10 11:50:34 UTC ++++ src/SelfSignedCertificate.cpp +@@ -45,10 +45,12 @@ bool SelfSignedCertificate::generate(CertificateType c + QString commonName; + bool isServerCert = certificateType == CertificateTypeServerCertificate; + ++#ifdef CRYPTO_MEM_CHECK_ON + if (CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_ON) == -1) { + ok = false; + goto out; + } ++#endif + + x509 = X509_new(); + if (x509 == NULL) {