Tutorial on Using OpenSSL with pthreads

Posted by Sadeq Dousti on Stack Overflow See other posts from Stack Overflow or by Sadeq Dousti
Published on 2010-10-12T22:03:46Z Indexed on 2011/01/14 1:53 UTC
Read the original article Hit count: 545

Filed under:
|
|

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.

© Stack Overflow or respective owner

Related posts about reference

Related posts about pthreads