aboutsummaryrefslogtreecommitdiffstats
path: root/agent (follow)
Commit message (Collapse)AuthorAgeFilesLines
* command-ssh.c: Fix saving of RSA keys (meaning of p/q/u was borked);GNUPG-1-9-BRANCH-MOMoritz Schulte2004-12-091-5/+30
| | | | | correctly use secure memory for message requests.
* * use x* functions instead of gcry_* memory management functionMoritz Schulte2004-10-021-78/+78
| | | | | | * some cleanups * some fixed memory leaks
* Cleaned up comment handling.Moritz Schulte2004-10-021-12/+5
|
* Updated from Libestream.Moritz Schulte2004-10-011-0/+2
|
* Use a sane stacksize (had unintenionally commited wrong stack size).Moritz Schulte2004-10-011-1/+1
|
* Use xtrymalloc instead of gcry_malloc.Moritz Schulte2004-10-011-1/+1
|
* Updated from HEAD.Moritz Schulte2004-10-011-1/+1
|
* Use gcry_malloc instead of malloc where appropriate.Moritz Schulte2004-09-281-1/+1
|
* *** empty log message ***Moritz Schulte2004-09-271-1/+1
|
* Added Libestream.Moritz Schulte2004-09-276-1648/+2536
|
* 2004-09-27 Moritz Schulte <[email protected]>Moritz Schulte2004-09-277-1028/+1692
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | **MERGED FROM MAIN BRANCH, RE-PATCHED** * command-ssh.c: New file. * findkey.c (modify_description): New function. (agent_key_from_file): New variables: comment, comment_sexp, comment_length, desc_text_modified; extract comment from S-Exp, pass modified version to unprotect(). * agent.h: Declare: start_command_handler_ssh. (struct opt): New member: ssh_support. * gpg-agent.c: Include <sys/select.h>. New configuration option: ssh-support. (socket_name_ssh): New variabel. (handle_connections): Additional argument: listen_fd_ssh. Accept connections on both sockets, call start_connection_thread_ssh for connections on listen_fd_ssh. (start_connection_thread_ssh): New function. (cleanup_do): New functions, basically old cleanup function. (cleanup): Call cleanup_do for socket_name and socket_name_ssh. (server_socket_create): New function ... (main): ... use it. (main): Generate environment entries for ssh. * query.c (start_pinentry): Accept CTRL being NULL.
* 2004-08-09 Moritz Schulte <[email protected]>Moritz Schulte2004-08-082-1/+11
| | | | | * findkey.c (modify_description): Accept description being NULL.
* 2004-08-07 Moritz Schulte <[email protected]>Moritz Schulte2004-08-073-27/+176
| | | | | | | | | | | | | | | | | | | * command-ssh.c (ssh_key_to_sexp_buffer): New argument: comment; integrate into S-Exp. (ssh_identity_register): New argument: comment; pass to ssh_key_to_sexp_buffer(). (ssh_handler_add_identity): Pass comment to ssh_identity_register(). (ssh_identity_register): Allocate description dynamically, insert comment; new variable: description_length; removed variable: i. (data_sign): Do not calculate key grip for integration in description; removed variable: i. * findkey.c (modify_description): New function. (agent_key_from_file): New variables: comment, comment_sexp, comment_length, desc_text_modified; extract comment from S-Exp, pass modified version to unprotect().
* 2004-07-30 Moritz Schulte <[email protected]>Moritz Schulte2004-07-304-36/+130
| | | | | | * command-ssh.c: Updated Libgpg-stream (more support for secure memory), adjusted code for new API.
* Last commit was incompleteMoritz Schulte2004-07-271-7/+2
|
* 2004-07-27 Moritz Schulte <[email protected]>Moritz Schulte2004-07-265-73/+571
| | | | | | | | | | | | | | * command-ssh.c: Use gcrypt memory allocators, use secure memory where necessary. 2004-07-26 Moritz Schulte <[email protected]> * command-ssh.c (data_sign): Do not forget to unsigned char when constructing human-readable key grip. * Makefile.am (gpg_agent_SOURCES): Removed: buffer.c, buffer.h; updated Libgpg-stream.
* 2004-07-24 Moritz Schulte <[email protected]>Moritz Schulte2004-07-232-0/+45
| | | | | * gpg-stream-config.h: New file (was missing before).
* New file.Moritz Schulte2004-07-191-0/+3
|
* 2004-07-19 Moritz Schulte <[email protected]>Moritz Schulte2004-07-195-59/+73
| | | | | | | | * command-ssh.c: Only log debugging message if asked to do so. * command-ssh.c (gpg_stream_copy): Remove function. Update Libgpg-stream.
* 2004-07-19 Moritz Schulte <[email protected]>Moritz Schulte2004-07-192-50/+49
| | | | | * command-ssh.c: Fix handling of iqmp vs. u.
* 2004-07-19 Moritz Schulte <[email protected]>Moritz Schulte2004-07-192-4/+21
| | | | | * command-ssh.c (ssh_identity_register): passphrase must not be freed.
* 2004-07-19 Moritz Schulte <[email protected]>Moritz Schulte2004-07-1911-137/+3639
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Makefile.am (gpg_agent_SOURCES): Adding: gpg-stream.c, gpg-stream.h, buffer.c, buffer.h, command-ssh.c. * pksign.c (agent_pksign_do): New function, based on code ripped out from agent_pksign. (agent_pksign): Use agent_pksign_do. * query.c (start_pinentry): Accept CTRL being NULL. * agent.h (start_command_handler_ssh): Declare function. (agent_pksign_do): Declare function. (opt): New member: ssh_support. * gpg-agent.c: Include <sys/select.h>. New configuration option: ssh-support. (socket_name_ssh): New variabel. (handle_connections): Additional argument: listen_fd_ssh. Accept connections on both sockets, call start_connection_thread_ssh for connections on listen_fd_ssh. (start_connection_thread_ssh): New function. (cleanup_do): New functions, basically old cleanup function. (cleanup): Call cleanup_do for socket_name and socket_name_ssh. (server_socket_create): New function ... (main): ... use it. (main): Generate environment entries for ssh. * command-ssh.c: New file, implementing the ssh-agent protocol. * gpg-stream.c, gpg-stream.h, buffer.c, buffer.h: Merged Libgpg-stream.
* 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
|
* * 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.