agent: Streamline the supervised mode code.
authorWerner Koch <wk@gnupg.org>
Tue, 4 Oct 2016 15:02:49 +0000 (17:02 +0200)
committerWerner Koch <wk@gnupg.org>
Tue, 4 Oct 2016 15:11:43 +0000 (17:11 +0200)
commit1a9c8d78ece2f31fdb1a8e2be049aa71053061fa
treec9c572504f90fe9e57107280e2e243a8fb9ab7a3
parentafcfae7959f39e7d85309b9496e1f1cf9acd5cc2
agent: Streamline the supervised mode code.

* agent/gpg-agent.c (get_socket_path): Rename to ...
(get_socket_name): this.  This is to comply with the GNU coding guide.
Use xtrymalloc instead of malloc.  Do not build for W32.
(map_supervised_sockets): Use strtokenize and set the the socket names
here.
(main): Adjust for above change.  Do not close the socket.

Signed-off-by: Werner Koch <wk@gnupg.org>
agent/gpg-agent.c
doc/gpg-agent.texi