aboutsummaryrefslogtreecommitdiff
path: root/handler.go
diff options
context:
space:
mode:
authorRasmus Dahlberg <rasmus.dahlberg@kau.se>2020-11-05 12:24:01 +0100
committerRasmus Dahlberg <rasmus.dahlberg@kau.se>2020-11-05 12:24:01 +0100
commitcb8498119a0a3aaf34e09191e5e172173fdbc8ca (patch)
treeddf4cd77b348ba133586fd60fc0a749a2d472165 /handler.go
parent8bb721bed66d09e27c9577d88d40cb1e48a8783d (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.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/handler.go b/handler.go
index 7366761..1099527 100644
--- a/handler.go
+++ b/handler.go
@@ -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)
}