aboutsummaryrefslogtreecommitdiffstats
path: root/agent (follow)
Commit message (Collapse)AuthorAgeFilesLines
* * gpg-agent.c (main): Use default_homedir().Werner Koch2004-12-213-17/+9
| | | | | | | | | | | | | | | | | | | * 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().
* * configure.ac: Add PATHSEP_C and PATHSEP_S. For W32 let allWerner Koch2004-12-203-74/+127
| | | | | | | | | | | | | | | | | | | | 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.
* * call-scd.c (init_membuf, put_membuf, get_membuf): Removed. WeWerner Koch2004-12-207-108/+103
| | | | | | | | | | | | | | | now use the identical implementation from ../common/membuf.c. * pksign.c (agent_pksign): Changed arg OUTFP to OUTBUF and use membuf functions to return the value. * pkdecrypt.c (agent_pkdecrypt): Ditto. * genkey.c (agent_genkey): Ditto. * command.c (cmd_pksign, cmd_pkdecrypt, cmd_genkey): Replaced assuan_get_data_fp() by a the membuf scheme. (clear_outbuf, write_and_clear_outbuf): New. * membuf.c (put_membuf): Wipe out buffer after a failed realloc.
* * query.c (initialize_module_query): New.Werner Koch2004-12-191-3/+3
| | | | | | * call-scd.c (initialize_module_call_scd): New. * gpg-agent.c (main): Call them.
* * query.c (initialize_module_query):Werner Koch2004-12-195-3/+51
| | | | | | | | | | * 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.
* * maperror.c (map_assuan_err_with_source): Oops, args were swapped.Werner Koch2004-12-191-0/+6
| | | | | * w32-pth.c (pth_init): Enable debugging depending on env var.
* * configure.ac (AH_BOTTOM): Define EXEEXT_S.Werner Koch2004-12-182-6/+2
| | | | | | | | | | | | | | * 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..
* Avoid the " map_to_assuan_status called with no error source" diagnostic.Werner Koch2004-12-182-0/+7
|
* 2004-12-17 Moritz Schulte <[email protected]>Moritz Schulte2004-12-172-5/+9
| | | | | * query.c: Undo change from 2004-12-05.
* A whole bunch of changes to allow building for W32.Werner Koch2004-12-154-14/+37
|
* Yep. No lost threads anymore.Werner Koch2004-12-141-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.
* More fixes. First successful use; leaks threads, though.Werner Koch2004-12-141-5/+22
|
* VArious hacks to make it at least build under W32.Werner Koch2004-12-133-10/+50
| | | | | | | | | | * 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-05 Moritz Schulte <[email protected]>Moritz Schulte2004-12-052-5/+9
| | | | | * query.c (start_pinentry): Allow CTRL be NULL.
* First take on a W32 portWerner Koch2004-12-021-6/+6
|
* (parse_rereadable_options): Return "not handled"Werner Koch2004-10-222-5/+15
| | | | | | | | 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.
* Preparing a new release. Updated gettextWerner Koch2004-09-302-2/+6
|
* * minip12.c (parse_bag_encrypted_data): Print error if a badWerner Koch2004-09-293-6/+28
| | | | | | | | | | | | passphrase has been given. * gpg-agent.texi (Invoking GPG-AGENT): Add a few words about the expected pinentry filename. * import.c (parse_p12): Write an error status line for bad passphrases. Add new arg CTRL and changed caller. * export.c (export_p12): Likewise.
* (agent_unprotect): Fixed wiping of CLEARTEXT. ThanksWerner Koch2004-09-282-1/+6
| | | | | to Moritz for pointing this out.
* 2004-09-25 Moritz Schulte <[email protected]>Moritz Schulte2004-09-264-40/+113
| | | | | | | | | | | | | | * agent.h: Declare: agent_pksign_do. (struct server_control_s): New member: raw_value. * pksign.c (do_encode_md): New argument: raw_value; support generation of raw (non-pkcs1) data objects; adjust callers. (agent_pksign_do): New function, based on code ripped out from agent_pksign. (agent_pksign): Use agent_pksign_do. * command.c (start_command_handler): Set ctrl.digest.raw_value.
* (check_for_running_agent): New.Werner Koch2004-09-092-7/+78
| | | | | | | | (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-204-4/+16
| | | | | | | Belopolsky. * cache.c (housekeeping): Use it here instead of the hardwired default of 1 hour.
* (start_pinentry): Use a timeout for the pinentry lock.Werner Koch2004-08-202-3/+27
|
* (get_passphrase): Make sure that the defaultWerner Koch2004-08-182-5/+71
| | | | | | | | prompts passed to gpg-agent are utf-8 encoded. Add new prompt values. (import_p12_file, import_p12_file, export_p12_file): Changed calls to get_passphrase so that better prompts are displayed. (get_new_passphrase): New.
* (get_passphrase): Make sure that the defaultWerner Koch2004-08-182-0/+39
| | | | | prompts passed to gpg-agent are utf-8 encoded.
* * trustlist.c (read_list): Allow colons in the fingerprint.Werner Koch2004-07-223-14/+23
| | | | | | | | | | | | | (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-202-0/+5
| | | | | * gpg-agent.c: Include <sys/stat.h> (build fix for BSD).
* about to release 1.9.9V1-9-9Werner Koch2004-06-081-1/+1
|
* * gpg-agent.c (handle_signal): Reload the trustlist on SIGHUP.Werner Koch2004-05-114-22/+106
| | | | | | | | | | | | | | | | (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-034-12/+34
| | | | | | | | | | (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.
* * protect-tool.c: New option --enable-status-msg.Werner Koch2004-04-302-0/+15
| | | | | | | | | | | | (store_private_key): Print status messages for imported keys. (read_and_unprotect): Ditto for bad passphrase. * import.c (check_and_store): Do not update the stats for hidden imports of issuer certs. (popen_protect_tool): Request statusmessages from the protect-tool. (parse_p12): Detect status messages. Add new arg STATS and update them. (print_imported_summary): Include secret key stats.
* * gpg-agent.c (parse_rereadable_options): New arg REREAD. AllowWerner Koch2004-04-302-7/+29
| | | | | | | | | 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.
* (start_scd): Do not register an event signal if weWerner Koch2004-04-262-1/+9
| | | | | are running as a pipe server.
* * call-scd.c (start_scd): Send event-signal option. Always checkWerner Koch2004-04-213-11/+38
| | | | | | | | 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-162-8/+21
| | | | | | | | | | | 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-062-7/+7
| | | | | | | | | | 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-062-11/+21
| | | | | scheme.
* 2004-03-23 Marcus Brinkmann <[email protected]>Marcus Brinkmann2004-03-232-3/+12
| | | | | | * 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-172-1/+5
| | | | | | * 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-162-17/+50
| | | | | | DEFAULT_CACHE_TTL macro. (main): Updated --gpgconf-list output.
* * command.c (cmd_passwd): Take acount of a key description.Werner Koch2004-02-217-12/+59
| | | | | | | | | * genkey.c (reenter_compare_cb): Do not set the error text. (agent_protect_and_store, agent_genkey): Force a re-enter after a non-matching passphrase. * query.c (agent_askpin): Add new arg INITIAL_ERRTEXT; changed all callers.
* * protect-tool.c: New options --have-cert and --prompt.Werner Koch2004-02-194-143/+653
| | | | | | | | | | | | | | | | | | | | (export_p12_file): Read a certificate from STDIN and pass it to p12_build. Detect a keygrip and construct the filename in that case. Unprotcet a key if needed. Print error messages for key formats we can't handle. (release_passphrase): New. (get_passphrase): New arg PROMPTNO. Return the allocated string. Changed all callers. * minip12.c: Revamped the build part. (p12_build): New args CERT and CERTLEN. * simple-pwquery.c (agent_open): Don't mangle INFOSTR. * export.c (export_p12, popen_protect_tool) (gpgsm_p12_export): New. * gpgsm.c (main): New command --export-secret-key-p12.
* * protect-tool.c (main): Setup the used character set.Werner Koch2004-02-187-579/+105
| | | | | | | | * gpg-agent.c (main): Ditto. * gpg-agent.c (set_debug): New. New option --debug-level. (main): New option --gpgconf-list.
* * command.c (cmd_setkeydesc): New.Werner Koch2004-02-136-51/+129
| | | | | | | | | | | | (register_commands): Add command SETKEYDESC. (cmd_pksign, cmd_pkdecrypt): Use the key description. (reset_notify): Reset the description. * findkey.c (unprotect): Add arg DESC_TEXT. (agent_key_from_file): Ditto. * pksign.c (agent_pksign): Ditto. * pkdecrypt.c (agent_pkdecrypt): Ditto. Made CIPHERTEXT an unsigned char*.
* Removed debugging cruft.Werner Koch2004-02-131-11/+11
|
* (main): New options --no-fail-on-exist, --homedir.Werner Koch2004-02-134-45/+99
| | | | | (store_private_key): Use them here.
* Include cmacros.am for common flags.Werner Koch2004-02-123-45/+81
| | | | | (libexec_PROGRAMS): Put gpg-protect-tool there.
* * minip12.c (parse_bag_encrypted_data): Finished implementation.Werner Koch2004-02-104-38/+199
| | | | | | | (p12_parse): Add callback args. * protect-tool.c (import_p12_cert_cb): New. (import_p12_file): Use it.
* Fixed a build bug (straw letter in sm/import.c) and updated the documentation.Werner Koch2004-02-042-5/+60
|