SSLSocket.setCtx

Used in conjuction with the above ctor with the create flag disabled. It is useful for accepting a new socket into a SSLSocket, and then re-using the Server's existing SSLCtx.

class SSLSocket
void
setCtx
(,
bool clientMode = true
)

Parameters

ctx SSLCtx

SSLCtx class as provided by PKI

clientMode bool

if true, the socket will be in Client Mode, Server otherwise.

Meta