Commit Graph

4016 Commits

Author SHA1 Message Date
Mikkel Krautz
64f1c095e6 Remove old-style license header from WoW plugin.
Karl Dietz has allowed us to remove the old license header
from the WoW plugin.
2016-06-11 19:18:01 +02:00
Mikkel Krautz
3897c794fe Murmur: use non-forceful disconnect when encountering SSL handshake errors on Qt 5.
Due to a regression in Qt 5, we can't use disconnectSocket(true)
to abort a handshake.

Use non-forceful disconnect to work around the Qt 5 bug.

See inline comment for more details.

Fixes mumble-voip/mumble#2334
2016-06-11 01:53:03 +02:00
Mikkel Krautz
6091625bc9 Murmur.ice: add updateCertificate() method.
This allows live certificate/private key reloading
for individual virtual servers.

This makes it possible to integrate Murmur with
an external Let's Encrypt script, without having
to fully restart the virtual server in the process.
2016-06-06 22:01:02 +02:00
Mikkel Krautz
18e801431b Cert: add ERR_clear_error() to the end of initializeCert(). 2016-06-06 21:42:59 +02:00
Mikkel Krautz
5467f3a345 Murmur: add no-op userTextMessage signal for DBus to silence connect()'s error log output.
This gets rid of the following (harmless, but worrying) error in Murmur's log:

    <W>2016-06-04 00:17:39.229 QObject::connect: No such slot MurmurDBus::userTextMessage(const User *, const TextMessage &)
2016-06-06 21:35:59 +02:00
MumbleTransifexBot
cb63f318ed Transifex translation update
Mode: default
Minimum percent translated: 0
Matched 41 languages
2016-06-02 01:27:37 +00:00
Mikkel Krautz
cb2b5eea8e mumble.pro: query pkg-config for protobuf instead of using -lprotobuf. 2016-05-22 15:45:29 +02:00
Frank Engler
fd24ee94a9 ServerDB.cpp: refactor code writing SuperUser password into DB
setSUPW and disableSU used same code to write into database.
This duplication is removed and replaced with private function
writeSUPW.
2016-05-22 03:01:06 +02:00
Frank Engler
16f7323a15 murmurd: command line argument "-disablesu" disables SuperUser
Password login was always allowed for SuperUser. -disablesu
removes SuperUser password. Certificate based authentication
is never allowed for SuperUser. In consequence SuperUser can
authenticate neither with password nor with certificate.
Set new password to allow login for SuperUser again.
2016-05-22 03:01:06 +02:00
Mikkel Krautz
4aa902ded3 MumbleSSL: add a sanity check for QSsl loading a different version of OpenSSL than we're linked against. 2016-05-22 01:52:40 +02:00
Mikkel Krautz
f3a02c3d2a Plugins, VersionCheck: don't pass WTD_LIFETIME_SIGNING_FLAG to WinTrust APIs.
Our binaries are timestamped, and we expect them to be deemed
valid by Windows even after the certificate expires. And they
are.

However, our own code explicitly passes WTD_LIFETIME_SIGNING
to the WinTrust APIs, overriding Windows's default of treating
timestamped binaries as valid even after certificate expiry.
(As long as the certificate doesn't have the lifetime signing bit
set!)

From Windows Authenticode Portable Executable Signature Format [1]:

