aboutsummaryrefslogtreecommitdiffstats
path: root/lang/js/src/Signature.js
diff options
context:
space:
mode:
authorMaximilian Krambach <[email protected]>2018-06-20 11:42:19 +0000
committerMaximilian Krambach <[email protected]>2018-06-20 11:46:41 +0000
commit88e7f8ec2ef3d90ca014b0bdb246f4d99f82abc8 (patch)
tree3cec557863b6669d9ea94c4f43bd5a3e861cc3f1 /lang/js/src/Signature.js
parentPrepare build system for gpgme-js and dist it (diff)
downloadgpgme-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 'lang/js/src/Signature.js')
-rw-r--r--lang/js/src/Signature.js6
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'
};
/**