mirror of
https://github.com/smallstep/certificates.git
synced 2024-11-17 15:29:21 +00:00
Fix redacted types in SCEP provisioner
This commit uses the same types for the fields in the provisioner.SCEP type and the "redacted" models.SCEP.
This commit is contained in:
parent
f505acbaa3
commit
4d5fbfa439
@ -245,10 +245,10 @@ func scepFromProvisioner(p *provisioner.SCEP) *models.SCEP {
|
||||
IncludeRoot: p.IncludeRoot,
|
||||
ExcludeIntermediate: p.ExcludeIntermediate,
|
||||
MinimumPublicKeyLength: p.MinimumPublicKeyLength,
|
||||
DecrypterCertificate: redacted,
|
||||
DecrypterKeyPEM: redacted,
|
||||
DecrypterCertificate: []byte(redacted),
|
||||
DecrypterKeyPEM: []byte(redacted),
|
||||
DecrypterKeyURI: redacted,
|
||||
DecrypterKeyPassword: redacted,
|
||||
DecrypterKeyPassword: []byte(redacted),
|
||||
EncryptionAlgorithmIdentifier: p.EncryptionAlgorithmIdentifier,
|
||||
Options: p.Options,
|
||||
Claims: p.Claims,
|
||||
|
@ -25,10 +25,10 @@ type SCEP struct {
|
||||
IncludeRoot bool `json:"includeRoot"`
|
||||
ExcludeIntermediate bool `json:"excludeIntermediate"`
|
||||
MinimumPublicKeyLength int `json:"minimumPublicKeyLength"`
|
||||
DecrypterCertificate string `json:"decrypterCertificate"`
|
||||
DecrypterKeyPEM string `json:"decrypterKeyPEM"`
|
||||
DecrypterCertificate []byte `json:"decrypterCertificate"`
|
||||
DecrypterKeyPEM []byte `json:"decrypterKeyPEM"`
|
||||
DecrypterKeyURI string `json:"decrypterKey"`
|
||||
DecrypterKeyPassword string `json:"decrypterKeyPassword"`
|
||||
DecrypterKeyPassword []byte `json:"decrypterKeyPassword"`
|
||||
EncryptionAlgorithmIdentifier int `json:"encryptionAlgorithmIdentifier"`
|
||||
Options *provisioner.Options `json:"options,omitempty"`
|
||||
Claims *provisioner.Claims `json:"claims,omitempty"`
|
||||
|
Loading…
Reference in New Issue
Block a user