Code Monkey home page Code Monkey logo

Comments (5)

dongdan002 avatar dongdan002 commented on June 2, 2024

使用mbedtls的难点是不使用内部的net_socket。数据的收发依赖toolkit的socketclient, ssl只做握手。

mbedtls_ssl_set_bio( &ssl, 0, custom_net_send, custom_net_recv, NULL );

自定义发送:custom_net_send 回调给toolkit 的socket去发送
自定义接收:custom_net_recv tookit recv 的socket数据线放到一个缓存里,custom_net_recv 去缓存里读。

from zltoolkit.

dongdan002 avatar dongdan002 commented on June 2, 2024

@mtdxc 夏工之前有做过吗,可以给点建议吗?
SSLBox.cpp.log
SSLBox.h.log

from zltoolkit.

xia-chu avatar xia-chu commented on June 2, 2024

没做过 mbedtls的开发适配 不过openssl是不是也可以裁剪编译?

from zltoolkit.

dongdan002 avatar dongdan002 commented on June 2, 2024

好的,非常感谢。裁剪这个还没有研究过,主要是公司嵌入式和移动端用了mbedtls 不想再加库了。现在的逻辑勉强可以跑通,但是会崩溃。我再研究下。

from zltoolkit.

xia-chu avatar xia-chu commented on June 2, 2024

好的,非常感谢。裁剪这个还没有研究过,主要是公司嵌入式和移动端用了mbedtls 不想再加库了。现在的逻辑勉强可以跑通,但是会崩溃。我再研究下。

一般的系统都会内存openssl的 否则ssh sever没法运行

from zltoolkit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.