aboutsummaryrefslogtreecommitdiffstats
path: root/g10/misc.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2002-06-20* keydb.h, pkclist.c (select_algo_from_prefs): Allow passing a suggestedDavid Shaw1-0/+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-20* misc.c (setsysinfo): Removed a #warning for Alpha's uniligednWerner Koch1-1/+0
trap disabling - it is quite possible that this is a debug relict.
2002-06-15* keygen.c (keygen_add_revkey): Remove unused code.David Shaw1-3/+3
* misc.c (check_permissions): Check directory permissions properly - they are not special files. * pkclist.c (expand_id, expand_group, build_pk_list): When expanding groups before building a pk list, inherit flags from the original pre-expanded string. * pubkey-enc.c (is_algo_in_prefs): Don't use prefs from expired uids.
2002-06-12* keyserver.c (keyserver_spawn): Handle CRLF endings from keyserverDavid Shaw1-0/+21
helpers. Also don't leak the last line worth of memory from the keyserver response. * main.h, misc.c (deprecated_warning): New function to warn about deprecated options and commands. * g10.c (main), keyserver-internal.h, keyserver.c (parse_keyserver_uri): Use new deprecated function to warn about honor-http-proxy, auto-key-retrieve, and x-broken-hkp.
2002-06-03* options.skel: Sample photo viewers for Win32.David Shaw1-0/+3
* misc.c (pct_expando): Use the seckey for %k/%K if the pubkey is not available. * photoid.h, photoid.c (show_photos): Include the seckey in case a user tries to view a photo on a secret key, and change all callers in keyedit.c (menu_showphoto), keylist.c (list_keyblock_print), and photoid.c (generate_photo_id).
2002-05-27* sign.c (mk_notation_and_policy): Include secret key to enable %sDavid Shaw1-4/+26
expandos, and pass notations through pct_expando as well. * main.h, misc.c (pct_expando): Add %s and %S expandos for signer's keyid.
2002-05-13* photoid.c (show_photos): Use the long keyid as the filename for theDavid Shaw1-0/+8
photo. Use the short keyid as the filename on 8.3 systems. * exec.h, exec.c (make_tempdir, exec_write, exec_finish): Allow caller to specify filename. This should make things easier on windows and macs where the file extension is required, but a whole filename is even better. * keyedit.c (show_key_with_all_names, show_prefs): Show proper prefs for a v4 key uid with no selfsig at all. * misc.c (check_permissions): Don't check permissions on non-normal files (pipes, character devices, etc.)
2002-05-04* photoid.c: Provide default image viewer for Win32.David Shaw1-1/+1
* 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-02* photoid.h, photoid.c (parse_image_header, image_type_to_string): UsefulDavid Shaw1-68/+79
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-04-29Added a copyright year for files changed this year.Werner Koch1-1/+1
2002-04-23* parse-packet.c (parse_plaintext), packet.h, plaintext.cDavid Shaw1-4/+12
(handle_plaintext): Fix bug in handling literal packets with zero-length data (no data was being confused with partial body length). * misc.c (pct_expando), options.skel: %t means extension ("jpg"). %T means MIME type ("image/jpeg"). * import.c (import_one): Only trigger trust update if the keyring is actually changed. * export.c (do_export_stream): Missing a m_free.
2002-04-11* misc.c (pct_expando), options.skel: Use %t to indicate type of a photoDavid Shaw1-5/+15
ID (in this version, it's always "jpeg"). Also tweak string expansion loop to minimize reallocs. * mainproc.c (do_check_sig): Variable type fix. * keyedit.c (menu_set_primary_uid): Differentiate between true user IDs and attribute user IDs when making one of them primary. That is, if we are making a user ID primary, we alter user IDs. If we are making an attribute packet primary, we alter attribute packets. This matches the language in the latest attribute packet draft. * keyedit.c (sign_uids): No need for the empty string hack. * getkey.c (fixup_uidnode): Only accept preferences from the hashed segment of the self-sig.
2002-02-26Treat key lists internally as fingerprints when possible. All this is viaDavid Shaw1-0/+25
KEYDB_SEARCH_DESC - no point in reinventing the wheel. This allows the helper program to search the keyserver by fingerprint if desired (and the keyserver supports it). Note that automatic fingerprint promotion during refresh only applies to v4 keys as a v4 fingerprint can be easily changed into a long or short key id, and a v3 cannot. Take two copies of hextobyte() from pubkey-enc.c and getkey.c and make them into one copy in misc.c.
2002-02-10For --sig-policy-url and --cert-policy-url, clarify what is a sig and whatDavid Shaw1-2/+6
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.
2002-02-05Allow policy URLs with %-expandos in them. This allows policy URLs likeDavid Shaw1-0/+108
"http://notary.jabberwocky.com/keysign/%K" to create a per-signature policy URL. Use the new generic %-handler for the photo ID stuff as well. Display policy URLs and notations during signature generation if --show-policy-url/--show-notation is set.
2002-01-09Move idea_cipher_warn to misc.c so gpgv.c doesn't need a stubDavid Shaw1-0/+15
Remove get_temp_dir (it's in exec.c now) Allow --delete-key (now --delete-keys, though --delete-key still works) to delete multiple keys in one go. This applies to --delete-secret-key(s) and --delete-secret-and-public-key(s) as well
2001-12-29Bugfix in photoid.c and keyserver.cDavid Shaw1-14/+40
Properly handle permission/ownership checks on files that are shared (for example /usr/local/lib/gnupg/idea)
2001-12-27Some exec cleanups and tweaks for photo ID and keyserver executionDavid Shaw1-4/+4
2001-12-23Fixed a typo and W32 support for the latest CVS changes.Timo Schulz1-0/+2
2001-12-20New function to check the permissions of GNUPGHOME and the various filesDavid Shaw1-7/+52
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.
2001-09-09more bug fixesand some warning cleanupsWerner Koch1-9/+8
2001-04-23Add kludge for broken HTTP proxies.Werner Koch1-1/+1
2001-03-27Fixed a bugs; e.g. in --list-secret-keysWerner Koch1-1/+1
2001-03-12worked on solving some bugsWerner Koch1-0/+1
2001-03-08Changed and added copyright noticesWerner Koch1-1/+1
2001-02-08Backported getkey.c from 1.1Werner Koch1-0/+73
2000-10-18Typo fixes.Werner Koch1-2/+2
2000-10-18*** empty log message ***Werner Koch1-0/+3
2000-10-13Fixed serious bug related to multiple cleartext signatures.Werner Koch1-0/+27
2000-09-14See ChangeLog: Thu Sep 14 14:20:38 CEST 2000 Werner KochWerner Koch1-6/+7
2000-09-06See ChangeLog: Wed Sep 6 17:55:47 CEST 2000 Werner KochWerner Koch1-9/+2
2000-05-12See ChangeLog: Fri May 12 14:01:20 CEST 2000 Werner KochWerner Koch1-1/+1
1999-08-30See ChangeLog: Mon Aug 30 20:38:33 CEST 1999 Werner KochWerner Koch1-0/+2
1999-05-20See ChangeLog: Thu May 20 14:04:08 CEST 1999 Werner KochWerner Koch1-1/+4
1999-04-07See ChangeLog: Wed Apr 7 20:51:39 CEST 1999 Werner KochWerner Koch1-1/+2
1998-12-29See ChangeLog: Tue Dec 29 14:41:47 CET 1998 Werner KochWerner Koch1-4/+6
1998-12-23See ChangeLog: Wed Dec 23 13:34:22 CET 1998 Werner KochWerner Koch1-3/+3
1998-12-17See ChangeLog: Thu Dec 17 18:31:15 CET 1998 Werner KochWerner Koch1-2/+2
1998-12-10See ChangeLog: Thu Dec 10 20:15:36 CET 1998 Werner KochWerner Koch1-0/+58
1998-12-09See ChangeLog: Wed Dec 9 13:41:06 CET 1998 Werner KochWerner Koch1-1/+1
1998-11-10Some bug fixes of the last releaseWerner Koch1-2/+3
1998-07-29edit-key is now completeWerner Koch1-2/+2
1998-07-14syncWerner Koch1-0/+22
1998-06-25nearly ready for 0.3.0Werner Koch1-0/+12
1998-06-16some more internall structure changesWerner Koch1-1/+7
1998-06-15extensions are now working and fixed a lot of bugsWerner Koch1-2/+56
1998-05-15new releaseV0-2-18Werner Koch1-0/+31
1998-04-07cipher reorganisiertWerner Koch1-26/+35
1998-02-24Renamed to GNUPGV-0-2-8Werner Koch1-4/+4
1997-11-18initially checkinWerner Koch1-0/+54