title: getting openSSL to work with Qt on mac
body: <p>I am making some api calls to google maps some of which need to be encrypted so i'm using https. Whenever I make a request using https I get the errors:</p>
  
  <pre><code>qt.network.ssl: QSslSocket: cannot resolve SSL_set_psk_client_callback
  qt.network.ssl: QSslSocket: cannot resolve TLSv1_1_client_method
  qt.network.ssl: QSslSocket: cannot resolve TLSv1_2_client_method
  qt.network.ssl: QSslSocket: cannot resolve TLSv1_1_server_method
  qt.network.ssl: QSslSocket: cannot resolve TLSv1_2_server_method
  qt.network.ssl: QSslSocket: cannot resolve SSL_select_next_proto
  qt.network.ssl: QSslSocket: cannot resolve SSL_CTX_set_next_proto_select_cb
  qt.network.ssl: QSslSocket: cannot resolve SSL_get0_next_proto_negotiated
  qt.network.ssl: QSslSocket: cannot call unresolved function SSL_get0_next_proto_negotiated
  </code></pre>
  
  <p>I get these errors also when using http but I will still recieve the data I want whereas with https I don't. 
  I see that this is apparently because I do not have openSSL installed, so I checked and I had version 0.9.8, so I installed a newer version (1.0.2) (Note i'm on mac) but still have the same problem. I have seen a lot of similar questions but there either wasn't a solution, or if there was one it didn't work for me or I didn't understand what to actually do.</p>
  
  <p>I ran the following code:</p>
  
  <pre><code>     qDebug() &lt;&lt; "Support SSL:  " &lt;&lt; QSslSocket::supportsSsl()
                  &lt;&lt; "\nLib Version Number: " &lt;&lt; QSslSocket::sslLibraryVersionNumber()
                  &lt;&lt; "\nLib Version String: " &lt;&lt; QSslSocket::sslLibraryVersionString()
                  &lt;&lt; "\nLib Build Version Number: " &lt;&lt; QSslSocket::sslLibraryBuildVersionNumber()
                  &lt;&lt; "\nLib Build Version String: " &lt;&lt; QSslSocket::sslLibraryBuildVersionString();
  </code></pre>
  
  <p>and received the output: </p>
  
  <pre><code>qt.network.ssl: QSslSocket: cannot resolve SSL_set_psk_client_callback
  qt.network.ssl: QSslSocket: cannot resolve TLSv1_1_client_method
  qt.network.ssl: QSslSocket: cannot resolve TLSv1_2_client_method
  qt.network.ssl: QSslSocket: cannot resolve TLSv1_1_server_method
  qt.network.ssl: QSslSocket: cannot resolve TLSv1_2_server_method
  qt.network.ssl: QSslSocket: cannot resolve SSL_select_next_proto
  qt.network.ssl: QSslSocket: cannot resolve SSL_CTX_set_next_proto_select_cb
  qt.network.ssl: QSslSocket: cannot resolve SSL_get0_next_proto_negotiated
  Support SSL:   true 
  Lib Version Number:  9470431 
  Lib Version String:  "OpenSSL 0.9.8zg 14 July 2015" 
  Lib Build Version Number:  268439727 
  Lib Build Version String:  "OpenSSL 1.0.1j 15 Oct 2014"
  </code></pre>
  
  <p>the versions listed don't refer to the one I recently installed so could the problem be its not using the new version?</p>
  
  <p>If anyone knows how to fix this so I can use https without errors please give specific instructions because i'm not very experienced.</p>
  
  <p>Thanks</p>