Add missing argument.
This commit is contained in:
parent
c1fc45c872
commit
e0dce54338
1 changed files with 2 additions and 2 deletions
|
@ -160,7 +160,7 @@ func (m sshCertValidBeforeModifier) Modify(cert *ssh.Certificate, _ SignSSHOptio
|
||||||
type sshCertDefaultsModifier SignSSHOptions
|
type sshCertDefaultsModifier SignSSHOptions
|
||||||
|
|
||||||
// Modify implements the SSHCertModifier interface.
|
// Modify implements the SSHCertModifier interface.
|
||||||
func (m sshCertDefaultsModifier) Modify(cert *ssh.Certificate) error {
|
func (m sshCertDefaultsModifier) Modify(cert *ssh.Certificate, _ SignSSHOptions) error {
|
||||||
if cert.CertType == 0 {
|
if cert.CertType == 0 {
|
||||||
cert.CertType = sshCertTypeUInt32(m.CertType)
|
cert.CertType = sshCertTypeUInt32(m.CertType)
|
||||||
}
|
}
|
||||||
|
@ -180,7 +180,7 @@ func (m sshCertDefaultsModifier) Modify(cert *ssh.Certificate) error {
|
||||||
// the default extensions in an SSH certificate.
|
// the default extensions in an SSH certificate.
|
||||||
type sshDefaultExtensionModifier struct{}
|
type sshDefaultExtensionModifier struct{}
|
||||||
|
|
||||||
func (m *sshDefaultExtensionModifier) Modify(cert *ssh.Certificate) error {
|
func (m *sshDefaultExtensionModifier) Modify(cert *ssh.Certificate, _ SignSSHOptions) error {
|
||||||
switch cert.CertType {
|
switch cert.CertType {
|
||||||
// Default to no extensions for HostCert.
|
// Default to no extensions for HostCert.
|
||||||
case ssh.HostCert:
|
case ssh.HostCert:
|
||||||
|
|
Loading…
Reference in a new issue