aboutsummaryrefslogtreecommitdiffstats
path: root/g10/keydb.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2010-02-02Various changes to eventually support openpgp keys in pgp-agent.Werner Koch1-2/+0
Comment fixes. Minor chnages in preparation of a W32CE port.
2010-01-09Re-indentWerner Koch1-0/+2
2009-12-15Do not use the VMC C reserved word readonly.Werner Koch1-4/+4
2009-09-23s/DOTLOCK/dotlock_t/.Werner Koch1-1/+1
Add some stuff for g13.
2009-04-03Make gpgv error message about a missing keyring more useful. This fixesWerner Koch1-8/+15
Debian#494040. Also implement readonly semantic for extra safety.
2008-10-20Marked all unused args on non-W32 platforms.Werner Koch1-1/+3
2008-01-30Fixed yesterday's W32 fix.Werner Koch1-1/+1
2008-01-29Fixed a W32 crash in gpg2 when creating a new keyring.Werner Koch1-3/+16
Typo fixes.
2007-07-04Changed to GPLv3.Werner Koch1-4/+2
Removed intl/.
2006-09-14Take advantage of newer gpg-error features.Werner Koch1-2/+2
2006-04-21Still merging 1.4.3 code backWerner Koch1-3/+3
2006-04-19Merged with gpg 1.4.3 code. Werner Koch1-75/+158
The gpg part does not yet build.
2005-07-27Converted all m_free to xfree etc.Werner Koch1-5/+5
2005-05-31Updated FSF street address and preparations for a release candidate.Werner Koch1-1/+2
2005-03-31* keydb.c (keydb_add_resource): Clarify meaning of flags. Add newWerner Koch1-3/+15
flag 4. Use log_info for errors registering the default secret key. * g10.c (main): Flag the default keyrings.
2004-10-14* misc.c (is_secured_filename): New.Werner Koch1-1/+7
* keydb.c (maybe_create_keyring) * tdbio.c (tdbio_set_dbname) * plaintext.c (handle_plaintext) * openfile.c (copy_options_file, open_outfile) * exec.c (exec_write) * keygen.c (do_generate_keypair, gen_card_key_with_backup) * sign.c (sign_file, clearsign_file) * keyring.c (create_tmp_file, do_copy): Check for secured files before creating them. * keygen.c (print_status_key_created): s/unsigned char/byte/ due to a strange typedef for RISC OS. Noted by Stefan.
2004-10-13Added SELInux hacks and did some cleanups.Werner Koch1-1/+1
2004-09-30* gpgv.c, keydb.c (keydb_add_resource): Factored keyring creation out toDavid Shaw1-52/+116
.. (maybe_create_keyring): .. new. Make sure that we do the checks in a locked state. Problem reported by Stefan Haller. Try to create the home directory before acquiring a lock for the keyring. From Werner on stable branch. * g10.c (main): Blow up if we didn't lose setuid. From Werner on stable branch.
2004-01-20* g10.c (main), keydb.h, keydb.c (keydb_rebuild_caches), keyring.h,David Shaw1-2/+2
keyring.c (keyring_rebuild_cache): Add "noisy" flag so cache rebuilds can remain noisy when called for itself, and quiet when called as part of the trustdb rebuild. * trustdb.c (validate_keys): Rebuild the sig caches before building the trustdb. Note that this is going to require some architectual re-thinking, as it is agonizingly slow.
2003-06-18Finished the bulk of changes for gnupg 1.9. This included switchingWerner Koch1-27/+28
to libgcrypt functions, using shared error codes from libgpg-error, replacing the old functions we used to have in ../util by those in ../jnlib and ../common, renaming the malloc functions and a couple of types. Note, that not all changes are listed below becuause they are too similar and done at far too many places. As of today the code builds using the current libgcrypt from CVS but it is very unlikely that it actually works.
2003-06-05This commit was manufactured by cvs2svn to create branchRepo Admin1-0/+724
'GNUPG-1-9-BRANCH'.
2003-05-24* armor.c, g10.c, kbnode.c, misc.c, pkclist.c, sign.c, build-packet.c,David Shaw1-3/+0
getkey.c, keydb.c, openfile.c, plaintext.c, status.c, gpgv.c, keygen.c, options.h, sig-check.c, tdbio.h, encode.c, mainproc.c, parse-packet.c, signal.c, textfilter.c: Edit all preprocessor instructions to remove whitespace before the '#'. This is not required by C89, but there are some compilers out there that don't like it.
2003-03-04* trustdb.c (validate_keys): Mask the ownertrust when building the list ofDavid Shaw1-1/+1
fully valid keys so that disabled keys are still counted in the web of trust. (get_ownertrust_with_min): Do the same for the minimum ownertrust calculation. * parse-packet.c (dump_sig_subpkt): Show the notation names for not-human-readable notations. Fix cosmetic off-by-one length counter. * options.skel: Add explantion and commented-out "no-mangle-dos-filenames". * mainproc.c (proc_encrypted): Make string translatable. * keyserver.c (keyserver_spawn): Quote ':', '%', and any 8-bit characters in the uid strings sent to the keyserver helper. * keyring.c (keyring_rebuild_cache): Lock the keyring while rebuilding the signature caches to prevent another gpg from tampering with the temporary copy. * keygen.c (keygen_set_std_prefs): Include AES192 and AES256 in default prefs. * keyedit.c (show_prefs): Make strings translatable. * keydb.c: Double the maximum number of keyrings to 40. * gpgv.c (main): Fix bug #113 - gpgv should accept the --ignore-time-conflict option. * g10.c (main): --openpgp disables --pgpX. Double the amount of secure memory to 32k (keys are getting bigger these days). * Makefile.am: Makefile.am: Use @CAPLIBS@ to link in -lcap if we are using capabilities.
2003-02-12* keydb.h, getkey.c (classify_user_id, classify_user_id2): Make 'exact' aDavid Shaw1-3/+4
per-desc item. Merge into one function since 'force_exact' is no longer needed. (key_byname): Use new classify_user_id function, and new exact flag in KEYDB_SEARCH_DESC. * keyring.h, keyring.c (keyring_search): Return an optional index to show which KEYDB_SEARCH_DESC was the matching one. * keydb.h, keydb.c (keydb_search): Rename to keydb_search2, and pass the optional index to keyring_search. Add a macro version of keydb_search that calls this new function. * export.c (do_export_stream): If the keyid! syntax is used, export only that specified key. If the key in question is a subkey, export the primary plus that subkey only.
2003-01-02* keydb.c (keydb_add_resource): Don't assume that try_make_homedirWerner Koch1-11/+18
terminates but check again for the existence of the directory and continue then. * openfile.c (copy_options_file): Print a warning if the skeleton file has active options.
2002-11-25* g10.c (main), keydb.c (keydb_add_resource, keydb_locate_writable):David Shaw1-7/+7
Rename --default-keyring as --primary-keyring. Stefan wins the naming contest.
2002-11-08* keyring.h, keyring.c (keyring_register_filename): Return the pointer ifDavid Shaw1-14/+47
a given keyring is registered twice. * keydb.h, keydb.c (keydb_add_resource): Use flags to indicate a default keyring. (keydb_locate_writable): Prefer the default keyring if possible. * g10.c (main): Add --default-keyring option.
2002-10-19This commit was manufactured by cvs2svn to create branchRepo Admin1-686/+0
'GNUPG-1-9-BRANCH'.
2002-08-09* options.skel: Some language tweaks, and remove the load-extensionDavid Shaw1-13/+3
section for random gatherers. * keyring.c (create_tmp_file, rename_tmp_file): Create tmp files with user-only permissions, but restore the original permissions if the user has something special set. * openfile.c (copy_options_file): Create new options file (gpg.conf) with user-only permissions. * keydb.c (keydb_add_resource): Create new keyrings with user-only permissions.
2002-08-07* keyedit.c (menu_revsig): Properly show a uid is revoked withoutDavid Shaw1-2/+0
restarting gpg. This is Debian bug 124219, though their supplied patch will not do the right thing. * main.h, tdbio.c (tdbio_set_dbname), misc.c (removed check_permissions), keydb.c (keydb_add_resource), g10.c (main, check_permissions): Significant reworking of the permission check mechanism. The new behavior is to check everything in the homedir by checking the homedir itself. If the user wants to put (possibly shared) keyrings outside the homedir, they are not checked. The options file and any extension files are checked wherever they are, as well as their enclosing directories. This is Debian bug 147760.
2002-06-29Update head to match stable 1.0David Shaw1-0/+698