aboutsummaryrefslogtreecommitdiffstats
path: root/g10/keyid.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* gpg: Print PGP-2 fingerprint instead of all zeroes.Werner Koch2015-06-171-1/+1
| | | | | | | | | | | | | | | | * g10/keyid.c (fingerprint_from_pk): Allow PGP-2 fingerprints. * g10/keylist.c (print_fingerprint): Print a warning after a PGP-2 fingerprint. -- Printing all zeroes for a PGP-2 (v3 key) fingerprint has the problem that frontends (or the user) may use that fingerprint to lookup a key and gpg will return all PGP2 keys. They may then show a different PGP-2 key than the one actually used for a signature. This is worse than displaying a weak fingerprint. GnuPG-bug-id: 2000 Signed-off-by: Werner Koch <[email protected]>
* gpg: Fix segv due to NULL value stored as opaque MPI (BRANCH 2.0)Daniel Kahn Gillmor2015-06-021-6/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * g10/build-packet.c (do_secret_key): Check for NULL return from gcry_mpi_get_opaque. * g10/keyid.c (hash_public_key): Ditto. -- This is a backport of 76c8122adfed0f0f443cce7bda702ba2b39661b3 from master to the STABLE-BRANCH-2-0 On the STABLE-BRANCH-2-0, we may also want to patch g10/seckey-cert.c, but that has not been done in this patch. This fix extends commmit 0835d2f44ef62eab51fce6a927908f544e01cf8f. gpg2 --export --no-default-keyring --keyring TESTDATA With TESTDATA being below after unpacking. -----BEGIN PGP ARMORED FILE----- mBMEhdkMmS8BcX8F//8F5voEhQAQmBMEnAAAZwAAo4D/f/8EhQAAAIAEnP8EhQAQ iBMEnP8AAAAABf8jIID///8EhQYQmBMEnIUAEIgTBKT/AAAAAAUAACCA/f//BIUA EJgTBJx/AP8ABPPzBJx/AP8ABPPz =2yE0 -----END PGP ARMORED FILE----- Reported-by: Jodie Cunningham Signed-off-by: Daniel Kahn Gillmor <[email protected]>
* Use inline functions to convert buffer data to scalars.Werner Koch2015-02-121-19/+13
| | | | | | | | | | | | | | | | * include/host2net.h (buf16_to_ulong, buf16_to_uint): New. (buf16_to_ushort, buf16_to_u16): New. (buf32_to_size_t, buf32_to_ulong, buf32_to_uint, buf32_to_u32): New. -- This fixes sign extension on shift problems. Hanno Böck found a case with an invalid read due to this problem. To fix that almost all uses of "<< 24" and "<< 8" are changed by this patch to use an inline function from host2net.h. (back ported from commit 2183683bd633818dd031b090b5530951de76f392) Signed-off-by: Werner Koch <[email protected]>
* gpg: Show v3 key fingerprints as all zero.Werner Koch2014-10-111-1/+1
| | | | | | | | | | | * g10/keyid.c (fingerprint_from_pk): Show v3 fingerprints as all zero. -- MD5 is considered broken for a long time now. To make it easier for users to notice that a listing shows a v3 key, the fingerprint is now displayed as 16 zero bytes unless --allow-weak-digest-algos is active. Signed-off-by: Werner Koch <[email protected]>
* Provide pubkey letters e and EWerner Koch2011-07-011-20/+21
| | | | | This is only to print those letters instead of a question mark. It does not mean ECC is or will be supported in this branch.
* Make gpg not depend on the RIPE-MD160 implementaion in Libgcrypt.Werner Koch2008-12-111-7/+6
| | | | | Fix SIG_ID computation.
* Made --fixed-list-mode obsolete.Werner Koch2008-06-111-34/+25
|
* Changed to GPLv3.Werner Koch2007-07-041-4/+2
| | | | | Removed intl/.
* No more warnings for AMD64 (at least when cross-compiling). Thus tehre is aWerner Koch2006-11-211-1/+2
| | | | | | | good chance that gpg2 will now work. Other cleanups. Updated gettext.
* Fixed v3 keyids.Werner Koch2006-10-181-3/+5
|
* With --enable-gpg the keyservers are now build and a first test using gpg2Werner Koch2006-08-161-0/+25
| | | | | shows no prblems. Needs more testing of course.
* Still making gpg2 work.Werner Koch2006-05-241-5/+1
| | | | | At least the keyids are now correctly computed again.
* Merged with gpg 1.4.3 code. Werner Koch2006-04-191-235/+444
| | | | | The gpg part does not yet build.
* Adjusted for use with current libgcrypt (1.1.42).Werner Koch2003-07-281-12/+14
|
* * keygen.c (generate_keypair): Create an AUTHKEYTYPE entry for cards.Werner Koch2003-07-231-1/+1
| | | | | | (do_generate_keypair): Abd generate the authkey. (check_smartcard): Changed menu accordingly.
* * export.c (parse_export_options): New option sexp-format.Werner Koch2003-07-161-0/+1
| | | | | | | | | (export_seckeys,export_secsubkeys): Check sexp-format option. (do_export): Ignore armor for sexp format. (do_export_stream): Handle sexp-format. (write_sexp_line,write_sexp_keyparm, build_sexp_seckey): New. (build_sexp): New.
* * app-openpgp.c (store_fpr): Fixed fingerprint calculation.Werner Koch2003-07-011-1/+29
| | | | | | | | * keygen.c (gen_card_key): Obviously we should use the creation date received from SCDAEMON, so that the fingerprints will match. * sign.c (do_sign): Pass the serialno to the sign code. * keyid.c (serialno_and_fpr_from_sk): New.
* Fixes to the libgcrypt switch. Basically works now.Werner Koch2003-06-231-6/+4
|
* Finished the bulk of changes for gnupg 1.9. This included switchingWerner Koch2003-06-181-73/+135
| | | | | | | | | | | 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.
* This commit was manufactured by cvs2svn to create branchRepo Admin2003-06-051-0/+518
| | | | 'GNUPG-1-9-BRANCH'.
* This commit was manufactured by cvs2svn to create branchRepo Admin2002-10-191-502/+0
| | | | 'GNUPG-1-9-BRANCH'.
* Update head to match stable 1.0David Shaw2002-06-291-249/+187
|
* See ChangeLog: Fri Oct 6 14:29:16 CEST 2000 Werner KochWerner Koch2000-10-061-0/+65
|
* See ChangeLog: Wed Oct 4 13:16:18 CEST 2000 Werner KochWerner Koch2000-10-041-1/+1
|
* See ChangeLog: Mon Sep 18 16:35:45 CEST 2000 Werner KochWerner Koch2000-09-181-1/+9
|
* See ChangeLog: Fri Jul 14 19:38:23 CEST 2000 Werner KochWerner Koch2000-07-141-4/+6
|
* See ChangeLog: Mon Jan 24 13:04:28 CET 2000 Werner KochWerner Koch2000-01-241-22/+19
|
* See ChangeLog: Fri Dec 31 12:48:31 CET 1999 Werner KochWerner Koch1999-12-311-26/+81
|
* See ChangeLog: Wed Dec 8 21:58:32 CET 1999 Werner KochWerner Koch1999-12-081-4/+4
|
* See ChangeLog: Sat Nov 13 17:44:23 CET 1999 Werner KochWerner Koch1999-11-131-9/+9
|
* See ChangeLog: Tue Oct 26 14:10:21 CEST 1999 Werner KochWerner Koch1999-10-261-48/+55
|
* See ChangeLog: Wed Dec 23 13:34:22 CET 1998 Werner KochWerner Koch1998-12-231-3/+3
|
* Expiration time works (I hope so)Werner Koch1998-11-201-1/+1
|
* last local commitWerner Koch1998-10-161-6/+11
|
* backupWerner Koch1998-10-121-1/+1
|
* bug fix releaseV0-3-4Werner Koch1998-08-111-1/+1
|
* edit-key is now completeWerner Koch1998-07-291-0/+31
|
* changed trustdb designWerner Koch1998-07-211-0/+37
|
* syncWerner Koch1998-07-141-9/+15
|
* fixed severe exploitV0-3-2Werner Koch1998-07-091-1/+10
|
* partly added creation of OP partial length headersWerner Koch1998-07-021-14/+20
|
* textual changesWerner Koch1998-06-291-55/+53
|
* a whole bunch of internal cleanupsWerner Koch1998-06-131-266/+89
|
* new releaseV0-2-17Werner Koch1998-05-041-12/+13
|
* test releaseWerner Koch1998-04-081-8/+8
|
* cipher reorganisiertWerner Koch1998-04-071-24/+0
|
* release 0.2.14Werner Koch1998-04-021-6/+6
|
* some cleanupsWerner Koch1998-03-191-9/+79
|
* partial DSA supportWerner Koch1998-03-091-0/+113
|
* Renamed to GNUPGV-0-2-8Werner Koch1998-02-241-4/+4
|