Some APIs to support pyOpenSSL's actual SSL APIs