aboutsummaryrefslogtreecommitdiffstats
path: root/common/stringhelp.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2021-09-17 15:33:21 +0000
committerWerner Koch <[email protected]>2021-09-17 15:33:21 +0000
commit9c272dc245456d5403e3bd50553b4fdccb370e27 (patch)
tree73ea80e19e91dddddce2c5c98720cfb87d9cc38b /common/stringhelp.h
parentdoc: Clarify some gpg keyring options (diff)
downloadgnupg-9c272dc245456d5403e3bd50553b4fdccb370e27.tar.gz
gnupg-9c272dc245456d5403e3bd50553b4fdccb370e27.zip
common: New function substitute_envvars.
* common/stringhelp.c (substitute_envvars): New. Based on code in gpg-connect-agent. * common/t-stringhelp.c: Include sysutils.h. (test_substitute_envvars): New. -- GnuPG-bug-id: 5599
Diffstat (limited to 'common/stringhelp.h')
-rw-r--r--common/stringhelp.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/common/stringhelp.h b/common/stringhelp.h
index 598f698c8..cd874af2e 100644
--- a/common/stringhelp.h
+++ b/common/stringhelp.h
@@ -166,6 +166,9 @@ int compare_version_strings (const char *my_version, const char *req_version);
/* Format a string so that it fits within about TARGET_COLS columns. */
char *format_text (const char *text, int target_cols, int max_cols);
+/* Substitute environmen variabales in STRING. */
+char *substitute_envvars (const char *string);
+
/*-- mapstrings.c --*/
const char *map_static_macro_string (const char *string);