create interface for crypto.CertManager

This commit is contained in:
Marten Seemann
2016-11-11 19:49:04 +07:00
parent 992678b9d7
commit f6cef67c3d
4 changed files with 39 additions and 9 deletions

View File

@@ -27,7 +27,7 @@ type cryptoSetupClient struct {
nonc []byte
diversificationNonce []byte
lastSentCHLO []byte
certManager *crypto.CertManager
certManager crypto.CertManager
}
var _ crypto.AEAD = &cryptoSetupClient{}
@@ -49,7 +49,7 @@ func NewCryptoSetupClient(
connID: connID,
version: version,
cryptoStream: cryptoStream,
certManager: &crypto.CertManager{},
certManager: crypto.NewCertManager(),
}, nil
}