1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-11-04 20:38:50 +01:00
Commit Graph

846 Commits

Author SHA1 Message Date
Werner Koch
0a66b9aaae * mainproc.c (proc_symkey_enc): Avoid segv in case the parser
encountered an invalid packet.
2002-05-11 16:54:43 +00:00
Werner Koch
6237f835d3 * keyserver.c (keyserver_export): Get confirmation before sending
all keys.
2002-05-11 12:33:13 +00:00
Werner Koch
0c17aeba5d doc updates 2002-05-11 12:32:46 +00:00
Stefan Bellon
1935d90e1f fixes for M_DEBUG, strcasecmp and RISC OS 2002-05-10 17:28:32 +00:00
David Shaw
fecfcb6454 * packet.h, getkey.c (fixup_uidnode), keyedit.c (show_prefs): Show assumed
prefs for hash and compression as well as the cipher pref. Show assumed
prefs if there are no prefs at all on a v4 self-signed key.

* options.h, g10.c (main), sign.c (make_keysig_packet): New
--cert-digest-algo function to override the default key signing hash
algorithm.
2002-05-10 15:27:20 +00:00
Werner Koch
4346b6f501 * Makefile.am: Add gpg_dearmor to all targets where it is used.
Noted by Andreas Haumer.
2002-05-10 08:53:30 +00:00
David Shaw
0c3ac11549 * getkey.c (merge_selfsigs_main): Make sure the revocation key list starts
clean as this function may be called more than once (e.g. from functions
in --edit).

* g10.c, encode.c (encode_crypt), sign.c (sign_file,
sign_symencrypt_file): Make --compress-algo work like the documentation
says.  It should be like --cipher-algo and --digest-algo in that it can
override the preferences calculation and impose the setting the user
wants.  No --compress-algo setting allows the usual preferences
calculation to take place.

* main.h, compress.c (compress_filter): use new DEFAULT_COMPRESS_ALGO
define, and add a sanity check for compress algo value.
2002-05-09 19:57:08 +00:00
David Shaw
4cb36096ec * pkclist.c (select_algo_from_prefs): There is an assumed compression
preference for uncompressed data.
2002-05-09 03:44:31 +00:00
David Shaw
40bd97eee3 * gpgkeys_ldap.c: Include <lber.h> if we absolutely must. This helps when
compiling against a very old OpenLDAP.
2002-05-08 23:17:51 +00:00
David Shaw
5a797b494b configure.ac: If LDAP comes up unusable, try #including <lber.h> before
giving up.  Old versions of OpenLDAP require that.
2002-05-08 23:17:25 +00:00
David Shaw
a2dcc14710 * gpg.sgml: Add entries for --sk-comments, --no-sk-comments, --pgp7, and
--no-pgp7.  Fix --pgp2 and --pgp6: the proper name is --escape-from-lines
and not --escape-from.
2002-05-08 03:38:35 +00:00
David Shaw
7ee8e46500 * options.h, g10.c (main), getkey.c (finish_lookup), pkclist.c
(algo_available): --pgp7, identical to --pgp6 except that it permits a few
algorithms that PGP 7 added: AES128, AES192, AES256, and TWOFISH.  Any
more of these --pgpX flags, and it'll be time to start looking at a
generic --emulate-pgp X option.
2002-05-07 22:04:27 +00:00
David Shaw
d5d974536e * export.c (do_export_stream): Warn the user when exporting a secret key
if it or any of its secret subkeys are protected with SHA1 while
simple_sk_checksum is set.

* parse-packet.c (parse_key): Show when the SHA1 protection is used in
--list-packets.

