diff options
Diffstat (limited to 'lib/crypto/crypto.go')
-rw-r--r-- | lib/crypto/crypto.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/crypto/crypto.go b/lib/crypto/crypto.go index 47cb9544..47eca99d 100644 --- a/lib/crypto/crypto.go +++ b/lib/crypto/crypto.go @@ -5,6 +5,7 @@ import ( "io" "log" + "git.sr.ht/~rjarry/aerc/lib/crypto/gpg" "git.sr.ht/~rjarry/aerc/lib/crypto/pgp" "git.sr.ht/~rjarry/aerc/models" "github.com/ProtonMail/go-crypto/openpgp" @@ -22,6 +23,8 @@ type Provider interface { func New(s string) Provider { switch s { + case "gpg": + return &gpg.Mail{} default: return &pgp.Mail{} } |