diff options
| author | Maximilian Krambach <[email protected]> | 2018-08-17 15:20:35 +0000 | 
|---|---|---|
| committer | Maximilian Krambach <[email protected]> | 2018-08-17 15:20:35 +0000 | 
| commit | 8e87790db3499b1625fd65f3272192df47b5dfd0 (patch) | |
| tree | 4e6ddc2e27291abc21ac83c497490634ec25dd1f /lang/js/src | |
| parent | js: small documentation fix (diff) | |
| download | gpgme-8e87790db3499b1625fd65f3272192df47b5dfd0.tar.gz gpgme-8e87790db3499b1625fd65f3272192df47b5dfd0.zip  | |
js: don't expire new keys if no date is set
--
* src/Keyring.js A new Key without expiration is documented as
  'never expire' here, and should behave accordingly. This requires
  sending '0' here.
Diffstat (limited to 'lang/js/src')
| -rw-r--r-- | lang/js/src/Keyring.js | 2 | 
1 files changed, 2 insertions, 0 deletions
diff --git a/lang/js/src/Keyring.js b/lang/js/src/Keyring.js index 766bab15..d18fb649 100644 --- a/lang/js/src/Keyring.js +++ b/lang/js/src/Keyring.js @@ -390,6 +390,8 @@ export class GPGME_Keyring {                  if (expires){                      msg.setParameter('expires',                          Math.floor(expires.valueOf()/1000)); +                } else { +                    msg.setParameter('expires', 0);                  }                  msg.post().then(function(response){                      me.getKeys(response.fingerprint, true).then(  | 
