aboutsummaryrefslogtreecommitdiff
path: root/audio/mumble
diff options
context:
space:
mode:
authorMuhammad Moinur Rahman <bofh@FreeBSD.org>2023-06-10 13:04:06 +0000
committerMuhammad Moinur Rahman <bofh@FreeBSD.org>2023-06-10 17:14:07 +0000
commit6a6940d043fcd55215f6d662982ea3e8b72bef39 (patch)
treea0104f52403a4064509dbd0ea132e886c666115e /audio/mumble
parent4c1fbd8d521ce8ba8556514dce583dfd770c3066 (diff)
downloadports-6a6940d043fcd55215f6d662982ea3e8b72bef39.tar.gz
ports-6a6940d043fcd55215f6d662982ea3e8b72bef39.zip
audio/mumble: Fix build with OpenSSL 3 and later
Approved by: portmgr (blanket)
Diffstat (limited to 'audio/mumble')
-rw-r--r--audio/mumble/files/patch-src_SelfSignedCertificate.cpp15
1 files changed, 15 insertions, 0 deletions
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) {