diff options
author | Werner Koch <wk@gnupg.org> | 2005-06-03 15:57:24 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2005-06-03 15:57:24 +0200 |
commit | f1dac8851d02a0cb63fc7379ee74692856d0cf39 (patch) | |
tree | 79a731b1da742fe64ab4ee7fbca09f439954c032 /scd/scdaemon.h | |
parent | Add stuff from gnulib. (diff) | |
download | gnupg2-f1dac8851d02a0cb63fc7379ee74692856d0cf39.tar.xz gnupg2-f1dac8851d02a0cb63fc7379ee74692856d0cf39.zip |
* command.c (cmd_updatestartuptty): New.
* gpg-agent.c: New option --write-env-file.
* gpg-agent.c (handle_connections): Make sure that the signals we
are handling are not blocked.Block signals while creating new
threads.
* estream.c: Use HAVE_CONFIG_H and not USE_CONFIG_H!
(es_func_fd_read, es_func_fd_write): Protect against EINTR.
* gpg-agent.texi (Agent UPDATESTARTUPTTY): New.
* scdaemon.c (handle_connections): Make sure that the signals we
are handling are not blocked.Block signals while creating new
threads.
(handle_connections): Include the file descriptor into the name of
the thread.
Diffstat (limited to '')
-rw-r--r-- | scd/scdaemon.h | 23 |
1 files changed, 16 insertions, 7 deletions
diff --git a/scd/scdaemon.h b/scd/scdaemon.h index eaa9abd35..54566b6ad 100644 --- a/scd/scdaemon.h +++ b/scd/scdaemon.h @@ -77,19 +77,28 @@ struct { #define DBG_CARD_IO (opt.debug & DBG_CARD_IO_VALUE) struct server_local_s; -struct card_ctx_s; struct app_ctx_s; -struct server_control_s { +struct server_control_s +{ + /* Local data of the server; used only in command.c. */ struct server_local_s *server_local; - int reader_slot; /* Slot of the open reader or -1 if not open. */ - struct card_ctx_s *card_ctx; + + /* Slot of the open reader or -1 if not open. */ + int reader_slot; + + /* The application context used with this connection or NULL if none + associated. Note that this is shared with the other connections: + All connections accessing the same reader are using the same + application context. */ struct app_ctx_s *app_ctx; - struct { + + /* Helper to store the value we are going to sign */ + struct + { unsigned char *value; int valuelen; - } in_data; /* helper to store the value we are going to sign */ - + } in_data; }; typedef struct server_control_s *CTRL; |