title: Tutorial on Using OpenSSL with pthreads
body: <p><a href="http://www.openssl.org/docs/crypto/threads.html" rel="noreferrer">OpenSSL documents</a> 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....</p>
  
  <p>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.</p>
  
  <p>Is there a tutorial on using OpenSSL with pthreads? (I searched the web, but no satisfactory result appeared.)</p>
  
  <p><strong>PS:</strong> I'm working in Debian Lenny &amp; Ubuntu Lucid/Maverick.</p>
  
  <p><strong>PS2:</strong> OpenSSL includes a sample, but it's far too complicated to start with.</p>