aboutsummaryrefslogtreecommitdiffstats
path: root/agent/query.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* The big Assuan error code removal.Werner Koch2006-09-061-704/+0
|
* Updated FSF's address.Werner Koch2006-06-201-1/+2
|
* Preparing an interim releaseWerner Koch2005-11-281-29/+167
|
* gcc-4 defaults forced me to edit many many files to get rid of theWerner Koch2005-06-161-4/+5
| | | | | | | char * vs. unsigned char * warnings. The GNU coding standards used to say that these mismatches are okay and better than a bunch of casts. Obviously this has changed now.
* New debugging optionhs, updates to the manual.Werner Koch2005-06-071-3/+27
|
* * call-scd.c (inq_needpin): Skip leading spaces in of PINWerner Koch2005-05-241-7/+11
| | | | | | | | | description. * divert-scd.c (getpin_cb): Enhanced to cope with description flags. * query.c (agent_askpin): Add arg PROMPT_TEXT. Changed all callers.
* * command-ssh.c (get_passphrase): Removed.Werner Koch2005-02-231-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (ssh_identity_register): Partly rewritten. (open_control_file, search_control_file, add_control_entry): New. (ssh_handler_request_identities): Return only files listed in our control file. * findkey.c (unprotect): Check for allocation error. * agent.h (opt): Add fields to record the startup terminal settings. * gpg-agent.c (main): Record them and do not force keep display with --enable-ssh-support. * command-ssh.c (start_command_handler_ssh): Use them here. * gpg-agent.c: Renamed option --ssh-support to --enable-ssh-support. * command.c (cmd_readkey): New. (register_commands): Register new command "READKEY". * command-ssh.c (ssh_request_process): Improved logging. * findkey.c (agent_write_private_key): Always use plain open. Don't depend on an umask for permissions. (agent_key_from_file): Factored file reading code out to .. (read_key_file): .. new function. (agent_public_key_from_file): New.
* * query.c (initialize_module_query):Werner Koch2004-12-191-1/+20
| | | | | | | | | | * 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-17 Moritz Schulte <[email protected]>Moritz Schulte2004-12-171-5/+5
| | | | | * query.c: Undo change from 2004-12-05.
* 2004-12-05 Moritz Schulte <[email protected]>Moritz Schulte2004-12-051-5/+5
| | | | | * query.c (start_pinentry): Allow CTRL be NULL.
* (start_pinentry): Use a timeout for the pinentry lock.Werner Koch2004-08-201-3/+23
|
* * command.c (cmd_passwd): Take acount of a key description.Werner Koch2004-02-211-2/+15
| | | | | | | | | * 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.
* * findkey.c (agent_key_from_file): Extra paranoid wipe.Werner Koch2004-02-031-1/+1
| | | | | | | | | | * 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.
* * call-scd.c (atfork_cb): New.Werner Koch2004-01-241-3/+14
| | | | | | | (start_scd): Make sure secmem gets cleared. * query.c (atfork_cb): New. (start_pinentry): Make sure secmem gets cleared.
* This commit was manufactured by cvs2svn to create branchRepo Admin2003-06-051-0/+473
| | | | 'GNUPG-1-9-BRANCH'.
* This commit was manufactured by cvs2svn to create branchRepo Admin2002-10-191-460/+0
| | | | 'GNUPG-1-9-BRANCH'.
* * gpg-agent.c (handle_signal): Flush cache on SIGHUP.Werner Koch2002-09-261-3/+3
| | | | | | | | * 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.
* * query.c (agent_askpin): Provide the default desc text dependingNEWPG-0-9-1Werner Koch2002-08-221-4/+7
| | | | | | 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-211-14/+22
| | | | | | | | | | | (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.
* * query.c (start_pinentry): Use GNUPG_DERAULT_PINENTRY.Werner Koch2002-06-291-2/+1
| | | | | * call-scd.c (start_scd): Use GNUPG_DEFAULT_SCDAEMON.
* * Makefile.am (pkglib_PROGRAMS): Put protect-tool there.Werner Koch2002-06-271-1/+13
| | | | | | | | | | | | | | | | * 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.
* * agent.h: Add a callback function to the pin_entry_info structure.Werner Koch2002-06-171-23/+33
| | | | | | | | | | | | | | | * query.c (agent_askpin): Use the callback to check for a correct PIN. Removed the start_err_text argument becuase it is not anymore needed; changed callers. * findkey.c (unprotect): Replace our own check loop by a callback. (try_unprotect_cb): New. * genkey.c (reenter_compare_cb): New. (agent_genkey): Use this callback here. Fixed setting of the pi2 variable and a segv in case of an empty PIN. * divert-scd.c (getpin_cb): Removed some unused stuff and explained what we still have to change.
* * no-pth.c, Makefile.am: Removed.Werner Koch2002-05-231-33/+64
| | | | | | | | | | | | * 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.
* Debug message cleanups.Werner Koch2002-04-271-4/+5
| | | | | Fixed passphrase caching.
* 2002-04-25 Marcus Brinkmann <[email protected]>Marcus Brinkmann2002-04-241-3/+11
| | | | | | | | | | * agent.h (agent_get_confirmation): Replace paramter prompt with two parameters ok and cancel. * query.c (agent_get_confirmation): Likewise. Implement this. * trustlist.c (agent_marktrusted): Fix invocation of agent_get_confirmation. * divert-scd.c (ask_for_card): Likewise.
* 2002-04-24 Marcus Brinkmann <[email protected]>Marcus Brinkmann2002-04-241-3/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* sm/Werner Koch2002-03-061-0/+3
| | | | | | | | | | | | | | | | | * gpgsm.c: New command --learn-card * call-agent.c (learn_cb,gpgsm_agent_learn): New. * gpgsm.c (main): Print error messages for non-implemented commands. agent/ * learncard.c: New. * divert-scd.c (ask_for_card): The serial number is binary so convert it to hex here. * findkey.c (agent_write_private_key): New. * genkey.c (store_key): And use it here. scd/ * pkdecrypt.c (agent_pkdecrypt): Changed the way the diversion is done. * divert-scd.c (divert_pkdecrypt): Changed interface and implemented it.
* Changes needed to support smartcards. Well, only _support_. There isWerner Koch2002-02-281-12/+12
| | | | | no real code yet.
* * command.c (cmd_marktrusted): Implemented.Werner Koch2002-02-181-0/+36
| | | | | | | | * trustlist.c (agent_marktrusted): New. (open_list): Add APPEND arg. * query.c (agent_get_confirmation): New.
* * genkey.c (store_key): Protect the key.Werner Koch2002-01-311-4/+10
| | | | | | | (agent_genkey): Ask for the passphrase. * findkey.c (unprotect): Actually unprotect the key. * query.c (agent_askpin): Add an optional start_err_text.
* * command.c (cmd_get_passphrase): Remove the plus signs.Werner Koch2002-01-201-6/+5
| | | | | | * query.c (start_pinentry): Send no-grab option to pinentry * gpg-agent.c (main): Move variable grab as no_grab to agent.h.
* * gpg-agent.c: Removed unused cruft and implement the socketWerner Koch2002-01-191-0/+1
| | | | | | | | | based server. (my_strusage): Take bug report address from configure.ac. * command.c (start_command_handler): Add an argument to start as regular server. (start_command_handler): Enable Assuan logging.
* * genkey.c: Store the secret part and return the public part.Werner Koch2002-01-101-0/+76
|
* assuan/Marcus Brinkmann2001-12-191-1/+1
| | | | | | | | | | | | | | | | | | | 2001-12-14 Marcus Brinkmann <[email protected]> * assuan-buffer.c (_assuan_read_line): New variable ATTICLEN, use it to save the length of the attic line. Rediddle the code a bit to make it more clear what happens. agent/ 2001-12-19 Marcus Brinkmann <[email protected]> * query.c (start_pinentry): Add new argument to assuan_pipe_connect. sm/ 2001-12-19 Marcus Brinkmann <[email protected]> * call-agent.c (start_agent): Add new argument to assuan_pipe_connect.
* * gpg-agent.c (main): New option --batch. New option --debug-waitWerner Koch2001-12-141-1/+4
| | | | | | n, so that it is possible to attach gdb when used in server mode. * query.c (agent_askpin): Don't ask in batch mode.
* assuan/Marcus Brinkmann2001-12-131-3/+1
| | | | | | | | | | | | | | | | | | | | | 2001-12-14 Marcus Brinkmann <[email protected]> * assuan-defs.h (LINELENGTH): Define as ASSUAN_LINELENGTH. assuan.h: Define ASSUAN_LINELENGTH. agent/ 2001-12-14 Marcus Brinkmann <[email protected]> * query.c (LINELENGTH): Removed. (agent_askpin): Use ASSUAN_LINELENGTH, not LINELENGTH. sm/ 2001-12-14 Marcus Brinkmann <[email protected]> * call-agent.c (LINELENGTH): Removed. (gpgsm_agent_pksign): Use ASSUAN_LINELENGTH, not LINELENGTH. (gpgsm_agent_pkdecrypt): Likewise.
* The Agent does now call the pin entry program; however because we haveWerner Koch2001-12-101-0/+219
not yet implemeted secret key protection, its purpose is somewhat limited. Well, the PIN entry modules can now be tested.