mirror of
https://github.com/brunoos/luasec.git
synced 2025-02-13 23:42:49 +01:00
ssl.lua: Comment subtle DH/ECDH ordering caveat
This commit is contained in:
parent
3fb33cdc4e
commit
9262f9e7de
@ -82,6 +82,11 @@ function newcontext(cfg)
|
|||||||
succ, msg = context.setdepth(ctx, cfg.depth)
|
succ, msg = context.setdepth(ctx, cfg.depth)
|
||||||
if not succ then return nil, msg end
|
if not succ then return nil, msg end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- NOTE: Setting DH parameters and elliptic curves needs to come after
|
||||||
|
-- setoptions(), in case the user has specified the single_{dh,ecdh}_use
|
||||||
|
-- options.
|
||||||
|
|
||||||
-- Set DH parameters
|
-- Set DH parameters
|
||||||
if cfg.dhparam then
|
if cfg.dhparam then
|
||||||
if type(cfg.dhparam) ~= "function" then
|
if type(cfg.dhparam) ~= "function" then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user