- don't add built-in CA certificates (bnc#660784)

OBS-URL: https://build.opensuse.org/package/show/games:tools/mumble?expand=0&rev=23
This commit is contained in:
Ludwig Nussel 2012-02-13 14:01:36 +00:00 committed by Git OBS Bridge
parent 4cdaaac88d
commit 6648d2bf49
3 changed files with 60 additions and 4 deletions

View File

@ -0,0 +1,49 @@
From b7fb70c101dd6afff86173f3f5dcb6d99376d11e Mon Sep 17 00:00:00 2001
From: Ludwig Nussel <ludwig.nussel@suse.de>
Date: Mon, 13 Feb 2012 14:42:05 +0100
Subject: [PATCH mumble] don't add hardcoded CA's if NO_SYSTEM_CA_OVERRIDE is
defined
actually mumble better should never add hardcoded CA certificates,
you never know which one is next to be shut down
---
src/SSL.cpp | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/src/SSL.cpp b/src/SSL.cpp
index ab9f0c8..40aaf13 100644
--- a/src/SSL.cpp
+++ b/src/SSL.cpp
@@ -36,6 +36,7 @@
/* CAs we recommend to end users, so support these */
+#if QT_VERSION < 0x040700 && !defined(NO_SYSTEM_CA_OVERRIDE)
static const char *recommended_cas[] = {
/* StartSSL */
"-----BEGIN CERTIFICATE-----\n"
@@ -143,6 +144,7 @@ static const char *recommended_cas[] = {
};
+#endif // NO_SYSTEM_CA_OVERRIDE
void MumbleSSL::addSystemCA() {
@@ -252,7 +254,6 @@ void MumbleSSL::addSystemCA() {
}
}
QSslSocket::setDefaultCaCertificates(ql);
-#endif // NO_SYSTEM_CA_OVERRIDE
for (unsigned int i=0;i<sizeof(recommended_cas)/sizeof(recommended_cas[0]);++i) {
QSslCertificate cert(recommended_cas[i]);
@@ -261,4 +262,5 @@ void MumbleSSL::addSystemCA() {
QSslSocket::addDefaultCaCertificates(QList<QSslCertificate>() << cert);
}
}
+#endif // NO_SYSTEM_CA_OVERRIDE
}
--
1.7.7

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Feb 13 14:00:57 UTC 2012 - lnussel@suse.de
- don't add built-in CA certificates (bnc#660784)
-------------------------------------------------------------------
Wed Jul 6 08:22:17 UTC 2011 - aj@suse.de

View File

@ -1,7 +1,7 @@
#
# spec file for package mumble
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -88,7 +88,7 @@ BuildRequires: pulseaudio-devel
%endif
Version: 1.2.3%{?snapshot:_%snapshot}
Release: 1
License: BSD3c
License: BSD-3-Clause
Group: Productivity/Multimedia/Sound/Utilities
%if 0%{!?snapshot:1}
Source: http://downloads.sourceforge.net/project/mumble/Mumble/%{version}/mumble-%{version}.tar.gz
@ -102,6 +102,7 @@ Patch2: 0001-open-log-file-early-so-log-dir-can-be-root-owned.diff
Patch3: 0001-if-service-name-is-empty-don-t-pass-an-empty-string.diff
Patch4: 0001-remove-CAP_NET_ADMIN.diff
Patch5: 0001-fix-bonjour-support-using-avahi-compat-lib.diff
Patch6: mumble-1.2.3-nohardcodedcas.diff
Patch50: mumble-1.2.2-buildcompare.diff
# hack, no clue about glx so no idea to fix this properly
Patch99: mumble-1.1.4-sle10glx.diff
@ -147,7 +148,7 @@ characters, and has echo cancellation so the sound from your loudspeakers
won't be audible to other players.
%package server
License: BSD3c
License: BSD-3-Clause
Summary: Voice Communication Server for Gamers
Group: Productivity/Multimedia/Sound/Utilities
Requires: qt-sql-sqlite
@ -171,6 +172,7 @@ won't be audible to other players.
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
#
%patch50 -p1
%if 0%{?suse_version} && 0%{?suse_version} < 1020
@ -229,7 +231,7 @@ qmake \
DEFINES*=PLUGIN_PATH=%{_libdir}/mumble/plugins \
CONFIG*=packaged \
%if 0%{?suse_version}
DEFINES*=SYSTEM_CA_DIR=/etc/ssl/certs \
DEFINES*=NO_SYSTEM_CA_OVERRIDE \
%endif
CONFIG*=no-g15 \
CONFIG*=no-embed-qt-translations \