-
Notifications
You must be signed in to change notification settings - Fork 4
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.
local netssl = require('libevlnetssl');
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