aboutsummaryrefslogtreecommitdiffstats
path: root/common/util.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2018-07-02 18:24:10 +0000
committerWerner Koch <[email protected]>2018-07-02 18:25:30 +0000
commit58baf40af641f8cbf597e508a292e85ae94688f1 (patch)
tree4220db56a47ede8a3f6853706014e1ca2f992209 /common/util.h
parentagent: Fix segv running in --server mode (diff)
downloadgnupg-58baf40af641f8cbf597e508a292e85ae94688f1.tar.gz
gnupg-58baf40af641f8cbf597e508a292e85ae94688f1.zip
common: New function percent_data_escape.
* common/percent.c (percent_data_escape): New. * common/t-percent.c (test_percent_data_escape): New. Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'common/util.h')
-rw-r--r--common/util.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/util.h b/common/util.h
index 123d88079..682415d92 100644
--- a/common/util.h
+++ b/common/util.h
@@ -201,6 +201,7 @@ char *hex2str_alloc (const char *hexstring, size_t *r_count);
/*-- percent.c --*/
char *percent_plus_escape (const char *string);
+char *percent_data_escape (const void *data, size_t datalen);
char *percent_plus_unescape (const char *string, int nulrepl);
char *percent_unescape (const char *string, int nulrepl);