-
Notifications
You must be signed in to change notification settings - Fork 594
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
sslbox mbedtls support #179
Comments
The difficulty of using mbedtls is that it does not use the internal net_socket. Data sending and receiving rely on the toolkit's socketclient, and ssl only performs handshakes. mbedtls_ssl_set_bio( &ssl, 0, custom_net_send, custom_net_recv, NULL ); Custom sending: custom_net_send calls the toolkit's socket to send.
mbedtls_ssl_set_bio( &ssl, 0, custom_net_send, custom_net_recv, NULL ); 自定义发送:custom_net_send 回调给toolkit 的socket去发送
|
@mtdxc Have you done this before with Xiaogong? Can you give me some advice?
|
I haven't done any development adaptation for mbedtls, but can OpenSSL also be compiled with pruning?
|
Okay, thank you very much. I haven't looked into cropping yet, mainly because the company's embedded and mobile ends use mbedtls and we don't want to add more libraries. The current logic can barely run, but it will crash. I'll look into it further.
|
General systems will have OpenSSL in memory, otherwise the SSH server cannot run.
一般的系统都会内存openssl的 否则ssh sever没法运行
|
Since the company's other projects use mbedtls, and most are embedded devices, openssl is a bit large.
I modified the toolkit project myself to use mbedtls, and the process can run through, it works under the main function, but it will crash with memory out of bounds when put into qt or other projects.
And it didn't crash in the code.
I don't know if the author has tried to support the mbedtls version, or if anyone has integrated it, you can contribute. I can also upload my incomplete version later.
不知道作者有没有尝试支持mbedtls的版本,或者大家有没有集成过的,可以贡献一下。后边我也可以把我这个不完整的版本传上来
TRANS_BY_GITHUB_AI_ASSISTANT
The text was updated successfully, but these errors were encountered: