Neal H. Walfield
8ab63e4b50
g10: Remove unused struct cmp_help_context_s.
...
* g10/sig-check.c (struct cmp_help_context_s) Remove unused struct.
--
Signed-off-by: Neal H. Walfield <neal@g10code.com>.
2015-09-29 11:32:40 +02:00
Neal H. Walfield
12443eafa6
g10: Avoid an unnecessary copy.
...
* g10/sig-check.c (signature_check2): Avoid copying PK to RET_PK.
Instead, directly use the provided storage. If none is provided
allocate some.
--
Signed-off-by: Neal H. Walfield <neal@g10code.com>.
2015-09-29 11:32:39 +02:00
Werner Koch
d2a70fd834
gpg: Replace remaining uses of stdio by estream.
...
* g10/sign.c (sign_file): Use log_printf instead of stderr.
* g10/tdbdump.c (export_ownertrust): Use estream fucntions.
(import_ownertrust): Ditto.
* g10/tdbio.c (tdbio_dump_record): Ditto. Change arg to estream_t.
--
Reported-by: Guilhem Moulin <guilhem@fripost.org>
Needed for unattended key edits with --status-fd, because since 2.1
status prompts are preceded by es_fflush (in cpr.c:do_get_from_fd)
not fflush(3), so the standard output may not be flushed before each
prompt. (Which breaks scripts using select(2) to multiplex between
the standard and status outputs.)
His patch only affected print_and_check_one_sig_colon() but there are
many more places where stdio and estream are mixed. This patch now
replaces most of them in g10/. At some places stdio is still used,
but that is local to a function and should not have side effects.
Signed-off-by: Werner Koch <wk@gnupg.org>
2015-02-19 17:22:27 +01:00
Werner Koch
15fad6b1b9
doc: Change remaining http links to gnupg.org to https
...
--
GnuPG-bug-id: 1830
2015-02-11 12:10:39 +01:00
Werner Koch
11142e0ad7
gpg: Replace remaining old error code macros by GPG_ERR_.
...
* g10/gpg.h (g10_errstr): Remove macro and change all occurrences by
gpg_strerror.
(G10ERR_): Remove all macros and change all occurrences by their
GPG_ERR_ counterparts.
Signed-off-by: Werner Koch <wk@gnupg.org>
2015-01-22 12:06:11 +01:00
Werner Koch
54ffe2045a
Use a unique capitalization for "Note:".
...
--
2014-10-10 15:29:42 +02:00
Werner Koch
ae29b52119
gpg: Disable an MD5 workaround for pgp2 by default.
...
* g10/sig-check.c (do_check): Move some code to ...
* g10/misc.c (print_md5_rejected_note): new function.
* g10/mainproc.c (proc_tree, proc_plaintext): Enable MD5 workaround
only if option --allow-weak-digest-algos is used.
2014-08-14 11:28:11 +02:00
Werner Koch
f90cfe6b66
gpg: Reject signatures made with MD5.
...
* g10/gpg.c: Add option --allow-weak-digest-algos.
(main): Set option also in PGP2 mode.
* g10/options.h (struct opt): Add flags.allow_weak_digest_algos.
* g10/sig-check.c (do_check): Reject MD5 signatures.
* tests/openpgp/defs.inc: Add allow_weak_digest_algos to gpg.conf.
2014-03-17 18:14:23 +01:00
Werner Koch
ea8a1685f7
gpg: Remove cipher.h and put algo ids into a common file.
...
* common/openpgpdefs.h (cipher_algo_t, pubkey_algo_t, digest_algo_t)
(compress_algo_t): New.
* agent/gpg-agent.c: Remove ../g10/cipher.h. Add openpgpdefs.h.
* g10/cipher.h (DEK): Move to ...
* g10/dek.h: new file.
* g10/cipher.h (is_RSA, is_ELGAMAL, is_DSA)
(PUBKEY_MAX_NPKEY, PUBKEY_MAX_NSKEY, PUBKEY_MAX_NSIG, PUBKEY_MAX_NENC)
(PUBKEY_USAGE_SIG, PUBKEY_USAGE_ENC, PUBKEY_USAGE_CERT)
(PUBKEY_USAGE_AUTH, PUBKEY_USAGE_NONE): Move to
* g10/packet.h: here.
* g10/cipher.h: Remove. Remove from all files.
* g10/filter.h, g10/packet.h: Include dek.h.
* g10/Makefile.am (common_source): Remove cipher.h. Add dek.h.
Signed-off-by: Werner Koch <wk@gnupg.org>
2014-01-29 20:35:05 +01:00
Werner Koch
816bee1fa0
Fixed set but unused variable bugs
2011-08-10 14:11:30 +02:00
Werner Koch
b008274afd
Nuked almost all trailing white space.
...
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.
2011-02-04 12:57:53 +01:00
Werner Koch
cd9614b81b
Removed deprecated SIGEXPIRED status line.
2011-02-04 10:28:28 +01:00
Werner Koch
cc99c37549
Make public key data structure easier to read.
...
Check vor v1 card while signing.
2010-10-20 11:33:50 +00:00
Werner Koch
21b0a955be
Generating an OpenPGP key cia gpg-agent basically works.
2010-04-20 17:57:50 +00:00
Werner Koch
ad27e8f41b
Fix bug#1059 (missing status line signature verification done with a
...
subkey while on the main key has expired).
2009-12-17 17:55:43 +00:00
Werner Koch
6558568912
Make gpg not depend on the RIPE-MD160 implementaion in Libgcrypt.
...
Fix SIG_ID computation.
2008-12-11 17:44:52 +00:00
Werner Koch
dbaca1ed0f
Print a note for revoked signing keys.
2008-05-08 10:10:27 +00:00
Werner Koch
93d3811abc
Changed to GPLv3.
...
Removed intl/.
2007-07-04 19:49:40 +00:00
Werner Koch
dae4b2a83a
Fix for bug 797.
2007-05-16 11:10:07 +00:00
Werner Koch
d0907e64f4
Continued with merging.
...
Still does not build.
2006-04-19 13:24:36 +00:00
Werner Koch
29b23dea97
Merged with gpg 1.4.3 code.
...
The gpg part does not yet build.
2006-04-19 11:26:11 +00:00
Werner Koch
4c66e94ff9
Merged most of David Shaw's changes in 1.3 since 2003-06-03.
2003-09-23 17:48:33 +00:00
Werner Koch
979ed0ca26
Adjusted for use with current libgcrypt (1.1.42).
2003-07-28 08:59:18 +00:00
Werner Koch
c0c2c58054
Finished the bulk of changes for gnupg 1.9. This included switching
...
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-18 19:56:13 +00:00
Repo Admin
7250331472
This commit was manufactured by cvs2svn to create branch
...
'GNUPG-1-9-BRANCH'.
2003-06-05 07:14:21 +00:00
Repo Admin
82a17c9fb3
This commit was manufactured by cvs2svn to create branch
...
'GNUPG-1-9-BRANCH'.
2002-10-19 07:55:27 +00:00
David Shaw
1fed5c87f0
* getkey.c (get_pubkey_direct): Don't cache keys retrieved via this
...
function as they may not have all their fields filled in.
* sig-check.c (signature_check2): Use new is_primary flag to check rather
than comparing main_keyid with keyid as this still works in the case of a
not fully filled in pk.
2002-10-04 22:12:09 +00:00
David Shaw
9380f80b14
2002-09-28 David Shaw <dshaw@jabberwocky.com>
...
* export.c (do_export_stream): Comment.
* sig-check.c (check_key_signature2): Properly handle a
non-designated revocation import.
2002-09-26 Werner Koch <wk@gnupg.org>
* g10.c (set_homedir): New. Changed all direct assignments to use
this.
* gpgv.c (set_homedir): Ditto.
2002-09-28 17:49:38 +00:00
David Shaw
7ad7f453c0
* import.c (import_keys_stream): Fix compiler type warning.
...
* keyring.c (keyring_rebuild_cache), sig-check.c (check_key_signature2),
import.c (import, chk_self_sigs): Minor language cleanups.
2002-09-24 21:20:48 +00:00
David Shaw
299e2bf336
From stable branch
...
* keyedit.c (menu_addrevoker): The direct key signature for revocation
keys must be at least v4 to carry the revocation key subpacket. Add a PGP
2.x warning for revocation keys.
* g10.c (check_permissions): Rearrange strings to make translating easier
(don't incorporate string parts).
* keyedit.c (sign_uids): Make strings translatable.
* sig-check.c (check_key_signature2): Make string translatable.
2002-09-17 03:21:13 +00:00
David Shaw
baffecaca2
Import from stable branch.
...
2002-09-13 David Shaw <dshaw@jabberwocky.com>
* getkey.c (check_revocation_keys): Move....
* main.h, sig-check.c (check_revocation_keys): to here. Also
return the signature_check error code rather than 0/1 and cache
the sig result.
* sig-check.c (check_key_signature2): Divert to
check_revocation_keys if a revocation sig is made by someone other
than the pk owner.
* getkey.c (merge_selfsigs_main): Tidy.
2002-09-13 Werner Koch <wk@gnupg.org>
* g10.c (main) [__MINGW32__]: Activate oLoadExtension.
2002-09-13 12:59:31 +00:00
David Shaw
a119391e26
* sig-check.c (do_check_messages, do_check): Show keyid in error messages.
...
* keyserver.c (print_keyinfo): More readable key listings for
--search-keys responses.
2002-08-28 19:34:58 +00:00
David Shaw
7e3e9bf357
* sig-check.c (do_check, do_check_messages): Emit the usual sig warnings
...
even for cached sigs. This also serves to protect against missing a sig
expiring while cached.
* getkey.c (merge_selfsigs_main): Don't check UID self-sigs twice.
2002-08-23 20:59:48 +00:00
David Shaw
e703540328
* sig-check.c (signature_check2): Sanity check that the md has a context
...
for the hash that the sig is expecting. This can happen if a onepass sig
header does not match the actual sig, and also if the clearsign "Hash:"
header is missing or does not match the actual sig.
2002-08-07 19:53:27 +00:00
David Shaw
33ef3cf981
* sig-check.c (do_check): Properly validate v4 sigs with no hashed section
...
at all.
2002-07-29 03:07:11 +00:00
David Shaw
4623605645
* sig-check.c (signature_check2): Signatures made by invalid subkeys
...
(bad/missing binding sig) are also invalid.
* keylist.c (print_fingerprint): Show the primary as well as the secondary
key fingerprint in modes 1 & 2.
2002-07-23 18:42:18 +00:00
David Shaw
3f51f7db3d
Update head to match stable 1.0
2002-06-29 13:46:34 +00:00
Werner Koch
986d928ce2
See ChangeLog: Mon Sep 18 16:35:45 CEST 2000 Werner Koch
2000-09-18 14:35:34 +00:00
Werner Koch
d81c3f733b
See ChangeLog: Fri Jul 28 18:19:11 CEST 2000 Werner Koch
2000-07-28 16:19:07 +00:00
Werner Koch
b872ea2577
See ChangeLog: Tue Jul 25 17:44:15 CEST 2000 Werner Koch
2000-07-25 15:38:12 +00:00
Werner Koch
92cd255508
See ChangeLog: Fri Jul 14 19:38:23 CEST 2000 Werner Koch
2000-07-14 17:34:53 +00:00
Werner Koch
baa30ad117
See ChangeLog: Thu Jan 27 18:00:44 CET 2000 Werner Koch
2000-01-27 16:50:45 +00:00
Werner Koch
0070faa0ff
See ChangeLog: Mon Jan 24 13:04:28 CET 2000 Werner Koch
2000-01-24 11:55:49 +00:00
Werner Koch
ed0b0e09d3
See ChangeLog: Fri Dec 31 12:48:31 CET 1999 Werner Koch
1999-12-31 11:44:29 +00:00
Werner Koch
4555c0be94
See ChangeLog: Wed Dec 8 21:58:32 CET 1999 Werner Koch
1999-12-08 21:03:03 +00:00
Werner Koch
881e513237
See ChangeLog: Sat Nov 13 17:44:23 CET 1999 Werner Koch
1999-11-13 16:43:23 +00:00
Werner Koch
cf70ca8d68
See ChangeLog: Tue Oct 26 14:10:21 CEST 1999 Werner Koch
1999-10-26 12:14:37 +00:00
Werner Koch
0428ca6da6
See ChangeLog: Wed Sep 1 15:30:44 CEST 1999 Werner Koch
1999-09-01 13:40:07 +00:00
Werner Koch
8caf2f7437
See ChangeLog: Mon Jul 12 18:45:57 CEST 1999 Werner Koch
1999-07-12 16:49:22 +00:00
Werner Koch
86abac78a2
See ChangeLog: Fri Jul 2 11:45:54 CEST 1999 Werner Koch
1999-07-02 09:50:57 +00:00
Werner Koch
28eb86c006
See ChangeLog: Thu Jul 1 12:47:31 CEST 1999 Werner Koch
1999-07-01 10:53:35 +00:00
Werner Koch
9131432b4d
See ChangeLog: Sat May 22 22:47:26 CEST 1999 Werner Koch
1999-05-22 20:54:54 +00:00
Werner Koch
77d6309e21
See ChangeLog: Thu May 20 14:04:08 CEST 1999 Werner Koch
1999-05-20 12:11:41 +00:00
Werner Koch
a1dcec76c1
See ChangeLog: Sat May 8 19:28:33 CEST 1999 Werner Koch
1999-05-08 17:35:16 +00:00
Werner Koch
bbf86c6e59
See ChangeLog: Mon Apr 26 17:48:15 CEST 1999 Werner Koch
1999-04-26 15:53:01 +00:00
Werner Koch
b31145f3e2
See ChangeLog: Mon Mar 8 20:47:17 CET 1999 Werner Koch
1999-03-08 19:50:18 +00:00
Werner Koch
c27c7416d5
See ChangeLog: Tue Mar 2 10:38:42 CET 1999 Werner Koch
1999-03-02 09:41:49 +00:00
Werner Koch
694099b9af
See ChangeLog: Fri Feb 26 17:55:41 CET 1999 Werner Koch
1999-02-26 16:59:48 +00:00
Werner Koch
62957ff4e7
See ChangeLog: Tue Jan 12 11:17:18 CET 1999 Werner Koch
1999-01-12 10:20:24 +00:00
Werner Koch
002b1a8632
See ChangeLog: Sat Jan 9 16:02:23 CET 1999 Werner Koch
1999-01-09 15:06:59 +00:00
Werner Koch
7d0efec7cf
See ChangeLog: Thu Jan 7 18:00:58 CET 1999 Werner Koch
1999-01-07 17:05:48 +00:00
Werner Koch
750d74333c
See ChangeLog: Wed Dec 23 13:34:22 CET 1998 Werner Koch
1998-12-23 12:41:40 +00:00
Werner Koch
7a7a5630af
See ChangeLog: Mon Dec 14 21:18:49 CET 1998 Werner Koch
1998-12-14 20:22:42 +00:00
Werner Koch
b076ce3021
Some bug fixes of the last release
1998-11-10 12:59:59 +00:00
Werner Koch
b9dd2ebb2c
(Does not compile yet)
1998-11-03 19:38:58 +00:00
Werner Koch
e81e0970f7
last local commit
1998-10-16 16:00:17 +00:00
Werner Koch
6f73ec963a
*** empty log message ***
1998-10-01 07:23:00 +00:00
Werner Koch
41fa8a3345
*** empty log message ***
1998-09-28 19:25:31 +00:00
Werner Koch
3c53ea75ce
sync
1998-07-15 18:05:01 +00:00
Werner Koch
e143f23c23
fixed severe exploit
1998-07-09 13:37:17 +00:00
Werner Koch
77a6af76d0
textual changes
1998-06-29 12:30:57 +00:00
Werner Koch
06fd61d081
nearly ready for 0.3.0
1998-06-25 10:19:08 +00:00
Werner Koch
6e1ca6b80f
extensions are now working and fixed a lot of bugs
1998-06-15 15:41:04 +00:00
Werner Koch
e662bf708b
gnupg extension are now working
1998-06-13 17:00:02 +00:00
Werner Koch
37d2adfe61
a whole bunch of internal cleanups
1998-06-13 06:59:14 +00:00
Werner Koch
1ece02aa54
Sicherung
1998-06-09 15:14:06 +00:00
Werner Koch
e284277f04
*** empty log message ***
1998-05-29 11:53:54 +00:00
Werner Koch
f9a7043782
new release
1998-05-15 18:49:19 +00:00
Werner Koch
0e5a31d7be
can create v4 signatures
1998-05-13 17:53:36 +00:00
Werner Koch
42b03f6ebd
new release
1998-05-04 18:49:26 +00:00
Werner Koch
edca7206ca
changes from laptop
1998-04-25 08:08:35 +00:00
Werner Koch
700c438def
applied Mathews typo and grammar fixes
1998-04-14 17:51:16 +00:00
Werner Koch
8b10a87908
test release
1998-04-08 19:49:02 +00:00
Werner Koch
303b1084d5
release 0.2.14
1998-04-02 10:30:03 +00:00
Werner Koch
6b91e7762c
some cleanups
1998-03-19 15:27:29 +00:00
Werner Koch
a6a8f1e706
partial DSA support
1998-03-09 21:44:06 +00:00
Werner Koch
b13e238a19
bug fixes
1998-02-27 17:51:28 +00:00
Werner Koch
5a05af2bca
Renamed to GNUPG
1998-02-24 18:50:46 +00:00
Werner Koch
b758180325
added revcation stuff and fixed a couple of bugs
1998-02-18 13:58:46 +00:00
Werner Koch
82464369f6
some import functionality
1998-02-16 20:05:02 +00:00
Werner Koch
fec94908c3
added zlib and reorgnaized some stuff
1998-02-12 14:39:08 +00:00
Werner Koch
4c0c155922
a couple of changes; but some parts are now broken
1998-02-11 03:25:44 +00:00
Werner Koch
3bcd3cd7b2
auf tobold
1998-01-31 21:24:36 +00:00
Werner Koch
4ec1775f3e
added some trust model stuff
1998-01-16 21:15:24 +00:00
Werner Koch
ed36092588
started with trust stuff
1998-01-12 10:18:17 +00:00
Werner Koch
4d2636eafe
Sylvester Version
1997-12-31 12:32:54 +00:00
Werner Koch
cb5459aed7
very first release
1997-12-20 17:23:29 +00:00
Werner Koch
ee8d92fefa
better prime number generator. improved ELG key generation
1997-12-19 11:41:47 +00:00
Werner Koch
935965049d
fingerprints and self signatures added
1997-12-09 12:46:23 +00:00
Werner Koch
5c1cca042e
List and check sigs works
1997-12-01 10:33:23 +00:00