Adds PFS tag to SRP key exchange profiles.

Extends r37346 (bc0935a51a)
This commit is contained in:
nnposter 2018-08-28 19:44:45 +00:00
parent ed26487ae2
commit 80e8329c73

View file

@ -1029,6 +1029,7 @@ KEX_ALGORITHMS.ECDHE_PSK={
-- RFC 5054
KEX_ALGORITHMS.SRP_SHA = {
type = "srp",
pfs = true,
server_key_exchange = function (blob, protocol)
local pos
local ret = {srp={}}
@ -1041,11 +1042,13 @@ KEX_ALGORITHMS.SRP_SHA = {
KEX_ALGORITHMS.SRP_SHA_DSS = {
pubkey="dsa",
type = "srp",
pfs = true,
server_key_exchange = KEX_ALGORITHMS.SRP_SHA.server_key_exchange
}
KEX_ALGORITHMS.SRP_SHA_RSA = {
pubkey="rsa",
type = "srp",
pfs = true,
server_key_exchange = KEX_ALGORITHMS.SRP_SHA.server_key_exchange
}