aboutsummaryrefslogtreecommitdiffstats
path: root/g10/export.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2003-11-15* options.h, g10.c (main), compress.c (init_compress), compress-bz2.cDavid Shaw1-2/+2
(init_compress): Add --compress-level and --bzip2-compress-level. -z sets them both. Change various callers.
2003-10-31* misc.c (compress_algo_to_string, string_to_compress_algo,David Shaw1-2/+2
check_compress_algo): Add bzip2. * 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-07-28Adjusted for use with current libgcrypt (1.1.42).Werner Koch1-2/+2
2003-07-16* export.c (parse_export_options): New option sexp-format.Werner Koch1-29/+180
(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.
2003-06-18Finished the bulk of changes for gnupg 1.9. This included switchingWerner Koch1-11/+10
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-05This commit was manufactured by cvs2svn to create branchRepo Admin1-0/+396
'GNUPG-1-9-BRANCH'.
2003-05-31* main.h, misc.c (parse_options): New general option line parser. Fix theDavid Shaw1-36/+2
bug in the old version that did not handle report syntax errors after a valid entry. * import.c (parse_import_options), export.c (parse_export_options): Call it here instead of duplicating the code.
2003-05-03* packet.h, build-packet.c (build_sig_subpkt), export.cDavid Shaw1-4/+0
(do_export_stream), import.c (remove_bad_stuff, import), parse-packet.c (dump_sig_subpkt, parse_one_sig_subpkt): Remove vestigal code for the old sig cache subpacket. This wasn't completely harmless as it caused subpacket 101 to disappear on import and export. * options.h, armor.c, cipher.c, g10.c, keyedit.c, pkclist.c, sign.c, 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. * sign.c (sign_file): Fix bug that causes spurious compression preference 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), pkclist.c (build_pk_list), 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.) * g10.c (main): Show errors for failure in export, send-keys, recv-keys, and refresh-keys. * 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-04-27* g10.c (main): Add --no-textmode.David Shaw1-2/+2
* export.c (do_export_stream), keyedit.c (show_key_with_all_names, menu_addrevoker), mainproc.c (check_sig_and_print), photoid.c (show_photos), sign.c (mk_notation_and_policy), trustdb.c (get_validity, reset_trust_records, validate_keys): Make some strings translatable. * mainproc.c (check_sig_and_print): Show digest algorithm and sig class when verifying a sig with --verbose on, and add version, pk and hash algorithms and sig class to VALIDSIG. * parse-packet.c (enum_sig_subpkt): Make a warning message a --verbose warning message since we don't need to warn every time we see an unknown critical (we only need to invalidate the signature). * trustdb.c (init_trustdb): Check the trustdb options even with TM_AUTO since the auto may become TM_CLASSIC or TM_OPENPGP.
2003-02-26* keyserver.c (keyserver_spawn): Include various pieces of informationDavid Shaw1-7/+18
about the key in the data sent to the keyserver helper. This allows the helper to use it in instructing a remote server which may not have any actual OpenPGP smarts in parsing keys. * main.h, export.c (export_pubkeys_stream, do_export_stream): Add ability to return only the first match in an exported keyblock for keyserver usage. This should be replaced at some point with a more flexible solution where each key can be armored seperately.
2003-02-12* keydb.h, getkey.c (classify_user_id, classify_user_id2): Make 'exact' aDavid Shaw1-4/+77
per-desc item. Merge into one function since 'force_exact' is no longer needed. (key_byname): Use new classify_user_id function, and new exact flag in KEYDB_SEARCH_DESC. * keyring.h, keyring.c (keyring_search): Return an optional index to show which KEYDB_SEARCH_DESC was the matching one. * keydb.h, keydb.c (keydb_search): Rename to keydb_search2, and pass the optional index to keyring_search. Add a macro version of keydb_search that calls this new function. * export.c (do_export_stream): If the keyid! syntax is used, export only that specified key. If the key in question is a subkey, export the primary plus that subkey only.
2002-10-19This commit was manufactured by cvs2svn to create branchRepo Admin1-350/+0
'GNUPG-1-9-BRANCH'.
2002-09-282002-09-28 David Shaw <[email protected]>David Shaw1-4/+4
* export.c (do_export_stream): Comment. * sig-check.c (check_key_signature2): Properly handle a non-designated revocation import. 2002-09-26 Werner Koch <[email protected]> * g10.c (set_homedir): New. Changed all direct assignments to use this. * gpgv.c (set_homedir): Ditto.
2002-09-10Cleanups and minor fixes.Werner Koch1-1/+1
2002-08-20* keylist.c, keyedit.c, keyserver.c, sign.c: Some TODOs and comments.David Shaw1-1/+4
* 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-07-25* exec.c, export.c, import.c, keyedit.c, keyserver.c, misc.c: "Warning" ->David Shaw1-1/+1
"WARNING"
2002-07-24* import.c (parse_import_options), export.c (parse_export_options): FixDavid Shaw1-1/+4
offset problem with reversed ("no-") meanings.
2002-07-22* options.h, main.h, export.c (parse_export_options, do_export_stream),David Shaw1-16/+63
g10.c (main): add new --export-options option. Current flags are "include-non-rfc", "include-local-sigs", "include-attributes", and "include-sensitive-revkeys". * options.h, hkp.c (hkp_export), keyserver.c (parse_keyserver_options, keyserver_spawn): try passing unknown keyserver options to export options, and if successful, use them when doing a keyserver --send-key. * build-packet.c (build_sig_subpkt): We do not generate SIGSUBPKT_PRIV_VERIFY_CACHE anymore.
2002-07-17* keyedit.c (show_key_with_all_names_colon): The 0x40 class bit in aDavid Shaw1-13/+28
designated revoker means "sensitive", not "local". It's exportable under the right circumstances. * main.h, options.h, export.c (do_export_stream), g10.c (main), hkp.c (hkp_export), keyserver.c (keyserver_spawn: Add a flag to skip attribute packets and their signatures while exporting. This is to accomodate keyservers (pksd again) that choke on attributes. Use keyserver-option "include-attributes" to control it. This defaults to ON (i.e. don't skip).
2002-06-29Update head to match stable 1.0David Shaw1-57/+111
2000-10-10Changed keyring handling - saving still does not work.Werner Koch1-5/+5
Added new cipher mode and updated cipher test program.
2000-10-06See ChangeLog: Fri Oct 6 14:29:16 CEST 2000 Werner KochWerner Koch1-9/+2
2000-10-04See ChangeLog: Wed Oct 4 13:16:18 CEST 2000 Werner KochWerner Koch1-1/+1
2000-07-14See ChangeLog: Fri Jul 14 19:38:23 CEST 2000 Werner KochWerner Koch1-3/+32
2000-01-27See ChangeLog: Thu Jan 27 18:00:44 CET 2000 Werner KochWerner Koch1-6/+6
2000-01-24See ChangeLog: Mon Jan 24 13:04:28 CET 2000 Werner KochWerner Koch1-1/+1
1999-04-28See ChangeLog: Wed Apr 28 13:03:03 CEST 1999 Werner KochWerner Koch1-1/+0
1999-01-19See ChangeLog: Tue Jan 19 19:34:58 CET 1999 Werner KochWerner Koch1-18/+47
1998-12-23See ChangeLog: Wed Dec 23 13:34:22 CET 1998 Werner KochWerner Koch1-3/+3
1998-12-10See ChangeLog: Thu Dec 10 20:15:36 CET 1998 Werner KochWerner Koch1-7/+19
1998-11-10Some bug fixes of the last releaseWerner Koch1-1/+2
1998-11-03(Does not compile yet)Werner Koch1-0/+9
1998-10-16last local commitWerner Koch1-18/+4
1998-08-11bug fix releaseV0-3-4Werner Koch1-3/+2
1998-07-08fixed clearsig stuffWerner Koch1-0/+18
1998-06-29textual changesWerner Koch1-3/+17
1998-05-29*** empty log message ***V0-2-19Werner Koch1-1/+1
1998-04-14applied Mathews typo and grammar fixesWerner Koch1-3/+3
1998-02-24Renamed to GNUPGV-0-2-8Werner Koch1-4/+4
1998-02-13added option exportV0-2-6Werner Koch1-4/+96
1998-01-26added initial i18n stuffWerner Koch1-12/+4
1998-01-19backupWerner Koch1-93/+2
1998-01-16added some trust model stuffWerner Koch1-0/+146