aboutsummaryrefslogtreecommitdiffstats
path: root/g10 (unfollow)
Commit message (Collapse)AuthorFilesLines
2013-07-25Prepare for a forthcoming new algorithm id.Werner Koch1-0/+1
* include/cipher.h (PUBKEY_ALGO_ECC): New. * g10/keyid.c (pubkey_letter): Add letter 'C'. -- ID 22 will be used for generic ECC, i.e. one which can be used for ECDSA and ECDH. The only support in 1.4 will pretty printing the algorithm id.
2013-07-16gpg: fix previous changeNIIBE Yutaka1-1/+1
* g10/gpgv.c: Fix void dotlock_remove_lockfiles.
2013-07-12gpg: signal handling fixNIIBE Yutaka3-4/+4
* include/dotlock.h (dotlock_remove_lockfiles_reclaim): New. (dotlock_destroy, dotlock_remove_lockfiles): Add a flag to reclaim memory or not. * util/dotlock.c (dotlock_create): Use dotlock_remove_lockfiles_reclaim for atexit. (dotlock_destroy_unix, dotlock_destroy) (dotlock_remove_lockfiles): Add a reclaim flag. (dotlock_remove_lockfiles_reclaim): New. * g10/signal.c (got_fatal_signal): Disable flag of reclaim memory to avoid non-async-face call. * g10/keydb.c (maybe_create_keyring): Follow the API change. * g10/gpgv.c: Follow the API change. -- signal handler got_fatal_signal should not call non-async-signal-safe functions. When malloc is interrupted by a signal, it screws up. This issue is reported: https://bugs.g10code.com/gnupg/issue1515 http://bugs.debian.org/399904
2013-01-11Fix honoring --cert-digest-algo when recreating a certChristian Aistleitner1-0/+1
* g10/sign.c (update_keysig_packet): Override original signature's digest algo in hashed data.
2012-12-20gpg: Suppress "public key already present" in quiet mode.Werner Koch1-4/+6
* g10/pkclist.c (build_pk_list): Print two diagnostics only in non-quiet mode. -- (back-ported from commit 8325d616593187ff227853de0295e3269b96edcb)
2012-12-20Import only packets which are allowed in a keyblock.Werner Koch1-1/+22
* g10/import.c (valid_keyblock_packet): New. (read_block): Store only valid packets. -- A corrupted key, which for example included a mangled public key encrypted packet, used to corrupt the keyring. This change skips all packets which are not allowed in a keyblock. GnuPG-bug-id: 1455
2012-12-19Remove trailing white space from some filesWerner Koch1-18/+18
--
2012-12-15Fix potential heap corruption in "gpg -v --version"Werner Koch1-43/+39
* g10/gpg.c (build_list): Rewrite to cope with buffer overflow in certain locales. * util/membuf.c (put_membuf_str): New. (get_membuf): Make LEN optional. -- This fixes an obvious bug in locales where the translated string is longer than the original. The bug could be exhibited by using LANG=ru_RU.utf8 gpg -v --version. En passant we also removed the trailing white space on continued lines. Reported-by: Dmitry V. Levin" <ldv at altlinux.org>
2012-12-13Card: Fix the process of writing key or generating key.NIIBE Yutaka1-2/+2
* g10/app-openpgp.c (store_fpr): Flush KEY-FPR and KEY-TIME. -- (cherry picked from commit e7dca3e83ebd6df0a7ea55e97c3cd6e91be90af5)
2012-11-29The keyserver search menu should honor --keyid-formatDavid Shaw1-5/+11
* keyserver.c (print_keyrec): Honor --keyid-format when getting back full fingerprints from the keyserver (the comment in the code was correct, the code was not).
2012-11-08Create off-line card encryption key with the right size.Werner Koch1-1/+16
* g10/keygen.c (gen_card_key_with_backup): Get the size of the key from the card. -- Formerly the off-line encryption key was created with a fixed length of 1024 bit. With this change the key is created as expected. GnuPG-bug-id: 1230
2012-11-08Support the not anymore patented IDEA cipher algorithm.Werner Koch10-196/+107
* cipher/idea.c: New. Take from Libgcrypt master and adjust for direct use in GnuPG. * cipher/idea-stub.c: Remove. * cipher/Makefile.am: Add idea.c and remove idea-stub.c rules. * configure.ac: Remove idea-stub code. * g10/gpg.c (check_permissions): Remove code path for ITEM==2. (main): Make --load-extension a dummy option. * g10/keygen.c (keygen_set_std_prefs): Include IDEA only in PGP2 compatibility mode. * g10/misc.c (idea_cipher_warn): Remove. Also remove all callers. * g10/seckey-cert.c (do_check): Remove emitting of STATUS_RSA_OR_IDEA. * g10/status.c (get_status_string): Remove STATUS_RSA_OR_IDEA. * g10/status.h (STATUS_RSA_OR_IDEA): Remove. -- To keep the number of actually used algorithms low, we support IDEA only in a basically read-only way (unless --pgp2 is used during key generation). It does not make sense to suggest the use of this old 64 bit blocksize algorithm. However, there is old data available where it might be helpful to have IDEA available.
2012-08-24Fix typos spotted during translationsWerner Koch2-4/+4
* g10/gpg.c: uppercase after Syntax * util/secmem.c (print_warn): Update URL.
2012-08-24Actually show translators comments in PO filesDavid Prévot4-9/+8
-- Note that strings marked for gettext need to immediately follow a TRANSLATOR comment block.
2012-04-29With --quiet do not print reading passphrase from fd message.Werner Koch1-53/+53
Fix for bug#1403. * g10/passphrase.c (read_passphrase_from_fd): Act on --quiet.
2012-02-01Honor --cert-digest-algo when recreating a cert.David Shaw1-3/+8
* g10/sign.c (update_keysig_packet): Honor --cert-digest-algo when recreating a cert. This is used by various things in --edit-key like setpref, primary, etc. Suggested by Christian Aistleitner.
2012-01-20Changes to --min-cert-level should cause a trustdb rebuild (issue 1366)David Shaw6-16/+31
* g10/gpgv.c, g10/trustdb.c (read_trust_options): Add min_cert_level * g10/trustdb.c (check_trustdb_stale): Request a rebuild if pending_check_trustdb is true (set when we detect a trustdb parameter has changed). * g10/keylist.c (public_key_list): Use 'l' in the "tru" with-colons listing for min_cert_level not matching. * g10/tdbio.c (tdbio_update_version_record, create_version_record, tdbio_db_matches_options, tdbio_dump_record, tdbio_read_record, tdbio_write_record): Add a byte for min_cert_level in the tdbio version record.
2012-01-13Add a DECRYPTION_INFO status.Werner Koch3-17/+29
* g10/status.h (STATUS_DECRYPTION_INFO): New. * g10/status.c (get_status_string): Add new status string. * g10/encr-data.c: Include status.h. (decrypt_data): Print STATUS_DECRYPTION_INFO. -- This is backport of commit 5667e33. DECRYPTION_INFO <mdc_method> <sym_algo> Print information about the symmetric encryption algorithm and the MDC method. This will be emitted even if the decryption fails.
2012-01-12gpg: Remove unused fields from a trust data structure.Werner Koch1-4/+1
The functions tdbio_read_record and tdbio_write_record control the actual on-disk format. Thus there is no need to keep reserved fields in the internal data structure. * g10/tdbio.h (struct trust_record): Remove reserved fields.
2012-01-10Allow use of a standard space separated fingerprint.Werner Koch1-7/+47
We allow a single or a double space in the middle of the fingerprint to help with c+p fingerprints from an HTML pages which are not being enclosed in a "pre" tag. * g10/getkey.c (classify_user_id): Check for space separated GPG fingerprint. -- This is a backport of commit 957fe72 and 372fb4f.
2012-01-10Replace file locking by the new portable dotlock code.Werner Koch6-147/+148
* include/dotlock.h: New. From current gnupg master. * util/dotlock.c: Ditto. Include util.h. The major changes done in master are: Factor Unix and W32 specific code out into specific functions. Define HAVE_POSIX_SYSTEM. Rearrange some functions. (disable_dotlock): Rename to dotlock_disable. (create_dotlock): Rename to dotlock_create and add a dummy arg. (destroy_dotlock): Rename to dotlock_destroy. (make_dotlock): Rename to dotlock_take. (release_dotlock): Rename to dotlock_release. (remove_lockfiles): Rename to dotlock_remove_lockfiles.
2012-01-10Update copyright years.Werner Koch1-1/+1
* util/argparse.c (default_strusage): Update printed copyright year.
2011-12-02Rename all ChangeLog files to ChangeLog-2011.Werner Koch1-2/+9
* ChangeLog: New file.
2011-09-12On VMS use --batch by default if in batch mode.Werner Koch2-0/+18
This problem was identified and solved by Steven M. Schweda. Note that the vms specific code is not part of this repository. See http://antinode.info/dec/sw/gnupg.html for the VMS port.
2011-08-09Removed some set but unused vars.Werner Koch5-94/+93
2011-08-09Fix bug#1307Werner Koch3-98/+102
This is a backport of the fixes for 2.0. There is only one real bug, the other changes are for clarity and for more picky compilers.
2011-07-22Print the decoded iteration count witn --list-packets.Werner Koch2-13/+20
Fixes bug#1355.
2011-07-01Add pubkey letters e and E for ECC.Werner Koch6-198/+212
This does not mean we have any kind of ECC support now. It is merely to avoid printing a question mark for the algorithm. Trailing white space changes as usual.
2011-04-06* photoid.c (generate_photo_id): Check for the JPEG magic numbersDavid Shaw2-3/+8
instead of JFIF since some programs generate an EXIF header first. This is issue 1331.
2011-02-23Don't link gpgv with libreadlineWerner Koch3-177/+185
Also add a useful .gitignore file.
2010-10-29* gpg.c (main): Do not provide a default forDavid Shaw2-6/+5
--personal-digest-preferences. This allows the usual digest selection algorithm to pick a digest based on recipient keys.
2010-10-29* pkclist.c (select_algo_from_prefs): Slightly improve the handling ofDavid Shaw2-13/+26
MD5 in preference lists. Instead of replacing MD5 with SHA-1, just remove MD5 from the list altogether, and let the next-highest ranked algorithm be chosen.
2010-10-29* pkclist.c (select_algo_from_prefs): Make sure the scores can'tDavid Shaw2-4/+17
overflow when picking an algorithm (not a security issue since we can't pick something not present in all preference lists, but we might pick something that isn't scored first choice).
2010-10-27Detect unsigned time_t and adjust y2038 detection.Werner Koch3-7/+18
2010-10-20Remove warnings on VMSWerner Koch5-3/+15
2010-10-18Prepare for 1.4.11Werner Koch2-1/+6
2010-10-10VMS fixesWerner Koch2-4/+8
2010-09-28* options.skel: Make the example for force-v3-sigs match reality (itDavid Shaw2-6/+12
has defaulted to off since 2007-10-22).
2010-09-28The rest of the VMS changes.Werner Koch4-7/+30
2010-09-28Minor changes to help the VMS portWerner Koch7-3/+62
2010-09-23Preparing a release candidateWerner Koch1-0/+3
2010-08-31Minor fixesWerner Koch2-0/+13
2010-07-24support more hash algorithms to support the v2 cardWerner Koch3-1/+14
2010-06-18Backport bug fix. Fixes bug#1240.Werner Koch2-2/+15
2010-06-01Ignore some GnuPG-2 only options.Werner Koch2-1/+13
2010-05-12Fix bug 1179Werner Koch2-4/+9
2010-05-07Fix for bug 1223Werner Koch2-1/+66
2010-03-26Force SHA1 only for v1 cardsWerner Koch2-6/+14
2010-03-26* plaintext.c (handle_plaintext): Make sure that the stdout flushDavid Shaw2-4/+18
succeeded, so we can't lose data when using gpg in a pipeline. Fixes bug #1207.
2010-02-17Fix bug 1186Werner Koch2-1/+6