change Signer interface to return errors

This commit is contained in:
Lucas Clemente
2016-05-08 22:46:59 +02:00
parent 32cf5e4129
commit 85c39721ec
6 changed files with 27 additions and 15 deletions

View File

@@ -39,11 +39,11 @@ func (s *mockSigner) SignServerProof(sni string, chlo []byte, serverConfigData [
}
return []byte("proof"), nil
}
func (*mockSigner) GetCertCompressed(sni string) []byte {
return []byte("certcompressed")
func (*mockSigner) GetCertCompressed(sni string) ([]byte, error) {
return []byte("certcompressed"), nil
}
func (*mockSigner) GetCertUncompressed(sni string) []byte {
return []byte("certuncompressed")
func (*mockSigner) GetCertUncompressed(sni string) ([]byte, error) {
return []byte("certuncompressed"), nil
}
type mockAEAD struct {