aboutsummaryrefslogtreecommitdiffstats
path: root/lib/crypto/gpg/gpg.go
diff options
context:
space:
mode:
Diffstat (limited to 'lib/crypto/gpg/gpg.go')
-rw-r--r--lib/crypto/gpg/gpg.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/crypto/gpg/gpg.go b/lib/crypto/gpg/gpg.go
index 457788dc..fe32468c 100644
--- a/lib/crypto/gpg/gpg.go
+++ b/lib/crypto/gpg/gpg.go
@@ -55,6 +55,10 @@ func (m *Mail) GetSignerKeyId(s string) (string, error) {
return gpgbin.GetPrivateKeyId(s)
}
+func (m *Mail) GetKeyId(s string) (string, error) {
+ return gpgbin.GetKeyId(s)
+}
+
func handleSignatureError(e string) models.SignatureValidity {
if e == "gpg: missing public key" {
return models.UnknownEntity