Update openpgpjs (1.2.0 -> 2.3.0) (#1023)

This commit is contained in:
RainLoop Team 2016-05-05 03:14:38 +03:00
parent 125d4e0282
commit a655b94aba
19 changed files with 20792 additions and 195 deletions

View file

@ -41,7 +41,7 @@
var
self = this,
sUserID = '',
oUserIds = {},
oOpenpgpKeyring = PgpStore.openpgpKeyring
;
@ -51,10 +51,10 @@
return false;
}
sUserID = this.email();
oUserIds['email'] = this.email();
if ('' !== this.name())
{
sUserID = this.name() + ' <' + sUserID + '>';
oUserIds['name'] = this.name();
}
this.submitRequest(true);
@ -66,7 +66,7 @@
try {
mPromise = PgpStore.openpgp.generateKeyPair({
'userId': sUserID,
'userId': oUserIds,
'numBits': Utils.pInt(self.keyBitLength()),
'passphrase': Utils.trim(self.password())
});