mirror of
https://github.com/outbackdingo/certificates.git
synced 2026-01-27 10:18:34 +00:00
Address review remarks
This commit is contained in:
@@ -707,13 +707,13 @@ func (a *Authority) init() error {
|
||||
}
|
||||
}
|
||||
|
||||
// provide the current SCEP provisioner names, so that the provisioners
|
||||
// can be validated when the CA is started.
|
||||
options.SCEPProvisionerNames = a.getSCEPProvisionerNames()
|
||||
|
||||
a.scepOptions = options
|
||||
}
|
||||
|
||||
// provide the current SCEP provisioner names, so that the provisioners
|
||||
// can be validated when the CA is started.
|
||||
a.scepOptions.SCEPProvisionerNames = a.getSCEPProvisionerNames()
|
||||
|
||||
// create a new SCEP authority
|
||||
scepAuthority, err := scep.New(a, *a.scepOptions)
|
||||
if err != nil {
|
||||
|
||||
@@ -206,15 +206,9 @@ func WithX509SignerFunc(fn func() ([]*x509.Certificate, crypto.Signer, error)) O
|
||||
}
|
||||
}
|
||||
|
||||
// func WithSCEPOptions(crt *x509.Certificate, s crypto.Signer, d crypto.Decrypter) Option {
|
||||
// return func(a *Authority) error {
|
||||
// a.scepCertificate = crt
|
||||
// a.scepSigner = s
|
||||
// a.scepDecrypter = d
|
||||
// return nil
|
||||
// }
|
||||
// }
|
||||
|
||||
// WithFullSCEPOptions defines the options used for SCEP support.
|
||||
//
|
||||
// This feature is EXPERIMENTAL and might change at any time.
|
||||
func WithFullSCEPOptions(options *scep.Options) Option {
|
||||
return func(a *Authority) error {
|
||||
a.scepOptions = options
|
||||
|
||||
Reference in New Issue
Block a user