diff --git a/ctclient/log.go b/ctclient/log.go index c711e04..93b2c88 100644 --- a/ctclient/log.go +++ b/ctclient/log.go @@ -43,7 +43,7 @@ type Entry interface { ExtraData(context.Context, IssuerGetter) ([]byte, error) // Returns an error if this is not a well-formed precert entry - Precertificate() ([]byte, error) + Precertificate() (cttypes.ASN1Cert, error) // Returns an error if this is not a well-formed x509 or precert entry ChainFingerprints() ([][32]byte, error) diff --git a/ctclient/rfc6962.go b/ctclient/rfc6962.go index 43a5a6a..864419d 100644 --- a/ctclient/rfc6962.go +++ b/ctclient/rfc6962.go @@ -172,7 +172,7 @@ func (entry *RFC6962LogEntry) ExtraData(context.Context, IssuerGetter) ([]byte, return entry.Extra_data, nil } -func (entry *RFC6962LogEntry) Precertificate() ([]byte, error) { +func (entry *RFC6962LogEntry) Precertificate() (cttypes.ASN1Cert, error) { if !entry.isPrecert() { return nil, fmt.Errorf("not a precertificate entry") } diff --git a/ctclient/static.go b/ctclient/static.go index 93cef73..9919395 100644 --- a/ctclient/static.go +++ b/ctclient/static.go @@ -347,7 +347,7 @@ func (entry *StaticLogEntry) ExtraData(ctx context.Context, issuerGetter IssuerG return b.Bytes() } -func (entry *StaticLogEntry) Precertificate() ([]byte, error) { +func (entry *StaticLogEntry) Precertificate() (cttypes.ASN1Cert, error) { if entry.precertificate == nil { return nil, fmt.Errorf("not a precertificate entry") }