mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-05 15:37:03 +03:00
#89 Detailed control saving generated public/private keys
This commit is contained in:
parent
76361a13da
commit
efabf269c7
5 changed files with 75 additions and 45 deletions
|
|
@ -67,19 +67,6 @@ export const PgpUserStore = new class {
|
|||
return !!(OpenPGPUserStore.isSupported() || GnuPGUserStore.isSupported() || window.mailvelope);
|
||||
}
|
||||
|
||||
/**
|
||||
keyPair.privateKey
|
||||
keyPair.publicKey
|
||||
keyPair.revocationCertificate
|
||||
keyPair.onServer
|
||||
keyPair.inGnuPG
|
||||
*/
|
||||
storeKeyPair(keyPair, callback) {
|
||||
OpenPGPUserStore.isSupported() && OpenPGPUserStore.storeKeyPair(keyPair);
|
||||
// if (Settings.capa(Capa.GnuPG)) {
|
||||
GnuPGUserStore.storeKeyPair(keyPair, callback);
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if verifying/encrypting a message is possible with given email addresses.
|
||||
* Returns the first library that can.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue