read connection parameters when receiving a SHLO

This commit is contained in:
Marten Seemann
2016-12-21 15:53:11 +07:00
parent a587af079d
commit 53706049c7
2 changed files with 18 additions and 0 deletions

View File

@@ -226,6 +226,11 @@ func (h *cryptoSetupClient) handleSHLOMessage(cryptoData map[Tag][]byte) error {
return err
}
err = h.connectionParameters.SetFromMap(cryptoData)
if err != nil {
return qerr.InvalidCryptoMessageParameter
}
h.aeadChanged <- struct{}{}
return nil