// NewSignatureVerifierFromSSHAgent return SignatureVerifier which uses ssh-agent to verify func NewSignatureVerifierFromSSHAgent() (*SignatureVerifier, error) { keyring, err := ssh.NewSSHAgentKeyring() if err != nil { return nil, err } return NewSignatureVerifierFromKeyring(keyring) }
// NewSignatureCreatorFromSSHAgent return SignatureCreator which uses ssh-agent to sign func NewSignatureCreatorFromSSHAgent() (*SignatureCreator, error) { keyring, err := ssh.NewSSHAgentKeyring() if err != nil { return nil, err } return &SignatureCreator{keyring}, nil }