aboutsummaryrefslogtreecommitdiffstats
path: root/agent/gpg-agent.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* VArious hacks to make it at least build under W32.Werner Koch2004-12-131-9/+39
| | | | | | | | | | * stringhelp.c (w32_strerror) [W32]: New. * w32-pth.c, w32-pth.h: Added real code written by Timo Schulz. Not finished, though. * gpgconf-comp.c <ignore-ocsp-service-url>: Fixed typo.
* First take on a W32 portWerner Koch2004-12-021-6/+6
|
* (parse_rereadable_options): Return "not handled"Werner Koch2004-10-221-5/+7
| | | | | | | | when the log file has not beend hadled. This is will let the main option processing continue. Fixed a bug introduced on 2004-09-4 resulting in logging to stderr until a HUP has been given. (main): Don't close the listen FD.
* (check_for_running_agent): New.Werner Koch2004-09-091-7/+70
| | | | | | | | (main): The default action is now to check for an already running agent. (parse_rereadable_options): Set logfile only on reread. (main): Do not print the "is development version" note.
* * gpg-agent.c: New option --max-cache-ttl. Suggested by AlexanderWerner Koch2004-08-201-2/+7
| | | | | | | Belopolsky. * cache.c (housekeeping): Use it here instead of the hardwired default of 1 hour.
* * trustlist.c (read_list): Allow colons in the fingerprint.Werner Koch2004-07-221-1/+1
| | | | | | | | | | | | | (headerblurb): Rephrased. * gpg-agent.c (handle_connections): Increase the stack size ot 256k. * de.po: Updated. * scdaemon.c (main): Bumbed thread stack size up to 512k. * keylist.c (list_cert_raw): Print the keygrip.
* 2004-06-20 Moritz Schulte <[email protected]>Moritz Schulte2004-06-201-0/+1
| | | | | * gpg-agent.c: Include <sys/stat.h> (build fix for BSD).
* * gpg-agent.c (handle_signal): Reload the trustlist on SIGHUP.Werner Koch2004-05-111-0/+7
| | | | | | | | | | | | | | | | (start_connection_thread): Hack to simulate a ticker. * trustlist.c (agent_trustlist_housekeeping) (agent_reload_trustlist): New. Protected all global functions here with a simple counter which is sufficient for Pth. * fingerprint.c (gpgsm_get_key_algo_info): New. * sign.c (gpgsm_sign): Don't assume RSA in the status line. * keylist.c (list_cert_colon): Really print the algorithm and key length. (list_cert_raw, list_cert_std): Ditto. (list_cert_colon): Reorganized to be able to tell whether a root certificate is trusted.
* * gpg-agent.c: Remove help texts for options lile --lc-ctype.Werner Koch2004-05-031-11/+22
| | | | | | | | | | (main): New option --allow-mark-trusted. * trustlist.c (agent_marktrusted): Use it here. * gpg-agent.texi (Agent Options): Add --allow-mark-trusted. * gpgconf-comp.c: Add --allow-mark-trusted for the gpg-agent.
* * gpg-agent.c (parse_rereadable_options): New arg REREAD. AllowWerner Koch2004-04-301-7/+23
| | | | | | | | | changing oLogFile. (current_logfile): New. * logging.c (log_set_file): Make sure the log stream will be closed even if the stderr fileno will be assigned to a new socket.
* * call-scd.c (start_scd): Send event-signal option. Always checkWerner Koch2004-04-211-7/+3
| | | | | | | | that the scdaemon is still running. * gpg-agent.c (handle_signal): Do not use SIGUSR{1,2} anymore for changing the verbosity.
* * gpg-agent.c (main): Tell the logging code taht we are runnignWerner Koch2004-04-161-8/+16
| | | | | | | | | | | detached. * logging.h (JNLIB_LOG_WITH_PREFIX): Add constants for the flag values. * logging.c (log_set_prefix): New flag DETACHED. (fun_writer): Take care of this flag. (log_test_fd): New.
* * configure.ac: Require libgcrypt 1.1.94.Werner Koch2004-04-061-4/+4
| | | | | | | | | | Introduce PACKAGE_GT and set it to gnupg2. * gpg-agent.c (main): Use new libgcrypt thread library register scheme. * Makevars (DOMAIN): Init from PACKAGE_GT
* (main): Use new libgcrypt thread library registerWerner Koch2004-04-061-11/+16
| | | | | scheme.
* 2004-03-23 Marcus Brinkmann <[email protected]>Marcus Brinkmann2004-03-231-3/+7
| | | | | | * gpg-agent.c (main): For now, always print the default config file name for --gpgconf-list.
* * gpg-agent.c (main) <gpgconf>: Fixed default value quoting.Werner Koch2004-03-171-1/+1
| | | | | | * scdaemon.c (main) <gpgconf>: Fixed default value quoting. * gpgsm.c (main) <gpgconf>: Fixed default value quoting.
* (parse_rereadable_options): Use the newWerner Koch2004-03-161-2/+3
| | | | | | DEFAULT_CACHE_TTL macro. (main): Updated --gpgconf-list output.
* (parse_rereadable_options): Use the newWerner Koch2004-03-161-17/+44
| | | | | | DEFAULT_CACHE_TTL macro. (main): Updated --gpgconf-list output.
* * protect-tool.c (main): Setup the used character set.Werner Koch2004-02-181-3/+77
| | | | | | | | * gpg-agent.c (main): Ditto. * gpg-agent.c (set_debug): New. New option --debug-level. (main): New option --gpgconf-list.
* * agent.h (server_control_s): Add connection_fd field.Werner Koch2004-01-291-0/+2
| | | | | | | | | | | | | * command.c (start_command_handler): Init it here. * gpg-agent.c (agent_init_default_ctrl): and here. * call-scd.c: Add the CTRL arg to all functions calling start_scd and pass it to start_scd. Changed all callers (start_scd): Keep track of the current active connection. (agent_reset_scd): New. * command.c (start_command_handler): Call it here. * learncard.c (agent_handle_learn): Add arg CTRL; changed caller. (send_cert_back): Ditto.
* (main): Set the prefixes for assuan logging.Werner Koch2003-12-161-0/+2
|
* This commit was manufactured by cvs2svn to create branchRepo Admin2003-08-051-0/+1063
| | | | 'GNUPG-1-9-BRANCH'.
* This commit was manufactured by cvs2svn to create branchRepo Admin2002-10-191-916/+0
| | | | 'GNUPG-1-9-BRANCH'.
* * gpg-agent.c (handle_signal): Flush cache on SIGHUP.Werner Koch2002-09-261-2/+10
| | | | | | | | * cache.c (agent_flush_cache): New. * gpg-agent.c, agent.h: Add --keep-display and --keep-tty. * query.c (start_pinentry): Implement them. The option passing needs more thoughts.
* * gpg-agent.c (create_private_keys_directory)Werner Koch2002-09-091-1/+73
| | | | | | (create_directories): New. (main): Try to create a home directory.
* 2002-09-04 Neal H. Walfield <[email protected]>Neal Walfield2002-09-051-1/+7
| | | | | * gpg-agent.c (main): Use sigaction, not signal.
* * query.c (agent_askpin): Provide the default desc text dependingNEWPG-0-9-1Werner Koch2002-08-221-1/+1
| | | | | | on the pininfo. Do the basic PIN verification only when min_digist is set.
* * query.c (agent_askpin): Hack to show the right default prompt.NEWPG-0-9-0Werner Koch2002-08-211-3/+3
| | | | | | | | | | | (agent_get_passphrase): Ditto. * Makefile.am: Renamed the binary protect-tool to gpg-protect-tool. * protect-tool.c: Removed the note about internal use only. * gpg-agent.c (main): New option --daemon so that the program is not accidently started in the background.
* * divert-scd.c (getpin_cb): Pass a more descritive text to theWerner Koch2002-08-211-5/+14
| | | | | | | | | | | pinentry. * Makefile.am: Renamed the binary protect-tool to gpg-protect-tool. * protect-tool.c: Removed the note about internal use only. * gpg-agent.c (main): New option --daemon so that the program is not accidently started in the background.
* * call-scd.c (learn_status_cb): Handle CERTINFO status.Werner Koch2002-08-161-4/+1
| | | | | | | | (agent_card_learn): Add args for certinfo cb. * learncard.c (release_certinfo,certinfo_cb): New. (send_cert_back): New. With factored out code from .. (agent_handle_learn): here. Return certinfo stuff.
* Minor changes for gettextNEWPG-0-3-10Werner Koch2002-08-101-1/+1
|
* Minor fixesWerner Koch2002-08-091-0/+6
|
* * Makefile.am (pkglib_PROGRAMS): Put protect-tool there.Werner Koch2002-06-271-9/+6
| | | | | | | | | | | | | | | | * findkey.c (agent_write_private_key,agent_key_from_file) (agent_key_available): Use GNUPG_PRIVATE_KEYS_DIR constant. * gpg-agent.c (main): Use GNUPG_DEFAULT_HOMEDIR constant. * protect-tool.c (store_private_key): New. (import_p12_file): Store the new file if requested. (main): New options --force and --store. * gpg-agent.c (main): Set a global flag when runing detached. * query.c (start_pinentry): Pass the list of FD to keep in the child when not running detached. * call-scd.c (start_scd): Ditto.
* Fixed last fix.Werner Koch2002-06-131-4/+0
|
* * gpgsm.c (main): New option --log-file.Werner Koch2002-06-131-26/+35
|
* * protect-tool.c: Add command --show-keygripWerner Koch2002-06-121-1/+1
| | | | | (show_keygrip): New.
* * no-pth.c, Makefile.am: Removed.Werner Koch2002-05-231-14/+181
| | | | | | | | | | | | * call-scd.c: Seirialized all scdaeom access when using Pth. * cache.c: Made the cache Pth-thread-safe. (agent_unlock_cache_entry): New. * findkey.c (unprotect): Unlock the returned cache value. * command.c (cmd_get_passphrase): Ditto. * gpg-agent.c (main): Register pth_read/write with Assuan.
* Debug message cleanups.Werner Koch2002-04-271-1/+1
| | | | | Fixed passphrase caching.
* 2002-04-24 Marcus Brinkmann <[email protected]>Marcus Brinkmann2002-04-241-1/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * configure.ac: Check for locale.h. agent/ 2002-04-24 Marcus Brinkmann <[email protected]> * agent.h (struct opt): Add members display, ttyname, ttytype, lc_ctype, and lc_messages. * gpg-agent.c (enum cmd_and_opt_values): Add oDisplay, oTTYname, oTTYtype, oLCctype, and LCmessages. (main): Handle these options. * command.c (option_handler): New function. (register_commands): Register option handler. * query.c (start_pinentry): Pass the various display and tty options to the pinentry. sm/ 2002-04-24 Marcus Brinkmann <[email protected]> * gpgsm.h (struct opt): New members display, ttyname, ttytype, lc_ctype, lc_messages. * gpgsm.c (enum cmd_and_opt_values): New members oDisplay, oTTYname, oTTYtype, oLCctype, oLCmessages. (opts): New entries for these options. (main): Handle these new options. * call-agent.c (start_agent): Set the various display and tty parameter after resetting.
* Changes needed to support smartcards. Well, only _support_. There isWerner Koch2002-02-281-1/+4
| | | | | no real code yet.
* * cache.c (housekeeping): Fixed linking in the remove case.Werner Koch2002-02-061-3/+8
|
* Updated copyright noticesWerner Koch2002-01-261-3/+3
|
* * command.c (cmd_get_passphrase): Remove the plus signs.Werner Koch2002-01-201-3/+1
| | | | | | * query.c (start_pinentry): Send no-grab option to pinentry * gpg-agent.c (main): Move variable grab as no_grab to agent.h.
* * gpg-agent.c (main): Disable core dumps.Werner Koch2002-01-191-1/+3
| | | | | | | | | | | | | | * cache.c: New. * command.c (cmd_get_passphrase): Use the cache. (cmd_clear_passphrase): Ditto. * gpg-agent.c: Removed unused cruft and implement the socket based server. (my_strusage): Take bug report address from configure.ac. * command.c (start_command_handler): Add an argument to start as regular server. (start_command_handler): Enable Assuan logging.
* * gpg-agent.c: Removed unused cruft and implement the socketWerner Koch2002-01-191-638/+183
| | | | | | | | | based server. (my_strusage): Take bug report address from configure.ac. * command.c (start_command_handler): Add an argument to start as regular server. (start_command_handler): Enable Assuan logging.
* * gpg-agent.c (main): New option --batch. New option --debug-waitWerner Koch2001-12-141-0/+14
| | | | | | n, so that it is possible to attach gdb when used in server mode. * query.c (agent_askpin): Don't ask in batch mode.
* The Agent does now call the pin entry program; however because we haveWerner Koch2001-12-101-1/+9
| | | | | | not yet implemeted secret key protection, its purpose is somewhat limited. Well, the PIN entry modules can now be tested.
* Added decryption, some code cleanupWerner Koch2001-12-051-5/+47
|
* As promised a agent which already does some things. Not very usefulWerner Koch2001-11-251-8/+26
| | | | | yet but may be of help for using it in ther contexts.
* Friedman is setting up his deskWerner Koch2001-11-241-37/+51
|