audio/mumble: Fix build with OpenSSL 3 and later
Approved by: portmgr (blanket)
This commit is contained in:
parent
4c1fbd8d52
commit
6a6940d043
1 changed files with 15 additions and 0 deletions
15
audio/mumble/files/patch-src_SelfSignedCertificate.cpp
Normal file
15
audio/mumble/files/patch-src_SelfSignedCertificate.cpp
Normal file
|
@ -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) {
|
Loading…
Reference in a new issue