[git] GPGME - branch, javascript-binding, updated. gpgme-1.11.1-97-g8e87790

by Maximilian Krambach cvs at cvs.gnupg.org
Fri Aug 17 17:22:00 CEST 2018


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GnuPG Made Easy".

The branch, javascript-binding has been updated
       via  8e87790db3499b1625fd65f3272192df47b5dfd0 (commit)
      from  3fb094a9b8c320fc10e537a9bb5fab34807f4e52 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 8e87790db3499b1625fd65f3272192df47b5dfd0
Author: Maximilian Krambach <maximilian.krambach at intevation.de>
Date:   Fri Aug 17 17:20:35 2018 +0200

    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.

diff --git a/lang/js/src/Keyring.js b/lang/js/src/Keyring.js
index 766bab1..d18fb64 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(

-----------------------------------------------------------------------

Summary of changes:
 lang/js/src/Keyring.js | 2 ++
 1 file changed, 2 insertions(+)


hooks/post-receive
-- 
GnuPG Made Easy
http://git.gnupg.org




More information about the Gnupg-commits mailing list