send connection parameters in CHLO

This commit is contained in:
Marten Seemann
2016-12-09 17:42:26 +07:00
parent 1ad3a85f5c
commit f72fbc57a9
9 changed files with 150 additions and 35 deletions

View File

@@ -340,7 +340,10 @@ func (h *cryptoSetupServer) handleCHLO(sni string, data []byte, cryptoData map[T
return nil, err
}
replyMap := h.connectionParameters.GetSHLOMap()
replyMap, err := h.connectionParameters.GetSHLOMap()
if err != nil {
return nil, err
}
// add crypto parameters
replyMap[TagPUBS] = ephermalKex.PublicKey()
replyMap[TagSNO] = serverNonce