enarx-archive / tlssock

A library exposing TLS/DTLS sockets using the POSIX networking APIs
Apache License 2.0
18 stars 7 forks source link

Build Status Code Coverage

TLSSock

Welcome to TLSSock!

TLSSock is a library which wraps the POSIX networking APIs in order to provide TLS and DTLS connectivity without invasive application restructuring. For example, you can write your application using normal TCP/IP sockets and then, with a few #ifdefs, convert your application to use TLS.

This is accomplished by creating a new PROT_TLS protocol for the socket() system call. Any sockets created with this protocol will be encrypted using TLS.

TLS requires additional configuration. This is accomplished by adding new protocol-level socket options for the PROT_TLS protocol. These options can be set using setsockopt().

Workflow

This directed graph demonstrats the order of calls in order to get a working TLS connection on either the server-side or the client-side. Grey function calls are optional and will depend on your application's needs.

Workflow