From a13e58e3407dc169739e42e0b7aa60d01f071175 Mon Sep 17 00:00:00 2001 From: Carl Tashian Date: Wed, 30 Mar 2022 16:07:16 -0700 Subject: [PATCH] Update GetAuthorityInfo -> GetInfo --- authority/authority.go | 4 ++-- ca/ca.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/authority/authority.go b/authority/authority.go index f2b8b983..3b26dbc5 100644 --- a/authority/authority.go +++ b/authority/authority.go @@ -567,8 +567,8 @@ func (a *Authority) GetAdminDatabase() admin.DB { return a.adminDB } -func (a *Authority) GetAuthorityInfo() *AuthorityInfo { - ai := &AuthorityInfo{ +func (a *Authority) GetInfo() AuthorityInfo { + ai := AuthorityInfo{ StartTime: a.startTime, RootX509Certs: a.rootX509Certs, } diff --git a/ca/ca.go b/ca/ca.go index 0e7f3dbb..bf967aed 100644 --- a/ca/ca.go +++ b/ca/ca.go @@ -299,7 +299,7 @@ func (ca *CA) Run() error { errs := make(chan error, 1) if !ca.opts.quiet { - authorityInfo := ca.auth.GetAuthorityInfo() + authorityInfo := ca.auth.GetInfo() log.Printf("Address: %s", ca.config.Address) for _, crt := range authorityInfo.RootX509Certs { sum := sha256.Sum256(crt.Raw)