title: Openssl SSL_CTX_new(SSLv3_method()) returns NULL
body: <p>Linux version from <code>cat /proc/version</code></p>
  
  <blockquote>
    <p>Linux version 3.6.11-4.fc16.i686 (mockbuild@bkernel02) (gcc version 4.6.3 20120306 (Red Hat 4.6.3-2) (GCC) )</p>
  </blockquote>
  
  <p>From <code>openssl version</code> command:</p>
  
  <blockquote>
    <p>OpenSSL 1.0.1g 7 Apr 2014</p>
  </blockquote>
  
  <p>First I perform a HTTP request using REST API with cURL to get some configurations from server(Thread 1). Then I create a TLS channel and log in to XMPP server through that channel(Thread 2). Then I try to log in to SIP server by creating a TLS channel(Thread3). But TLS channel creation fails with this error:</p>
  
  <blockquote>
    <p>error:140A90F1:SSL routines:SSL_CTX_new:unable to load ssl2 md5 routines</p>
  </blockquote>
  
  <pre><code>SSL_library_init();
  SSL_load_error_strings();
  SSL_CTX* sslContext = SSL_CTX_new(SSLv3_method());
  </code></pre>
  
  <p>Here <code>sslContext</code> is NULL. I have seen plenty of bug reports and mails about this error online but no solution anywhere. I don't know if its related to cURL but in many cases people are facing this issue when using cURL.</p>
  
  <p>See the following links for other people's postings regarding this error.</p>
  
  <p><a href="https://issues.apache.org/bugzilla/show_bug.cgi?id=56027" rel="nofollow">https://issues.apache.org/bugzilla/show_bug.cgi?id=56027</a></p>
  
  <p><a href="http://comments.gmane.org/gmane.comp.lib.boost.asio.user/2099" rel="nofollow">http://comments.gmane.org/gmane.comp.lib.boost.asio.user/2099</a></p>
  
  <p><a href="http://en.it-usenet.org/thread/17225/526/" rel="nofollow">http://en.it-usenet.org/thread/17225/526/</a></p>
  
  <p><a href="http://curl.haxx.se/mail/curlphp-2009-01/0020.html" rel="nofollow">http://curl.haxx.se/mail/curlphp-2009-01/0020.html</a></p>
  
  <p><strong>EDIT:</strong> </p>
  
  <p>Output of the first command of the comment:</p>
  
  <pre><code># openssl version -a                                                           
  OpenSSL 1.0.1g 7 Apr 2014                                                      
  built on: Tue Aug 12 10:07:53 BDT 2014                                         
  platform: linux-generic32                                                      
  options:  bn(64,32) rc4(ptr,char) des(idx,cisc,16,long) blowfish(ptr)          
  compiler: /home/moshiur/Documents/Workspace/ph_SDKs/Untitled_Folder/ph
  OPENSSLDIR: "/etc/ssl"
  
  
  # ls /etc/ssl/                                                                 
  certs        misc         openssl.cnf  private
  </code></pre>