diff options
author | Rasmus Dahlberg <rasmus.dahlberg@kau.se> | 2020-11-05 12:24:01 +0100 |
---|---|---|
committer | Rasmus Dahlberg <rasmus.dahlberg@kau.se> | 2020-11-05 12:24:01 +0100 |
commit | cb8498119a0a3aaf34e09191e5e172173fdbc8ca (patch) | |
tree | ddf4cd77b348ba133586fd60fc0a749a2d472165 /handler.go | |
parent | 8bb721bed66d09e27c9577d88d40cb1e48a8783d (diff) |
refactored signing/verification parts that are log specific
These methods are now private and attached to LogParameters.
Diffstat (limited to 'handler.go')
-rw-r--r-- | handler.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -72,7 +72,7 @@ func addEntry(ctx context.Context, i *Instance, w http.ResponseWriter, r *http.R return status, err } - sdi, err := GenV1SDI(i.LogParameters, trsp.QueuedLeaf.Leaf.LeafValue) + sdi, err := i.LogParameters.genV1Sdi(trsp.QueuedLeaf.Leaf.LeafValue) if err != nil { return http.StatusInternalServerError, fmt.Errorf("failed creating signed debug info: %v", err) } @@ -208,7 +208,7 @@ func getSth(ctx context.Context, i *Instance, w http.ResponseWriter, _ *http.Req if err != nil { return http.StatusInternalServerError, fmt.Errorf("failed creating tree head: %v", err) } - sth, err := GenV1STH(i.LogParameters, th) + sth, err := i.LogParameters.genV1Sth(th) if err != nil { return http.StatusInternalServerError, fmt.Errorf("failed creating signed tree head: %v", err) } |