SESSION - Add command.
authorWerner Koch <wk@gnupg.org>
Fri, 23 May 2014 18:45:00 +0000 (20:45 +0200)
committerWerner Koch <wk@gnupg.org>
Fri, 23 May 2014 18:45:00 +0000 (20:45 +0200)
commitf3c783a923bd689b0d00484008aee72bbf3f4b42
tree6aedc553b855757681bbf0028359eab1940ec1e8
parentaa1c26ad7baaf21b3d470c83dc0dc7413fe35988
SESSION - Add command.

* configure.ac (NEED_LIBGCRYPT_VERSION): Require Libgcrypt.
* src/session.c, src/session.h: New.
* src/Makefile.am (payprocd_SOURCES): Add them.
(LDADD, AM_CFLAGS): Add Libgcrypt.
(t_connection_CFLAGS, t_connection_LDADD): Ditto.
(t_connection_SOURCES): Add session.c
* src/payprocd.c (TIMERTICK_INTERVAL, HOUSEKEEPING_INTERVAL): New.
(main): Init Libgcrypt.
(time_for_housekeeping_p): New.
(housekeeping_thread): New.
(handle_tick): New.
(server_loop): Call handle_tick.
* src/util.h (JNLIB_GCC_HAVE_PUSH_PRAGMA): New.
* src/connection.c (cmd_session): New.
(connection_handler): Add command SESSION.
NEWS
configure.ac
doc/api-ref.org
src/Makefile.am
src/connection.c
src/payprocd.c
src/session.c [new file with mode: 0644]
src/session.h [new file with mode: 0644]
src/util.h