From 230933ee0e4bce6ddf25e0816fff0bd30e3c8864 Mon Sep 17 00:00:00 2001 From: tjp Date: Fri, 5 Jan 2024 12:19:40 -0700 Subject: TOFU certificate validation --- main.go | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'main.go') diff --git a/main.go b/main.go index c92a7f5..6b0a9f8 100644 --- a/main.go +++ b/main.go @@ -8,6 +8,7 @@ import ( "strings" "github.com/chzyer/readline" + "tildegit.org/tjp/sliderule" ) func main() { @@ -16,6 +17,12 @@ func main() { log.Fatal(err) } + if err := getTofuStore(); err != nil { + log.Fatal(err) + } + + client = sliderule.NewClient(tlsConfig()) + state := NewBrowserState() state.Quiet = conf.Quiet state.Pager = conf.Pager -- cgit v1.2.3