func (ca *CAServer) authorized(dnsNames []string) error {
	var noauthz []string
	for _, name := range dnsNames {
		authz, ok := ca.authorizations[name]
		if !ok || authz.Status != acme.StatusValid {
			noauthz = append(noauthz, name)
		}
	}
	if len(noauthz) > 0 {
		return fmt.Errorf("CAServer: no authz for %q", noauthz)
	}
	return nil
}
// authorized reports whether all authorizations for dnsNames have been satisfied.
// It requires ca.mu to be locked.
authorized reports whether all authorizations for dnsNames have been satisfied.
It requires ca.mu to be locked.
// authorized reports whether all authorizations for dnsNames have been satisfied . // It requires ca . mu to be locked .
func (ca *CAServer) authorized(dnsNames []string) error {
	var noauthz []string
	for _, name := range dnsNames {
		authz, ok := ca.authorizations[name]
		if !ok || authz.Status != acme.StatusValid {
			noauthz = append(noauthz, name)
		}
	}
	if len(noauthz) > 0 {
		return fmt.Errorf("CAServer: no authz for %q", noauthz)
	}
	return nil
}
func ( ca * CAServer ) authorized ( dnsNames [ ] string ) error { var noauthz [ ] string for _ , name := range dnsNames { authz , ok := ca . authorizations [ name ] if ! ok || authz . Status != acme . StatusValid { noauthz = append ( noauthz , name ) } } if len ( noauthz ) > 0 { return fmt . Errorf ( " " , noauthz ) } return nil }
authorized reports whether all authorizations for dnsNames have been satisfied.
authorized reports whether all authorizations for dnsNames have been satisfied .