forked from TrueCloudLab/certificates
Fix interface type.
This commit is contained in:
parent
cc8764c343
commit
47817ab212
1 changed files with 2 additions and 2 deletions
|
@ -39,7 +39,7 @@ type CertificateRequestValidator interface {
|
||||||
// constructor. The options are used to modify the final certificate.
|
// constructor. The options are used to modify the final certificate.
|
||||||
type ProfileModifier interface {
|
type ProfileModifier interface {
|
||||||
SignOption
|
SignOption
|
||||||
Option(so SignOption) x509util.WithOption
|
Option(o Options) x509util.WithOption
|
||||||
}
|
}
|
||||||
|
|
||||||
// profileWithOption is a wrapper against x509util.WithOption to conform the
|
// profileWithOption is a wrapper against x509util.WithOption to conform the
|
||||||
|
@ -195,7 +195,7 @@ func newProvisionerExtensionOption(typ Type, name, credentialID string) *provisi
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (o *provisionerExtensionOption) Option() x509util.WithOption {
|
func (o *provisionerExtensionOption) Option(Options) x509util.WithOption {
|
||||||
return func(p x509util.Profile) error {
|
return func(p x509util.Profile) error {
|
||||||
crt := p.Subject()
|
crt := p.Subject()
|
||||||
b, err := asn1.Marshal(stepProvisionerASN1{
|
b, err := asn1.Marshal(stepProvisionerASN1{
|
||||||
|
|
Loading…
Add table
Reference in a new issue