> Timestamp Processing with Lifetime Signing Semantics
>
> Applications or certification authorities that do not want timestamped
> signatures to verify successfully for an indefinite period of time have
> two options:
>
>  - Set the lifetime signer OID in the publishers signing certificate.
>
>    If the publishers signing certificate contains the lifetime signer
>    OID in addition to the PKIX code signing OID, the signature becomes
>    invalid when the publishers signing certificate expires, even if
>    the signature is timestamped. The lifetime signer OID is defined as
>    follows:
>
>        szOID_KP_LIFETIME_SIGNING 1.3.6.1.4.1.311.10.3.13
>
>  - Set the WTD_LIFETIME_SIGNING_FLAG in the WINTRUST_DATA structure
>    when calling WinVerifyTrust.
>
> If a WinVerifyTrust caller sets WTD_LIFETIME_SIGNING_FLAG in the
> WINTRUST_DATA structure and the publishers signing certificate has
> expired, WinVerifyTrust reports the signature as invalid even if the
> signature is timestamped.
>
> If a publisher revokes a code signing certificate that contains the lifetime
> signer OID or a WinVerifyTrust caller sets WTD_LIFETIME_SIGNING_FLAG in the
> WINTRUST_DATA structure, WinVerifyTrust reports the signature as valid if both
> of the following conditions are met:
>
>  - The signature was timestamped before the revocation date.
>  - The signing certificate is still withinits validity period. After the
>     validity period expires, the signature becomes invalid.

[1]: Windows Authenticode Portable Executable Signature Format
     Version 1.0 March 21, 2008
     http://download.microsoft.com/download/9/c/5/9c5b2167-8017-4bae-9fde-d599bac8184a/Authenticode_PE.docx
2016-05-21 11:19:17 +02:00
Nascher
3be04af9ef Allow only one instance from UserLocalVolumeDialog per User 2016-05-19 21:30:12 +02:00
Mikkel Krautz
dac910b660 Net: use QLatin1String instead of implicit char * -> QString conversion in Ban::toString().
Fixes the build. We have QT_NO_CAST_FROM_ASCII set.
2016-05-19 01:04:55 +02:00
spede
5d1a56e6e8 Add logging for ban removals/changes.
Fixes mumble-voip/mumble#1996
2016-05-19 00:31:42 +02:00
MumbleTransifexBot
9034a3bb7e Transifex translation update
Mode: default
Minimum percent translated: 0
Matched 41 languages
2016-05-18 01:27:36 +00:00
MumbleTransifexBot
84ca089877 Transifex translation update
Mode: default
Minimum percent translated: 0
Matched 41 languages
2016-05-13 01:27:35 +00:00
Mikkel Krautz
19214a475d Add remaining files that use the old-style license header to 3rdPartyLicenses. 2016-05-10 22:42:04 +02:00
Mikkel Krautz
78a46ead50 src/murmur_grpcwrapper_protoc_plugin: update to use LICENSE.header. 2016-05-10 22:42:04 +02:00
Mikkel Krautz
af43d61330 mumble_proto: update to use LICENSE.header. 2016-05-10 22:42:03 +02:00
Mikkel Krautz
d2bda147d9 src/mumble: update to use LICENSE.header. 2016-05-10 22:42:03 +02:00
Mikkel Krautz
5f71ce6bf9 src/mumble_exe: update to use LICENSE.header. 2016-05-10 22:42:03 +02:00
Mikkel Krautz
54c28d3ee1 src/murmur: update to use LICENSE.header. 2016-05-10 22:42:02 +02:00
Mikkel Krautz
395c084b7a src: update to use LICENSE.header. 2016-05-10 22:42:02 +02:00
Mikkel Krautz
3283c43019 Add python.pri to detect the system's Python binary. Use it in mumble.pro. 2016-05-10 20:47:58 +02:00
Mikkel Krautz
1f72548c35 Fix mumble_pch.hpp for OpenBSD. 2016-05-10 20:47:58 +02:00
Mikkel Krautz
cc48689c1e PulseAudio: remove OSS headers from PulseAudio.cpp. 2016-05-10 20:47:58 +02:00
Mikkel Krautz
39aebda1ad Channel, ServerUser: make cast operator non-const.
Places that use the QString() conversion operator
for Channel and ServerUser sometimes end up using
the QString move constructor, which doesn't take
const strings.

