From 8d89bbd62ff8d62bcb76c968d0b0a722ccfbc764 Mon Sep 17 00:00:00 2001 From: Mariano Cano Date: Mon, 3 Aug 2020 18:39:02 -0700 Subject: [PATCH] Remove unused code. --- authority/provisioner/sign_ssh_options.go | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/authority/provisioner/sign_ssh_options.go b/authority/provisioner/sign_ssh_options.go index b2ec04d4..d948ddac 100644 --- a/authority/provisioner/sign_ssh_options.go +++ b/authority/provisioner/sign_ssh_options.go @@ -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 {