diff options
| author | Marcus Brinkmann <[email protected]> | 2007-07-08 15:46:10 +0000 | 
|---|---|---|
| committer | Marcus Brinkmann <[email protected]> | 2007-07-08 15:46:10 +0000 | 
| commit | 5b8e76a5334259a844ff973938b77d3e92e26f8b (patch) | |
| tree | c18fe477fd6f524214ed90f6127c043f43325abc /assuan/assuan-connect.c | |
| parent | 2007-07-04 Marcus Brinkmann <[email protected]> (diff) | |
| download | gpgme-5b8e76a5334259a844ff973938b77d3e92e26f8b.tar.gz gpgme-5b8e76a5334259a844ff973938b77d3e92e26f8b.zip | |
2007-07-08  Marcus Brinkmann  <[email protected]>
	* configure.ac (GPGSM_DEFAULT) [*-mingw32*]: Initialize it.
	(HAVE_ASSUAN_H): Set to 1 if we have it.
	(funopen): Use AC_REPLACE_FUNCS.
	(USE_DESCRIPTOR_PASSING): Define to 1 if we have it.  Do not
	define it at all if we don't.
	(NETLIBS) [have_w32_system]: Add -lws2_32.
	(DIRSEP_C, DIRSEP_S, EXPSEP_C, EXPSEP_S, PATHSEP_S)
	[HAVE_DOSISH_SYSTEM]: Remove definitions.
	* assuan/assuan.h (_assuan_funopen): Define to _gpgme_funopen.
	* assuan/funopen.c: Move to ../gpgme/funopen.c.
	* assuan/Makefile.am (libassuan_la_SOURCES): Remove funopen.c.
assuan/
2007-07-08  Marcus Brinkmann  <[email protected]>
	* assuan-defs.h (struct assuan_context_s): Have partial peercred
	structure even if HAVE_W32_SYSTEM, and have full peercred
	structure only if HAVE_SO_PEERCRED.
	* assuan-connect.c (assuan_get_peercred) [!HAVE_SO_PEERCRED]: Do
	not try to set PID, UID and GID.
gpgme/
2007-07-08  Marcus Brinkmann  <[email protected]>
	* engine-gpgsm.c [HAVE_W32_SYSTEM]: Enable the bunch of the file.
	* funopen.c (funopen): Rename to _gpgme_funopen.
Diffstat (limited to '')
| -rw-r--r-- | assuan/assuan-connect.c | 6 | 
1 files changed, 5 insertions, 1 deletions
| diff --git a/assuan/assuan-connect.c b/assuan/assuan-connect.c index 15fc51b9..b50b17bd 100644 --- a/assuan/assuan-connect.c +++ b/assuan/assuan-connect.c @@ -59,10 +59,10 @@ assuan_get_pid (assuan_context_t ctx)  } +#ifndef HAVE_W32_SYSTEM  /* Return user credentials. PID, UID and GID amy be gived as NULL if     you are not interested in this value.  For getting the pid of the     peer the assuan_get_pid is usually better suited. */ -#ifndef HAVE_W32_SYSTEM  assuan_error_t  assuan_get_peercred (assuan_context_t ctx, pid_t *pid, uid_t *uid, gid_t *gid)  { @@ -70,12 +70,16 @@ assuan_get_peercred (assuan_context_t ctx, pid_t *pid, uid_t *uid, gid_t *gid)      return _assuan_error (ASSUAN_Invalid_Value);    if (!ctx->peercred.valid)      return _assuan_error (ASSUAN_General_Error); + +#ifdef HAVE_SO_PEERCRED    if (pid)      *pid = ctx->peercred.pid;    if (uid)      *uid = ctx->peercred.uid;    if (gid)      *gid = ctx->peercred.gid; +#endif +    return 0;  }  #endif /* HAVE_W32_SYSTEM */ | 
