From 927a314012720b82fe8d3c0d4e96bb1bf1dbb12d Mon Sep 17 00:00:00 2001
From: Rasmus Dahlberg <rasmus.dahlberg@kau.se>
Date: Mon, 22 Feb 2021 10:33:44 +0100
Subject: renamed sth and cosigning endpoints

---
 client/client.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'client')

diff --git a/client/client.go b/client/client.go
index 0cbf432..3bd4f50 100644
--- a/client/client.go
+++ b/client/client.go
@@ -89,7 +89,7 @@ func (c *Client) AddEntry(ctx context.Context, name, checksum []byte) (*stfe.StI
 
 // GetSth fetches and verifies the most recent STH.
 func (c *Client) GetSth(ctx context.Context) (*stfe.StItem, error) {
-	url := stfe.EndpointGetSth.Path(c.protocol() + c.Log.BaseUrl)
+	url := stfe.EndpointGetLatestSth.Path(c.protocol() + c.Log.BaseUrl)
 	req, err := http.NewRequest("GET", url, nil)
 	if err != nil {
 		return nil, fmt.Errorf("failed creating http request: %v", err)
-- 
cgit v1.2.3