mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-02 14:07:04 +03:00
Added: GnuPG encrypt (sign still fails)
This commit is contained in:
parent
f3717815e1
commit
8fff6fa759
11 changed files with 196 additions and 91 deletions
|
|
@ -91,12 +91,12 @@ export const PgpUserStore = new class {
|
|||
async hasPublicKeyForEmails(recipients) {
|
||||
const count = recipients.length;
|
||||
if (count) {
|
||||
if (OpenPGPUserStore.hasPublicKeyForEmails(recipients)) {
|
||||
return 'openpgp';
|
||||
}
|
||||
if (GnuPGUserStore.hasPublicKeyForEmails(recipients)) {
|
||||
return 'gnupg';
|
||||
}
|
||||
if (OpenPGPUserStore.hasPublicKeyForEmails(recipients)) {
|
||||
return 'openpgp';
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
|
@ -114,7 +114,7 @@ export const PgpUserStore = new class {
|
|||
* Returns the first library that can.
|
||||
*/
|
||||
async getKeyForSigning(email) {
|
||||
/*
|
||||
/* // TODO: sign in PHP fails
|
||||
let key = GnuPGUserStore.getPrivateKeyFor(email, 1);
|
||||
if (key) {
|
||||
return ['gnupg', key];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue