[issue8484] ssl socket with certificate verification fails on SHA256 digest algorithm

Antoine Pitrou report at bugs.python.org
Wed Apr 21 14:14:05 CEST 2010


Antoine Pitrou <pitrou at free.fr> added the comment:

Changing OpenSSL initialization to the following seems to fix the issue (with OpenSSL 0.9.8k and 1.0.0):

        /* Init OpenSSL */
        SSL_load_error_strings();
        SSL_library_init();
#ifdef WITH_THREAD
        /* note that this will start threading if not already started */
        if (!_setup_ssl_threads()) {
                return;
        }
#endif
        OpenSSL_add_all_algorithms();


_hashopenssl.c might need that code too, therefore I'm adding gps to the nosy list.

----------
nosy: +gregory.p.smith

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8484>
_______________________________________


More information about the Python-bugs-list mailing list