forked from TrueCloudLab/certificates
Remove unused code.
This commit is contained in:
parent
c4bbc81d9f
commit
8d89bbd62f
1 changed files with 0 additions and 11 deletions
|
@ -435,17 +435,6 @@ func (v sshDefaultPublicKeyValidator) Valid(cert *ssh.Certificate, o SignSSHOpti
|
|||
}
|
||||
}
|
||||
|
||||
// sshCertKeyIDValidator implements a validator for the KeyId attribute.
|
||||
type sshCertKeyIDValidator string
|
||||
|
||||
// Valid returns an error if the given certificate does not contain the necessary fields.
|
||||
func (v sshCertKeyIDValidator) Valid(cert *ssh.Certificate, o SignSSHOptions) error {
|
||||
if string(v) != cert.KeyId {
|
||||
return errors.Errorf("invalid ssh certificate KeyId; want %s, but got %s", string(v), cert.KeyId)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// sshCertTypeUInt32
|
||||
func sshCertTypeUInt32(ct string) uint32 {
|
||||
switch ct {
|
||||
|
|
Loading…
Reference in a new issue