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

@@ -3,6 +3,6 @@ package crypto
// A Signer holds a certificate and a private key
type Signer interface {
SignServerProof(sni string, chlo []byte, serverConfigData []byte) ([]byte, error)
GetCertCompressed(sni string) []byte
GetCertUncompressed(sni string) []byte
GetCertCompressed(sni string) ([]byte, error)
GetCertUncompressed(sni string) ([]byte, error)
}