Update GetAuthorityInfo -> GetInfo

This commit is contained in:
Carl Tashian 2022-03-30 16:07:16 -07:00
parent 90cb6315b1
commit a13e58e340
2 changed files with 3 additions and 3 deletions

View file

@ -567,8 +567,8 @@ func (a *Authority) GetAdminDatabase() admin.DB {
return a.adminDB return a.adminDB
} }
func (a *Authority) GetAuthorityInfo() *AuthorityInfo { func (a *Authority) GetInfo() AuthorityInfo {
ai := &AuthorityInfo{ ai := AuthorityInfo{
StartTime: a.startTime, StartTime: a.startTime,
RootX509Certs: a.rootX509Certs, RootX509Certs: a.rootX509Certs,
} }

View file

@ -299,7 +299,7 @@ func (ca *CA) Run() error {
errs := make(chan error, 1) errs := make(chan error, 1)
if !ca.opts.quiet { if !ca.opts.quiet {
authorityInfo := ca.auth.GetAuthorityInfo() authorityInfo := ca.auth.GetInfo()
log.Printf("Address: %s", ca.config.Address) log.Printf("Address: %s", ca.config.Address)
for _, crt := range authorityInfo.RootX509Certs { for _, crt := range authorityInfo.RootX509Certs {
sum := sha256.Sum256(crt.Raw) sum := sha256.Sum256(crt.Raw)