summaryrefslogtreecommitdiffstats
path: root/g13/server.c
diff options
context:
space:
mode:
authorMarcus Brinkmann <mb@g10code.com>2009-11-25 18:58:26 +0100
committerMarcus Brinkmann <mb@g10code.com>2009-11-25 18:58:26 +0100
commit18bdcc08815a861db626d878205ab6b48f334b8a (patch)
tree3be7f2983fadb780bda191c645d4f0b886a2092b /g13/server.c
parentAdd gpgconf related dummy options default_pubkey_algo. (diff)
downloadgnupg2-18bdcc08815a861db626d878205ab6b48f334b8a.tar.xz
gnupg2-18bdcc08815a861db626d878205ab6b48f334b8a.zip
agent/
2009-11-25 Marcus Brinkmann <marcus@g10code.de> * command.c (start_command_handler): Use assuan_fd_t and assuan_fdopen on fds. scd/ 2009-11-25 Marcus Brinkmann <marcus@g10code.de> * command.c (scd_command_handler): Use assuan_fd_t and assuan_fdopen on fds. sm/ 2009-11-25 Marcus Brinkmann <marcus@g10code.de> * server.c (gpgsm_server): Use assuan_fd_t and assuan_fdopen on fds. g10/ 2009-11-25 Marcus Brinkmann <marcus@g10code.de> * server.c (gpg_server): Use assuan_fd_t and assuan_fdopen on fds.
Diffstat (limited to 'g13/server.c')
-rw-r--r--g13/server.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/g13/server.c b/g13/server.c
index f20d62026..76bfdf486 100644
--- a/g13/server.c
+++ b/g13/server.c
@@ -574,7 +574,7 @@ gpg_error_t
g13_server (ctrl_t ctrl)
{
gpg_error_t err;
- int filedes[2];
+ assuan_fd_t filedes[2];
assuan_context_t ctx = NULL;
static const char hello[] = ("GNU Privacy Guard's G13 server "
PACKAGE_VERSION " ready");
@@ -582,8 +582,8 @@ g13_server (ctrl_t ctrl)
/* We use a pipe based server so that we can work from scripts.
assuan_init_pipe_server will automagically detect when we are
called with a socketpair and ignore FIELDES in this case. */
- filedes[0] = 0;
- filedes[1] = 1;
+ filedes[0] = assuan_fdopen (0);
+ filedes[1] = assuan_fdopen (1);
err = assuan_new (&ctx);
if (err)
{