- ssl:setMode(mode)
- mode = ssl:getMode()
SYNOPSIS
DESCRIPTION
Each SSL connection is made between two peers. One end must take the server role and the other is the client.
Using ssl:setMode(), the mode can either be the string "server" or "client" to chose one of both modes.
Query the configured mode with ssl:getMode().
The mode setting must be configured before a SSL connection can be established.
RETURN VALUE
The function ssl:setMode() returns nothing.
The query ssl:getMode() returns nil if the mode has not been configured yet or returns either "client" or "server to indicate the configured mode.