aboutsummaryrefslogtreecommitdiffstats
path: root/g10 (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Prepare for a forthcoming new algorithm id.Werner Koch2013-07-251-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.
* gpg: fix previous changeNIIBE Yutaka2013-07-161-1/+1
| | | | * g10/gpgv.c: Fix void dotlock_remove_lockfiles.
* gpg: signal handling fixNIIBE Yutaka2013-07-123-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
* Fix honoring --cert-digest-algo when recreating a certChristian Aistleitner2013-01-111-0/+1
| | | | | * g10/sign.c (update_keysig_packet): Override original signature's digest algo in hashed data.
* gpg: Suppress "public key already present" in quiet mode.Werner Koch2012-12-201-4/+6
| | | | | | | | * g10/pkclist.c (build_pk_list): Print two diagnostics only in non-quiet mode. -- (back-ported from commit 8325d616593187ff227853de0295e3269b96edcb)
* Import only packets which are allowed in a keyblock.Werner Koch2012-12-201-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
* Remove trailing white space from some filesWerner Koch2012-12-191-18/+18
| | | | --
* Fix potential heap corruption in "gpg -v --version"Werner Koch2012-12-151-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>
* Card: Fix the process of writing key or generating key.NIIBE Yutaka2012-12-131-2/+2
| | | | | | | * g10/app-openpgp.c (store_fpr): Flush KEY-FPR and KEY-TIME. -- (cherry picked from commit e7dca3e83ebd6df0a7ea55e97c3cd6e91be90af5)
* The keyserver search menu should honor --keyid-formatDavid Shaw2012-11-291-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).
* Create off-line card encryption key with the right size.Werner Koch2012-11-081-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
* Support the not anymore patented IDEA cipher algorithm.Werner Koch2012-11-0810-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.
* Fix typos spotted during translationsWerner Koch2012-08-242-4/+4
| | | | | * g10/gpg.c: uppercase after Syntax * util/secmem.c (print_warn): Update URL.
* Actually show translators comments in PO filesDavid Prévot2012-08-244-9/+8
| | | | | | | -- Note that strings marked for gettext need to immediately follow a TRANSLATOR comment block.
* With --quiet do not print reading passphrase from fd message.Werner Koch2012-04-291-53/+53
| | | | | Fix for bug#1403. * g10/passphrase.c (read_passphrase_from_fd): Act on --quiet.
* Honor --cert-digest-algo when recreating a cert.David Shaw2012-02-011-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.
* Merge branch 'STABLE-BRANCH-1-4' of git+ssh://playfair.gnupg.org/git/gnupg ↵David Shaw2012-01-204-21/+30
|\ | | | | | | into STABLE-BRANCH-1-4
| * Add a DECRYPTION_INFO status.Werner Koch2012-01-133-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.
| * gpg: Remove unused fields from a trust data structure.Werner Koch2012-01-121-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.
* | Changes to --min-cert-level should cause a trustdb rebuild (issue 1366)David Shaw2012-01-206-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.
* Allow use of a standard space separated fingerprint.Werner Koch2012-01-101-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.
* Replace file locking by the new portable dotlock code.Werner Koch2012-01-106-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.
* Update copyright years.Werner Koch2012-01-101-1/+1
| | | | * util/argparse.c (default_strusage): Update printed copyright year.
* Rename all ChangeLog files to ChangeLog-2011.Werner Koch2011-12-021-2/+9
| | | | * ChangeLog: New file.
* On VMS use --batch by default if in batch mode.Werner Koch2011-09-122-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.
* Removed some set but unused vars.Werner Koch2011-08-095-94/+93
|
* Fix bug#1307Werner Koch2011-08-093-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.
* Print the decoded iteration count witn --list-packets.Werner Koch2011-07-222-13/+20
| | | | Fixes bug#1355.
* Add pubkey letters e and E for ECC.Werner Koch2011-07-016-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.
* * photoid.c (generate_photo_id): Check for the JPEG magic numbersDavid Shaw2011-04-062-3/+8
| | | | | instead of JFIF since some programs generate an EXIF header first. This is issue 1331.
* Don't link gpgv with libreadlineWerner Koch2011-02-233-177/+185
| | | | Also add a useful .gitignore file.
* * gpg.c (main): Do not provide a default forDavid Shaw2010-10-292-6/+5
| | | | | | --personal-digest-preferences. This allows the usual digest selection algorithm to pick a digest based on recipient keys.
* * pkclist.c (select_algo_from_prefs): Slightly improve the handling ofDavid Shaw2010-10-292-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.
* * pkclist.c (select_algo_from_prefs): Make sure the scores can'tDavid Shaw2010-10-292-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).
* Detect unsigned time_t and adjust y2038 detection.Werner Koch2010-10-273-7/+18
|
* Remove warnings on VMSWerner Koch2010-10-205-3/+15
|
* Prepare for 1.4.11Werner Koch2010-10-182-1/+6
|
* VMS fixesWerner Koch2010-10-102-4/+8
|
* * options.skel: Make the example for force-v3-sigs match reality (itDavid Shaw2010-09-282-6/+12
| | | | | has defaulted to off since 2007-10-22).
* The rest of the VMS changes.Werner Koch2010-09-284-7/+30
|
* Minor changes to help the VMS portWerner Koch2010-09-287-3/+62
|
* Preparing a release candidateWerner Koch2010-09-231-0/+3
|
* Minor fixesWerner Koch2010-08-312-0/+13
|
* support more hash algorithms to support the v2 cardWerner Koch2010-07-243-1/+14
|
* Backport bug fix. Fixes bug#1240.Werner Koch2010-06-182-2/+15
|
* Ignore some GnuPG-2 only options.Werner Koch2010-06-012-1/+13
|
* Fix bug 1179Werner Koch2010-05-122-4/+9
|
* Fix for bug 1223Werner Koch2010-05-072-1/+66
|
* Force SHA1 only for v1 cardsWerner Koch2010-03-262-6/+14
|
* * plaintext.c (handle_plaintext): Make sure that the stdout flushDavid Shaw2010-03-262-4/+18
| | | | | | succeeded, so we can't lose data when using gpg in a pipeline. Fixes bug #1207.