Example of an error:

	Messages.cpp:1055:65: error: no viable conversion from 'Channel' to 'QString'
				log(uSource, QString("Renamed channel %1 to %2").arg(QString(*c),

Fixes C++11 build on OS X (clang/libc++).
2016-05-09 23:49:43 +02:00
Mikkel Krautz
69086d8572 GlobalShortcut_macx: fix build in C++11 mode (strongly typed enums) 2016-05-09 23:49:43 +02:00
Tim Cooper
412c0d1a65 Document undocumented fields in Mumble.proto (#2261)
Fixes #1990
2016-05-09 21:39:50 +02:00
John Marion
6123439d1b Remove hardcoded IP whitelist for master server
With the master server being moved, this hardcoded IP is no longer
valid.
2016-05-09 01:09:43 +02:00
MumbleTransifexBot
7ab5aa2ca2 Transifex translation update
Mode: default
Minimum percent translated: 0
Matched 41 languages
2016-05-08 22:54:25 +02:00
Mikkel Krautz
4a419de221 grpc: limit gRPC to Qt 5.
It doesn't build on Qt 4 at the moment.
2016-05-08 16:45:52 +02:00
Tim Cooper
21f9a29d42 grpc: fix uninitialized RPCCall reference count 2016-05-08 16:45:52 +02:00
Tim Cooper
1af50bd5ff grpc: do not use CONFIG for grpc block 2016-05-08 16:45:52 +02:00
Mikkel Krautz
8d5236f3f2 grpc: add log message in GRPCStart, so users know that GRPC is enabled. 2016-05-08 16:45:52 +02:00
Mikkel Krautz
e93d566fa9 grpc: use single-line comments for docs in MurmurGRPCImpl.cpp. 2016-05-08 16:45:52 +02:00
Mikkel Krautz
88a665313e grpc: use single-line doxygen-style comments in RPCSingleStreamCall top-level comment. 2016-05-08 16:45:52 +02:00
Mikkel Krautz
cd6b532cfd grpc: fix implicit QString conversions in setChannelStateGRPC. 2016-05-08 16:45:52 +02:00
Mikkel Krautz
9128351b5c grpc: rename GRPC-specific Server::setChannelState method, and add docs. 2016-05-08 16:45:52 +02:00
Mikkel Krautz
c7cd28b469 grpc: indent pre-declaration of classes in MurmurRPC::Wrapper. 2016-05-08 16:45:52 +02:00
Mikkel Krautz
505df4f7d3 grpc: make mServer and qtCleanup members in MurmurRPCImpl conform to coding style. 2016-05-08 16:45:52 +02:00
Mikkel Krautz
a02ef1b102 grpc: fix Server::sendTextMessageGRPC and Server::setChannelState to build in non-C++11 mode.
Before C++11, <:: is expanded as a trigraph in this context.
2016-05-08 16:45:52 +02:00
Mikkel Krautz
9fafa9ae15 grpc: make member variables in RPCCall and RPCSingleStreamCall coding style conformant. 2016-05-08 16:45:52 +02:00
Mikkel Krautz
71f90de22c grpc: rename remaining MurmurRPCImpl member variables to be coding style conformant. 2016-05-08 16:45:52 +02:00
Mikkel Krautz
d8710c1019 grpc: rename aV1Service to m_V1Service. 2016-05-08 16:45:52 +02:00
Mikkel Krautz
32b8abd894 grpc: rename mCQ to m_completionQueue as per our coding style. 2016-05-08 16:45:52 +02:00
Mikkel Krautz
31928ca51f grpc: use single-line comments for MurmurGRPCImpl.cpp system overview. 2016-05-08 16:45:52 +02:00
Mikkel Krautz
83c0b095e0 grpc: rename RPCStart and RPCStop to GRPCStart and GRPCStop. 2016-05-08 16:45:52 +02:00
Mikkel Krautz
a107fb3d71 grpc: fix formatting of textMessageFilter result handling. 2016-05-08 16:45:52 +02:00
Mikkel Krautz
ee1988eb4b grpc: rename GRPC-specific Server::sendTextMessage to Server::sendTextMessageGRPC(), and add docs. 2016-05-08 16:45:52 +02:00