aboutsummaryrefslogtreecommitdiffstats
path: root/agent/cache.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2012-01-25Port to npth.npth-3Marcus Brinkmann1-19/+33
* configure.ac: Don't check for PTH but for NPTH. (AH_BOTTOM): Remove PTH_SYSCALL_SOFT. (have_pth): Rename to ... (have_npth): ... this. (USE_GNU_NPTH): Rename to ... (USE_GNU_PTH): ... this. * m4/npth.m4: New file. * agent/Makefile.am, agent/cache.c, agent/call-pinentry.c, agent/call-scd.c, agent/findkey.c, agent/gpg-agent.c, agent/trustlist.c, common/Makefile.am, common/estream.c, common/exechelp-posix.c, common/exechelp-w32.c, common/exechelp-w32ce.c, common/http.c, common/init.c, common/sysutils.c, dirmngr/Makefile.am, dirmngr/crlfetch.c, dirmngr/dirmngr.c, dirmngr/dirmngr_ldap.c, dirmngr/ldap-wrapper-ce.c, dirmngr/ldap-wrapper.c, dirmngr/ldap.c, g13/Makefile.am, g13/call-gpg.c, g13/g13.c, g13/runner.c, scd/Makefile.am, scd/apdu.c, scd/app.c, scd/ccid-driver.c, scd/command.c, scd/scdaemon.c, tools/Makefile.am: Port to npth.
2011-02-04Nuked almost all trailing white space.post-nuke-of-trailing-wsWerner Koch1-6/+5
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.
2010-11-29Init cache encryption on the fly.Werner Koch1-20/+50
add some debug code
2010-10-26Re-implemented GPG's --passwd command and improved it.Werner Koch1-1/+1
2010-09-13Fix standard directories for Wince.Werner Koch1-1/+1
Typo fix.
2010-09-02Obscure the cached passphrases.Werner Koch1-123/+170
2010-09-01s/CACHE_MODE_IMPGEN/CACHE_MODE_NONCE/.Werner Koch1-4/+4
Prepare for more use cases of the cache nonce.
2010-09-01Use passphrase caching for import and genkey.Werner Koch1-11/+25
2009-05-15Fix bug #1053Werner Koch1-2/+2
Add option --qualitybar to command GET_PASSPHRASE.
2007-07-04Changed to GPLv3.Werner Koch1-4/+2
Removed intl/.
2006-06-20Updated FSF's address.Werner Koch1-1/+2
2005-07-27Removed directories which are only used by the 1.9 branchWerner Koch1-314/+0
2005-06-16gcc-4 defaults forced me to edit many many files to get rid of theWerner Koch1-6/+14
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/+26
2005-01-04(agent_put_cache): Fix the test for using the defaultWerner Koch1-4/+5
TTL.
2004-12-21* preset-passphrase.c (preset_passphrase): Handle --passphrase.Werner Koch1-4/+5
* 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-08-20* gpg-agent.c: New option --max-cache-ttl. Suggested by AlexanderWerner Koch1-2/+3
Belopolsky. * cache.c (housekeeping): Use it here instead of the hardwired default of 1 hour.
2003-01-09This commit was manufactured by cvs2svn to create branchRepo Admin1-0/+314
'GNUPG-1-9-BRANCH'.
2003-01-09Updated from latest NewPG projectWerner Koch1-1/+1
2002-10-19This commit was manufactured by cvs2svn to create branchRepo Admin1-314/+0
'GNUPG-1-9-BRANCH'.
2002-09-26* gpg-agent.c (handle_signal): Flush cache on SIGHUP.Werner Koch1-0/+29
* 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.
2002-05-23* no-pth.c, Makefile.am: Removed.Werner Koch1-18/+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.
2002-05-14sm/Werner Koch1-4/+4
* gpgsm.c: New option --faked-system-time * sign.c (gpgsm_sign): And use it here. * certpath.c (gpgsm_validate_path): Ditto. common/ * gettime.c: New. agent/ * cache.c (housekeeping, agent_put_cache): Use our time() wrapper. / * doc/: New * configure.ac, Makefile.am: Added doc/
2002-04-27Debug message cleanups.Werner Koch1-1/+3
Fixed passphrase caching.
2002-03-18Doc fixes, moved some fizmes to TODO, fixed minor bugs.Werner Koch1-1/+1
2002-02-06* cache.c (housekeeping): Fixed linking in the remove case.Werner Koch1-2/+4
2002-02-01* cache.c: Add a few debug outputs.Werner Koch1-0/+15
* protect.c (agent_private_key_type): New. * agent.h: Add PRIVATE_KEY_ enums. * findkey.c (agent_key_from_file): Use it to decide whether we have to unprotect a key. (unprotect): Cache the passphrase. * findkey.c (agent_key_from_file,agent_key_available): The key files do now require a ".key" suffix to make a script's life easier. * genkey.c (store_key): Ditto.
2002-01-31* genkey.c (store_key): Protect the key.Werner Koch1-2/+2
(agent_genkey): Ask for the passphrase. * findkey.c (unprotect): Actually unprotect the key. * query.c (agent_askpin): Add an optional start_err_text.
2002-01-19* gpg-agent.c (main): Disable core dumps.Werner Koch1-0/+220
* cache.c: New. * command.c (cmd_get_passphrase): Use the cache. (cmd_clear_passphrase): Ditto. * gpg-agent.c: Removed unused cruft and implement the socket 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.