[git] GPGME - branch, javascript-binding, updated. gpgme-1.11.1-69-g10f2106
by Maximilian Krambach
cvs at cvs.gnupg.org
Wed Jul 4 15:48:54 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 10f2106404f01e7bb369fc66a597875fb455cd27 (commit)
from 1919fa41b6da4dfd4f69e776caa6e6b1883eb208 (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 10f2106404f01e7bb369fc66a597875fb455cd27
Author: Maximilian Krambach <maximilian.krambach at intevation.de>
Date: Wed Jul 4 15:46:45 2018 +0200
js: properly reject pgp message without signature
--
* A verify at gpgme-json does not fail if there is a valid pgp message
that does not include a signature. Instead, the answer will be devoid
of signatures. In javascript, the SIG_NO_SIG error should be reported
here, but wasn't.
diff --git a/lang/js/src/gpgmejs.js b/lang/js/src/gpgmejs.js
index c2a6b8b..f49361d 100644
--- a/lang/js/src/gpgmejs.js
+++ b/lang/js/src/gpgmejs.js
@@ -254,7 +254,7 @@ export class GpgME {
}
return new Promise(function(resolve, reject){
msg.post().then(function (message){
- if (!message.info.signatures){
+ if (!message.info || !message.info.signatures){
reject(gpgme_error('SIG_NO_SIGS'));
} else {
let _result = collectSignatures(message.info.signatures);
-----------------------------------------------------------------------
Summary of changes:
lang/js/src/gpgmejs.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
hooks/post-receive
--
GnuPG Made Easy
http://git.gnupg.org
More information about the Gnupg-commits
mailing list