summaryrefslogtreecommitdiff
path: root/src/assuan-connect.c
diff options
context:
space:
mode:
authorMarcus Brinkmann <mb@g10code.com>2009-11-05 12:00:35 +0000
committerMarcus Brinkmann <mb@g10code.com>2009-11-05 12:00:35 +0000
commit420da928a39d1e296fb74c0ba3a023a889a082bf (patch)
treee5f3eaba544dbef4a4d3a9e4b628156975f97ea5 /src/assuan-connect.c
parent66f0ccbe80999c6112a98e2239e3f1f72f3f0532 (diff)
downloadlibassuan-420da928a39d1e296fb74c0ba3a023a889a082bf.tar.gz
2009-11-05 Marcus Brinkmann <marcus@g10code.de>
* tests/fdpassing.c (main): Call assuan_pipe_connect instead of assuan_pipe_connect_ext. doc/ 2009-11-05 Marcus Brinkmann <marcus@g10code.de> * assuan.texi (Client code): Document ASSUAN_PIPE_CONNECT_FDPASSING and ASSUAN_PIPE_CONNECT_DETACHED. (Server code): Document ASSUAN_SOCKET_SERVER_FDPASSING and ASSUAN_SOCKET_SERVER_ACCEPTED. (Utilities): Update documentation of assuan_get_peercred. src/ 2009-11-05 Marcus Brinkmann <marcus@g10code.de> * assuan.h (struct _assuan_peercred, assuan_peercred_t): New. (assuan_get_peercred): Define on all systems, return assuan_peercred_t. * assuan-defs.h (struct assuan_context_s): Move valid flag out of peercred struct, use struct _assuan_peercred. * libassuan.def: Add assuan_get_peercred. * assuan-connect.c (assuan_get_peercred): Moved to ... * context.c (assuan_get_peercred): ... here. Reimplement. * assuan-socket-server.c (accept_connection_bottom): Adjust access to peercred in context. * assuan.h (ASSUAN_PIPE_CONNECT_FDPASSING) (ASSUAN_PIPE_CONNECT_DETACHED, ASSUAN_SOCKET_SERVER_FDPASSING) (ASSUAN_SOCKET_SERVER_ACCEPTED, ASSUAN_SOCKET_CONNECT_FDPASSING): New. (assuan_pipe_connect_ext): Renamed to ... (assuan_pipe_connect): ... this, overwriting old prototype. (assuan_socket_connect_ext): Renamed to ... (assuan_socket_connect): ... this, overwriting old prototype. (assuan_init_socket_server_ext): Renamed to ... (assuan_init_socket_server): ... this, overwriting old prototype. * assuan-pipe-connect.c: Likewise for functions. * assuan-socket-connect.c: Likewise. * assuan-socket-server.c: Likewise. * libassuan.def (assuan_init_socket_server_ext) (assuan_pipe_connect_ext, assuan_socket_connect_ext): Removed. * libassuan.vers: Likewise.
Diffstat (limited to 'src/assuan-connect.c')
-rw-r--r--src/assuan-connect.c26
1 files changed, 0 insertions, 26 deletions
diff --git a/src/assuan-connect.c b/src/assuan-connect.c
index f5540a1..44c92d3 100644
--- a/src/assuan-connect.c
+++ b/src/assuan-connect.c
@@ -61,29 +61,3 @@ assuan_get_pid (assuan_context_t ctx)
{
return (ctx && ctx->pid) ? ctx->pid : -1;
}
-
-
-#ifndef HAVE_W32_SYSTEM
-/* Return user credentials. PID, UID and GID may be given as NULL if
- you are not interested in a value. For getting the pid of the
- peer the assuan_get_pid is usually better suited. */
-gpg_error_t
-assuan_get_peercred (assuan_context_t ctx, pid_t *pid, uid_t *uid, gid_t *gid)
-{
- if (!ctx)
- return _assuan_error (ctx, GPG_ERR_ASS_INV_VALUE);
- if (!ctx->peercred.valid)
- return _assuan_error (ctx, GPG_ERR_ASS_GENERAL);
-
-#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 */