rename the STKGenerator to CookieGenerator

This commit is contained in:
Marten Seemann
2017-09-11 18:10:58 +02:00
parent c78a4b2b73
commit 14fae7b6d3
7 changed files with 150 additions and 155 deletions

View File

@@ -26,13 +26,13 @@ type cryptoSetupServer struct {
connID protocol.ConnectionID
remoteAddr net.Addr
scfg *ServerConfig
stkGenerator *STKGenerator
stkGenerator *CookieGenerator
diversificationNonce []byte
version protocol.VersionNumber
supportedVersions []protocol.VersionNumber
acceptSTKCallback func(net.Addr, *STK) bool
acceptSTKCallback func(net.Addr, *Cookie) bool
nullAEAD crypto.AEAD
secureAEAD crypto.AEAD
@@ -72,10 +72,10 @@ func NewCryptoSetup(
cryptoStream io.ReadWriter,
connectionParametersManager ConnectionParametersManager,
supportedVersions []protocol.VersionNumber,
acceptSTK func(net.Addr, *STK) bool,
acceptSTK func(net.Addr, *Cookie) bool,
aeadChanged chan<- protocol.EncryptionLevel,
) (CryptoSetup, error) {
stkGenerator, err := NewSTKGenerator()
stkGenerator, err := NewCookieGenerator()
if err != nil {
return nil, err
}