* options.h, build-packet.c (do_comment), g10.c (main): Rename
--no-comment as --sk-comments/--no-sk-comments (--no-comment still works)
and make the default be --no-sk-comments.
2002-05-07 15:21:57 +00:00
Stefan Bellon
7d217ecd7a use EXTSEP_S instead of "." 2002-05-07 14:43:00 +00:00
Werner Koch
0295445a4c * keygen.c (get_parameter_algo): Never allow generation of the
deprecated RSA-E or RSA-S flavors of PGP RSA.
(ask_algo): Allow generation of RSA sign and encrypt in expert
mode.  Don't allow ElGamal S+E unless in expert mode.
* helptext.c: Added entry keygen.algo.rsa_se.
2002-05-07 07:24:29 +00:00
David Shaw
2e56b988c8 * keyedit.c (sign_uids): If --expert it set, allow re-signing a uid to
promote a v3 self-sig to a v4 one.  This essentially deletes the old v3
self-sig and replaces it with a v4 one.
2002-05-07 04:27:40 +00:00
David Shaw
50c9a5bd25 * packet.h, parse-packet.c (parse_key), getkey.c (merge_keys_and_selfsig,
merge_selfsigs_main): a v3 key with a v4 self-sig must never let the v4
self-sig express a key expiration time that extends beyond the original v3
expiration time.
2002-05-07 04:05:03 +00:00
David Shaw
4a214fbfbb * keyedit.c (sign_uids): When making a self-signature via "sign" don't ask
about sig level or expiration, and include the usual preferences and such
for v4 self-sigs.  (menu_set_preferences): Convert uids from UTF8 to
native before printing.
2002-05-06 22:38:53 +00:00
David Shaw
2dfec7107c * keyedit.c (sign_uids): Convert uids from UTF8 to native before printing.
(menu_set_primary_uid): Show error if the user tries to make a uid with a
v3 self-sig primary.
2002-05-06 16:40:33 +00:00
David Shaw
ffc98f20ea * import.c (import_one): When merging with a key we already have, don't
let a key conflict (same keyid but different key) stop the import: just
skip the bad key and continue.

* exec.c (make_tempdir): Under Win32, don't try environment variables for
temp directories - GetTempDir tries environment variables internally, and
it's better not to second-guess it in case MS adds some sort of temp dir
handling to Windows at some point.
2002-05-05 19:44:22 +00:00
Timo Schulz
f6ccde9f14 2002-05-04 Timo Schulz <ts@winpt.org>
* mainproc.c (proc_symkey_enc): Don't ask for a passphrase
        in the list only mode.
2002-05-05 15:50:44 +00:00
David Shaw
ab59f621d6 * keyserver.c (keyserver_refresh): --refresh-keys implies --merge-only so
as not to import keys with keyids that match the ones being refreshed.
Noted by Florian Weimer.
2002-05-05 12:45:54 +00:00
Werner Koch
d89cf26621 * http.c (write_server) [__MINGW32__]: Replaced WriteFile by send
because sockets don't work with WriteFile under NT anymore.
2002-05-04 16:49:25 +00:00
Stefan Bellon
f67a0e6223 reminder to change wording 2002-05-04 16:32:03 +00:00
Stefan Bellon
158091ef9f fixed m_alloc(0) bug and added checks to revkey and numrevkeys 2002-05-04 14:45:34 +00:00
David Shaw
4991e018bf * photoid.c: Provide default image viewer for Win32.
* misc.c (pct_expando): %t means extension, not name ("jpg", not "jpeg").

* keyserver.c (keyserver_spawn), photoid.c (show_photos), exec.h, exec.c:
Allow the caller to determine the temp file extension when starting an
exec_write and change all callers.
2002-05-04 00:39:15 +00:00
David Shaw
201ad25df9 * keyedit.c (sign_uids): Nonrevocable key signatures cause an automatic
promotion to v4.
2002-05-03 22:31:30 +00:00
David Shaw
154c4c3000 configure.ac: In g10defs.h, use \ for the directory separator when
HAVE_DOSISH_SYSTEM is on.
2002-05-03 14:42:49 +00:00
David Shaw
8b7d2475bb * argparse.c (optfile_parse): Remove quotes only if they totally enclose
the string, and do not occur within the string.  This makes specifying a
program under Win32 easier when you need quotes around part of a string,
but not around the whole string.
2002-05-03 13:20:00 +00:00
David Shaw
cc0074dc5a * configure.ac: Add --disable-exec flag to disable all remote program
execution.  --disable-exec implies --disable-ldap and --disable-mailto.
Also look in /usr/lib for sendmail.  If sendmail is not found, do not
default - just fail.

* exec.c: Provide stubs for exec_ functions when NO_EXEC is defined.
2002-05-03 12:35:51 +00:00
David Shaw
6dc53d136a * photoid.h, photoid.c (parse_image_header, image_type_to_string): Useful
functions to return data about an image.

