title: OpenSSL: Unable to create SSL_CTX * using SSL_CTX_new()
body: <p>Following the instructions on <a href="http://www.ibm.com/developerworks/linux/library/l-openssl/index.html" rel="noreferrer">page</a> , I am trying to use openSSL to connect client/server in secure manner.</p>
  
  <p>I am not able to create the SSL_CTX as follows:</p>
  
  <pre><code> /* OpenSSL headers */
  
   #include "openssl/bio.h"
   #include "openssl/ssl.h"
   #include "openssl/err.h"
  
   int main()
   {
  
         /* Initializing OpenSSL */
  
         SSL_load_error_strings();
         ERR_load_BIO_strings();
         OpenSSL_add_all_algorithms();
  
         SSL_CTX * ctx = SSL_CTX_new(SSLv23_client_method());
  
         .....
    }
  </code></pre>
  
  <p>The ctx reference always turns out to be NULL. Can anyone please tell what step am I missing?</p>
  
  <p>Thanks.</p>
  
  <p><strong>Update</strong></p>
  
  <p>On checking error, the message was</p>
  
  <pre><code> Error: library has no ciphers
  </code></pre>