Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

QNAM issues with https + openSSL



  • When using QNAM, when I try to post data to a https, I get the following issue in console:
    [code]
    QSslSocket: cannot call unresolved functionSSLv23_client_method
    QSslSocket: cannot call unresolved function SSL_CTX_new
    QSslSocket: cannot call unresolved function SSL_library_init
    QSslSocket: cannot call unresolved function ERR_get_error
    [/code]

    Now, some googling has lead me to this thread:
    http://codeblog.vurdalakov.net/2009/11/solution-qsslsocket-cannot-call.html

    Now, I downloaded openSSL, and I moved ssleay32.dll and libeay32.dll into my execution folder, and I also put it in my environmental path:

    !http://i.imgur.com/nTj97.png(Environmental path)!

    However, when I try to post data to https, I still have the errors printed into console.

    I have the full installation, version 4.8.0

    Can anybody help me?



  • Is that really 32bit? OpenSSL-Win64 sounds like 64bit...



  • Does it have to be 32 bit? And I think the ssleay32 and libeay32 are the same regardless of #of bits



  • Of course, it must be 32bit if your application is 32 bit too. One cannot mix 32bit and 64bit code within one running application. You should double check whether the DLLs are really 32bit. I wouldn't be surprised if they are 64bit and just carry the 32 in the name for historical reasons. OpenSSL is a bit, let's say weird, regarding their naming scheme(s).


Log in to reply