Skip to content

Commit

Permalink
Merge branch 'master' into zcrypto-psl-update
Browse files Browse the repository at this point in the history
  • Loading branch information
zakird authored Sep 22, 2023
2 parents c92e091 + 72485cd commit e435a76
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ct/client/logclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -375,12 +375,18 @@ func (c *LogClient) GetEntries(start, end int64) ([]ct.LogEntry, error) {
entries := make([]ct.LogEntry, len(resp.Entries))
for index, entry := range resp.Entries {
leafBytes, err := base64.StdEncoding.DecodeString(entry.LeafInput)
if err != nil {
return nil, err
}
leaf, err := ct.ReadMerkleTreeLeaf(bytes.NewBuffer(leafBytes))
if err != nil {
return nil, err
}
entries[index].Leaf = *leaf
chainBytes, err := base64.StdEncoding.DecodeString(entry.ExtraData)
if err != nil {
return nil, err
}

var chain []ct.ASN1Cert
switch leaf.TimestampedEntry.EntryType {
Expand Down

0 comments on commit e435a76

Please sign in to comment.