Werner Koch 4b2fa657d1
json: Make native messaging work.
* src/gpgme-json.c (opt_debug): New.
(process_request): Add optional arg nm_mode.  In this mode take the
request from a "message" object.
(native_messaging_repl): Add debug output and call process_request
in NM_MODE.
(main): Add option --debug.  Parse envvar GPGME_JSON_DEBUG as an
alternative way to enable this.  Use a default log file.
--

Note that the default log file is ~/.gnupg/S.gpgme-json.log .
Thus to debug a javascript application you should start

  watchgnupg --time-only --force ~/.gnupg/S.gpgme-json.log

in a separate tty and then use

 GPGME_JSON_DEBUG=1 firefox &

to run firefox.

Signed-off-by: Werner Koch <wk@gnupg.org>
2018-03-28 20:53:21 +02:00
..
2018-03-23 11:26:36 +01:00
2018-03-23 11:26:36 +01:00
2015-08-30 19:04:44 +02:00
2017-12-08 05:59:11 +01:00
2017-12-08 05:59:11 +01:00
2017-03-02 14:47:51 +01:00
2017-12-08 05:59:11 +01:00
2018-03-28 20:53:21 +02:00
2018-03-05 09:40:41 +11:00
2017-08-16 00:59:35 +02:00
2014-10-02 15:57:50 +02:00
2018-03-15 16:23:18 +01:00
2017-12-08 05:59:11 +01:00
2016-09-13 20:53:49 +02:00
2010-11-03 09:56:27 +00:00
2015-03-16 13:40:34 +01:00
2017-03-28 16:21:37 +02:00
2015-12-02 11:28:07 +01:00
2015-12-02 11:28:07 +01:00
2015-12-02 11:28:07 +01:00
2016-09-13 20:53:49 +02:00