Git Product home page Git Product logo

libuv-tls's Introduction

THIS REPOSITORY HAS BEEN MARKED AS DEPRECATED, FOR UPDATED WORK, PLEASE REFER sample/libuv-tls IN

https://github.com/deleisha/evt-tls

libuv-tls

Add SSL/TLS functionality on top of libuv using OpenSSL.

This small library adds SSL/TLS functionality using BIO pair on libuv. It tries to provide API similar to libuv with bare minimum change. Also it tries to use facilities provided by OpenSSL. Currently it scratches BIO pair only as a result. This might go away as we learn more and more both on OpenSSL and libuv. Writing our own custom BIO will lend lot more flexibility.

We intend to provide the library as subpart of libuv, if we can finish soon.

TODO:

  • Add session resumption feature - may be later version
  • Renegotiation not yet handled - may be later version
  • Work on supporting DTLS support - later versions
  • Work on building and packaging

Usage and API

libuv-tls have similar looking API as that of libuv. Any libuv users can easily used the API looking at the uv_tls.h.

uv_tls.h have all the APIs and users including this header will still have access to all APIs being exported by uv.h

As of now, libuv-tls does not hide any symbols.

Sample usage can be seen at test_tls.c and test_tls_client.c

TEST:

To test the echo server, generate the test cert and key using

make && ./echo

Now the echo server is compiled and started and we can start sending some data using

openssl s_client -connect address:8000 -nbio -state -msg -debug

where address is your ip address.

CONTRIBUTING

Clone/fork the library and play around and provide feedback/patches or anything for improvement.

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.