Skip to content

TLS SSL support

Sudheer edited this page Mar 11, 2023 · 5 revisions

A small library to upgrade an opened socket connectionton TLS protocol. Once the TLS handshake is done and session is established via the TCP connection, encryption and decryption of plaintext being sent and received is taken care by the ss_ptr abstraction of evpoco and nothing else needs to be done by the programmer.

Exposes one function that performs the TLS handshake on a freshly opened socket.

Synopsis

local netssl = require('libevlnetssl');

Operations

netssl.connect_TLS(ss);

Upgrades the socket handle passed as input to TLS protocol

Parameters:
    ss: streamsocket
Return:
    none

ERROR:
    Exceptions are thrown upon error, which can be caught via mechanism of pcall/xpcall

Clone this wiki locally