[pyOpenSSL] Python core dumps when using pyOpenSSL 0.8.0 and threads

M.-A. Lemburg mal at egenix.com
Wed Mar 18 22:28:34 CET 2009


On 2009-03-18 21:54, Jean-Paul Calderone wrote:
> On Wed, 18 Mar 2009 21:38:49 +0100, "M.-A. Lemburg" <mal at egenix.com> wrote:
>> Do you have any information on whether the context in OpenSSL is
>> thread-safe ?
>>
>> The FAQ entry for OpenSSL only mentions connections:
>> http://www.openssl.org/support/faq.html#PROG1
>>
>> Note that it also mentions two callbacks that have to be initialized
>> for multi-threaded applications: CRYPTO_set_locking_callback() and
>> CRYPTO_set_id_callback() which pyOpenSSL does not set.
>>
>> Unfortunately, the man page explaining these is not very helpful:
>>
>> http://www.openssl.org/docs/crypto/threads.html
> 
> You've linked to all the documentation I'm aware of.  My interpretation
> of it has been that it means Context objects are threadsafe, as long as
> you initialize OpenSSL's threading layer (which pyOpenSSL does in 0.8.0
> but not in any previous version!). 

Ah sorry, I grepped the wrong pyOpenSSL version. Good to know that
0.8.0 does setup the OpenSSL threading support !

> Probably reading the implementation
> is the only way to be really sure (though, of course, a future release
> of OpenSSL might invalidate anything learned using that approach).

True. They do have a tendency to change internals frequently... even
in sub-patch-level releases.

-- 
Marc-Andre Lemburg
eGenix.com

Professional Python Services directly from the Source  (#1, Mar 18 2009)
>>> Python/Zope Consulting and Support ...        http://www.egenix.com/
>>> mxODBC.Zope.Database.Adapter ...             http://zope.egenix.com/
>>> mxODBC, mxDateTime, mxTextTools ...        http://python.egenix.com/
________________________________________________________________________

::: Try our new mxODBC.Connect Python Database Interface for free ! ::::


   eGenix.com Software, Skills and Services GmbH  Pastor-Loeh-Str.48
    D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg
           Registered at Amtsgericht Duesseldorf: HRB 46611
               http://www.egenix.com/company/contact/




More information about the pyopenssl-users mailing list