Tutorial on Using OpenSSL with pthreads
- by Sadeq Dousti
OpenSSL documents state that it can safely be used in multi-threaded applications provided that at least two callback functions are set, locking_function and threadid_func....
I've written programs which use OpenSSL API. Moreover, I know how to use pthreads. However, the OpenSSL documents are written in the form of a manual, and I can't see a step-by-step guide on what I have to do when using OpenSSL in a multi-threaded app.
Is there a tutorial on using OpenSSL with pthreads? (I searched the web, but no satisfactory result appeared.)
PS: I'm working in Debian Lenny & Ubuntu Lucid/Maverick.
PS2: OpenSSL includes a sample, but it's far too complicated to start with.