aboutsummaryrefslogtreecommitdiffstats
path: root/g10/sign.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2004-07-19* sign.c (update_keysig_packet): Revert change of 2004-05-18. It is notDavid Shaw1-12/+0
appropriate to strip policy and notations when remaking a sig. That should only happen when specifically requested by the user.
2004-06-27* sign.c (sign_symencrypt_file): Allow using --force-mdc in --signDavid Shaw1-0/+7
--symmetric messages.
2004-05-19* sign.c (update_keysig_packet): Policies and notations should be strippedDavid Shaw1-0/+12
out when remaking a self-signature. Noted by Atom Smasher.
2004-05-07(write_plaintext_packet): Fixed the detection of tooWerner Koch1-8/+13
large files in the same way as in encode.c.
2004-04-13* keygen.c (make_backsig): New function to add a backsig to a binding sigDavid Shaw1-8/+12
of signing subkeys. Currently disabled. (write_keybinding): Call it here, for signing subkeys only. * sign.c (make_keysig_packet): Allow generating 0x19 signatures (same as 0x18 or 0x28, but used for backsigs). * packet.h, build-packet.c (build_sig_subpkt): Add new SIGSUBPKT_SIGNATURE type for embedded signatures.
2003-12-05* getkey.c (merge_selfsigs_main, merge_selfsigs_subkey,David Shaw1-1/+1
get_seckey_byname2): Disallow use of encrypt-only v3 Elgamal keys for anything except revocations. * sign.c (do_sign): Add Elgamal encrypt-only keys to the signature catchall. * trustdb.c (mark_usable_uid_certs): Disallow signatures to and from Elgamal encrypt-only keys in the trustdb. Granted, this sounds strange, but there are historical keys that fit this description.
2003-11-29* revoke.c (gen_desig_revoke): Specify in the comment when a designatedDavid Shaw1-0/+6
revocation is generated. * getkey.c (merge_selfsigs_main, merge_selfsigs_subkey, get_seckey_byname2): Disallow use of sign+encrypt Elgamal keys for anything except revocations. * sign.c (do_sign): Catchall for any Elgamal signatures except revocations.
2003-10-31* misc.c (compress_algo_to_string, check_compress_algo): Add bzip2.David Shaw1-17/+2
* g10.c (main): Add read-only warning. * compress.c (compress_filter): Make static to help force the use of push_compress_filter. Remove default algorithm setting since that is done in push_compress_filter now. * main.h: Use named algorithm. * filter.h, compress.c (push_compress_filter, push_compress_filter2): New. Figure out which is the appropriate compression filter to use, and push it into place. * compress.c (handle_compressed), encode.c (encode_simple, encode_crypt), sign.c (sign_file, sign_symencrypt_file), import.c (read_block), export.c (do_export): Use push_compress_filter instead of pushing the compression filter ourselves. * compress-bz2.c: New. Bzlib versions of the compression filter routines. * Makefile.am: Include compress-bz2.c if bz2lib is available.
2003-08-13* keyring.c (keyring_rebuild_cache): Comment.David Shaw1-14/+13
* sign.c (mk_notation_and_policy): Making a v3 signature with notations or policy urls is an error, not an info (i.e. increment the errorcount). Don't print the notation or policy url to stdout since it can be mixed into the output stream when piping and munge the stream.
2003-05-22* armor.c, g10.c, kbnode.c, misc.c, pkclist.c, sign.c, build-packet.c,David Shaw1-4/+4
getkey.c, keydb.c, openfile.c, plaintext.c, status.c, gpgv.c, keygen.c, options.h, sig-check.c, tdbio.h, encode.c, hkp.c, mainproc.c, parse-packet.c, signal.c, textfilter.c: Edit all preprocessor instructions to remove whitespace before the '#'. This is not required by C89, but there are some compilers out there that don't like it.
2003-05-21* sign.c (write_plaintext_packet)Werner Koch1-2/+3
* progress.c (handle_progress) * encode.c (encode_simple,encode_crypt): Make sure that a filename of "-" is considered to be stdin so that iobuf_get_filelength won't get called. This fixes bug 156 reported by Gregery Barton.
2003-05-03* g10.c (main): Show errors for failure in export, send-keys, recv-keys,David Shaw1-1/+2
and refresh-keys. * keyserver.c (keyserver_work): Range check the TCP port for HKP. * options.h, g10.c (main): Give algorithm warnings for algorithms chosen against the --pgpX and --openpgp rules. * keydb.h, pkclist.c (algo_available): Make TIGER192 invalid in --openpgp mode. * sign.c (sign_file), pkclist.c (algo_available): Allow passing a hint of 0.
2003-05-02* sign.c (sign_file): Fix bug that causes spurious compression preferenceDavid Shaw1-8/+6
warning. * sign.c (clearsign_file): Fix bug that prevents proper warning message from appearing when clearsigning in --pgp2 mode with a non-v3 RSA key. * main.h, misc.c (compliance_option_string, compliance_string, compliance_failure), sign.c (sign_file, clearsign_file), encode.c (encode_crypt, write_pubkey_enc_from_list): New functions to put the "this message may not be usable...." warning in one place. * options.h, g10.c (main): Part two of the simplification. Use a single enum to indicate what we are compliant to (1991, 2440, PGPx, etc.)
2003-05-02* options.h, armor.c, cipher.c, g10.c, keyedit.c, pkclist.c, sign.c,David Shaw1-15/+15
encode.c, getkey.c, revoke.c: The current flags for different levels of PGP-ness are massively complex. This is step one in simplifying them. No functional change yet, just use a macro to check for compliance level.
2003-04-28* build-packet.c (build_sig_subpkt): Comments.David Shaw1-1/+4
* exec.c (exec_write): Cast NULL to void* to properly terminate varargs list. * keyedit.c (show_key_with_all_names): Just for safety, catch an invalid pk algorithm. * sign.c (make_keysig_packet): Crucial that the call to mksubpkt comes LAST before the calls to finalize the sig as that makes it possible for the mksubpkt function to get a reliable pointer to the subpacket area.
2003-04-27* sign.c (mk_notation_and_policy): Make some strings translatable.David Shaw1-2/+4
2003-04-27* sign.c (mk_notation_and_policy): Make some strings translatable.David Shaw1-2/+4
2003-04-15* g10.c, options.h: New option --enable-progress-filter.Werner Koch1-5/+15
* progress.c (handle_progress): Make use of it.
2003-04-09* passphrase .c (agent_get_passphrase): New arg CANCELED.Werner Koch1-1/+1
(passphrase_to_dek): Ditto. Passed to above. Changed all callers to pass NULL. * seckey-cert.c (do_check): New arg CANCELED. (check_secret_key): Terminate loop when canceled. * keyedit.c (change_passphrase): Pass ERRTEXT untranslated to passphrase_to_dek and translate where appropriate. * seckey-cert.c (check_secret_key): Ditto. * keygen.c (ask_passphrase): Ditto. * passphrase.c (agent_get_passphrase): Translate the TRYAGAIN_TEXT. Switch the codeset to utf-8.
2003-04-04* pkclist.c (algo_available): PGP 8 can use the SHA-256 hash.David Shaw1-7/+6
* sign.c (sign_file, clearsign_file, sign_symencrypt_file): Remove unused code.
2003-02-13* sign.c (sign_file): Do not push textmode filter onto an unopened IOBUFDavid Shaw1-2/+10
(segfault). Noted by Marcus Brinkmann. Push and reinitialize textmode filter for each file in a multiple file list.
2003-01-15* sign.c (clearsign_file): Only use pgp2mode with v3 keys and MD5. ThisDavid Shaw1-2/+2
matches what we do when decoding such messages and prevents creating a message (v3+RIPEMD/160) that we can't verify.
2002-12-04* main.h, keyedit.c, keygen.c: Back out previous (2002-12-01) change.David Shaw1-11/+31
Minimal isn't always best. * sign.c (update_keysig_packet): Use the current time rather then a modification of the original signature time. Make sure that this doesn't cause a time warp. * keygen.c (keygen_add_key_expire): Properly handle a key expiration date in the past (use a duration of 0). * keyedit.c (menu_expire): Use update_keysig_packet so any sig subpackets are maintained during the update. * build-packet.c (build_sig_subpkt): Mark sig expired or unexpired when the sig expiration subpacket is added. (build_sig_subpkt_from_sig): Handle making an expiration subpacket from a sig that has already expired (use a duration of 0).
2002-12-04* packet.h, sign.c (update_keysig_packet), keyedit.cDavid Shaw1-4/+5
(menu_set_primary_uid, menu_set_preferences): Add ability to issue 0x18 subkey binding sigs to update_keysig_packet and change all callers.
2002-10-31* build-packet.c (do_plaintext), encode.c (encode_sesskey, encode_simple,David Shaw1-1/+1
encode_crypt), sign.c (write_plaintext_packet): Use wipememory() instead of memset() to wipe sensitive memory as the memset() might be optimized away.
2002-08-20* keylist.c, keyedit.c, keyserver.c, sign.c: Some TODOs and comments.David Shaw1-1/+3
* export.c (do_export_stream): Fix noop bug in exporting sensitive revocation keys. * pkclist.c (do_edit_ownertrust): Comment out the option for showing trust paths until it can be implemented.
2002-08-19* getkey.c (get_user_id_native): Renamed to ..Werner Koch1-2/+2
(get_user_id_printable): this. Filter out all dangerous characters. Checked all usages. (get_user_id_string_native): Renamed to.. (get_user_id_string_printable): this. Filter out all dangerous characters. Checked all usages. * keyedit.c (show_basic_key_info): New. * keylist.c (print_fingerprint): New mode 3. * import.c (import_one): Use new function to display the user ID.
2002-08-06* encode.c (encode_crypt), g10.c (main), sign.c (sign_file,David Shaw1-2/+2
clearsign_file): Use the same --pgpX warning string everywhere to ease translations. * encode.c (write_pubkey_enc_from_list): Warn when using --throw-keyid with --pgpX. Noted by Vedaal Nistar.
2002-06-29Update head to match stable 1.0David Shaw1-436/+840
2000-10-04See ChangeLog: Wed Oct 4 13:16:18 CEST 2000 Werner KochWerner Koch1-177/+123
2000-09-18See ChangeLog: Mon Sep 18 16:35:45 CEST 2000 Werner KochWerner Koch1-0/+4
2000-07-31See ChangeLog: Mon Jul 31 10:04:47 CEST 2000 Werner KochWerner Koch1-2/+2
2000-07-25See ChangeLog: Tue Jul 25 17:44:15 CEST 2000 Werner KochWerner Koch1-16/+14
2000-07-14See ChangeLog: Fri Jul 14 19:38:23 CEST 2000 Werner KochWerner Koch1-6/+46
2000-01-27See ChangeLog: Thu Jan 27 18:00:44 CET 2000 Werner KochWerner Koch1-14/+14
2000-01-24See ChangeLog: Mon Jan 24 13:04:28 CET 2000 Werner KochWerner Koch1-11/+10
1999-12-08See ChangeLog: Wed Dec 8 21:58:32 CET 1999 Werner KochWerner Koch1-7/+7
1999-11-15See ChangeLog: Mon Nov 15 21:36:02 CET 1999 Werner KochWerner Koch1-1/+1
1999-11-13See ChangeLog: Sat Nov 13 17:44:23 CET 1999 Werner KochWerner Koch1-10/+67
1999-10-26See ChangeLog: Tue Oct 26 14:10:21 CEST 1999 Werner KochWerner Koch1-70/+79
1999-08-04See ChangeLog: Wed Aug 4 10:34:46 CEST 1999 Werner KochV0-9-10Werner Koch1-3/+4
1999-07-26See ChangeLog: Mon Jul 26 09:34:46 CEST 1999 Werner KochWerner Koch1-23/+43
1999-05-26See ChangeLog: Wed May 26 14:36:29 CEST 1999 Werner KochWerner Koch1-27/+37
1999-05-25See ChangeLog: Tue May 25 19:50:32 CEST 1999 Werner KochWerner Koch1-2/+54
1999-05-20See ChangeLog: Thu May 20 14:04:08 CEST 1999 Werner KochWerner Koch1-1/+1
1999-04-29See ChangeLog: Thu Apr 29 12:29:22 CEST 1999 Werner KochWerner Koch1-3/+12
1999-04-28See ChangeLog: Wed Apr 28 13:03:03 CEST 1999 Werner KochWerner Koch1-2/+3
1999-04-26See ChangeLog: Mon Apr 26 17:48:15 CEST 1999 Werner KochWerner Koch1-1/+1
1999-03-02See ChangeLog: Tue Mar 2 16:44:57 CET 1999 Werner KochWerner Koch1-16/+2
1999-03-02See ChangeLog: Tue Mar 2 10:38:42 CET 1999 Werner KochWerner Koch1-100/+0