mirror of
https://github.com/brunoos/luasec.git
synced 2024-11-07 22:18:27 +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)
|
||||
if not succ then return nil, msg 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
|
||||
if cfg.dhparam then
|
||||
if type(cfg.dhparam) ~= "function" then
|
||||
|
Loading…
Reference in New Issue
Block a user