aboutsummaryrefslogtreecommitdiffstats
path: root/agent (unfollow)
Commit message (Collapse)AuthorFilesLines
2012-01-03Terminate csh commands with a semicolon.Werner Koch1-2/+2
Fixes bug#1386. * agent/gpg-agent.c (main): Terminate csh style output with a semicolon. * scd/scdaemon.c: Ditto.
2012-01-02Only set gcrypt thread callback for older version of gcrypt.Marcus Brinkmann1-0/+9
* agent/gpg-agent.c, dirmngr/dirmngr.c, g13/g13.c, scd/scdaemon.c (USE_GCRY_THREAD_CBS): New macro, defined if GCRY_THREAD_OPTION_VERSION is 0. (fixed_gcry_pth_init) [!USE_GCRY_THREAD_CBS]: Don't define. (main) [!USE_GCRY_THREAD_CBS]: Do not install thread callbacks.
2011-12-20Require Libassuan 2.0.3Werner Koch2-13/+0
* configure.ac: Require Libassuan 2.0.3. * agent/call-scd.c (ASSUAN_CONVEY_COMMENTS): Remove macro replacement. * agent/command.c (cmd_killagent) [ASSUAN_FORCE_CLOSE]: Remove dependency. (cmd_killagent) [ASSUAN_FORCE_CLOSE]: Ditto. * scd/command.c (cmd_killscd) [ASSUAN_FORCE_CLOSE]: Ditto.
2011-12-16Don't kill pinentry by SIGKILL but let it quit by SIGINT.NIIBE Yutaka1-2/+1
* agent/call-pinentry.c (agent_popup_message_stop): To pinentry, send SIGINT (was: SIGKILL).
2011-12-14agent: Pass comment lines from scd verbatim thru gpg-agent.Werner Koch1-10/+23
* agent/call-scd.c (pass_status_thru): Pass comment lines verbatim. * tools/gpg-connect-agent.c (help_cmd_p): New. (main): Treat an "SCD HELP" the same as "HELP".
2011-12-05Fix last change.Werner Koch1-1/+0
* agent/command.c (start_command_handler): Remove use of removed var.
2011-12-05Amend the agent code with more comments.Werner Koch3-46/+161
* agent/command.c (server_local_s): Remove unused field MESSAGE_FD.
2011-12-02Initial port to Npth.Marcus Brinkmann2-2/+5
2011-12-02Generate the ChangeLog from commit logs.Werner Koch2-2/+14
* scripts/gitlog-to-changelog: New script. Taken from gnulib. * scripts/git-log-fix: New file. * scripts/git-log-footer: New file. * doc/HACKING: Describe the ChangeLog policy * ChangeLog: New file. * Makefile.am (EXTRA_DIST): Add new files. (gen-ChangeLog): New. (dist-hook): Run gen-ChangeLog. Rename all ChangeLog files to ChangeLog-2011.
2011-12-02Improve ssh card key diagnostic message.Werner Koch2-2/+10
* command-ssh.c (card_key_available): Change wording of no key diagnostic. (ssh_handler_request_identities): Do not call card_key_available if the scdaemon is disabled.
2011-12-01Generate the ChangeLog from commit logs.Werner Koch2-2/+14
* scripts/gitlog-to-changelog: New script. Taken from gnulib. * scripts/git-log-fix: New file. * scripts/git-log-footer: New file. * doc/HACKING: Describe the ChangeLog policy * ChangeLog: New file. * Makefile.am (EXTRA_DIST): Add new files. (gen-ChangeLog): New. (dist-hook): Run gen-ChangeLog. Rename all ChangeLog files to ChangeLog-2011.
2011-11-28Improve ssh card key diagnostic message.Werner Koch2-2/+10
* command-ssh.c (card_key_available): Change wording of no key diagnostic. (ssh_handler_request_identities): Do not call card_key_available if the scdaemon is disabled.
2011-10-13Cast npth_self result for safety.Marcus Brinkmann2-5/+9
2011-10-13Fix error check.Marcus Brinkmann2-1/+3
2011-10-13Initial port to Npth.Marcus Brinkmann8-309/+221
2011-09-13Allow no protection in pinentry-mode=loopback.Ben Kibbey2-2/+12
When the inquired passphrase has a 0 length then treat it as no protection.
2011-09-13Fixed invalid free.Ben Kibbey1-3/+1
2011-09-12Handle pinentry-mode=loopback.Ben Kibbey5-2/+83
When this mode is set an inquire will be sent to the client to retrieve the passphrase. This adds a new inquire keyword "NEW_PASSPHRASE" that the GENKEY and PASSWD commands use when generating a new key.
2011-08-10Fixed set but unused variable bugsWerner Koch4-6/+11
2011-08-10Update option s2k-count to match the documentation.Ben Kibbey2-3/+8
The option would previously return an error if its value was < 65536.
2011-08-10Made the KILLAGENT and KILLSCD commands working again.Werner Koch1-0/+5
This requires that GnuPG is build with a newer version of Libassuan (2.0.3).
2011-07-27Make the inquire cancel fix a little bit more robust.Werner Koch2-1/+18
2011-07-27Fixed gpg-agent SCD inquire command cancellation.Ben Kibbey2-0/+18
Need to send the CANCEL command back to scdaemon otherwise the next SCD command will fail.
2011-07-22Fix crash while reading unsupported ssh keys.Werner Koch2-12/+11
This bug was found by n-roeser at gmx.net (gnupg-devel@, msgid [email protected]).
2011-07-20Allow listing of ssh fingerprint with the agent's KEYINFO command.Werner Koch2-8/+32
2011-07-20Support a confirm flag for ssh.Werner Koch4-57/+206
This implements the suggestion from bug#1349. With this change the fingerprint of the ssh key is also displayed in the pinentry prompts.
2011-06-29Added gpg-agent OPTION "s2k-count".Ben Kibbey8-15/+41
When unset or 0, the calibrated count will be used.
2011-06-01Fix size_t vs int issues.Marcus Brinkmann2-1/+6
2011-04-29Add fixme note regarding pth_killWerner Koch1-0/+1
2011-04-26Fixed regression in OpenPGP secret key export.Werner Koch4-2/+43
The protection used in the exported key used a different iteration count than given in the S2K field. Thus all OpenPGP keys exported from GnuPG 2.1-beta can't be imported again. Given that the actual secret key material is kept in private-keys-v1.d/ the can be re-exported with this fixed version.
2011-04-21Add OPTION:cache-ttl-opt-preset to gpg-agent.Werner Koch5-7/+25
This option may be used to change the default ttl values use with the --preset option of GENKEY and PASSWD.
2011-04-20Fix gpg-agent secure memory leak in OpenPGP private key import.Marcus Brinkmann2-0/+8
2011-04-20 Marcus Brinkmann <[email protected]> * command.c (cmd_import_key): Release key from failed import before converting openpgp private key in the openpgp-private-key case.
2011-04-18Another PASSWD --preset fix.Ben Kibbey2-1/+5
Check for an error before presetting the passphrase.
2011-04-13Fixed PASSWD --preset.Ben Kibbey2-7/+11
The previous patch required that the keygrip be cached before adding the new passphrase to the cache. No more.
2011-04-12Use macros for the 120 and 900s cache TTLs.Werner Koch4-12/+23
2011-04-12Added PASSWD --preset.Ben Kibbey2-2/+15
2011-04-12Added GENKEY --preset to add the passphrase of the generated key to the cache.Ben Kibbey4-4/+24
2011-04-12Added KEYINFO field to show the protection type of a key. This differs from ↵Ben Kibbey2-10/+25
the second field which shows the location of the key.
2011-03-10Make use of gcry_kdf_derive.Werner Koch2-63/+10
Factoring common code out is always a Good Thing. Also added a configure test to print an error if gcry_kdf_derive is missing in Libgcrypt.
2011-03-08Require libgcrypt 1.5Werner Koch2-7/+4
Without Libgcrypt 1.5 is was not possible to use ECC keys. ECC is major new feature and thus it does not make sense to allow building with an older Libgcrypt without supporting ECC. Also fixed a few missing prototypes.
2011-03-04Added option --inquire to PRESET_PASSPHRASE. Note that the inquired ↵Ben Kibbey2-4/+30
passphrase will be truncated to the first encountered null byte.
2011-03-03New agent option pinentry-mode.Werner Koch5-2/+83
This provides the framework and implements the ask, cancel and error. loopback will be implemented later.
2011-03-02Fix usage of SHA-2 algorithm with OpenPGP cards.Werner Koch4-6/+34
This was a regression in 2.1 introduced due to having the agent do the signing in contrast to the old "SCD PKSIGN" command which accesses the scdaemon directly and passed the hash algorithm. The hash algorithm is used by app-openpgp.c only for a sanity check.
2011-03-02Add comment to last patch.Werner Koch2-14/+23
2011-03-02Added option --data to KEYINFO to return the result with a data response.Ben Kibbey1-12/+27
2011-03-02Let KEYINFO show the cached status of a key grip.Ben Kibbey1-1/+11
2011-03-02Rename Ben's new option.Werner Koch2-7/+11
2011-03-02Added CLEAR_PASSPHRASE option --agent to search the cache for a cacheid with ↵Ben Kibbey1-3/+10
a mode of CACHE_MODE_NORMAL. These cache modes are created with PKDECRYPT.
2011-02-07Fix ECDSA 521 bit signing.Werner Koch2-1/+7
This fix also allows the creation and use of an 521 bit ECDH key which used to fail while creating the binding signature.
2011-02-04Nuked almost all trailing white space.post-nuke-of-trailing-wsWerner Koch21-531/+511
We better do this once and for all instead of cluttering all future commits with diffs of trailing white spaces. In the majority of cases blank or single lines are affected and thus this change won't disturb a git blame too much. For future commits the pre-commit scripts checks that this won't happen again.