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:45:55 +0000 (12:45 +0200)
commitb896fccaada0caf1987eb95ac99dd6b4ca609c4b
treef71d6d17194638192c94cae3e8c1ed7079419077
parentefecbb7a3f0c32ea40db3a050c89f288550b05c2
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