Link mitmproxy against custom openssl

Hi everyone,

I’m interested in linking mitmproxy against a customized implementation of OpenSSL.
Would that be possible and in affirmative case are there any instructions for linking and recompiling mitmproxy with OpenSSL?

Tks!