forked from TrueCloudLab/certificates
Fix dead code and add missing error check.
This commit is contained in:
parent
d574545d94
commit
ea0307239a
2 changed files with 3 additions and 7 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue