2

我在 android 6 的应用程序中的 QSslSocket 类有一些问题,我在 Qt 5.6 中开发,在 android 6 的以下版本中,应用程序运行正常。

问题如下:

qt.network.ssl: QSslSocket: cannot resolve CRYPTO_free   
qt.network.ssl: QSslSocket: cannot resolve EVP_CipherFinal   
qt.network.ssl: QSslSocket: cannot resolve EVP_rc2_cbc  
qt.network.ssl: QSslSocket: cannot resolve SSLv2_client_method  
qt.network.ssl: QSslSocket: cannot resolve SSLv2_server_method  
qt.network.ssl: QSslSocket: cannot resolve OPENSSL_add_all_algorithms_noconf  
qt.network.ssl: QSslSocket: cannot resolve OPENSSL_add_all_algorithms_conf  
qt.network.ssl: QSslSocket: cannot resolve EC_get_builtin_curves   
qt.network.ssl: QSslSocket: cannot call unresolved function OPENSSL_add_all_algorithms_conf     
qt.network.ssl: QSslSocket: cannot call unresolved function EC_get_builtin_curves   
qt.network.ssl: QSslSocket: cannot call unresolved function EC_get_builtin_curves

知道如何解决这个问题吗?

4

1 回答 1

1

您需要自己开始打包和提供 OpenSSL。这不是 Android 7 的选项,您绝对必须这样做。

于 2017-01-19T19:50:50.180 回答