summaryrefslogtreecommitdiffstats
path: root/common/sysutils.h
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2020-08-06 15:21:31 +0200
committerWerner Koch <wk@gnupg.org>2020-08-06 16:03:56 +0200
commit8ff00ef0de871ca43076b00df4871c3165ced001 (patch)
tree6391d5627895be192d07000ddaade76d519de9df /common/sysutils.h
parentkbx: Support v5key for short kid and long kid. (diff)
downloadgnupg2-8ff00ef0de871ca43076b00df4871c3165ced001.tar.xz
gnupg2-8ff00ef0de871ca43076b00df4871c3165ced001.zip
common: New helper function gnupg_chuid.
* common/sysutils.c (try_set_envvar): New. (gnupg_chuid): New. Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'common/sysutils.h')
-rw-r--r--common/sysutils.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/sysutils.h b/common/sysutils.h
index c51bf7a9f..daded986f 100644
--- a/common/sysutils.h
+++ b/common/sysutils.h
@@ -73,6 +73,7 @@ char *gnupg_mkdtemp (char *template);
int gnupg_setenv (const char *name, const char *value, int overwrite);
int gnupg_unsetenv (const char *name);
char *gnupg_getcwd (void);
+gpg_error_t gnupg_chuid (const char *user, int silent);
char *gnupg_get_socket_name (int fd);
int gnupg_fd_valid (int fd);