aboutsummaryrefslogtreecommitdiffstats
path: root/g10/options.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* * pkclist.c (expand_groups): Maintain the strlist flags while expanding.David Shaw2002-06-141-1/+0
| | | | | | | | | | Members of an expansion inherit their flags from the expansion key. * options.h, cipher.c (write_header), g10.c (main), keygen.c (keygen_set_std_prefs): remove the personal_mdc flag. It no longer serves a purpose now that the personal preference lists are split into cipher/digest/zip.
* * options.h, keyserver.c (keyserver_opts), g10.c (main): New keyserverDavid Shaw2002-06-101-8/+9
| | | | | | | | | | | | | option "include-subkeys". This feature already existed, but now can be turned off. It defaults to on. * options.h, keyserver.c (parse_keyserver_options, keyserver_spawn): There are now enough options to justify making a structure for the keyserver options rather than a page of if-then-else-if-then-etc. * getkey.c (merge_keys_and_selfsig, merge_selfsigs_main): Fix bug in calculating key expiration dates.
* * options.skel, options.h, main.h, keydb.h, pkclist.c (build_pk_list,David Shaw2002-06-071-1/+4
| | | | | | | | | | | | | | | | | | | expand_groups), g10.c (main, add_group): Add new "group" command to allow one name to expand into multiple keys. For simplicity, and to avoid potential loops, we only expand once - you can't make an alias that points to an alias. * main.h, g10.c (main), keygen.c (build_personal_digest_list): Simplify the default digest list - there is really no need for the other hashes since they will never be used after SHA-1 in the list. * options.skel, options.h, g10.c (main), hkp.c (hkp_ask_import, hkp_export, hkp_search), keyserver.c (parse_keyserver_options, parse_keyserver_uri, keyserver_work, keyserver_refresh): Make the "x-broken-hkp" keyserver scheme into keyserver-option "broken-http-proxy". Move honor_http_proxy into keyserver_options. Canonicalize the three variations of "hkp", "x-hkp", and "x-broken-hkp" into "hkp".
* * main.h, g10.c (main), keygen.c (build_personal_digest_list): Put in aDavid Shaw2002-06-061-1/+3
| | | | | | | | | | | | | | | | default digest preference list consisting of SHA-1, followed by every other installed digest except MD5. Note this is the same as having no digest preference at all except for SHA-1 being favored. * options.h, g10.c (main), keygen.c (keygen_set_std_prefs), pkclist.c (select_algo_from_prefs): Split --personal-preference-list into three: --personal-{cipher|digest|compress}-preferences. This allows a user to set one without affecting another (i.e. setting only a digest pref doesn't imply an empty cipher pref). * exec.c (exec_read): This is a safer way of guessing the return value of system(). Noted by Stefan Bellon.
* * keygen.c (keygen_set_std_prefs, add_feature_mdc): Use "mdc" and "no-mdc"David Shaw2002-05-291-0/+1
| | | | | | | | | | | | | | | | in the prefs string to allow switching on and off the MDC feature. This is needed to properly export a key from GnuPG for use on PGP which does not support MDC - without this, MDC-capable implementations will still try and generate MDCs which will break PGP. * keygen.c (keygen_get_std_prefs): Show "[mdc]" in prefs string if it is enabled. * options.h, g10.c (main), cipher.c (write_header), keygen.c (keygen_set_std_prefs): For consistency, allow the user to specify mdc/no-mdc in the --personal-preference-list. If disabled, it acts just like --disable-mdc.
* * options.h, exec.c: Add some debugging info, using the 1024 debug flag.David Shaw2002-05-291-0/+2
| | | | | | | * exec.c (win_system): New system()-like function for win32 that does not return until the child process terminates. Of course, this doesn't help if the process itself exits before it is finished.
* * options.h, main.h, keygen.c (keygen_set_set_prefs, keygen_get_std_prefs,David Shaw2002-05-221-0/+3
| | | | | | | | | | | | | | | | keygen_upd_std_prefs), keyedit.c (keyedit_menu), g10.c (main), pkclist.c (select_algo_from_prefs): Add --personal-preference-list which allows the user to factor in their own preferred algorithms when the preference lists are consulted. Obviously, this does not let the user violate a recepient's preferences (and the RFC) - this only influences the ranking of the agreed-on (and available) algorithms from the recepients. Suggested by David Hollenberg. * options.h, keygen.c (keygen_set_std_prefs), g10.c (main): Rename --preference-list to --default-preference-list (as that is what it really is), and make it a true default in that if the user selects "default" they get this list and not the compiled-in list.
* * packet.h, getkey.c (fixup_uidnode), keyedit.c (show_prefs): Show assumedDavid Shaw2002-05-101-0/+1
| | | | | | | | | | 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.
* * options.h, g10.c (main), getkey.c (finish_lookup), pkclist.cDavid Shaw2002-05-071-0/+2
| | | | | | | | (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.
* * export.c (do_export_stream): Warn the user when exporting a secret keyDavid Shaw2002-05-071-1/+1
| | | | | | | | | | | | | 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.
* Allow multiple policy URLs on a given signature.David Shaw2002-05-021-3/+4
| | | | | | | 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.
* Added a copyright year for files changed this year.Werner Koch2002-04-291-1/+1
|
* g10/Werner Koch2002-04-251-0/+7
| | | | | | | | | | | | | | | * g10.c, options.h: New options --display, --ttyname, --ttytype, --lc-ctype, --lc-messages to be used with future versions of the gpg-agent. * passphrase.c (agent_send_option,agent_send_all_options): New. (agent_open): Send options to the agent. * trustdb.c (update_ownertrust, clear_ownertrust): Do an explicit do_sync because revalidation_mark does it only if when the timestamp actually changes. / * configure.ac: Check for locale.h and setlocale
* * keyedit.c (menu_deluid): Only cause a trust update if we delete aDavid Shaw2002-04-191-2/+1
| | | | | | | | | | | | | | | | | non-revoked user id. * hkp.c (hkp_ask_import), keyserver.c (parse_keyserver_options, keyserver_spawn), options.h: Remove fast-import keyserver option (no longer meaningful). * g10.c (main), keyedit.c (sign_uids), options.h: Change --default-check-level to --default-cert-check-level as it makes clear what it operates on. * g10.c (main): --pgp6 also implies --no-ask-sig-expire. * delkey.c (do_delete_key): Comment.
* * parse-packet.c (parse_key): Support a SHA1 checksum as perWerner Koch2002-04-171-0/+2
| | | | | | | | | | draft-rfc2440-bis04. * packet.h (PKT_secret_key): Add field sha1chk. * seckey-cert.c (do_check): Check the SHA1 checksum (protect_secret_key): And create it. * build-packet.c (do_secret_key): Mark it as sha-1 protected. * g10.c, options.h: New option --simple-sk-checksum.
* Some minor fixes for revocation keys: print a warning if a key is importedDavid Shaw2002-03-071-1/+1
| | | | | | | | | | that has been revoked by designated revoker, but the designated revoker is not present to verify the revocation (whew!). This applies to all ways to get a key into the system: --import --recv-keys, and --search-keys. If auto-key-retrieve is set, try and retrieve the revocation key. Also, auto-key-retrieve is now a keyserver-option.
* For --sig-policy-url and --cert-policy-url, clarify what is a sig and whatDavid Shaw2002-02-101-0/+1
| | | | | | | | | | | | | | | | | | | | | | is a cert. A sig has sigclass 0x00, 0x01, 0x02, or 0x40, and everything else is a cert. Add a "nrlsign" for nonrevocable and local key signatures. Add a --no-force-mdc to undo --force-mdc. Add a knob to force --disable-mdc/--no-disable-mdc. Off by default, of course, but is used in --pgp2 and --pgp6 modes. Allow specifying multiple users in the "Enter the user ID" loop. Enter a blank line to stop. Show each key+id as it is added. It is not illegal (though possibly silly) to have multiple policy URLs in a given signature, so print all that are present. More efficient implementation of URL-ifying code for --search on an HKP keyserver.
* Workaround for the pksd and OKS keyserver bug that calculates v4 RSADavid Shaw2002-02-041-0/+1
| | | | | | | | keyids as if they were v3. The workaround/hack is to fetch both the v4 (e.g. 99242560) and v3 (e.g. 68FDDBC7) keyids. This only happens for key refresh while using the HKP scheme and the refresh-add-fake-v3-keyids keyserver option must be set. This should stay off by default.
* Split "--set-policy-url" into "--cert-policy-url" and "--sig-policy-url"David Shaw2002-02-031-1/+2
| | | | | | so the user can set different policies for key and data signing. For backwards compatibility, "--set-policy-url" sets both, as before.
* --pgp6 flag. This is not nearly as involved as --pgp2. In short, itDavid Shaw2002-01-291-0/+1
| | | | | | | | 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.
* * g10.c, options.h: New option --gpg-agent-infoWerner Koch2002-01-261-0/+1
| | | | | | | | * passphrase.c (agent_open): Let it override the environment info. * seckey-cert.c (check_secret_key): Always try 3 times when the agent is enabled. * options.skel: Describe --use-agent.
* fix off-by-one in building attribute subpacketsDavid Shaw2002-01-061-0/+2
| | | | | | | | | | 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
* Photo ID support (actually generic "attribute packet" support, but thereDavid Shaw2001-12-211-1/+3
| | | | | is only one attribute packet defined thus far, and it's a picture)
* * g10.c. options.h : New option --show-keyringWerner Koch2001-12-211-0/+1
| | | | | | * getkey.c (get_ctx_handle): New. * keylist.c (list_one): Implement option here. By David Champion.
* New function to check the permissions of GNUPGHOME and the various filesDavid Shaw2001-12-201-0/+2
| | | | | | | | | that live there for safe permission/ownership (--no-permission-warning to disable) The newer glibcs print scary warnings about using mktemp(). The use here was actually safe, but the warning was bound to confuse people, so here is an arguably better tempname creator that pulls random bits from the pool.
* PGP2 patch. --pgp2 sets things up for pgp2 compatibility, and prints aDavid Shaw2001-12-071-1/+1
| | | | | | warning if the user does something that would make the message not compatible (i.e. encrypt with a non-RSA key, etc.)
* New option --expertDavid Shaw2001-12-071-0/+1
| | | | | | Do not allow signing a revoked UID unless --expert is set, and ask even then. Do not allow signing a revoked key unless --expert is set, and ask even then.
* "sigclass" patch - adds key signature class levels, notation and policy-urlDavid Shaw2001-12-061-0/+3
| | | | | displays in key listings, and shows flags for signature features.
* Generic keyserver API codeDavid Shaw2001-12-061-1/+15
|
* fixes for the 1.0.6b bugs David recently posted to gnupg-devel.Werner Koch2001-11-081-0/+1
|
* Changed signature status cacheWerner Koch2001-09-251-1/+0
|
* Revamped the trustDBWerner Koch2001-09-241-0/+1
|
* Revamped the keyring codeWerner Koch2001-09-061-0/+1
|
* Applied Stefan's patches to support RISCOS.Werner Koch2001-08-201-0/+9
|
* More Windows and autoconf fixesWerner Koch2001-08-071-0/+1
|
* Changed lsign behaviour, allow future subkeys, don't list revoked keysWerner Koch2001-08-011-0/+1
|
* migration to autoconf 2.52 and bugfixesWerner Koch2001-07-261-0/+1
|
* a second snapshot thsi day (1.0.4f)Werner Koch2001-03-271-0/+2
|
* add option --fixed-list-modeWerner Koch2001-03-141-0/+1
|
* worked on solving some bugsWerner Koch2001-03-121-1/+1
|
* Changed and added copyright noticesWerner Koch2001-03-081-1/+1
|
* Release snapshot 1.0.4dWerner Koch2001-01-111-0/+1
|
* New option --allow-secret-key-importWerner Koch2000-12-071-0/+1
|
* GPG agent supportWerner Koch2000-11-161-0/+1
|
* New option, doc fix, typo fix.Werner Koch2000-10-191-0/+1
|
* See ChangeLog: Wed Aug 23 19:52:51 CEST 2000 Werner KochWerner Koch2000-08-231-0/+1
|
* See ChangeLog: Tue Aug 1 20:06:23 CEST 2000 Werner KochWerner Koch2000-08-011-0/+1
|
* See ChangeLog: Thu Jul 27 17:33:04 CEST 2000 Werner KochWerner Koch2000-07-271-0/+1
|
* See ChangeLog: Thu Jul 27 12:01:00 CEST 2000 Werner KochWerner Koch2000-07-271-0/+2
|
* See ChangeLog: Wed Jun 28 11:54:44 CEST 2000 Werner KochWerner Koch2000-06-281-0/+2
|