mirror of
https://github.com/brunoos/luasec.git
synced 2025-07-13 06:24:22 +02:00
Check if PSK is available
This commit is contained in:
@ -4,6 +4,11 @@
|
||||
local socket = require("socket")
|
||||
local ssl = require("ssl")
|
||||
|
||||
if not ssl.config.capabilities.psk then
|
||||
print("[ERRO] PSK not available")
|
||||
os.exit(1)
|
||||
end
|
||||
|
||||
-- @param hint (nil | string)
|
||||
-- @param max_identity_len (number)
|
||||
-- @param max_psk_len (number)
|
||||
|
Reference in New Issue
Block a user