Skip to content

Commit 673aa91

Browse files
committed
Fix: install libssl bug.
Because -DX_VCPKG_APPLOCAL_DEPS_INSTALL:BOOL=ON install dependencies. So the pragram must include the functions of the dependencies libraries.
1 parent aa7b64d commit 673aa91

File tree

4 files changed

+21
-0
lines changed

4 files changed

+21
-0
lines changed

ChangeLog.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
### Version: v2.0.2
2+
+ Fix: install libssl.dll
3+
14
### Version: v2.0.1
25
+ Update: fix show progressBar
36
+ Use CDownLoad to down the image of contribute in CDlgAbout

ChangeLog_zh_CN.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
### 版本: v2.0.2
2+
+ 修复安装依赖库 libssl 。
3+
因为 -DX_VCPKG_APPLOCAL_DEPS_INSTALL:BOOL=ON
4+
安装依赖库。所以需要在程序中引用。
5+
16
### 版本: v2.0.1
27
+ 修复更新中的下载进度条错误
38
+ 关于对话框中使用 CDownLoad 下载捐赠图片

Src/EvpAES.cpp

+10
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#include "EvpAES.h"
22
#include <openssl/evp.h>
33
#include <openssl/aes.h>
4+
#include <openssl/ssl.h>
45

56
#define KEY_SIZE_16B 16
67
#define KEY_SIZE_24B 24
@@ -359,3 +360,12 @@ bool EvpAES::encrypt(const QByteArray &in, QByteArray &out,
359360
return true;
360361
}
361362
}
363+
364+
//TODO: only install the dependencies libraries(libssl)
365+
int EvpAES::testSSL()
366+
{
367+
SSL_CTX *ssl_ctx = SSL_CTX_new(TLS_client_method());
368+
if(ssl_ctx)
369+
SSL_CTX_free(ssl_ctx);
370+
return 0;
371+
}

Src/EvpAES.h

+3
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ class EvpAES
5757
bool encrypt(const QByteArray& in, QByteArray& out,
5858
const QByteArray& key, const QByteArray& ivec,
5959
const EVP_CIPHER *cipher, bool enc = true);
60+
61+
//TODO: only install the dependencies libraries(libssl)
62+
int testSSL();
6063

6164
private:
6265
EVP_CIPHER_CTX *ctx;

0 commit comments

Comments
 (0)