add qt decrypt ssl traffic option

this introduces an argument to qt5 that if enabled allows
e.g. wireshark to show decrypted ssl traffic from a qt
application

authored by Fabian Schmitthenner and committed by Rok Garbas 4e9327e7 da7748a6

+18 -2
+13
pkgs/development/libraries/qt-5/5.4/0100-ssl.patch
··· 1 + diff --git a/qtbase/src/network/ssl/qsslsocket_openssl.cpp b/qtbase/src/network/ssl/qsslsocket_openssl.cpp 2 + index 8833e3f..c56d381 100644 3 + --- a/qtbase/src/network/ssl/qsslsocket_openssl.cpp 4 + +++ b/qtbase/src/network/ssl/qsslsocket_openssl.cpp 5 + @@ -47,7 +47,7 @@ 6 + ****************************************************************************/ 7 + 8 + //#define QSSLSOCKET_DEBUG 9 + -//#define QT_DECRYPT_SSL_TRAFFIC 10 + +#define QT_DECRYPT_SSL_TRAFFIC 11 + 12 + #include "qssl_p.h" 13 + #include "qsslsocket_openssl_p.h"
+2 -1
pkgs/development/libraries/qt-5/5.4/default.nix
··· 20 20 21 21 # options 22 22 , developerBuild ? false 23 + , decryptSslTraffic ? false 23 24 }: 24 25 25 26 with autonix; ··· 61 62 # GNOME dependencies are not used unless gtkStyle == true 62 63 inherit (gnome) libgnomeui GConf gnome_vfs; 63 64 bison = bison2; # error: too few arguments to function 'int yylex(... 64 - inherit developerBuild srcs version; 65 + inherit developerBuild srcs version decryptSslTraffic; 65 66 }; 66 67 67 68 connectivity = callPackage
+3 -1
pkgs/development/libraries/qt-5/5.4/qtbase.nix
··· 20 20 , buildTests ? false 21 21 , developerBuild ? false 22 22 , gtkStyle ? false, libgnomeui, GConf, gnome_vfs, gtk 23 + , decryptSslTraffic ? false 23 24 }: 24 25 25 26 with stdenv.lib; ··· 68 69 (substituteAll { src = ./0011-dlopen-openssl.patch; inherit openssl; }) 69 70 (substituteAll { src = ./0012-dlopen-dbus.patch; dbus_libs = dbus; }) 70 71 ./0013-xdg_config_dirs.patch 71 - ]; 72 + ] 73 + ++ (optional decryptSslTraffic ./0100-ssl.patch); 72 74 73 75 preConfigure = '' 74 76 export LD_LIBRARY_PATH="$PWD/qtbase/lib:$PWD/qtbase/plugins/platforms:$PWD/qttools/lib:$LD_LIBRARY_PATH"