From beb01894cd913986f74ef4f82c4cdf478db77ba1 Mon Sep 17 00:00:00 2001 From: Winni Neessen Date: Sat, 29 Oct 2022 20:43:22 +0200 Subject: [PATCH] Upgrade go-hibp to v1.0.4 and fix the breaking changes --- cmd/apg/apg.go | 4 ++-- go.mod | 2 +- go.sum | 2 ++ 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/cmd/apg/apg.go b/cmd/apg/apg.go index b5afe1c..39b43ec 100644 --- a/cmd/apg/apg.go +++ b/cmd/apg/apg.go @@ -135,8 +135,8 @@ func main() { } if cfgObj.CheckHibp { - hc := hibp.New(hibp.WithHttpTimeout(time.Second*2), hibp.WithPwnedPadding()) - pwnObj, _, err := hc.PwnedPassApi.CheckPassword(p) + hc := hibp.New(hibp.WithHTTPTimeout(time.Second*2), hibp.WithPwnedPadding()) + pwnObj, _, err := hc.PwnedPassAPI.CheckPassword(p) if err != nil { log.Printf("unable to check HIBP database: %v", err) } diff --git a/go.mod b/go.mod index 61a5484..383f1fa 100644 --- a/go.mod +++ b/go.mod @@ -2,4 +2,4 @@ module github.com/wneessen/apg-go go 1.16 -require github.com/wneessen/go-hibp v1.0.3 +require github.com/wneessen/go-hibp v1.0.4 diff --git a/go.sum b/go.sum index 55fcc0d..c35d58d 100644 --- a/go.sum +++ b/go.sum @@ -1,2 +1,4 @@ github.com/wneessen/go-hibp v1.0.3 h1:7T5tAoqre6+A4CdZRXZb9VbxWCcdzr+BdskyghxpaME= github.com/wneessen/go-hibp v1.0.3/go.mod h1:Ldg6DQg4fMCveVKgL+RL9Jy+9TsljjAP704Ix8X3jOw= +github.com/wneessen/go-hibp v1.0.4 h1:G/DPSu30FD/M/JFqFK+2512z3OilCUF1LdQnB8Xzx5g= +github.com/wneessen/go-hibp v1.0.4/go.mod h1:Ldg6DQg4fMCveVKgL+RL9Jy+9TsljjAP704Ix8X3jOw=