* packet.h, parse-packet.c (make_attribute_uidname,
parse_attribute_subpkts, parse_attribute), photoid.h, photoid.c
(show_photos): Handle multiple images in a single attribute packet.

* main.h, misc.c (pct_expando), sign.c (mk_notation_and_policy), photoid.c
(show_photos): Simpler expando code that does not require using
compile-time string sizes.  Call image_type_to_string to get image strings
(i.e. "jpg", "image/jpeg").  Change all callers.

* keyedit.c (menu_showphoto), keylist.c (list_keyblock_print): Allow
viewing multiple images within a single attribute packet.

* gpgv.c: Various stubs for link happiness.
2002-05-02 20:47:23 +00:00
David Shaw
0d63a076b0 Allow multiple policy URLs on a given signature.
Split "--notation-data" into "--cert-notation" and "--sig-notation" so the
user can set different policies for key and data signing.  For backwards
compatibility, "--notation-data" sets both, as before.
2002-05-02 13:25:59 +00:00
Werner Koch
1b65d681ff util/
* memory.c (alloc): Malloc at least 1 byte.  Noted by Winona Brown.
g10/
* options.skel: Removed the comment on trusted-keys because this
option is now deprecated.
2002-05-02 07:48:39 +00:00
David Shaw
66c8a663a5 * keyedit.c (menu_adduid): 2440bis04 says that multiple attribute packets
on a given key are legal.

* keyserver.c (keyserver_refresh): the fake v3 keyid hack applies to
"mailto" URLs as well since they are also served by pksd.
2002-05-01 22:33:18 +00:00
David Shaw
4735060540 configure.ac: Try and link to a sample LDAP program to check if the LDAP
we're about to use is really sane.  The most common problem (using a very
old OpenLDAP), could be fixed with an extra #include, but this would not
be very portable to other LDAP libraries.
2002-04-30 22:53:51 +00:00
Timo Schulz
77dbf12bc3 2002-04-30 Timo Schulz <ts@winpt.org>
* gpg.sgml: Add an entry for --encrypt-files and --decrypt-files.
2002-04-30 17:11:05 +00:00
Werner Koch
77fe150d8d Bumbed version number 2002-04-29 16:53:04 +00:00
Werner Koch
b815d80a83 msgfmt interacts badly with cvs. Updating only the revision line is
not a nice behaviour.
2002-04-29 16:23:10 +00:00
Werner Koch
d340f813db For unknown reasons this file was not any armored, which messed up the
patch file generaten.
2002-04-29 16:09:30 +00:00
Werner Koch
a8f2d55447 Last preparations for 1.0.7 2002-04-29 14:56:08 +00:00
Werner Koch
cd59cb1d64 Added a copyright year for files changed this year. 2002-04-29 14:42:34 +00:00
Werner Koch
2fa062b649 gpg.texti is a generated file. 2002-04-29 14:39:15 +00:00
Werner Koch
70acd94371 msgfmt changed the indentation of one entry. 2002-04-29 14:19:57 +00:00
David Shaw
e5dbb3d45c gpg.sgml: Fix minor error in --pgp6 documentation: it does not imply
--digest-algo MD5
2002-04-29 13:25:04 +00:00
David Shaw
3d63a818a3 * gpgkeys_mailto.in: Properly handle key requests in full fingerprint
form.
2002-04-29 13:18:53 +00:00
Werner Koch
1e1198a450 * faq.raw: Inserted Douglas Calvert as new maintainer. Acknowledge
Nils.  Add entry about trust packet parsing problems.
2002-04-29 12:25:35 +00:00
Werner Koch
30eae496e0 * pl.po: Update.
* el.po: Updated, removed one entry due to non-matching printf and
one removed one printf specifier.
2002-04-29 12:02:45 +00:00
Werner Koch
587c3e700b This one is build from faq.raw 2002-04-29 12:00:24 +00:00
Werner Koch
ab15f6d0d8 * doc/samplekeys.asc: Added gnupg distribution key 57548DCD.
* doc/faq.raw: Inserted Douglas Calvert as new maintainer.
* README: Fixed some minor things.
2002-04-29 09:18:14 +00:00
Werner Koch
a452130f55 fixed comment style 2002-04-29 09:17:17 +00:00