kingst/twproxy — pull request #10 by huixue (2011-12-30 05:40:52+00:00)
Title: MITM HTTPS code

Note: tested firefox. opera and chrome are hanging without finishing. But my old version with old code base are working for all browsers. I think issue could be in the keep-alive changes.

1) main.cpp:
set up OpenSSL init code for multithreaded
2) Cache.cpp:
using enableSSLClient() and enableSSLServer()
to setup MITM connections
3) MySocket.h, MySocket.cpp:
added code to generate fake cert to enable MITM