aboutsummaryrefslogtreecommitdiffstats
path: root/agent/gpg-agent.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2004-12-21* preset-passphrase.c (preset_passphrase): Handle --passphrase.Werner Koch1-0/+5
* Makefile.am (gpg_preset_passphrase_LDADD): Reorder libs so that pwquery may use stuff from jnlib. Conditionally add -lwsock2 (gpg_protect_tool_LDADD): Ditto. * preset-passphrase.c (main): Use default_homedir(). (main) [W32]: Initialize sockets. * simple-pwquery.c (agent_open) [W32]: Implement for W32. (readline) [W32]: Use recv instead of read. (writen) [W32]: Use send instead of write. (my_stpcpy): Define a stpcpy replacement so that this file continues to be self-contained. (agent_send_all_options) [W32]: Don't call ttyname. * gnupg-badge-openpgp.eps, gnupg-badge-openpgp.jpg: New * gnupg.texi: Add a logo. * sysnotes.texi: New. * gpgsm.c (main): Use default_homedir(). (main) [W32]: Default to disabled CRL checks. * gpgconf-comp.c (get_config_pathname) [DOSISH]: Detect absolute pathnames with a drive letter.
2004-12-21* gpg-agent.c (main): Use default_homedir().Werner Koch1-8/+1
* protect-tool.c (main): Ditto. * signal.c (got_fatal_signal, got_usr_signal) (got_fatal_signal) [DOSISH]: Don't build. * simple-gettext.c: Include sysutils.h * homedir.c: New. * Makefile.am (libcommon_a_SOURCES): Add it. (EXTRA_DIST): Removed mkerror and mkerrtok. * gpgv.c, g10.c (main): Use default_hoemdir (). * scdaemon.c (main): Use default_homedir(). * gpgsm.c (main): Use default_homedir().
2004-12-20* configure.ac: Add PATHSEP_C and PATHSEP_S. For W32 let allWerner Koch1-69/+112
directories default to c:/gnupg. Require libassuan 0.6.9. * gpg-agent.c (main) [W32]: Now that Mutexes work we can remove the pth_init kludge. (main): Add new options --[no-]use-standard-socket. (check_for_running_agent): Check whether it is running on the standard socket. * sysutils.h [W32]: Define sleep. * util.h: Add prototype for mkdtemp. * call-agent.c (start_agent): Before starting a pipe server start to connect to a server on the standard socket. Use PATHSEP * call-dirmngr.c (start_dirmngr): Use PATHSEP. * import.c: Include unistd.h for dup and close.
2004-12-19* query.c (initialize_module_query):Werner Koch1-0/+4
* call-scd.c (initialize_module_call_scd): New. * w32-pth.c (pth_init): Enable debugging depending on env var. (pth_self): New. (pth_mutex_release, pth_mutex_acquire): Implemented directly using the W32 API.
2004-12-19* maperror.c (map_assuan_err_with_source): Oops, args were swapped.Werner Koch1-0/+6
* w32-pth.c (pth_init): Enable debugging depending on env var.
2004-12-18* configure.ac (AH_BOTTOM): Define EXEEXT_S.Werner Koch1-6/+0
* autogen.sh: Updated --build-w32 feature. * gpg-agent.c (main): Remove special Pth initialize. * w32-pth.c (pth_init): Reverse return values. Use TRUE and FALSE constants. (pth_kill, pth_mutex_acquire, pth_attr_set, pth_join, pth_cancel): Ditto. * scdaemon.c (main) [W32]: Remove special Pth initialize..
2004-12-15A whole bunch of changes to allow building for W32.Werner Koch1-8/+8
2004-12-14Yep. No lost threads anymore.Werner Koch1-1/+1
(_pth_strerror): Renamed to ... (w32_strerror): .. this. And let callers provide a buffer. (spawn_helper_thread): Removed HD arg and hardwire the stack size to 32k. (do_pth_wait): Removed use of ATTR; not needed for the helper threads. (helper_thread): Renamed to .. (launch_thread): .. this. Release handle if not joinable. (struct pth_priv_hd_s): Renamed to ... (struct thread_info_s): .. this. Add member JOINABLE and TH.
2004-12-14More fixes. First successful use; leaks threads, though.Werner Koch1-5/+22
2004-12-13VArious hacks to make it at least build under W32.Werner Koch1-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.
2004-12-02First take on a W32 portWerner Koch1-6/+6
2004-10-22(parse_rereadable_options): Return "not handled"Werner Koch1-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.
2004-09-09(check_for_running_agent): New.Werner Koch1-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.
2004-08-20* gpg-agent.c: New option --max-cache-ttl. Suggested by AlexanderWerner Koch1-2/+7
Belopolsky. * cache.c (housekeeping): Use it here instead of the hardwired default of 1 hour.
2004-07-22* trustlist.c (read_list): Allow colons in the fingerprint.Werner Koch1-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-202004-06-20 Moritz Schulte <[email protected]>Moritz Schulte1-0/+1
* gpg-agent.c: Include <sys/stat.h> (build fix for BSD).
2004-05-11* gpg-agent.c (handle_signal): Reload the trustlist on SIGHUP.Werner Koch1-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.
2004-05-03* gpg-agent.c: Remove help texts for options lile --lc-ctype.Werner Koch1-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.
2004-04-30* gpg-agent.c (parse_rereadable_options): New arg REREAD. AllowWerner Koch1-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.
2004-04-21* call-scd.c (start_scd): Send event-signal option. Always checkWerner Koch1-7/+3
that the scdaemon is still running. * gpg-agent.c (handle_signal): Do not use SIGUSR{1,2} anymore for changing the verbosity.
2004-04-16* gpg-agent.c (main): Tell the logging code taht we are runnignWerner Koch1-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.
2004-04-06* configure.ac: Require libgcrypt 1.1.94.Werner Koch1-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
2004-04-06(main): Use new libgcrypt thread library registerWerner Koch1-11/+16
scheme.
2004-03-232004-03-23 Marcus Brinkmann <[email protected]>Marcus Brinkmann1-3/+7
* gpg-agent.c (main): For now, always print the default config file name for --gpgconf-list.
2004-03-17* gpg-agent.c (main) <gpgconf>: Fixed default value quoting.Werner Koch1-1/+1
* scdaemon.c (main) <gpgconf>: Fixed default value quoting. * gpgsm.c (main) <gpgconf>: Fixed default value quoting.
2004-03-16(parse_rereadable_options): Use the newWerner Koch1-2/+3
DEFAULT_CACHE_TTL macro. (main): Updated --gpgconf-list output.
2004-03-16(parse_rereadable_options): Use the newWerner Koch1-17/+44
DEFAULT_CACHE_TTL macro. (main): Updated --gpgconf-list output.
2004-02-18* protect-tool.c (main): Setup the used character set.Werner Koch1-3/+77
* gpg-agent.c (main): Ditto. * gpg-agent.c (set_debug): New. New option --debug-level. (main): New option --gpgconf-list.
2004-01-29* agent.h (server_control_s): Add connection_fd field.Werner Koch1-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.
2003-12-16(main): Set the prefixes for assuan logging.Werner Koch1-0/+2
2003-08-05This commit was manufactured by cvs2svn to create branchRepo Admin1-0/+1063
'GNUPG-1-9-BRANCH'.
2002-10-19This commit was manufactured by cvs2svn to create branchRepo Admin1-916/+0
'GNUPG-1-9-BRANCH'.
2002-09-26* gpg-agent.c (handle_signal): Flush cache on SIGHUP.Werner Koch1-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.
2002-09-09* gpg-agent.c (create_private_keys_directory)Werner Koch1-1/+73
(create_directories): New. (main): Try to create a home directory.
2002-09-052002-09-04 Neal H. Walfield <[email protected]>Neal Walfield1-1/+7
* gpg-agent.c (main): Use sigaction, not signal.
2002-08-22* query.c (agent_askpin): Provide the default desc text dependingNEWPG-0-9-1Werner Koch1-1/+1
on the pininfo. Do the basic PIN verification only when min_digist is set.
2002-08-21* query.c (agent_askpin): Hack to show the right default prompt.NEWPG-0-9-0Werner Koch1-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.
2002-08-21* divert-scd.c (getpin_cb): Pass a more descritive text to theWerner Koch1-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.
2002-08-16* call-scd.c (learn_status_cb): Handle CERTINFO status.Werner Koch1-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.
2002-08-10Minor changes for gettextNEWPG-0-3-10Werner Koch1-1/+1
2002-08-09Minor fixesWerner Koch1-0/+6
2002-06-27* Makefile.am (pkglib_PROGRAMS): Put protect-tool there.Werner Koch1-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.
2002-06-13Fixed last fix.Werner Koch1-4/+0
2002-06-13* gpgsm.c (main): New option --log-file.Werner Koch1-26/+35
2002-06-12* protect-tool.c: Add command --show-keygripWerner Koch1-1/+1
(show_keygrip): New.
2002-05-23* no-pth.c, Makefile.am: Removed.Werner Koch1-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.
2002-04-27Debug message cleanups.Werner Koch1-1/+1
Fixed passphrase caching.
2002-04-242002-04-24 Marcus Brinkmann <[email protected]>Marcus Brinkmann1-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.
2002-02-28Changes needed to support smartcards. Well, only _support_. There isWerner Koch1-1/+4
no real code yet.
2002-02-06* cache.c (housekeeping): Fixed linking in the remove case.Werner Koch1-3/+8