Add SSL_CTX method getter to fix #794