summaryrefslogtreecommitdiff
path: root/tests
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 /tests
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 'tests')
-rw-r--r--tests/fdpassing.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/fdpassing.c b/tests/fdpassing.c
index 132a953..81ae149 100644
--- a/tests/fdpassing.c
+++ b/tests/fdpassing.c
@@ -288,9 +288,9 @@ main (int argc, char **argv)
if (err)
log_fatal ("assuan_new failed: %s\n", gpg_strerror (err));
- err = assuan_pipe_connect_ext (ctx, with_exec? "./fdpassing":NULL,
- with_exec ? arglist : &loc,
- no_close_fds, NULL, NULL, 1);
+ err = assuan_pipe_connect (ctx, with_exec? "./fdpassing":NULL,
+ with_exec ? arglist : &loc,
+ no_close_fds, NULL, NULL, 1);
if (err)
{
log_error ("assuan_pipe_connect failed: %s\n", gpg_strerror (err));