OpenSSL and multithreaded programs

2011-05-05 Thread Chris Dodd
Is the OpenSSL library supposed to be at all reentrant? I've had odd problems (intermittent errors) when trying to use OpenSSL in a multithreaded program (multiple threads each dealing with independent SSL connections), and have apparently solved them by creating a single global mutex and

RE: OpenSSL and multithreaded programs

2011-05-05 Thread Jeremy Farrell
From: Chris Dodd Is the OpenSSL library supposed to be at all reentrant? I've had odd problems (intermittent errors) when trying to use OpenSSL in a multithreaded program (multiple threads each dealing with independent SSL connections), and have apparently solved them by creating a

Re: OpenSSL and multithreaded programs

2011-05-05 Thread David Schwartz
On 5/5/2011 10:01 AM, Chris Dodd wrote: Is the OpenSSL library supposed to be at all reentrant? I've had odd problems (intermittent errors) when trying to use OpenSSL in a multithreaded program (multiple threads each dealing with independent SSL connections), and have apparently solved them by

RE: OpenSSL and multithreaded programs

2011-05-05 Thread dave.mclellan
(); CRYPTO_set_dynlock_destroy_callback(); Dave. -Original Message- From: owner-openssl-us...@openssl.org [mailto:owner-openssl-us...@openssl.org] On Behalf Of Chris Dodd Sent: Thursday, May 05, 2011 1:01 PM To: openssl-users@openssl.org Subject: OpenSSL and multithreaded programs