docs: 清理 C/C++ 客户端中加密相关的残留引用
- docs(c-client): 移除 OpenSSL 加密库依赖说明 - 移除 README 中的 OpenSSL 依赖和 AES-128-CBC 解密功能说明 - 更新编译命令,移除 -lssl -lcrypto - main.c 注释移除 decrypt 提及 - docs(cpp-client): 移除 OpenSSL 加密库依赖说明 - 移除 README 中的 OpenSSL 依赖和 AES 解密功能说明 - 更新编译命令,移除 -lssl -lcrypto - docs(README): 更新 C/C++ 客户端说明 - 移除 libcurl + OpenSSL 的描述 - 更新编译命令,移除加密库链接 说明:项目已确认不使用配置加密功能,所有加密相关代码和配置已清理完毕。
This commit is contained in:
@@ -1,35 +1,33 @@
|
||||
# Kenaito Config Center C Client
|
||||
|
||||
C 语言的配置中心客户端 SDK,使用 libcurl + OpenSSL。
|
||||
C 语言的配置中心客户端 SDK,使用 libcurl。
|
||||
|
||||
## 依赖
|
||||
|
||||
- libcurl
|
||||
- OpenSSL
|
||||
|
||||
### macOS
|
||||
|
||||
```bash
|
||||
brew install curl openssl
|
||||
brew install curl
|
||||
```
|
||||
|
||||
### Ubuntu/Debian
|
||||
|
||||
```bash
|
||||
apt-get install libcurl4-openssl-dev libssl-dev
|
||||
apt-get install libcurl4-openssl-dev
|
||||
```
|
||||
|
||||
## 编译
|
||||
|
||||
```bash
|
||||
cd kenaito-conf-c-client-demo
|
||||
gcc -o demo ../kenaito-conf-c-client/main.c -lcurl -lssl -lcrypto
|
||||
gcc -o demo ../kenaito-conf-c-client/main.c -lcurl
|
||||
./demo
|
||||
```
|
||||
|
||||
## 功能
|
||||
|
||||
- AES-128-CBC 解密(与 Go/Java/Python 客户端兼容)
|
||||
- HTTP POST 拉取配置
|
||||
- 配置缓存
|
||||
|
||||
|
||||
@@ -130,7 +130,7 @@ int main() {
|
||||
char *response = http_post_json(url, payload);
|
||||
if (response) {
|
||||
printf("Response received (%zu bytes)\n", strlen(response));
|
||||
/* In production: parse JSON, decrypt, store configs */
|
||||
/* In production: parse JSON, store configs */
|
||||
printf("First 200 chars: %.200s\n", response);
|
||||
free(response);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user