diff options
author | Maximilian Krambach <[email protected]> | 2018-06-20 11:42:19 +0000 |
---|---|---|
committer | Maximilian Krambach <[email protected]> | 2018-06-20 11:46:41 +0000 |
commit | 88e7f8ec2ef3d90ca014b0bdb246f4d99f82abc8 (patch) | |
tree | 3cec557863b6669d9ea94c4f43bd5a3e861cc3f1 /lang/js/src/Signature.js | |
parent | Prepare build system for gpgme-js and dist it (diff) | |
download | gpgme-88e7f8ec2ef3d90ca014b0bdb246f4d99f82abc8.tar.gz gpgme-88e7f8ec2ef3d90ca014b0bdb246f4d99f82abc8.zip |
js: Demoextension update
--
* src/Signature: typo
* src/gpgmejs.js: fixed wrong scope in verification
* right now verify does not succeed in the DemoExtension.
This is probably a problem in conversion or line ending.
Diffstat (limited to '')
-rw-r--r-- | lang/js/src/Signature.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lang/js/src/Signature.js b/lang/js/src/Signature.js index d7d05983..a07fc4d1 100644 --- a/lang/js/src/Signature.js +++ b/lang/js/src/Signature.js @@ -35,7 +35,7 @@ export function createSignature(sigObject){ if ( typeof(sigObject) !=='object' || !sigObject.hasOwnProperty('summary') || - !sigObject.hasOwnProperty('fingerpprint') || + !sigObject.hasOwnProperty('fingerprint') || !sigObject.hasOwnProperty('timestamp') //TODO check if timestamp is mandatory in specification ){ @@ -67,6 +67,7 @@ export function createSignature(sigObject){ } } } + console.log('sig created'); return new GPGME_Signature(sigObject); } @@ -178,7 +179,8 @@ const expSum = { 'crl-missing': 'boolean', 'crl-too-old': 'boolean', 'bad-policy': 'boolean', - 'sys-error': 'boolean' + 'sys-error': 'boolean', + 'sigsum': 'object' }; /** |