rename GetCertCompressed to GetCertsCompressed

This commit is contained in:
Lucas Clemente
2016-05-11 11:41:44 +02:00
parent 20655bac5a
commit 7c1e1cde56
6 changed files with 9 additions and 9 deletions

View File

@@ -56,8 +56,8 @@ func (kd *rsaSigner) SignServerProof(sni string, chlo []byte, serverConfigData [
)
}
// GetCertCompressed gets the certificate in the format described by the QUIC crypto doc
func (kd *rsaSigner) GetCertCompressed(sni string) ([]byte, error) {
// GetCertsCompressed gets the certificate in the format described by the QUIC crypto doc
func (kd *rsaSigner) GetCertsCompressed(sni string) ([]byte, error) {
cert, err := kd.getCertForSNI(sni)
if err != nil {
return nil, err

View File

@@ -30,7 +30,7 @@ var _ = Describe("ProofRsa", func() {
},
},
}
certCompressed, err := kd.GetCertCompressed("")
certCompressed, err := kd.GetCertsCompressed("")
Expect(err).ToNot(HaveOccurred())
Expect(certCompressed).To(Equal(append([]byte{
0x01, 0x00,

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, error)
GetCertsCompressed(sni string) ([]byte, error)
GetLeafCert(sni string) ([]byte, error)
}