common: Extend function percent_data_escape.
authorWerner Koch <wk@gnupg.org>
Thu, 24 Jan 2019 09:02:52 +0000 (10:02 +0100)
committerWerner Koch <wk@gnupg.org>
Thu, 24 Jan 2019 09:02:52 +0000 (10:02 +0100)
commit055f8854d3f49b8d06105d20f344f5ac10e4f6a6
tree1201e7f05fd4faf50989340590475be395034a7e
parentfec75a3868da72196f76aca95c7ab07debb7dc04
common: Extend function percent_data_escape.

* common/percent.c (percent_data_escape): Add new args prefix and
plus_escape.
* agent/command.c (cmd_put_secret): Adjust for changed function

* common/t-percent.c (test_percent_data_escape): Extend test for the
prefix.
(test_percent_data_escape_plus): new test for the plus escaping.

Signed-off-by: Werner Koch <wk@gnupg.org>
agent/command.c
common/percent.c
common/t-percent.c
common/util.h