diff options
author | Marcus Brinkmann <mb@g10code.com> | 2009-11-25 18:58:26 +0100 |
---|---|---|
committer | Marcus Brinkmann <mb@g10code.com> | 2009-11-25 18:58:26 +0100 |
commit | 18bdcc08815a861db626d878205ab6b48f334b8a (patch) | |
tree | 3be7f2983fadb780bda191c645d4f0b886a2092b /sm/server.c | |
parent | Add gpgconf related dummy options default_pubkey_algo. (diff) | |
download | gnupg2-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 '')
-rw-r--r-- | sm/server.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sm/server.c b/sm/server.c index 05e366527..ad39e93f4 100644 --- a/sm/server.c +++ b/sm/server.c @@ -1205,7 +1205,7 @@ void gpgsm_server (certlist_t default_recplist) { int rc; - int filedes[2]; + assuan_fd_t filedes[2]; assuan_context_t ctx; struct server_control_s ctrl; static const char hello[] = ("GNU Privacy Guard's S/M server " @@ -1217,8 +1217,8 @@ gpgsm_server (certlist_t default_recplist) /* 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); rc = assuan_new (&ctx); if (rc) { |