mirror of
https://github.com/smallstep/certificates.git
synced 2024-10-31 03:20:16 +00:00
Make SCEP decrypter properties use omitempty
This commit is contained in:
parent
aea3f752bd
commit
4554f86f16
@ -44,10 +44,10 @@ type SCEP struct {
|
|||||||
MinimumPublicKeyLength int `json:"minimumPublicKeyLength,omitempty"`
|
MinimumPublicKeyLength int `json:"minimumPublicKeyLength,omitempty"`
|
||||||
|
|
||||||
// TODO(hs): also support a separate signer configuration?
|
// TODO(hs): also support a separate signer configuration?
|
||||||
DecrypterCertificate []byte `json:"decrypterCertificate"`
|
DecrypterCertificate []byte `json:"decrypterCertificate,omitempty"`
|
||||||
DecrypterKeyPEM []byte `json:"decrypterKeyPEM"`
|
DecrypterKeyPEM []byte `json:"decrypterKeyPEM,omitempty"`
|
||||||
DecrypterKeyURI string `json:"decrypterKey"`
|
DecrypterKeyURI string `json:"decrypterKey,omitempty"`
|
||||||
DecrypterKeyPassword []byte `json:"decrypterKeyPassword"`
|
DecrypterKeyPassword []byte `json:"decrypterKeyPassword,omitempty"`
|
||||||
|
|
||||||
// Numerical identifier for the ContentEncryptionAlgorithm as defined in github.com/mozilla-services/pkcs7
|
// Numerical identifier for the ContentEncryptionAlgorithm as defined in github.com/mozilla-services/pkcs7
|
||||||
// at https://github.com/mozilla-services/pkcs7/blob/33d05740a3526e382af6395d3513e73d4e66d1cb/encrypt.go#L63
|
// at https://github.com/mozilla-services/pkcs7/blob/33d05740a3526e382af6395d3513e73d4e66d1cb/encrypt.go#L63
|
||||||
|
Loading…
Reference in New Issue
Block a user