diff options
author | Maximilian Krambach <[email protected]> | 2018-06-14 10:15:51 +0000 |
---|---|---|
committer | Maximilian Krambach <[email protected]> | 2018-06-14 10:15:51 +0000 |
commit | 3c783bd09ce54b0d50dc3bea201e70e4fcbbf6a3 (patch) | |
tree | 2ac86ed4255a23ce7d03d8dc4afe136151a85c9c /lang/js/src/Errors.js | |
parent | js: getDefaultKey and verify fix (diff) | |
download | gpgme-3c783bd09ce54b0d50dc3bea201e70e4fcbbf6a3.tar.gz gpgme-3c783bd09ce54b0d50dc3bea201e70e4fcbbf6a3.zip |
js: add verify and signature parsing
--
* src/gpgmejs.js:
- Added verify method
- Added verification results in decrypt (if signatures are present
in the message)
- Added a base64 option to decrypt
* src/Signature.js: Convenience class for verification results. Used
for e.g. converting timestamps to javascript time, quick overall
validity checks
* src/Keyring.js: removed debug code
* src/Errors.js add two new Signature errors
Diffstat (limited to '')
-rw-r--r-- | lang/js/src/Errors.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lang/js/src/Errors.js b/lang/js/src/Errors.js index 73e74382..a8cd8b56 100644 --- a/lang/js/src/Errors.js +++ b/lang/js/src/Errors.js @@ -83,6 +83,14 @@ const err_list = { 'configuration', type: 'error' }, + 'SIG_WRONG': { + msg:'A malformed signature was created', + type: 'error' + }, + 'SIG_NO_SIGS': { + msg:'There were no signatures found', + type: 'error' + }, // generic 'PARAM_WRONG':{ msg: 'Invalid parameter was found', |