3
0
Fork 0
forked from mirrors/nixpkgs

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
This commit is contained in:
Fabian Schmitthenner 2015-05-27 17:57:26 +00:00 committed by Rok Garbas
parent da7748a6fc
commit 4e9327e7ac
3 changed files with 18 additions and 2 deletions

View file

@ -0,0 +1,13 @@
diff --git a/qtbase/src/network/ssl/qsslsocket_openssl.cpp b/qtbase/src/network/ssl/qsslsocket_openssl.cpp
index 8833e3f..c56d381 100644
--- a/qtbase/src/network/ssl/qsslsocket_openssl.cpp
+++ b/qtbase/src/network/ssl/qsslsocket_openssl.cpp
@@ -47,7 +47,7 @@
****************************************************************************/
//#define QSSLSOCKET_DEBUG
-//#define QT_DECRYPT_SSL_TRAFFIC
+#define QT_DECRYPT_SSL_TRAFFIC
#include "qssl_p.h"
#include "qsslsocket_openssl_p.h"

View file

@ -20,6 +20,7 @@
# options
, developerBuild ? false
, decryptSslTraffic ? false
}:
with autonix;
@ -61,7 +62,7 @@ let
# GNOME dependencies are not used unless gtkStyle == true
inherit (gnome) libgnomeui GConf gnome_vfs;
bison = bison2; # error: too few arguments to function 'int yylex(...
inherit developerBuild srcs version;
inherit developerBuild srcs version decryptSslTraffic;
};
connectivity = callPackage

View file

@ -20,6 +20,7 @@
, buildTests ? false
, developerBuild ? false
, gtkStyle ? false, libgnomeui, GConf, gnome_vfs, gtk
, decryptSslTraffic ? false
}:
with stdenv.lib;
@ -68,7 +69,8 @@ stdenv.mkDerivation {
(substituteAll { src = ./0011-dlopen-openssl.patch; inherit openssl; })
(substituteAll { src = ./0012-dlopen-dbus.patch; dbus_libs = dbus; })
./0013-xdg_config_dirs.patch
];
]
++ (optional decryptSslTraffic ./0100-ssl.patch);
preConfigure = ''
export LD_LIBRARY_PATH="$PWD/qtbase/lib:$PWD/qtbase/plugins/platforms:$PWD/qttools/lib:$LD_LIBRARY_PATH"