Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mbedtls_conf.cpp代码疑问 #310

Closed
zxppandacn opened this issue Jun 2, 2023 · 3 comments
Closed

mbedtls_conf.cpp代码疑问 #310

zxppandacn opened this issue Jun 2, 2023 · 3 comments

Comments

@zxppandacn
Copy link

我在使用mbedtls连接redis库的时候发现连不上,经过调试发现mbedtls_conf.cpp的1089行
ret = _ssl_conf_own_cert(conf, cert, pkey);
使用了新生成的变量conf而不是类变量conf
,导致在连接redis服务端时没有提供证书文件,
改成conf_以后就可以了,不知道我这种做法有没有问题

@zhengshuxin
Copy link
Member

该问题已修复,之前是没有问题的,后来在服务端模式下为了支持加载多个证书,所以导致了客户端方式加载证书没有用的问题。你可以再更新到当前代码重新试试。谢谢!
---zsx

@zxppandacn
Copy link
Author

您好,还要咨询您一个问题。现在的版本支持mbedtls3.3.0版本吗,我在编译过程中遇到了很多问题。2.7.12版本能够编译通过,但是也修改了threading_alt.h,在typedef struct mbedtls_threading_mutex_t前增加typedef void* HANDLE;,因为编译系统识别不了HANDLE类型

@zhengshuxin
Copy link
Member

mbedtls 得要修改一下才能用,在 Acl 里固定了版本,如果要升级到3.3.0的话,应该是做一些适配后就可以了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants