aboutsummaryrefslogtreecommitdiffstats
path: root/src/w32-util.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2021-09-22 08:18:30 +0000
committerWerner Koch <[email protected]>2021-11-25 10:40:59 +0000
commiteb37d6469e722ae5ff187962c216474b5ec476de (patch)
treec9ecc5acf3c81c7eeeee5577bc05edbcb0ca9b80 /src/w32-util.c
parentposix: Use poll instead, when available, removing use of select. (diff)
downloadgpgme-eb37d6469e722ae5ff187962c216474b5ec476de.tar.gz
gpgme-eb37d6469e722ae5ff187962c216474b5ec476de.zip
core: Support dirinfo("socketdir")
* src/dirinfo.c (WANT_SOCKETDIR): New. (dirinfo): Add field socketdir. (parse_output): Support "socketdir". (get_gpgconf_item): Return socketdir. * tests/t-engine-info.c (main): Add socketdir to the output. * src/w32-util.c (_gpgme_create_process_utf8): Fix indentation. -- GnuPG-bug-id: 5613 This is not strictly necessary because we could deduce this from one of the other socket info items but it is more clean to have a dedicated info item. The socketdir item is available for 5 years now (GnuPG commit 8e3fa5a4b205c534de2142e5d071712f957cf06a)
Diffstat (limited to 'src/w32-util.c')
-rw-r--r--src/w32-util.c21
1 files changed, 11 insertions, 10 deletions
diff --git a/src/w32-util.c b/src/w32-util.c
index 2631ae7c..e4757a21 100644
--- a/src/w32-util.c
+++ b/src/w32-util.c
@@ -841,16 +841,17 @@ _gpgme_access (const char *path, int mode)
/* Like CreateProcessA but mapping the arguments to wchar API */
-int _gpgme_create_process_utf8 (const char *application_name_utf8,
- char *command_line_utf8,
- LPSECURITY_ATTRIBUTES lpProcessAttributes,
- LPSECURITY_ATTRIBUTES lpThreadAttributes,
- BOOL bInheritHandles,
- DWORD dwCreationFlags,
- void *lpEnvironment,
- char *working_directory_utf8,
- LPSTARTUPINFOA si,
- LPPROCESS_INFORMATION lpProcessInformation)
+int
+_gpgme_create_process_utf8 (const char *application_name_utf8,
+ char *command_line_utf8,
+ LPSECURITY_ATTRIBUTES lpProcessAttributes,
+ LPSECURITY_ATTRIBUTES lpThreadAttributes,
+ BOOL bInheritHandles,
+ DWORD dwCreationFlags,
+ void *lpEnvironment,
+ char *working_directory_utf8,
+ LPSTARTUPINFOA si,
+ LPPROCESS_INFORMATION lpProcessInformation)
{
BOOL ret;
wchar_t *application_name = utf8_to_wchar0 (application_name_utf8);