mirror of
https://github.com/smallstep/certificates.git
synced 2024-11-17 15:29:21 +00:00
Add TemplateData to SignSSHOptions.
This commit is contained in:
parent
fdd0eb6773
commit
631f1612a1
@ -3,6 +3,7 @@ package provisioner
|
||||
import (
|
||||
"crypto/rsa"
|
||||
"encoding/binary"
|
||||
"encoding/json"
|
||||
"math/big"
|
||||
"time"
|
||||
|
||||
@ -56,12 +57,13 @@ func (f sshModifierFunc) Modify(cert *ssh.Certificate) error {
|
||||
|
||||
// SignSSHOptions contains the options that can be passed to the SignSSH method.
|
||||
type SignSSHOptions struct {
|
||||
CertType string `json:"certType"`
|
||||
KeyID string `json:"keyID"`
|
||||
Principals []string `json:"principals"`
|
||||
ValidAfter TimeDuration `json:"validAfter,omitempty"`
|
||||
ValidBefore TimeDuration `json:"validBefore,omitempty"`
|
||||
Backdate time.Duration `json:"-"`
|
||||
CertType string `json:"certType"`
|
||||
KeyID string `json:"keyID"`
|
||||
Principals []string `json:"principals"`
|
||||
ValidAfter TimeDuration `json:"validAfter,omitempty"`
|
||||
ValidBefore TimeDuration `json:"validBefore,omitempty"`
|
||||
TemplateData json.RawMessage `json:"templateData"`
|
||||
Backdate time.Duration `json:"-"`
|
||||
}
|
||||
|
||||
// Type returns the uint32 representation of the CertType.
|
||||
|
Loading…
Reference in New Issue
Block a user