aboutsummaryrefslogtreecommitdiffstats
path: root/g10/exec.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* * keydb.h, getkey.c (get_user_id_native), import.c (import_one): DisplayDavid Shaw2002-06-091-1/+6
| | | | | | | | | user ID while importing a key. Note this applies to both --import and keyserver --recv-keys. * exec.c (exec_finish): Log unnatural exit (core dump, killed manually, etc) for fork/exec/pipe child processes.
* * main.h, g10.c (main), keygen.c (build_personal_digest_list): Put in aDavid Shaw2002-06-061-1/+1
| | | | | | | | | | | | | | | | 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.
* * hkp.c (parse_hkp_index): Be more robust with keyservers returning veryDavid Shaw2002-06-061-5/+11
| | | | | | | | | unparseable responses. * exec.c (exec_read): Catch and display an error when the remote process exits unnaturally (i.e. segfault) so the user knows what happened. Also fix exec_write stub which has a different number of arguments now.
* * sign.c (hash_for, sign_file): When encrypting and signing at the sameDavid Shaw2002-06-041-7/+9
| | | | | | | | | | | | | | | | | time, consult the various hash prefs to pick a hash algorithm to use. Pass in a 160-bit hint if any of the signing keys are DSA. * keydb.h, pkclist.c (select_algo_from_prefs, algo_available): Pass a "hints" opaque pointer in to let the caller give hints as to what algorithms would be acceptable. The only current hint is for PREFTYPE_HASH to require a 160-bit hash for DSA. Change all callers in encode.c (encode_crypt, encrypt_filter) and sign.c (sign_file). If we settle on MD5 as the best algorithm based solely on recepient keys and SHA1 is also a possibility, use SHA1 unless the user intentionally chose MD5. This is as per 2440:13. * exec.c (make_tempdir): Fix duplicated filename problem.
* * options.h, exec.c: Add some debugging info, using the 1024 debug flag.David Shaw2002-05-291-4/+53
| | | | | | | * 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.
* 2002-05-14 Timo Schulz <[email protected]>Timo Schulz2002-05-141-1/+1
| | | | | * exec.c (make_tempdir) [MINGW32]: Added missing '\'.
* EXTSEP_S instead of hardcoded dotStefan Bellon2002-05-131-1/+1
|
* * photoid.c (show_photos): Use the long keyid as the filename for theDavid Shaw2002-05-131-15/+13
| | | | | | | | | | | | | | | 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.)
* * import.c (import_one): When merging with a key we already have, don'tDavid Shaw2002-05-051-15/+18
| | | | | | | | | | | let a key conflict (same keyid but different key) stop the import: just skip the bad key and continue. * exec.c (make_tempdir): Under Win32, don't try environment variables for temp directories - GetTempDir tries environment variables internally, and it's better not to second-guess it in case MS adds some sort of temp dir handling to Windows at some point.
* * photoid.c: Provide default image viewer for Win32.David Shaw2002-05-041-8/+14
| | | | | | | | | * 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.
* * configure.ac: Add --disable-exec flag to disable all remote programDavid Shaw2002-05-031-0/+14
| | | | | | | | | execution. --disable-exec implies --disable-ldap and --disable-mailto. Also look in /usr/lib for sendmail. If sendmail is not found, do not default - just fail. * exec.c: Provide stubs for exec_ functions when NO_EXEC is defined.
* Added a copyright year for files changed this year.Werner Koch2002-04-291-1/+1
|
* RISC OS specific changesStefan Bellon2002-04-221-1/+2
|
* Merged in my changes, after disk crash. Fortunately the CVS was notWerner Koch2002-04-081-4/+6
| | | | | | affected - but everything else and it seems that there is no backup of the BTS data is available :-(
* More comments about when to use IDEA in keygen.cDavid Shaw2002-01-271-6/+9
| | | | | | | | | | When key signing with multiple keys at the same time, make sure each key gets the sigclass prompt Close the iobuf and FILE before trying to reap the child process to encourage the child to exit Disable cache-on-close of the fd iobuf (shouldn't all fd iobufs not be cached?)
* Added missing include file.Timo Schulz2002-01-091-0/+3
|
* Minor tweaks: remove --no-default-check-level, don't cache child tempfilesDavid Shaw2002-01-031-6/+4
| | | | | and simpler code in keyserver
* invalidate close cacheStefan Bellon2002-01-021-2/+7
|
* Some exec cleanups and tweaks for photo ID and keyserver executionDavid Shaw2001-12-271-24/+54
|
* Fixed a typo and W32 support for the latest CVS changes.Timo Schulz2001-12-231-0/+4
|
* Avoid const compiler warningDavid Shaw2001-12-221-1/+1
|
* Some last minute tweaks - type fixes from Stefan and win32 temp filesDavid Shaw2001-12-221-1/+8
| | | | | from Timo.
* Add new photo ID files and modify gpgsplit to name attribute packetsDavid Shaw2001-12-211-0/+443
properly