aboutsummaryrefslogtreecommitdiffstats
path: root/g10/encode.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* * keydb.h, pkclist.c (select_algo_from_prefs): Allow passing a suggestedDavid Shaw2002-06-201-7/+32
| | | | | | | | | | | | | | | | | | | algorithm which will be used if available. * encode.c (encode_crypt, encrypt_filter), sign.c (sign_file): Use new select_algo_from_prefs feature to check if forcing an algorithm would violate the recipient preferences. * photoid.c (get_default_photo_command, show_photos): Use different default viewers on different platforms. Currently we have Win 9x, Win NT (2k, xp), Mac OSX, RISC OS, and "everybody else". These are #ifdefs as much as possible to avoid clutter. * g10.c (strusage, build_list), keyedit.c (show_prefs), main.h, misc.c (compress_algo_to_string, check_compress_algo), pkclist.c (algo_available), keygen.c (keygen_set_std_prefs): New algo_to_string and check functions for compress algorithms.
* 2002-06-08 Timo Schulz <[email protected]>Timo Schulz2002-06-081-1/+5
| | | | | | * encode.c (encode_symmetric): Disable the compat flag when the expert mode is enabled.
* 2002-06-05 Timo Schulz <[email protected]>Timo Schulz2002-06-051-0/+6
| | | | | | | * encode.c (encode_simple): Ignore the new mode for RFC1991. * mainproc.c (symkey_sesskey_decrypt): Better check for weird keysizes.
* 2002-06-05 Timo Schulz <[email protected]>Timo Schulz2002-06-051-5/+46
| | | | | | | * encode.c (encode_sesskey): New. (encode_simple): Use it here. But by default we use the compat mode which supress to generate encrypted session keys.
* * sign.c (hash_for, sign_file): When encrypting and signing at the sameDavid Shaw2002-06-041-3/+4
| | | | | | | | | | | | | | | | | time, consult the various hash prefs to pick a hash algorithm to use. Pass in a 160-bit hint if any of the signing keys are DSA. * keydb.h, pkclist.c (select_algo_from_prefs, algo_available): Pass a "hints" opaque pointer in to let the caller give hints as to what algorithms would be acceptable. The only current hint is for PREFTYPE_HASH to require a 160-bit hash for DSA. Change all callers in encode.c (encode_crypt, encrypt_filter) and sign.c (sign_file). If we settle on MD5 as the best algorithm based solely on recepient keys and SHA1 is also a possibility, use SHA1 unless the user intentionally chose MD5. This is as per 2440:13. * exec.c (make_tempdir): Fix duplicated filename problem.
* * encode.c (encode_simple): Intialize PKT when --no-literal is used.Werner Koch2002-05-291-1/+5
|
* * getkey.c (merge_selfsigs_main): Make sure the revocation key list startsDavid Shaw2002-05-091-11/+13
| | | | | | | | | | | | | | | | 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.
* Added a copyright year for files changed this year.Werner Koch2002-04-291-1/+1
|
* Merged in my changes, after disk crash. Fortunately the CVS was notWerner Koch2002-04-081-2/+2
| | | | | | affected - but everything else and it seems that there is no backup of the BTS data is available :-(
* --pgp6 flag. This is not nearly as involved as --pgp2. In short, itDavid Shaw2002-01-291-17/+0
| | | | | | | | turns off force_mdc, turns on no_comment, escape_from, and force_v3_sigs, and sets compression to 1. It also restricts the user to IDEA (if present), 3DES, CAST5, MD5, SHA1, and RIPEMD160. See the comments above algo_available() for lots of discussion on why you would want to do this.
* Some compatibility polish for PGP2. Add a fake IDEA preference for v3David Shaw2002-01-221-3/+18
| | | | | | | | keys (this is in the RFC), so that they can be (sometimes) used along OpenPGP keys. Do not force using IDEA on an OpenPGP key, as this may violate its prefs. Also, revise the help text for the sig class explanation.
* * passphrase.c (passphrase_to_dek): Add tryagain_text arg to beWerner Koch2002-01-201-2/+2
| | | | | | | | | | | | | | used with the agent. Changed all callers. (agent_get_passphrase): Likewise and send it to the agent * seckey-cert.c (do_check): New arg tryagain_text. (check_secret_key): Pass the string to do_check. * keygen.c (ask_passphrase): Set the error text is required. * keyedit.c (change_passphrase): Ditto. * passphrase.c (agent_open): Disable opt.use_agent in case of a problem with the agent. (agent_get_passphrase): Ditto. (passphrase_clear_cache): Ditto.
* New command --decrypt-files.Timo Schulz2002-01-151-39/+38
| | | | | Some fixes.
* Fixed some typos.Timo Schulz2002-01-121-27/+56
|
* New code for encode_crypt_files.Timo Schulz2002-01-091-9/+28
|
* fix off-by-one in building attribute subpacketsDavid Shaw2002-01-061-1/+5
| | | | | | | | | | change default compression to 1 add ask-sig-expire and ask-cert-expire (--expert was getting absurdly overloaded) permit v3 subkeys use --expert to protect adding multiple photo ids and adding photos to a v3 key
* Use one-pass packets even if it's a v3 key making the signatureDavid Shaw2002-01-041-9/+12
| | | | | | | Warn with pgp2 and non-detached signatures Use the actual filesize rather than partial length packets in symmetric messages (see ChangeLog or NEWS for discussion).
* New command (encrypt-files).Timo Schulz2002-01-031-0/+16
|
* Minor cleanupsWerner Koch2001-12-221-14/+17
|
* Added is_file_compressedTimo Schulz2001-12-221-1/+19
|
* Add a generic IDEA warning for when the IDEA plugin is not present. ThisDavid Shaw2001-12-171-2/+3
| | | | | | | | pops up when the user uses "--cipher-algo idea", when setpref is used to set a "S1" preference, and when a secret key protected with IDEA is used. Tweak the --pgp2 mode to use this generic warning.
* * keyserver.c (keyserver_spawn): Assert that we have dropped privs.Werner Koch2001-12-151-2/+3
| | | | | | | | | | | | | | | | | * pubkey-enc.c (get_session_key): Check that the public key algorithm is indeed usable for en/decryption. This avoid a strange error message from pubkey_decrypt if for some reasons a bad algorithm indentifier is passed. * hkp.c (hkp_export): Do not print possible control characters from a keyserver response. (parse_hkp_index): Made uid an unsigned char* because it is passed to isspace(). (hkp_search): Ditto for the char* vars. * g10.c (main): Print the IDEA warning also for -c and -se. * g10.c (get_temp_dir): Assert that we have dropped privs * encode.c (encode_crypt): Include the first key into the --pgp2 check.
* PGP2 patch. --pgp2 sets things up for pgp2 compatibility, and prints aDavid Shaw2001-12-071-1/+12
| | | | | | warning if the user does something that would make the message not compatible (i.e. encrypt with a non-RSA key, etc.)
* MDC feature support and other stuffWerner Koch2001-08-301-0/+5
|
* Implemented -cs and some fixes to the rfc1991 symmetric only modeWerner Koch2001-08-201-3/+6
|
* Revamped preference handlingWerner Koch2001-08-101-1/+1
|
* Changed and added copyright noticesWerner Koch2001-03-081-1/+1
|
* Mainly changes to the pipe handling under W32Werner Koch2000-12-061-4/+9
|
* See ChangeLog: Wed Sep 6 17:55:47 CEST 2000 Werner KochWerner Koch2000-09-061-0/+9
|
* See ChangeLog: Fri May 12 14:01:20 CEST 2000 Werner KochWerner Koch2000-05-121-1/+1
|
* See ChangeLog: Wed Feb 9 15:33:44 CET 2000 Werner KochWerner Koch2000-02-091-1/+1
|
* See ChangeLog: Fri Nov 12 20:33:19 CET 1999 Werner KochWerner Koch1999-11-121-1/+1
|
* See ChangeLog: Tue Sep 28 20:56:34 CEST 1999 Werner KochWerner Koch1999-09-281-0/+1
|
* See ChangeLog: Wed Aug 4 10:34:46 CEST 1999 Werner KochV0-9-10Werner Koch1999-08-041-1/+2
|
* See ChangeLog: Mon Jul 26 09:34:46 CEST 1999 Werner KochWerner Koch1999-07-261-47/+97
|
* See ChangeLog: Thu Jul 1 12:47:31 CEST 1999 Werner KochWerner Koch1999-07-011-1/+1
|
* See ChangeLog: Tue Jun 15 14:23:10 CEST 1999 Werner KochWerner Koch1999-06-151-0/+14
|
* See ChangeLog: Mon May 17 21:54:43 CEST 1999 Werner KochWerner Koch1999-05-171-0/+1
|
* See ChangeLog: Sat May 8 19:28:33 CEST 1999 Werner KochWerner Koch1999-05-081-189/+0
|
* See ChangeLog: Mon Apr 26 17:48:15 CEST 1999 Werner KochWerner Koch1999-04-261-0/+192
|
* See ChangeLog: Wed Mar 17 13:09:03 CET 1999 Werner KochWerner Koch1999-03-171-5/+15
|
* See ChangeLog: Fri Feb 26 17:55:41 CET 1999 Werner KochWerner Koch1999-02-261-1/+7
|
* See ChangeLog: Tue Dec 29 14:41:47 CET 1998 Werner KochWerner Koch1998-12-291-1/+1
|
* See ChangeLog: Wed Dec 23 13:34:22 CET 1998 Werner KochWerner Koch1998-12-231-3/+3
|
* See ChangeLog: Thu Dec 10 20:15:36 CET 1998 Werner KochWerner Koch1998-12-101-4/+5
|
* Some bug fixes of the last releaseWerner Koch1998-11-101-2/+2
|
* some random changesWerner Koch1998-10-251-2/+4
|
* last local commitWerner Koch1998-10-161-1/+4
|
* *** empty log message ***Werner Koch1998-09-281-7/+9
|
* *** empty log message ***Werner Koch1998-09-111-0/+1
|