Fix dead code and add missing error check.

This commit is contained in:
Mariano Cano 2018-10-26 15:05:37 -07:00
parent d574545d94
commit ea0307239a
2 changed files with 3 additions and 7 deletions

View file

@ -45,6 +45,9 @@ func New(config *Config) (*Authority, error) {
var sorted provisionerSlice
if config.AuthorityConfig != nil {
sorted, err = newSortedProvisioners(config.AuthorityConfig.Provisioners)
if err != nil {
return nil, err
}
}
// Define audiences: legacy + possible urls

View file

@ -9,13 +9,6 @@ import (
jose "gopkg.in/square/go-jose.v2"
)
// baseClaims interface.
type baseClaims struct {
MinTLSDur *duration `json:"minTLSCertDuration,omitempty"`
MaxTLSDur *duration `json:"maxTLSCertDuration,omitempty"`
DefaultTLSDur *duration `json:"defaultTLSCertDuration,omitempty"`
}
// ProvisionerClaims so that individual provisioners can override global claims.
type ProvisionerClaims struct {
globalClaims *ProvisionerClaims