Hi. On Wed, Sep 06, 2017 at 08:57:53PM +0200, to...@tuxteam.de wrote: > > On Wed, Sep 06, 2017 at 09:57:09AM +0200, to...@tuxteam.de wrote: > > [...] > > > > Isn't there any LD_PRELOAD trick one could play? [...] > > > There'll be once someone writes it. Maybe I'll do it this weekend. > > \o/ > > ;-)
So I got bored and wrote the thing today. A customary disclaimer follows: 1) The code is public domain. 2) The code is fugly so I don't claim the authorship. It's bound to break in next version of openssl anyway. 3) It was tested on Debian GNU/Linux amd64 only, although I don't see why it should not work elsewhere. 4) Nor the code nor the library are supported by Debian project or the upstream. I won't support it either. 5) There is no guaranties. If it breaks anything it's your problem, not mine. Usage: apt install gcc-7 libssl-dev tar xf tls10.tar.gz # might add -funroll-oops and -fvomit-frame-pointer here gcc -fPIC -shared -O4 -pipe -g -s -o tls10.so tls10.c strip tls10.so LD_PRELOAD=$PWD/tls10.so <ur_ssl_client_here> Reco
tls10.tar.gz
Description: application/gzip