Add a lot of more stuff.
authorWerner Koch <wk@gnupg.org>
Wed, 2 Apr 2014 19:50:27 +0000 (21:50 +0200)
committerWerner Koch <wk@gnupg.org>
Wed, 2 Apr 2014 19:50:27 +0000 (21:50 +0200)
commit1eb7b85218e1a1fa9932b5a3ca8560803837d2e5
tree2dfc1cde3c5ddcc43f89e6e6643b8c879ff3e0da
parent188118eb61031a608fa38aec05e39a09ebd26571
Add a lot of more stuff.

* src/cred.c, src/cred.h: New.  Based on code from libassuan.
* src/t-connection.c: New.
* src/util.c (trim_spaces): New.  From GnuPG.
(keyvalue_put, keyvalue_putf): Add sanity check.
* src/util.h (spacep, digitp, hexdigitp): New.
(ascii_isspace): New.
* src/stripe.c (stripe_create_card_token): Replace test key by option
(stripe_charge_card): New.
* src/payprocd.c: Add option parsing.  Beautify disagnositcs for new
connections.  Allow setting of a stripe key.
(already_running_p): Implement.
(create_socket): Move log file setting to ...
(launch_server): here.
* src/connection.c (set_error): New.
(struct conn_s): Add field IDNO.
(currency_table): New.
(new_connection_obj): Set IDNO
(fd_from_connection_obj): New.
(id_from_connection_obj): New.
(capitalize_name): Add special case for brackets.
(valid_currency_p): New.
(convert_amount): New.
(cmd_cardtoken): Add plausibility checks.
(cmd_chargecard): New.
(cmd_getinfo): New.
(cmd_ping): New.
(connection_handler): Add new commands.  Call es_fflush.
15 files changed:
.gitignore
configure.ac
src/Makefile.am
src/connection.c
src/connection.h
src/cred.c [new file with mode: 0644]
src/cred.h [new file with mode: 0644]
src/estream.c
src/payprocd.c
src/payprocd.h
src/stripe.c
src/stripe.h
src/t-connection.c [new file with mode: 0644]
src/util.c
src/util.h