aboutsummaryrefslogtreecommitdiffstats
path: root/agent/call-pinentry.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2010-09-01Use passphrase caching for import and genkey.Werner Koch1-0/+6
2010-08-12Fix dirmngr problems on CE.Werner Koch1-0/+7
Add new dirmngr commands. Minor other fixes.
2010-04-14Whole lot of changes to support CE.Werner Koch1-3/+3
2010-02-26Some minor changes and typo fixes.Werner Koch1-5/+10
Started to implement a TCP option in gpg-connect-agent.
2010-02-17Provide default strings for the pinentry.Werner Koch1-3/+33
2009-12-08common/Marcus Brinkmann1-2/+2
2009-12-08 Marcus Brinkmann <[email protected]> * asshelp.c (start_new_gpg_agent): Convert posix FD to assuan FD. agent/ 2009-12-08 Marcus Brinkmann <[email protected]> * call-pinentry.c (start_pinentry): Convert posix fd to assuan fd. * call-scd.c (start_scd): Likewise. sm/ 2009-12-08 Marcus Brinkmann <[email protected]> * call-dirmngr.c (start_dirmngr_ext): Convert posix fd to assuan fd. tools/ 2009-12-08 Marcus Brinkmann <[email protected]> * gpg-connect-agent.c (main): Convert posix fd to assuan fd.
2009-11-05agent/Marcus Brinkmann1-2/+3
2009-11-05 Marcus Brinkmann <[email protected]> * call-pinentry.c (start_pinentry): Call assuan_pipe_connect, not assuan_pipe_connect_ext. * command.c (start_command_handler): Change assuan_init_socket_server_ext into assuan_init_socket_server. * call-scd.c (start_scd): Update use of assuan_socket_connect and assuan_pipe_connect. * gpg-agent.c (check_own_socket_thread, check_for_running_agent): Update use of assuan_socket_connect. common/ 2009-11-05 Marcus Brinkmann <[email protected]> * asshelp.c (start_new_gpg_agent): Update use of assuan_socket_connect and assuan_pipe_connect. scd/ 2009-11-05 Marcus Brinkmann <[email protected]> * command.c (scd_command_handler): Call assuan_init_socket_server, not assuan_init_socket_server_ext. sm/ 2009-11-05 Marcus Brinkmann <[email protected]> * call-dirmngr.c (start_dirmngr_ext): Update use of assuan_pipe_connect and assuan_socket_connect. tools/ 2009-11-05 Marcus Brinkmann <[email protected]> * gpg-connect-agent.c (start_agent): Update use of assuan_socket_connect and assuan_pipe_connect.
2009-09-232009-09-23 Marcus Brinkmann <[email protected]>Marcus Brinkmann1-6/+14
* configure.ac (NEED_LIBASSUAN_API, NEED_LIBASSUAN_VERSION): Update to new API (2, 1.1.0). agent/ 2009-09-23 Marcus Brinkmann <[email protected]> * gpg-agent.c (parse_rereadable_options): Don't set global assuan log file (there ain't one anymore). (main): Update to new API. (check_own_socket_pid_cb): Return gpg_error_t instead of int. (check_own_socket_thread, check_for_running_agent): Create assuan context before connecting to server. * command.c: Include "scdaemon.h" before <assuan.h> because of GPG_ERR_SOURCE_DEFAULT check. (write_and_clear_outbuf): Use gpg_error_t instead of assuan_error_t. (cmd_geteventcounter, cmd_istrusted, cmd_listtrusted) (cmd_marktrusted, cmd_havekey, cmd_sigkey, cmd_setkeydesc) (cmd_sethash, cmd_pksign, cmd_pkdecrypt, cmd_genkey, cmd_readkey) (cmd_keyinfo, cmd_get_passphrase, cmd_clear_passphrase) (cmd_get_confirmation, cmd_learn, cmd_passwd) (cmd_preset_passphrase, cmd_scd, cmd_getval, cmd_putval) (cmd_updatestartuptty, cmd_killagent, cmd_reloadagent) (cmd_getinfo, option_handler): Return gpg_error_t instead of int. (post_cmd_notify): Change type of ERR to gpg_error_t from int. (io_monitor): Add hook argument. Use symbols for constants. (register_commands): Change return type of HANDLER to gpg_error_t. (start_command_handler): Allocate assuan context before starting server. * call-pinentry.c: Include "scdaemon.h" before <assuan.h> because of GPG_ERR_SOURCE_DEFAULT check. (unlock_pinentry): Call assuan_release instead of assuan_disconnect. (getinfo_pid_cb, getpin_cb): Return gpg_error_t instead of int. (start_pinentry): Allocate assuan context before connecting to server. * call-scd.c (membuf_data_cb, learn_status_cb, get_serialno_cb) (membuf_data_cb, inq_needpin, card_getattr_cb, pass_status_thru) (pass_data_thru): Change return type to gpg_error_t. (start_scd): Allocate assuan context before connecting to server. common/ 2009-09-23 Marcus Brinkmann <[email protected]> * asshelp.c (start_new_gpg_agent): Allocate assuan context before starting server. g10/ 2009-09-23 Marcus Brinkmann <[email protected]> * call-agent.c: Include "scdaemon.h" before <assuan.h> because of GPG_ERR_SOURCE_DEFAULT check. (learn_status_cb, dummy_data_cb, get_serialno_cb, default_inq_cb) (learn_status_cb, inq_writecert_parms, inq_writekey_parms) (scd_genkey_cb, membuf_data_cb): Return gpg_error_t instead of int. * gpg.c: Include "scdaemon.h" before <assuan.h> because of GPG_ERR_SOURCE_DEFAULT check. (main): Update to new Assuan API. * server.c: Include "scdaemon.h" before <assuan.h> because of GPG_ERR_SOURCE_DEFAULT check. (option_handler, cmd_recipient, cmd_signer, cmd_encrypt) (cmd_decrypt, cmd_verify, cmd_sign, cmd_import, cmd_export) (cmd_delkeys, cmd_message, do_listkeys, cmd_listkeys) (cmd_listsecretkeys, cmd_genkey, cmd_getinfo): Return gpg_error_t instead of int. (register_commands): Allocate assuan context before starting server. (gpg_server): Allocate assuan_context before starting server. scd/ 2009-09-23 Marcus Brinkmann <[email protected]> * command.c: Include "scdaemon.h" before <assuan.h> because of GPG_ERR_SOURCE_DEFAULT check. (option_handler, open_card, cmd_serialno, cmd_lean, cmd_readcert) (cmd_readkey, cmd_setdata, cmd_pksign, cmd_pkauth, cmd_pkdecrypt) (cmd_getattr, cmd_setattr, cmd_writecert, cmd_writekey) (cmd_genkey, cmd_random, cmd_passwd, cmd_checkpin, cmd_lock) (cmd_unlock, cmd_getinfo, cmd_restart, cmd_disconnect, cmd_apdu) (cmd_killscd): Return gpg_error_t instead of int. (scd_command_handler): Allocate assuan context before starting server. * scdaemon.c (main): Update to new Assuan API. sm/ 2009-09-23 Marcus Brinkmann <[email protected]> * gpgsm.c (main): Update to new assuan API. * server.c: Include "gpgsm.h" before <assuan.h> due to check for GPG_ERR_SOURCE_DEFAULT and assuan.h now including gpg-error.h. (option_handler, cmd_recipient, cmd_signer, cmd_encrypt) (cmd_decrypt, cmd_verify, cmd_sign, cmd_import, cmd_export) (cmd_delkeys, cmd_message, cmd_listkeys, cmd_dumpkeys) (cmd_listsecretkeys, cmd_dumpsecretkeys, cmd_genkey) (cmd_getauditlog, cmd_getinfo): Return gpg_error_t instead of int. (register_commands): Same for member HANDLER in table. (gpgsm_server): Allocate assuan context before starting server. * sm/call-dirmngr.c: * call-dirmngr.c (prepare_dirmngr): Check for CTX and error before setting LDAPSERVER. (start_dirmngr_ext): Allocate assuan context before starting server. (inq_certificate, isvalid_status_cb, lookup_cb, lookup_status_cb) (run_command_cb, run_command_inq_cb, run_command_status_cb): Return gpg_error_t instead of int. tools/ 2009-09-23 Marcus Brinkmann <[email protected]> * gpg-connect-agent.c (getinfo_pid_cb, read_and_print_response) (main): Update to new Assuan API.
2009-07-07Reworked passing of envars to Pinentry.Werner Koch1-10/+31
2009-06-17Use cancel button in confirmation only if requested.Werner Koch1-10/+27
2009-05-15Fix bug #1053Werner Koch1-47/+64
Add option --qualitybar to command GET_PASSPHRASE.
2009-04-142009-04-14 Marcus Brinkmann <[email protected]>Marcus Brinkmann1-1/+7
* call-pinentry.c (agent_get_confirmation): Try SETNOTOK command with pinentry.
2009-04-01Import/export of pkcs#12 now uses the gpg-agent directly.Werner Koch1-0/+1
Removed duplicated code (percent unescaping).
2008-10-20Marked all unused args on non-W32 platforms.Werner Koch1-0/+6
2008-05-27Fixed segv in gpg-agent (command marktrusted).Werner Koch1-2/+2
Replaced almost all free by xfree. Translation fixes.
2008-03-20Fix a bug in the ambigious name detection.Werner Koch1-1/+3
Minor cleanups.
2008-02-14Poems for AllowSetForegroundWindow (W32)Werner Koch1-1/+43
2008-01-152008-01-15 Marcus Brinkmann <[email protected]>Marcus Brinkmann1-2/+4
* call-pinentry.c (start_pinentry): Start pinentry in detached mode.
2007-12-04Created help files form the current po entries.Werner Koch1-1/+1
2007-12-04Allow configuraton of pinentry tooltip.Werner Koch1-15/+19
Other minor buf fixes.
2007-11-19Started to implement the audit log feature.Werner Koch1-6/+54
Pass PINENTRY_USER_DATA and XAUTHORITY to Pinentry. Improved support for the quality bar. Minor internal restructuring. Translation fixes.
2007-09-18Support the SETQUALITYBAR command of recent pinentries.Werner Koch1-1/+111
2007-09-142007-09-14 Marcus Brinkmann <[email protected]>Marcus Brinkmann1-1/+10
* call-pinentry.c (agent_popup_message_stop): Implement kill for Windows.
2007-08-27Implemented more gpg-agen options to support certain passphrase policies.Werner Koch1-0/+52
New tool gpg-check-pattern.
2007-07-17Typo fixes.Werner Koch1-1/+1
Made --default-key work for gpgsm Add --default-key and --encrypt-to to gpgconf.
2007-07-16Properly close files opened by es_fopen.Werner Koch1-1/+11
Allow setting of an empty passphrase. Assorted W32 changes.
2007-07-04Changed to GPLv3.Werner Koch1-4/+2
Removed intl/.
2007-07-04A bunch of minor changes for Windows.Werner Koch1-1/+1
2007-06-14A whole bunch of changes to allow building for Windows.Werner Koch1-2/+6
See the ChangeLogs for details.
2007-06-06First steps towards supporting W32.Werner Koch1-0/+4
This is mainly source code reorganization. Update gnulib. g10/ does currently not build.
2007-02-20 * call-pinentry.c (start_pinentry): Fix for OS X to allow loadingWerner Koch1-0/+9
of the bundle. Tested by Benjamin Donnachie.
2007-02-14agent/Werner Koch1-0/+25
* gpg-agent.c: New option --pinentry-touch-file. (get_agent_socket_name): New. * agent.h (opt): Add pinentry_touch_file. * call-pinentry.c (start_pinentry): Send new option to the pinentry.
2007-01-25agent/Werner Koch1-13/+11
* protect-tool.c (get_passphrase): New arg OPT_CHECK. (get_new_passphrase): Enable OTP_CHECK on the first call. * command.c (cmd_get_passphrase): Implement option --check. * gpg-agent.c (MIN_PASSPHRASE_LEN): New (parse_rereadable_options): New option --min-passphrase-len. * genkey.c (check_passphrase_constraints): New. (agent_genkey, agent_protect_and_store): Call new function. Fix memory leak. * call-pinentry.c (agent_askpin): Allow translation of the displayed error message. (agent_popup_message_start): Remove arg CANCEL_BTN. (popup_message_thread): Use --one-button option. * command.c (cmd_passwd): Now that we don't distinguish between assuan and regular error codes we can jump to the end on error. common/ * simple-pwquery.c (simple_pwquery): New arg OPT_CHECK.
2006-11-20Made some PIN pads work.Werner Koch1-3/+4
Some cleanups for 64 bit CPUs.
2006-10-19FixesWerner Koch1-0/+34
2006-10-16Allow to cancel marktrusted.Werner Koch1-0/+3
2006-10-04Fixed agent access for gpg.Werner Koch1-26/+26
2006-09-14Take advantage of newer gpg-error features.Werner Koch1-3/+3
2006-09-06The big Assuan error code removal.Werner Koch1-30/+30
2006-06-20Updated FSF's address.Werner Koch1-1/+2
2005-11-28Preparing an interim releaseWerner Koch1-29/+167
2005-07-27Removed directories which are only used by the 1.9 branchWerner Koch1-473/+0
2005-06-16gcc-4 defaults forced me to edit many many files to get rid of theWerner Koch1-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.
2005-06-07New debugging optionhs, updates to the manual.Werner Koch1-3/+27
2005-05-24* call-scd.c (inq_needpin): Skip leading spaces in of PINWerner Koch1-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.
2005-02-23* command-ssh.c (get_passphrase): Removed.Werner Koch1-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.
2004-12-19* query.c (initialize_module_query):Werner Koch1-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-172004-12-17 Moritz Schulte <[email protected]>Moritz Schulte1-5/+5
* query.c: Undo change from 2004-12-05.
2004-12-052004-12-05 Moritz Schulte <[email protected]>Moritz Schulte1-5/+5
* query.c (start_pinentry): Allow CTRL be NULL.
2004-08-20(start_pinentry): Use a timeout for the pinentry lock.Werner Koch1-3/+23