mirror of
git://git.gnupg.org/gnupg.git
synced 2025-03-11 22:52:47 +01:00
common/
2010-06-10 Marcus Brinkmann <marcus@g10code.de> * estream.c (_es_get_std_stream): Fix cut&paste bug. sm/ 2010-06-10 Marcus Brinkmann <marcus@g10code.de> * server.c (SERVER_STDIN, SERVER_STDOUT): New macros. (gpgsm_server): Use them with assuan_fdopen.
This commit is contained in:
parent
63d18c2e53
commit
ab3d60c8d2
11
sm/server.c
11
sm/server.c
@ -1249,8 +1249,15 @@ gpgsm_server (certlist_t default_recplist)
|
|||||||
/* We use a pipe based server so that we can work from scripts.
|
/* We use a pipe based server so that we can work from scripts.
|
||||||
assuan_init_pipe_server will automagically detect when we are
|
assuan_init_pipe_server will automagically detect when we are
|
||||||
called with a socketpair and ignore FILEDES in this case. */
|
called with a socketpair and ignore FILEDES in this case. */
|
||||||
filedes[0] = assuan_fdopen (0);
|
#ifdef HAVE_W32CE_SYSTEM
|
||||||
filedes[1] = assuan_fdopen (1);
|
#define SERVER_STDIN es_fileno(es_stdin)
|
||||||
|
#define SERVER_STDOUT es_fileno(es_stdout)
|
||||||
|
#else
|
||||||
|
#define SERVER_STDIN 0
|
||||||
|
#define SERVER_STDOUT 1
|
||||||
|
#endif
|
||||||
|
filedes[0] = assuan_fdopen (SERVER_STDIN);
|
||||||
|
filedes[1] = assuan_fdopen (SERVER_STDOUT);
|
||||||
rc = assuan_new (&ctx);
|
rc = assuan_new (&ctx);
|
||||||
if (rc)
|
if (rc)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user