link to commit: https://github.com/mumble-voip/mumble/commit/1f00fb39b89d3851c50a0da08964a5f3ef25d05e
license link: https://github.com/mumble-voip/mumble/blob/1f00fb39b89d3851c50a0da08964a5f3ef25d05e/LICENSE

commit 1f00fb39b89d3851c50a0da08964a5f3ef25d05e
Author: Ravi Kant Sharma <ravi.kant.sharma@canonical.com>
Date:   Mon Jun 22 19:54:24 2026 +0200

    FIX(client, server): Build error with OpenSSL 4.0

diff --git a/src/SelfSignedCertificate.cpp b/src/SelfSignedCertificate.cpp
index f63a42483..cdc9be598 100644
--- a/src/SelfSignedCertificate.cpp
+++ b/src/SelfSignedCertificate.cpp
@@ -105,7 +105,7 @@ bool SelfSignedCertificate::generate(CertificateType certificateType, QString cl
 	CHECK(notAfter = X509_get_notAfter(x509));
 	CHECK(X509_gmtime_adj(notAfter, 60 * 60 * 24 * 365 * 20))
 	CHECK(X509_set_pubkey(x509, pkey));
-	CHECK(name = X509_get_subject_name(x509));
+	CHECK(name = X509_NAME_new());
 
 	if (isServerCert) {
 		commonName = QLatin1String("Murmur Autogenerated Certificate v2");
@@ -120,7 +120,9 @@ bool SelfSignedCertificate::generate(CertificateType certificateType, QString cl
 	CHECK(X509_NAME_add_entry_by_txt(name, "CN", MBSTRING_UTF8,
 									 reinterpret_cast< unsigned char * >(commonName.toUtf8().data()), -1, -1, 0));
 
+	CHECK(X509_set_subject_name(x509, name));
 	CHECK(X509_set_issuer_name(x509, name));
+	X509_NAME_free(name);
 
 	CHECK(add_ext(x509, NID_basic_constraints, SSL_STRING("critical,CA:FALSE")));
 
