diff options
author | Werner Koch <wk@gnupg.org> | 2020-08-06 15:21:31 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2020-08-06 16:03:56 +0200 |
commit | 8ff00ef0de871ca43076b00df4871c3165ced001 (patch) | |
tree | 6391d5627895be192d07000ddaade76d519de9df /common/sysutils.h | |
parent | kbx: Support v5key for short kid and long kid. (diff) | |
download | gnupg2-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.h | 1 |
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); |