aboutsummaryrefslogtreecommitdiffstats
path: root/agent/command-ssh.c (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
* 2004-09-27 Moritz Schulte <[email protected]>Moritz Schulte2004-09-271-919/+1483
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | **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-07 Moritz Schulte <[email protected]>Moritz Schulte2004-08-071-24/+26
| | | | | | | | | | | | | | | | | | | * 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-301-14/+26
| | | | | | * 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-261-68/+122
| | | | | | | | | | | | | | * 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-19 Moritz Schulte <[email protected]>Moritz Schulte2004-07-191-59/+28
| | | | | | | | * 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-191-50/+47
| | | | | * command-ssh.c: Fix handling of iqmp vs. u.
* 2004-07-19 Moritz Schulte <[email protected]>Moritz Schulte2004-07-191-4/+19
| | | | | * command-ssh.c (ssh_identity_register): passphrase must not be freed.
* 2004-07-19 Moritz Schulte <[email protected]>Moritz Schulte2004-07-191-0/+1694
* 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.