gpg: Print a warning if GKR has hijacked gpg-agent.
authorWerner Koch <wk@gnupg.org>
Tue, 15 Apr 2014 14:40:48 +0000 (16:40 +0200)
committerWerner Koch <wk@gnupg.org>
Tue, 22 Apr 2014 10:50:15 +0000 (12:50 +0200)
commitffa39be5ebfc1059a737905ee317c9b6f3d2a77e
treed403f5b42c840e0bed4d17fc6f61b4ac6b2bb6f8
parente184a11f94e2d41cd9266484542631bec23628b5
gpg: Print a warning if GKR has hijacked gpg-agent.

* g10/call-agent.c (check_hijacking): New.
(start_agent): Call it.
(membuf_data_cb, default_inq_cb): Move more to the top.
--

Note that GUIs may use the gpg status line

[GNUPG:] ERROR check_hijacking 33554509

to detect this and print an appropriate warning.
g10/call-agent.c