aboutsummaryrefslogtreecommitdiffstats
path: root/agent/command.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2007-11-27[W32] Changed default socket for dirmngr.Werner Koch1-2/+2
[W32] Add some code for event notifications between scdaemon and gpg-agent.
2007-11-19Started to implement the audit log feature.Werner Koch1-0/+21
Pass PINENTRY_USER_DATA and XAUTHORITY to Pinentry. Improved support for the quality bar. Minor internal restructuring. Translation fixes.
2007-10-02Extended gpg-connect-agent.Werner Koch1-0/+8
New "GETINFO pid" command for scdaemon and gpg-agent.
2007-10-01Use Assuan socket wrapper calls.Werner Koch1-4/+3
Made socket servers secure under Windows.
2007-09-18Support the SETQUALITYBAR command of recent pinentries.Werner Koch1-1/+1
2007-08-28Add more passphrase policy rules.Werner Koch1-0/+2
(--max-passphrase-days).
2007-07-04Changed to GPLv3.Werner Koch1-4/+2
Removed intl/.
2007-07-04A bunch of minor changes for Windows.Werner Koch1-0/+12
2007-06-18Add missing fiels for W32.Werner Koch1-0/+73
New agent commands: GETINFO and KILLAGENT (w32 only). Agent does now detach from the console.
2007-01-25agent/Werner Koch1-7/+24
* 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-27/+17
Some cleanups for 64 bit CPUs.
2006-11-14Silent GETEVENT command. Requires latest libassuan.Werner Koch1-0/+45
agent/ * command.c (post_cmd_notify, io_monitor): New. (register_commands, start_command_handler): Register them.
2006-11-14New command GETEVENTCOUNTER.Werner Koch1-0/+79
* command.c (bump_key_eventcounter): New. (bump_card_eventcounter): New. (cmd_geteventcounter): New command. * gpg-agent.c (handle_signal): Call bump_card_eventcounter. * findkey.c (agent_write_private_key): Call bump_key_eventcounter. * trustlist.c (agent_reload_trustlist): Ditto.
2006-11-14sm/Werner Koch1-1/+1
* server.c (skip_options): Skip leading spaces. (has_option): Honor "--". (cmd_export): Add option --data to do an inline export. Skip all options. * certdump.c (gpgsm_fpr_and_name_for_status): New. * verify.c (gpgsm_verify): Use it to print correct status messages. doc/ * gpgsm.texi (GPGSM EXPORT): Document changes.
2006-10-11Allow pkcs#10 creation directkly from a smart cardWerner Koch1-1/+1
2006-10-06Add TLS hash modeWerner Koch1-8/+51
2006-10-05bug fixesWerner Koch1-2/+2
2006-10-04Fixed agent access for gpg.Werner Koch1-10/+54
2006-09-26let cmd learn also return KEYPAIRINFO Werner Koch1-0/+2
2006-09-25New "relax" option for trustlist.txtWerner Koch1-1/+34
2006-09-15Allow for a global trustlist.Werner Koch1-2/+2
2006-09-14Take advantage of newer gpg-error features.Werner Koch1-4/+4
2006-09-06The big Assuan error code removal.Werner Koch1-83/+78
2006-09-04Added comamnds PUTVAL and GETVALWerner Koch1-4/+192
2006-07-292006-07-29 Marcus Brinkmann <[email protected]>GNUPG-1-9-BRANCHMarcus Brinkmann1-1/+8
* preset-passphrase.c (preset_passphrase): Do not strip off last character of passphrase. (make_hexstring): New function. * command.c (cmd_preset_passphrase): Use parse_hexstring to syntax check passphrase argument. Truncate passphrase at delimiter.
2006-06-20Updated FSF's address.Werner Koch1-1/+2
2005-11-28Preparing an interim releaseWerner Koch1-3/+6
2005-07-27Removed directories which are only used by the 1.9 branchWerner Koch1-782/+0
2005-06-16gcc-4 defaults forced me to edit many many files to get rid of theWerner Koch1-2/+2
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-10/+11
2005-06-03* command.c (cmd_updatestartuptty): New.Werner Koch1-0/+34
* gpg-agent.c: New option --write-env-file. * gpg-agent.c (handle_connections): Make sure that the signals we are handling are not blocked.Block signals while creating new threads. * estream.c: Use HAVE_CONFIG_H and not USE_CONFIG_H! (es_func_fd_read, es_func_fd_write): Protect against EINTR. * gpg-agent.texi (Agent UPDATESTARTUPTTY): New. * scdaemon.c (handle_connections): Make sure that the signals we are handling are not blocked.Block signals while creating new threads. (handle_connections): Include the file descriptor into the name of the thread.
2005-05-18Changed the scdaemon to handle concurrent sessions. AdjustedWerner Koch1-0/+1
gpg-agent accordingly. Code cleanups.
2005-02-23* command-ssh.c (get_passphrase): Removed.Werner Koch1-1/+53
(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-21* preset-passphrase.c (preset_passphrase): Handle --passphrase.Werner Koch1-1/+60
* Makefile.am (gpg_preset_passphrase_LDADD): Reorder libs so that pwquery may use stuff from jnlib. Conditionally add -lwsock2 (gpg_protect_tool_LDADD): Ditto. * preset-passphrase.c (main): Use default_homedir(). (main) [W32]: Initialize sockets. * simple-pwquery.c (agent_open) [W32]: Implement for W32. (readline) [W32]: Use recv instead of read. (writen) [W32]: Use send instead of write. (my_stpcpy): Define a stpcpy replacement so that this file continues to be self-contained. (agent_send_all_options) [W32]: Don't call ttyname. * gnupg-badge-openpgp.eps, gnupg-badge-openpgp.jpg: New * gnupg.texi: Add a logo. * sysnotes.texi: New. * gpgsm.c (main): Use default_homedir(). (main) [W32]: Default to disabled CRL checks. * gpgconf-comp.c (get_config_pathname) [DOSISH]: Detect absolute pathnames with a drive letter.
2004-12-20* call-scd.c (init_membuf, put_membuf, get_membuf): Removed. WeWerner Koch1-4/+60
now use the identical implementation from ../common/membuf.c. * pksign.c (agent_pksign): Changed arg OUTFP to OUTBUF and use membuf functions to return the value. * pkdecrypt.c (agent_pkdecrypt): Ditto. * genkey.c (agent_genkey): Ditto. * command.c (cmd_pksign, cmd_pkdecrypt, cmd_genkey): Replaced assuan_get_data_fp() by a the membuf scheme. (clear_outbuf, write_and_clear_outbuf): New. * membuf.c (put_membuf): Wipe out buffer after a failed realloc.
2004-09-262004-09-25 Moritz Schulte <[email protected]>Moritz Schulte1-0/+1
* agent.h: Declare: agent_pksign_do. (struct server_control_s): New member: raw_value. * pksign.c (do_encode_md): New argument: raw_value; support generation of raw (non-pkcs1) data objects; adjust callers. (agent_pksign_do): New function, based on code ripped out from agent_pksign. (agent_pksign): Use agent_pksign_do. * command.c (start_command_handler): Set ctrl.digest.raw_value.
2004-02-21* command.c (cmd_passwd): Take acount of a key description.Werner Koch1-1/+4
* 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.
2004-02-13* command.c (cmd_setkeydesc): New.Werner Koch1-28/+86
(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*.
2004-01-29* agent.h (server_control_s): Add connection_fd field.Werner Koch1-1/+5
* 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.
2004-01-16* findkey.c (agent_key_from_file): Now return an error code soWerner Koch1-3/+3
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.
2003-11-12Mainly changes to adjust for the changed KSBA API.Werner Koch1-2/+2
2003-10-31* command.c (cmd_get_confirmation): New command.Werner Koch1-0/+50
2003-08-05This commit was manufactured by cvs2svn to create branchRepo Admin1-0/+782
'GNUPG-1-9-BRANCH'.
2003-06-27Key generation and signing using the OpenPGP card does rudimentary work.Werner Koch1-1/+18
2003-06-05A small step for GnuPG but a huge leap for error codes.Werner Koch1-9/+9
(Sorry, it does not build currently - I need to check it in to avoid duplicate work.)
2003-06-03Make use of libgpg-errorWerner Koch1-2/+2
2003-04-29* command.c (register_commands): Adjusted for new Assuan semantics.Werner Koch1-25/+22
* Makefile.am: Don't override LDFLAGS.
2003-01-09Updated from latest NewPG projectWerner Koch1-66/+137
2002-10-19This commit was manufactured by cvs2svn to create branchRepo Admin1-697/+0
'GNUPG-1-9-BRANCH'.
2002-08-09Minor fixesWerner Koch1-2/+12