Coder Social home page Coder Social logo

libuv-mbedtls's Introduction

What is this

Port mbedTLS on libuv, based on BIO which refers to wolfSSL/src/bio.c and the project is inspired by libuv-tls

ses API in uv_tls.c. just use

  1. uv_tls_init for uv_tcp_init
  2. uv_tls_connect for uv_tcp_connect
  3. uv_tls_read for uv_read_start
  4. uv_tls_write for uv_write

TODO

add a fully example.

libuv-mbedtls's People

Contributors

geminiwen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

libuv-mbedtls's Issues

为何要自己写bio.c?

mbedtls已经提供了mbedtls_net_send/mbedtls_net_recv, 使用前自己创建socket并设置成非阻塞即可, 然后调用mbedtls_ssl_set_bio( &tls, &sockfd, mbedtls_net_send, mbedtls_net_recv, NULL );
自己提供bio.c的目的是为何,不大明白

是否支持服务端模式?

看了一下您写的API...好像目前只支持Client模式?
想问下如果目前这个代码就支持Server的话, 该怎么写呢, 有Example么?
谢谢 : )

Compilation issues.

  1. CONTAINER_OF macro is undefined, where it comes from?
  2. #include "ssl.h" in /include/bio.h not found. Seems like that file should contain SSL_FAILURE and SSL_SUCCESS...
  3. __log and LOG_VERBOSE are undefined.

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.