aboutsummaryrefslogtreecommitdiff
path: root/client/client.go
diff options
context:
space:
mode:
Diffstat (limited to 'client/client.go')
-rw-r--r--client/client.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/client.go b/client/client.go
index d070de9..4658a25 100644
--- a/client/client.go
+++ b/client/client.go
@@ -224,7 +224,7 @@ func (c *Client) GetEntries(ctx context.Context, start, end uint64) ([]*stfe.Get
if item.Format != stfe.StFormatChecksumV1 {
return nil, fmt.Errorf("bad StFormat: %v (%v)", err, entry)
}
- if chain, err := x509util.ParseDerChainToList(entry.Chain); err != nil {
+ if chain, err := x509util.ParseDerList(entry.Chain); err != nil {
return nil, fmt.Errorf("bad certificate chain: %v (%v)", err, entry)
} else if err := x509util.VerifyChain(chain); err != nil {
return nil, fmt.Errorf("invalid certificate chain: %v (%v)", err, entry)
@@ -246,7 +246,7 @@ func (c *Client) GetAnchors(ctx context.Context) ([]*x509.Certificate, error) {
if err := c.doRequest(ctx, req, &rsp); err != nil {
return nil, err
}
- return x509util.ParseDerChainToList(rsp)
+ return x509util.ParseDerList(rsp)
}
func (c *Client) chain() [][]byte {