aboutsummaryrefslogtreecommitdiffstats
path: root/agent (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* * 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
|
* * findkey.c (agent_key_from_file): Extra paranoid wipe.Werner Koch2004-02-035-18/+40
| | | | | | | | | | * protect.c (agent_unprotect): Ditto. (merge_lists): Ditto. Add arg RESULTLEN. * pkdecrypt.c (agent_pkdecrypt): Don't show the secret key even in debug mode. * protect.c: Add DSA and Elgamal description.
* * agent.h (server_control_s): Add connection_fd field.Werner Koch2004-01-297-46/+138
| | | | | | | | | | | | | * 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.
* (agent_marktrusted): Check whether the trustlist isWerner Koch2004-01-284-1/+23
| | | | | writable.
* Some minor bug fixes, new test utilities and started support for otherWerner Koch2004-01-273-102/+6
| | | | | smartcard applications.
* * call-scd.c (atfork_cb): New.Werner Koch2004-01-243-6/+34
| | | | | | | (start_scd): Make sure secmem gets cleared. * query.c (atfork_cb): New. (start_pinentry): Make sure secmem gets cleared.
* * findkey.c (agent_key_from_file): Now return an error code soWerner Koch2004-01-166-32/+47
| | | | | | | | | that we have more detailed error messages in the upper layers. This fixes the handling pinentry's cancel button. * pksign.c (agent_pksign): Changed accordingly. * pkdecrypt.c (agent_pkdecrypt): Ditto. * command.c (cmd_passwd): Ditto.
* (main): Set the prefixes for assuan logging.Werner Koch2003-12-162-0/+6
|
* * protect.c (do_encryption): Use gcry_create_nonce instad of theWerner Koch2003-12-162-4/+9
| | | | | obsolete WEAK_RANDOM.
* * sexp-parse.h (snext): Don't use atoi_1 and digitp macros, soWerner Koch2003-12-012-7/+13
| | | | | that this file is useful by other applications too.
* Mainly changes to adjust for the changed KSBA API.Werner Koch2003-11-124-6/+6
|
* * command.c (cmd_get_confirmation): New command.Werner Koch2003-10-312-0/+54
|
* * configure.ac (HAVE_LIBUSB): Added a simple test for libusb.Werner Koch2003-09-021-0/+4
| | | | | | | | * scdaemon.c, scdaemon.h: New option --pcsc-ccid. * ccid-driver.c, ccid-driver.h: New but far from being useful. * Makefile.am: Add above. * apdu.c: Add support for that ccid driver.
* 2003-08-20 Timo Schulz <[email protected]>Timo Schulz2003-08-202-3/+8
| | | | | | * pksign.c (do_encode_md): Allocate enough space. Cast md byte to unsigned char to prevent sign extension.
* Forgot to remove the unsued variable.Timo Schulz2003-08-141-2/+0
|
* 2003-08-14 Timo Schulz <[email protected]>Timo Schulz2003-08-142-47/+27
| | | | | | * pksign.c: do_encode_md: Due to the fact pkcs#1 padding is now in Libgcrypt, use the new interface.
* This commit was manufactured by cvs2svn to create branchRepo Admin2003-08-0517-0/+8655
| | | | 'GNUPG-1-9-BRANCH'.
* This commit was manufactured by cvs2svn to create branchRepo Admin2003-06-053-0/+877
| | | | 'GNUPG-1-9-BRANCH'.
* This commit was manufactured by cvs2svn to create branchRepo Admin2003-01-091-0/+314
| | | | 'GNUPG-1-9-BRANCH'.
* This commit was manufactured by cvs2svn to create branchRepo Admin2002-10-1921-9222/+0
| | | | 'GNUPG-1-9-BRANCH'.
* * gpg-agent.c (handle_signal): Flush cache on SIGHUP.Werner Koch2002-09-265-6/+54
| | | | | | | | * 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-092-2/+80
| | | | | | (create_directories): New. (main): Try to create a home directory.
* 2002-09-04 Neal H. Walfield <[email protected]>Neal Walfield2002-09-052-1/+11
| | | | | * gpg-agent.c (main): Use sigaction, not signal.
* 2002-09-03 Neal H. Walfield <[email protected]>Neal Walfield2002-09-052-4/+29
| | | | | | | * findkey.c: Include <fcntl.h>. (agent_write_private_key): Prefer POSIX compatibity, open and fdopen, over the simplicity of GNU extensions, fopen(file, "x").
* * query.c (agent_askpin): Provide the default desc text dependingNEWPG-0-9-1Werner Koch2002-08-223-5/+14
| | | | | | 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-216-27/+37
| | | | | | | | | | | (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-215-19/+47
| | | | | | | | | | | 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-166-36/+168
| | | | | | | | (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-103-2/+5
|
* Minor fixesWerner Koch2002-08-097-29/+60
|
* typo fix.NEWPG-0-3-9Werner Koch2002-07-011-1/+1
|
* * query.c (start_pinentry): Use GNUPG_DERAULT_PINENTRY.Werner Koch2002-06-293-4/+7
| | | | | * call-scd.c (start_scd): Use GNUPG_DEFAULT_SCDAEMON.
* * protect-tool.c (export_p12_file): New.Werner Koch2002-06-284-15/+492
| | | | | | | (main): New command --p12-export. * minip12.c (create_final,p12_build,compute_tag_length): New. (store_tag_length): New.
* * Makefile.am (pkglib_PROGRAMS): Put protect-tool there.Werner Koch2002-06-2713-41/+769
| | | | | | | | | | | | | | | | * 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.