add sni to crypto.Signer interface

This commit is contained in:
Lucas Clemente
2016-05-08 22:23:36 +02:00
parent 4d545d96ca
commit 6738f0eadf
6 changed files with 19 additions and 19 deletions

View File

@@ -33,16 +33,16 @@ type mockSigner struct {
gotCHLO bool
}
func (s *mockSigner) SignServerProof(chlo []byte, serverConfigData []byte) ([]byte, error) {
func (s *mockSigner) SignServerProof(sni string, chlo []byte, serverConfigData []byte) ([]byte, error) {
if len(chlo) > 0 {
s.gotCHLO = true
}
return []byte("proof"), nil
}
func (*mockSigner) GetCertCompressed() []byte {
func (*mockSigner) GetCertCompressed(sni string) []byte {
return []byte("certcompressed")
}
func (*mockSigner) GetCertUncompressed() []byte {
func (*mockSigner) GetCertUncompressed(sni string) []byte {
return []byte("certuncompressed")
}