title: Use OpenSSL in Qt C++
body: <p>I got a sample projct that uses <code>QSslSocket</code> and <code>QSslCertificate</code> to get information from a SSL certificate (Qt 5.7, Windows 10). <code>QSslSocket::supportsSsl()</code> function returns false and I get these errors at runtime:</p>
  
  <pre><code>qt.network.ssl: QSslSocket: cannot call unresolved function SSLv23_client_method
  qt.network.ssl: QSslSocket: cannot call unresolved function SSL_CTX_new
  qt.network.ssl: QSslSocket: cannot call unresolved function SSL_library_init
  qt.network.ssl: QSslSocket: cannot call unresolved function ERR_get_error
  </code></pre>
  
  <p>So I compiled OpenSSL_1.1.0 and linked it to my project:</p>
  
  <pre><code>INCLUDEPATH += . "C:/OpenSSL-Win32/include/" LIBS +=
  -L"C:/OpenSSL-Win32/lib/" -llibcrypto -llibssl
  </code></pre>
  
  <p>But still same errors. I downloaded OpenSSL installer and still the same.</p>
  
  <p>Weird is <code>QSslSocket::sslLibraryBuildVersionString()</code> returns <code>OpenSSL 1.0.2g  1 Mar 2016</code>, even though I compiled and installed OpenSSL_1.1.0.</p>
  
  <p>I know I'm missing a simple detail. Please tell me what is it. Thanks.</p>