aboutsummaryrefslogtreecommitdiffstats
path: root/g10/misc.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* * keydb.h, pkclist.c (select_algo_from_prefs): Allow passing a suggestedDavid Shaw2002-06-201-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.
* * misc.c (setsysinfo): Removed a #warning for Alpha's uniligednWerner Koch2002-06-201-1/+0
| | | | | trap disabling - it is quite possible that this is a debug relict.
* * keygen.c (keygen_add_revkey): Remove unused code.David Shaw2002-06-151-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.
* * keyserver.c (keyserver_spawn): Handle CRLF endings from keyserverDavid Shaw2002-06-121-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.
* * options.skel: Sample photo viewers for Win32.David Shaw2002-06-031-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).
* * sign.c (mk_notation_and_policy): Include secret key to enable %sDavid Shaw2002-05-271-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.
* * photoid.c (show_photos): Use the long keyid as the filename for theDavid Shaw2002-05-131-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.)
* * photoid.c: Provide default image viewer for Win32.David Shaw2002-05-041-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.
* * photoid.h, photoid.c (parse_image_header, image_type_to_string): UsefulDavid Shaw2002-05-021-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.
* Added a copyright year for files changed this year.Werner Koch2002-04-291-1/+1
|
* * parse-packet.c (parse_plaintext), packet.h, plaintext.cDavid Shaw2002-04-231-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.
* * misc.c (pct_expando), options.skel: Use %t to indicate type of a photoDavid Shaw2002-04-111-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.
* Treat key lists internally as fingerprints when possible. All this is viaDavid Shaw2002-02-261-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.
* For --sig-policy-url and --cert-policy-url, clarify what is a sig and whatDavid Shaw2002-02-101-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.
* Allow policy URLs with %-expandos in them. This allows policy URLs likeDavid Shaw2002-02-051-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.
* Move idea_cipher_warn to misc.c so gpgv.c doesn't need a stubDavid Shaw2002-01-091-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
* Bugfix in photoid.c and keyserver.cDavid Shaw2001-12-291-14/+40
| | | | | | Properly handle permission/ownership checks on files that are shared (for example /usr/local/lib/gnupg/idea)
* Some exec cleanups and tweaks for photo ID and keyserver executionDavid Shaw2001-12-271-4/+4
|
* Fixed a typo and W32 support for the latest CVS changes.Timo Schulz2001-12-231-0/+2
|
* New function to check the permissions of GNUPGHOME and the various filesDavid Shaw2001-12-201-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.
* more bug fixesand some warning cleanupsWerner Koch2001-09-091-9/+8
|
* Add kludge for broken HTTP proxies.Werner Koch2001-04-231-1/+1
|
* Fixed a bugs; e.g. in --list-secret-keysWerner Koch2001-03-271-1/+1
|
* worked on solving some bugsWerner Koch2001-03-121-0/+1
|
* Changed and added copyright noticesWerner Koch2001-03-081-1/+1
|
* Backported getkey.c from 1.1Werner Koch2001-02-081-0/+73
|
* Typo fixes.Werner Koch2000-10-181-2/+2
|
* *** empty log message ***Werner Koch2000-10-181-0/+3
|
* Fixed serious bug related to multiple cleartext signatures.Werner Koch2000-10-131-0/+27
|
* See ChangeLog: Thu Sep 14 14:20:38 CEST 2000 Werner KochWerner Koch2000-09-141-6/+7
|
* See ChangeLog: Wed Sep 6 17:55:47 CEST 2000 Werner KochWerner Koch2000-09-061-9/+2
|
* See ChangeLog: Fri May 12 14:01:20 CEST 2000 Werner KochWerner Koch2000-05-121-1/+1
|
* See ChangeLog: Mon Aug 30 20:38:33 CEST 1999 Werner KochWerner Koch1999-08-301-0/+2
|
* See ChangeLog: Thu May 20 14:04:08 CEST 1999 Werner KochWerner Koch1999-05-201-1/+4
|
* See ChangeLog: Wed Apr 7 20:51:39 CEST 1999 Werner KochWerner Koch1999-04-071-1/+2
|
* See ChangeLog: Tue Dec 29 14:41:47 CET 1998 Werner KochWerner Koch1998-12-291-4/+6
|
* See ChangeLog: Wed Dec 23 13:34:22 CET 1998 Werner KochWerner Koch1998-12-231-3/+3
|
* See ChangeLog: Thu Dec 17 18:31:15 CET 1998 Werner KochWerner Koch1998-12-171-2/+2
|
* See ChangeLog: Thu Dec 10 20:15:36 CET 1998 Werner KochWerner Koch1998-12-101-0/+58
|
* See ChangeLog: Wed Dec 9 13:41:06 CET 1998 Werner KochWerner Koch1998-12-091-1/+1
|
* Some bug fixes of the last releaseWerner Koch1998-11-101-2/+3
|
* edit-key is now completeWerner Koch1998-07-291-2/+2
|
* syncWerner Koch1998-07-141-0/+22
|
* nearly ready for 0.3.0Werner Koch1998-06-251-0/+12
|
* some more internall structure changesWerner Koch1998-06-161-1/+7
|
* extensions are now working and fixed a lot of bugsWerner Koch1998-06-151-2/+56
|
* new releaseV0-2-18Werner Koch1998-05-151-0/+31
|
* cipher reorganisiertWerner Koch1998-04-071-0/+63