From dbf52bb4b48748586bb6343ae4ad6d424f0631ac Mon Sep 17 00:00:00 2001 From: Tim Culverhouse Date: Fri, 29 Apr 2022 11:19:52 -0500 Subject: pgp: check for signing key before signing time Check that the signing key exists when the user issues the :sign command. The signing key ID will be displayed in the security status also, allowing the user to see what key will be used to sign the message. Signed-off-by: Tim Culverhouse Tested-by: Jens Grassel --- lib/crypto/crypto.go | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/crypto/crypto.go') diff --git a/lib/crypto/crypto.go b/lib/crypto/crypto.go index 47eca99d..cab93462 100644 --- a/lib/crypto/crypto.go +++ b/lib/crypto/crypto.go @@ -19,6 +19,7 @@ type Provider interface { ImportKeys(io.Reader) error Init(*log.Logger) error Close() + GetSignerKeyId(string) (string, error) } func New(s string) Provider { -- cgit