summaryrefslogtreecommitdiffstats
path: root/agent
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2019-01-24 10:02:52 +0100
committerWerner Koch <wk@gnupg.org>2019-01-24 10:02:52 +0100
commit055f8854d3f49b8d06105d20f344f5ac10e4f6a6 (patch)
tree1201e7f05fd4faf50989340590475be395034a7e /agent
parentscd: Support PASSWD --clear for OpenPGP card. (diff)
downloadgnupg2-055f8854d3f49b8d06105d20f344f5ac10e4f6a6.tar.xz
gnupg2-055f8854d3f49b8d06105d20f344f5ac10e4f6a6.zip
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>
Diffstat (limited to 'agent')
-rw-r--r--agent/command.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/agent/command.c b/agent/command.c
index 7fbf1de1c..c395b1e59 100644
--- a/agent/command.c
+++ b/agent/command.c
@@ -2751,7 +2751,7 @@ cmd_put_secret (assuan_context_t ctx, char *line)
* into a string. Instead of resorting to base64 encoding we use a
* special percent escaping which only quoted the Nul and the
* percent character. */
- string = percent_data_escape (value? value : valstr, valuelen);
+ string = percent_data_escape (0, NULL, value? value : valstr, valuelen);
if (!string)
{
err = gpg_error_from_syserror ();