summaryrefslogtreecommitdiff
path: root/audio/murmur/files/patch-src_SelfSignedCertificate.cpp
blob: b5725633ae9d9a57bcd3a0d190921e0a369a4519 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- src/SelfSignedCertificate.cpp.orig	2023-06-11 17:43:07 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) {