aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* * keygen.c (start_tree): New function to "prime" a KBNODE list.David Shaw2005-05-054-46/+34
| | | | | | | | | | | | (do_generate_keypair): Use it here rather than creating and deleting a comment packet. * keygen.c (gen_elg, gen_dsa): Do not put public factors in secret key as a comment. * options.h, encode.c (encode_simple, encode_crypt), keygen.c (do_create): Remove disabled comment packet code.
* * keygen.c (keygen_set_std_prefs): Add SHA256 and BZip2 to defaultDavid Shaw2005-05-052-3/+22
| | | | | preferences.
* * options.h, g10.c (main): Add new --default-sig-expire andDavid Shaw2005-05-057-48/+129
| | | | | | | | | | | | --default-cert-expire options. Suggested by Florian Weimer. * main.h, keygen.c (parse_expire_string, ask_expire_interval): Use defaults passed in, or "0" to control what default expiration is. * keyedit.c (sign_uids), sign.c (sign_file, clearsign_file, sign_symencrypt_file): Call them here, so that default expiration is used when --ask-xxxxx-expire is off.
* * gpg.sgml: Clarify --min-cert-level a bit.David Shaw2005-05-052-5/+9
|
* * ksutil.h, ksutil.c: #ifdef so we can build without libcurl orDavid Shaw2005-05-043-4/+19
| | | | | fake-curl.
* * gpgkeys_http.c: Need GET defined.David Shaw2005-05-042-0/+6
|
* * passphrase.c (agent_get_passphrase): Add new arg CACHEID.Werner Koch2005-05-038-34/+174
| | | | | | | | | | | | | | Changed all callers. (ask_passphrase): Add new arg CACHEID and use it in agent mode. Changed all callers. (passphrase_clear_cache): New arg CACHEID. Changed all callers. * cardglue.c (format_cacheid): New. (pin_cb): Compute a cache ID. (agent_scd_pksign, agent_scd_pkdecrypt): Use it. (agent_clear_pin_cache): New. * card-util.c (change_pin): Clear the PIN cache. (check_pin_for_key_operation): Ditto.
* * gpgkeys_hkp.c, gpgkeys_oldhkp.c, ksutil.h: Some minor cleanup andDavid Shaw2005-05-024-10/+23
| | | | | comments as to the size of MAX_LINE and MAX_URL.
* * trustdb.h, trustdb.c (mark_usable_uid_certs): Add flags for theDavid Shaw2005-04-244-21/+164
| | | | | | | | | | no-pubkey and chosen revocation cases. (clean_uid): New function to clean a user ID of unusable (as defined by mark_usable_uid_certs) certs. * keyedit.c (keyedit_menu, menu_clean_uids): Call it here for new "clean" command that removes unusable sigs from a key.
* * libcurl.m4: Add a check for curl_free() since older versions ofDavid Shaw2005-04-242-1/+24
| | | | | libcurl don't have it. Substitute free() as an alternative.
* * trustdb.h, keyedit.c (keyedit_menu, menu_select_uid_namehash): AllowDavid Shaw2005-04-243-2/+53
| | | | | | specifying user ID via the namehash from --with-colons --fixed-list-mode --list-keys. Suggested by Peter Palfrader.
* * gnupg.spec.in: No longer any need to override libexecdir. TheDavid Shaw2005-04-232-1/+10
| | | | | makefiles now calculate this correctly internally.
* * distfiles: Add assuan.h.David Shaw2005-04-222-0/+5
|
* * keyedit.c (sign_uids, keyedit_menu): When the user requests to signDavid Shaw2005-04-222-17/+36
| | | | | | | a key without specifying which user IDs to sign, and declines to sign all user IDs, walk through the set of user IDs and prompt for which to sign.
* * mainproc.c (symkey_decrypt_seskey): There is no need to have anDavid Shaw2005-04-222-33/+40
| | | | | | | extra check for a bad passphrase and/or unknown cipher algorithm here. We'll fail quite happily later, and usually with a better error message to boot.
* * keyserver.c (keyserver_spawn): Free some memory.David Shaw2005-04-173-1/+31
| | | | | * sign.c (hash_for): Comments.
* * gpgkeys_hkp.c: New hkp handler that uses curl or curl-shim.David Shaw2005-04-174-782/+328
| | | | | | | * Makefile.am: Build new gpgkeys_hkp. * curl-shim.c (curl_easy_perform): Cleanup.
* * ksutil.h, ksutil.c (curl_writer), gpgkeys_curl.c (get_key): Pass aDavid Shaw2005-04-174-18/+39
| | | | | | context to curl_writer so we can support multiple fetches in a single session.
* * curl-shim.h, curl-shim.c (handle_error, curl_easy_setopt,David Shaw2005-04-173-22/+110
| | | | | curl_easy_perform): Add POST functionality to the curl shim.
* * configure.ac: Remove --disable-old-hkp - use new HKP handler forDavid Shaw2005-04-172-10/+7
| | | | | --with-libcurl or --enable-fake-curl.
* * curl-shim.h, curl-shim.c (curl_escape, curl_free): EmulateDavid Shaw2005-04-163-0/+66
| | | | | curl_escape and curl_free.
* * gpgkeys_curl.c (main): If the http-proxy option is given without anyDavid Shaw2005-04-165-63/+1239
| | | | | | | | | | arguments, try to get the proxy from the environment. * ksutil.h, ksutil.c (curl_err_to_gpg_err, curl_writer): Copy from gpgkeys_curl.c. * gpgkeys_oldhkp.c: Copy from gpgkeys_hkp.c.
* * configure.ac: Add --disable-old-hkp option that can be used alongDavid Shaw2005-04-162-0/+13
| | | | | with --with-libcurl to build the curl version of HKP.
* Check for memrchr()David Shaw2005-04-122-2/+5
|
* Fix minor build problem on OSX (need a replacement for memrchr)David Shaw2005-04-124-0/+59
|
* * g10.c (main, add_notation_data, add_policy_url)Werner Koch2005-04-115-7/+34
| | | | | | | | | | | (add_keyserver_url): Use isascii() to protect the isfoo macros and to replace direct tests. Possible problems noted by Christian Biere. * keyserver.c (parse_keyserver_uri): Ditto. * g10.c (main): Declare --pipemode deprecated. * misc.c (deprecated_command): New.
* * ccid-driver.c (ccid_slot_status): Fixed debug messages.Werner Koch2005-04-074-6/+90
| | | | | | | | | * card-util.c (card_edit): Add command "verify". Enhanced admin command to allow optional arguments "on", "off" and "verify". (card_status): Print private DOs in colon mode. * app-openpgp.c (do_check_pin): Add hack to allow verification of CHV3.
* Typo fixesWerner Koch2005-04-055-7/+12
|
* Changes to make use of code taken from libassuan. This replaces theWerner Koch2005-04-0523-615/+2428
| | | | | | | old ad-hoc connection code to gpg-agent. We do need this for the forthcoming diversion of card code to an already running gpg-agent with card-support.
* * mainproc.c (proc_plaintext): Properly handle SIG+LITERAL (old-style PGP)David Shaw2005-04-012-19/+41
| | | | | signatures that use hashes other than SHA-1, RIPEMD160, or MD5.
* (keygen_set_std_prefs): Explain the chosen order ofWerner Koch2005-04-011-1/+13
| | | | | AES key sizes.
* * exec.h, exec.c (set_exec_path): Remove some dead code and change allDavid Shaw2005-03-315-23/+16
| | | | | callers. We no longer need to append to $PATH.
* * keydb.c (keydb_add_resource): Clarify meaning of flags. Add newWerner Koch2005-03-313-6/+24
| | | | | | flag 4. Use log_info for errors registering the default secret key. * g10.c (main): Flag the default keyrings.
* * keyserver.c (keyserver_spawn): Don't mess about with the $PATH.David Shaw2005-03-312-9/+42
| | | | | | Rather, call keyserver helpers with the full path. This fixes some PATH-inspired DLL problems on W32. Noted by Carlo Luciano Bianco.
* * w32installer.nsi: Allow including of WINPT source. IncludeWerner Koch2005-03-304-15/+112
| | | | | | | libiconv source. * mk-w32-dist: Add code to detect presence of source. Calculate a build number; add option --build-number to overide.
* (pin_cb): Print a warning if the info string hack isWerner Koch2005-03-306-18/+31
| | | | | not there. This may happen due to typos in the translation.
* (rndw32_gather_random_fast): While adding data use theWerner Koch2005-03-232-5/+12
| | | | | | size of the object and not the one of its address. Bug reported by Sascha Kiefer.
* * gpgkeys_ldap.c, ksutil.h, ksutil.c (print_nocr): Moved fromDavid Shaw2005-03-227-17/+34
| | | | | | | | | gpgkeys_ldap.c. Print a string, but strip out any CRs. * gpgkeys_finger.c (get_key), gpgkeys_hkp.c (get_key), gpgkeys_http.c (get_key): Use it here when outputting key material to canonicalize line endings.
* * gpgv.c: Stubs for tty_enable_completion() & tty_disable_completion().David Shaw2005-03-214-3/+27
| | | | | | | | | * openfile.c (ask_outfile_name): Enable readline completion when prompting for an output filename. * plaintext.c (ask_for_detached_datafile): Enable readline completion when prompting for a detached sig datafile.
* * keyedit.c (command_generator, keyedit_completion): ChangedWerner Koch2005-03-214-15/+34
| | | | | | indentation. * card-util.c (command_generator, card_edit_completion): Ditto.
* * readline.m4: Check for completion functionality.David Shaw2005-03-213-7/+12
| | | | | * ldap.m4: Comments.
* * card-util.c (command_generator, card_edit_completion)David Shaw2005-03-202-14/+76
| | | | | | | [GNUPG_MAJOR_VERSION==1 && HAVE_LIBREADLINE]: New functions to enable command completion in the --card-edit menu. (card_edit): Call them here.
* * gpgkeys_ldap.c (main): Fix three wrong calls to fail_all(). NotedDavid Shaw2005-03-192-3/+8
| | | | | by Stefan Bellon.
* * keyedit.c (command_generator, keyedit_completion) [HAVE_LIBREADLINE]:David Shaw2005-03-182-3/+59
| | | | | | New functions to enable command completion in the --edit-key menu. (keyedit_menu): Call them here.
* * ttyio.c (tty_enable_completion, tty_disable_completion): Enable andDavid Shaw2005-03-184-1/+47
| | | | | | disable readline completion. (init_ttyfp): Completion is disabled by default.
* * getkey.c (get_seckey_byname2): If no explicit default key is set, don'tDavid Shaw2005-03-172-4/+13
| | | | | pick a disabled default. Noted by David Crick.
* * ksutil.c (parse_ks_options): Handle verbose=nnn.David Shaw2005-03-173-6/+15
| | | | | | * Makefile.am: Calculate GNUPG_LIBEXECDIR directly. Do not redefine $libexecdir.
* * Makefile.am: Calculate GNUPG_LIBEXECDIR directly. Do not redefineDavid Shaw2005-03-172-12/+7
| | | | | $libexecdir.
* * options.h, keyserver.c (parse_keyserver_options, keyserver_spawn): Don'tDavid Shaw2005-03-173-22/+18
| | | | | | treat 'verbose' and 'include-disabled' as special. Just pass them through silently to the keyserver helper.
* * gpgkeys_curl.c, gpgkeys_finger.c, gpgkeys_ldap.c: Start usingDavid Shaw2005-03-176-464/+239
| | | | | | | | parse_ks_options and remove a lot of common code. * ksutil.h, ksutil.c (parse_ks_options): Parse OPAQUE, and default debug with no arguments to 1.