gsti/examples (client.c server.c)

cvs user werner cvs at cvs.gnupg.org
Tue Jun 29 21:19:12 CEST 2004


    Date: Tuesday, June 29, 2004 @ 21:19:12
  Author: werner
    Path: /cvs/wk/gsti/examples

Modified: client.c server.c

Cleaned up the logging a bit.

* fsm.c (state_to_string): New.
(fsm_server_loop, fsm_client_loop): Use it here.
* utils.h (STR,STR2): New macros.
* packet.c (_gsti_packet_read): Do not dump the entire packet.
* logging.c (_gsti_logv): Prepend the lines with "gsti: ";
(_gsti_log_cont): New.
(_gsti_logv): Support GSTI_LOG_CONT.
* gsti.h (gsti_log_level_t): Add GSTI_LOG_CONT.
* utils.c (_gsti_print_string, _gsti_dump_object): Use it here.
(_gsti_print_string): Quote everything except plain ascii.


----------+
 client.c |   41 +++++++++++++++++++++++++++++++++--------
 server.c |   35 ++++++++++++++++++++++++++++-------
 2 files changed, 61 insertions(+), 15 deletions(-)



More information about the Gnupg-commits mailing list