Locally built client: Error creating SSL context

Hello,
I've just started working on the client. I've been able to build the client in Qt. The projects runs , but on trying to sync , I get an error message in the GUI based client and owncloudcmd. The user client installed does not show this error . This is the error message I get in owncloud cmd:

qt.network.ssl: QSslSocket: cannot call unresolved function d2i_DHparams
qt.network.ssl: QSslSocket: cannot call unresolved function DH_free
qt.network.ssl: QSslSocket: cannot call unresolved function d2i_DHparams
qt.network.ssl: QSslSocket: cannot call unresolved function DH_free
qt.network.ssl: QSslSocket: cannot call unresolved function d2i_DHparams
qt.network.ssl: QSslSocket: cannot call unresolved function DH_free
qt.network.ssl: QSslSocket: cannot call unresolved function d2i_DHparams
qt.network.ssl: QSslSocket: cannot call unresolved function DH_free
qt.network.ssl: QSslSocket: cannot call unresolved function d2i_DHparams
qt.network.ssl: QSslSocket: cannot call unresolved function DH_free
sync.networkjob: OCC::JsonApiJob created for "http://demo.owncloud.org" + "ocs/v1.php/cloud/capabilities" ""
qt.network.ssl: QSslSocket: cannot call unresolved function d2i_DHparams
qt.network.ssl: QSslSocket: cannot call unresolved function DH_free
qt.network.ssl: QSslSocket: cannot call unresolved function d2i_DHparams
qt.network.ssl: QSslSocket: cannot call unresolved function DH_free
qt.network.ssl: QSslSocket: cannot call unresolved function d2i_DHparams
qt.network.ssl: QSslSocket: cannot call unresolved function DH_free
qt.network.ssl: QSslSocket: cannot call unresolved function d2i_DHparams
qt.network.ssl: QSslSocket: cannot call unresolved function DH_free
qt.network.ssl: QSslSocket: cannot call unresolved function d2i_DHparams
qt.network.ssl: QSslSocket: cannot call unresolved function DH_free
qt.network.ssl: QSslSocket: cannot call unresolved function d2i_DHparams
qt.network.ssl: QSslSocket: cannot call unresolved function DH_free
sync.networkjob: Redirecting "GET" QUrl("http://demo.owncloud.org/ocs/v1.php/cloud/capabilities?format=json") QUrl("https://demo.owncloud.org:443/ocs/v1.php/cloud/capabilities?format=json")
qt.network.ssl: QSslSocket: cannot call unresolved function d2i_DHparams
qt.network.ssl: QSslSocket: cannot call unresolved function DH_free
qt.network.ssl: QSslSocket: cannot call unresolved function d2i_DHparams
qt.network.ssl: QSslSocket: cannot call unresolved function DH_free
qt.network.ssl: QSslSocket: cannot call unresolved function d2i_DHparams
qt.network.ssl: QSslSocket: cannot call unresolved function DH_free
qt.network.ssl: QSslSocket: cannot call unresolved function d2i_DHparams
qt.network.ssl: QSslSocket: cannot call unresolved function DH_free
qt.network.ssl: QSslSocket: cannot call unresolved function d2i_DHparams
qt.network.ssl: QSslSocket: cannot call unresolved function DH_free
qt.network.ssl: QSslSocket: cannot call unresolved function d2i_DHparams
qt.network.ssl: QSslSocket: cannot call unresolved function DH_free
qt.network.ssl: QSslSocket: cannot call unresolved function d2i_DHparams
qt.network.ssl: QSslSocket: cannot call unresolved function DH_free
qt.network.ssl: QSslSocket: cannot call unresolved function d2i_DHparams
qt.network.ssl: QSslSocket: cannot call unresolved function DH_free
qt.network.ssl: QSslSocket: cannot call unresolved function d2i_DHparams
qt.network.ssl: QSslSocket: cannot call unresolved function DH_free
qt.network.ssl: QSslSocket: cannot call unresolved function d2i_DHparams
qt.network.ssl: QSslSocket: cannot call unresolved function DH_free
qt.network.ssl: QSslSocket: cannot call unresolved function d2i_DHparams
qt.network.ssl: QSslSocket: cannot call unresolved function DH_free
qt.network.ssl: QSslSocket: cannot call unresolved function d2i_DHparams
qt.network.ssl: QSslSocket: cannot call unresolved function DH_free
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
qt.network.ssl: QSslSocket: cannot call unresolved function ERR_get_error
sync.networkjob: QNetworkReply::NetworkError(UnknownNetworkError) "Error creating SSL context ()" QVariant(Invalid)
sync.networkjob.jsonapi: JsonApiJob of QUrl("https://demo.owncloud.org:443/ocs/v1.php/cloud/capabilities?format=json") FINISHED WITH STATUS QNetworkReply::NetworkError(UnknownNetworkError) "Error creating SSL context ()"
sync.networkjob.jsonapi: Network error: "ocs/v1.php/cloud/capabilities" "Error creating SSL context ()" QVariant(Invalid)
Server capabilities QJsonObject()
sync.clientproxy: Set proxy configuration to use system configuration
sync.engine: There are 18124394496 bytes available at "C:/temp/" and at least 50000000 are required
sync.engine: New sync (no sync journal exists)
sync.engine: "Using Qt 5.8.0 SSL library on Windows 10 (10.0)"
sync.database: sqlite3 version "3.16.1"
sync.database: Detected filesystem "NTFS" for "C:/temp/._sync_622001e365d4.db"
sync.database: sqlite3 journal_mode= "wal"
sync.database: possibleUpgradeFromMirall_1_5 detected!
sync.database: Forcing remote re-discovery by deleting folder Etags
sync.engine: NOT Using Selective Sync
sync.engine: #### Discovery start ####################################################
sync.engine: Server "" "rootEtagChangesNotOnlySubFolderEtags=0"
qt.network.ssl: QSslSocket: cannot call unresolved function d2i_DHparams
qt.network.ssl: QSslSocket: cannot call unresolved function DH_free
qt.network.ssl: QSslSocket: cannot call unresolved function d2i_DHparams
qt.network.ssl: QSslSocket: cannot call unresolved function DH_free
sync.networkjob: OCC::LsColJob created for "http://demo.owncloud.org" + "" "OCC::DiscoverySingleDirectoryJob"
qt.network.ssl: QSslSocket: cannot call unresolved function d2i_DHparams
qt.network.ssl: QSslSocket: cannot call unresolved function DH_free
sync.networkjob: Redirecting "PROPFIND" QUrl("http://demo.owncloud.org/remote.php/webdav/") QUrl("https://demo.owncloud.org:443/remote.php/webdav/")
qt.network.ssl: QSslSocket: cannot call unresolved function d2i_DHparams
qt.network.ssl: QSslSocket: cannot call unresolved function DH_free
qt.network.ssl: QSslSocket: cannot call unresolved function d2i_DHparams
qt.network.ssl: QSslSocket: cannot call unresolved function DH_free
qt.network.ssl: QSslSocket: cannot call unresolved function d2i_DHparams
qt.network.ssl: QSslSocket: cannot call unresolved function DH_free
qt.network.ssl: QSslSocket: cannot call unresolved function d2i_DHparams
qt.network.ssl: QSslSocket: cannot call unresolved function DH_free
qt.network.ssl: QSslSocket: cannot call unresolved function d2i_DHparams
qt.network.ssl: QSslSocket: cannot call unresolved function DH_free
qt.network.ssl: QSslSocket: cannot call unresolved function d2i_DHparams
qt.network.ssl: QSslSocket: cannot call unresolved function DH_free
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
qt.network.ssl: QSslSocket: cannot call unresolved function ERR_get_error
sync.networkjob: QNetworkReply::NetworkError(UnknownNetworkError) "Error creating SSL context ()" QVariant(Invalid)
sync.networkjob.lscol: LSCOL of QUrl("https://demo.owncloud.org:443/remote.php/webdav/") FINISHED WITH STATUS QNetworkReply::NetworkError(UnknownNetworkError) "Error creating SSL context ()"
sync.discovery: LSCOL job error "Error creating SSL context ()" 0 QNetworkReply::NetworkError(UnknownNetworkError)
sync.engine: ERROR during csync_update : "An error occurred while opening a folder Error creating SSL context ()"
sync.database: Closing DB "C:/temp/._sync_622001e365d4.db"
sync.engine: CSync run took 2075 ms
sync.database: Closing DB "C:/temp/._sync_622001e365d4.db"

I think this is an issue with some SSL dlls missing. I appreciate if anyone who's faced this issue can help .
Thanks for your help!

I figured out why this happens. For windows use v1.01 and not v1.1 from slproweb.com/

Thanks

@kaustubh hm. Actually, linking against SSL should not be needed to build the client if you are working in master branch (i.e. after https://github.com/owncloud/client/pull/5833). Build docs should be adapted to be consistent.

Hi,
I'm working on a fork 13 days old. I'll pull the changes and then work on it.

Thanks

Also make sure to follow the Qt instructions regarding OpenSSL.