aboutsummaryrefslogtreecommitdiffstats
path: root/g10 (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* * 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.
* * 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.
* Changes to make use of code taken from libassuan. This replaces theWerner Koch2005-04-053-570/+230
| | | | | | | 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.
* (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.
* * 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-213-14/+33
| | | | | | indentation. * card-util.c (command_generator, card_edit_completion): Ditto.
* * 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.
* * 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.
* * 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.
* * 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.
* (parse_ccid_descriptor): Make SCM workaroundWerner Koch2005-03-162-28/+76
| | | | | | | | | | | | | reader type specific. (scan_or_find_devices): Do not check the interface subclass in the SPR532 kludge, as this depends on the firmware version. (ccid_get_atr): Get the Slot status first. This solves the problem with readers hanging on recent Linux 2.6.x. (bulk_in): Add argument TIMEOUT and changed all callers to pass an appropriate one. Change the standard timeout from 10 to 5 seconds. (ccid_slot_status): Add a retry code with an initial short timeout. (do_close_reader): Do an usb_reset before closing the reader.
* * card-util.c (card_status): Use isotimestamp and not theWerner Koch2005-03-142-3/+7
| | | | | | | | localized asctimestamp to match the timezone used in the key information. * miscutil.c (isotimestamp): New.
* * cardglue.c (pin_cb): Disable debug output.Werner Koch2005-03-146-3/+33
| | | | | | | | * mk-w32-dist: Check for patch files. * w32installer.nsi: Translated a few more strings. Print a warning if permssions are not suitable for the installation. Add Uninstaller entries.
* * keyserver.c (parse_keyserver_options): Accept honor-http-proxy as anDavid Shaw2005-03-102-0/+11
| | | | | alias for http-proxy.
* * delkey.c (do_delete_key, delete_keys): Fix problem with --expertDavid Shaw2005-03-102-22/+38
| | | | | preventing --delete-secret-and-public-keys from deleting secret keys.
* (keyedit_menu) [W32]: Run the trustdb stale checkWerner Koch2005-03-102-1/+19
| | | | | earlier.
* * primegen.c (is_prime): Free A2. Noted by [email protected].Werner Koch2005-03-075-23/+81
| | | | | | | | | | | | | | | | | | | Fixes #423. * DETAILS: Document new status codes. * cardglue.c (agent_scd_pkdecrypt, agent_scd_pksign) (agent_scd_genkey, agent_scd_setattr, agent_scd_change_pin) (agent_scd_checkpin, agent_openpgp_storekey): Make sure to send a SC_OP_FAILURE after card operations which might change data. * card-util.c (change_pin): Send a SC_OP_SUCCESS after a PIN has been changed. (change_name): Removed a debug output. * status.h, status.c: New codes BAD_PASSPHRASE_PIN, SC_OP_FAILURE and SC_OP_SUCCESS. * de.po: Updated. Translation is still in the works, though.
* * keyedit.c (keyedit_menu): Only print the key signing hint when signingDavid Shaw2005-02-242-1/+8
| | | | | from a place where it is useful (i.e. --edit-key and not --sign-key).
* * card-util.c (fetch_url): Fetch the key from the defaultWerner Koch2005-02-162-4/+14
| | | | | | | | keyserver if no URL is available. * w32installer.nsi: Added page to select the language. * mk-w32-dist: Create the opt.ini using the available languages.
* * gpg.sgml: Add bkuptocard command for --edit-key.Werner Koch2005-02-156-40/+202
| | | | | | | | * passphrase.c (agent_get_passphrase): Don't call free_public_key if PK is NULL. (passphrase_clear_cache): Ditto. Removed debug output. (passphrase_to_dek): Ditto.
* Disable the "quick check" bytes for PK decryptions. This is inDavid Shaw2005-02-103-5/+18
| | | | | regards to the Mister and Zuccherato attack on OpenPGP CFB mode.
* * trustdb.h, trustdb.c (trustdb_check_or_update): New. If the trustdbDavid Shaw2005-02-065-15/+55
| | | | | | | | | | | | | | is dirty and --interactive is set, do an --update-trustdb. If not interactive, do a --check_trustdb unless --no-auto-check-trustdb is set. * import.c (import_keys_internal): Moved from here. * keyserver.c (keyserver_refresh): Call it here after all refreshing has happened so that we don't rebuild after each preferred keyserver set of imports, but do one big rebuild at the end. This is Debian bug #293816, noted by Kurt Roeckx.
* * getkey.c (merge_selfsigs_subkey): Merged away definition from theDavid Shaw2005-02-052-0/+6
| | | | | backsigs code.
* Updated to match the switch to the NSIS installer.Werner Koch2005-02-033-136/+164
|
* * keygen.c (do_generate_keypair): Write the auth key to the cardDavid Shaw2005-02-012-11/+27
| | | | | | | | | before the encryption key. This is a partial workaround for a PGP bug (as of this writing, all versions including 8.1), that causes it to try and encrypt to the most recent subkey regardless of whether that subkey is actually an encryption type. In this case, the auth key is an RSA key so it succeeds.
* * keyid.c (keyid_from_sk, keyid_from_pk): Use 0xFFFFFFFFFFFFFFFFDavid Shaw2005-01-284-6/+15
| | | | | | | | | instead of 0x0000000000000000 for the invalid key ID since all-zeroes is reserved for the anonymous recipient. * keyedit.c (change_passphrase), keygen.c (generate_subkeypair): Fix a string ;)
* * keygen.c (generate_subkeypair): Detect primary key on-card andWerner Koch2005-01-273-18/+75
| | | | | | | | | | ask for the passphrase. Return an error if the primary key is a plain stub. * keyedit.c (change_passphrase): Don't ever change any stub key. Print a note if a key consists of only stub keys. Reported by Dany Nativel. These are bugs #401 and #402.
* Updated to the version from 1.2.7.Werner Koch2005-01-272-2/+8
|
* * keyserver.c (parse_keyserver_uri): Allow RFC-2732 IPv6 [literalDavid Shaw2005-01-262-4/+42
| | | | | | address] syntax in keyserver URLs. (keyserver_typemap): Map ftps if we are supporting it.
* (do_generate_keypair): Don't continue after an error;Werner Koch2005-01-252-3/+7
| | | | | | fixed at two places. Why at all didn't I used a goto to cleanup, tsss?
* (get_cached_data): New arg GET_IMMEDIATE to bypassWerner Koch2005-01-253-48/+65
| | | | | | | | | | | | | | | | the cache. Changed all callers. (get_one_do): Bypass the cache if the value would have been read directly for v1.1 cards.It makes things a bit slower but obnly for 1.0 cards and there are not that many cards out in the wild. This is required to fix a caching bug when generating new keys; as a side effect of the retrieval of the the C4 DO from the 6E DO the chaced fingerprint will get updated to the old value and later when signing the generated key the checking of the fingerprint fails becuase it won't match the new one. Thanks to Moritz for analyzing this problem. (verify_chv3): Removed the CHV status reread logic because we won't cache the C4 DO anymore.
* * keyserver.c (free_keyserver_spec): Fix small leak.David Shaw2005-01-222-0/+11
| | | | | (keyserver_typemap): Map https if we are supporting it.
* (open_card): Issue new CARDCTRL(4) status.Werner Koch2005-01-202-1/+4
|
* * gpgv.c (tty_fprintf): New stub.Werner Koch2005-01-208-13/+371
| | | | | | | | | * card-util.c (card_status): Create asecret key stub on the fly and print more information about a card key. * import.c (pub_to_sec_keyblock, auto_create_card_key_stub): New. * getkey.c (get_seckeyblock_byfprint): New. * keylist.c (print_card_key_info): New.
* * g10.c (i18n_init) [W32]: Pass registry key to gettextWerner Koch2005-01-205-21/+79
| | | | | | | | | initialization. * gpgv.c (i18n_init) [W32]: Ditto. * simple-gettext.c (set_gettext_file): Use MO files depending on the installation directory. Add new arg REGKEY.
* (public_key_list): Do a trustdb staleness check beforeWerner Koch2005-01-182-0/+15
| | | | | | opening the keyring. (secret_key_list): Ditto.
* * keyedit.c (keyedit_menu): Move command strings outside the function toDavid Shaw2005-01-112-80/+89
| | | | | get ready for the readline completion code.
* * passphrase.c (readline, agent_send_option, agent_open,David Shaw2005-01-102-7/+11
| | | | | | agent_get_passphrase, passphrase_clear_cache): Rename readline() to readaline() to keep readline library namespace clear.
* * filter.h, armor.c (armor_filter): Use the eol string from the armorDavid Shaw2005-01-064-28/+66
| | | | | | | | | | filter context instead of hardcoding '\n' or '\r\n'. If no eol string is provided, default to '\n' or '\r\n' as appropriate. (is_armor_header): Trim tabs in armor header lines as well. * keyserver.c (keyserver_spawn): Use it here to force '\n' line endings since the keyserver output file gets a LF->CRLF expansion on win32.
* * g10.c (main): Typo.David Shaw2005-01-063-11/+27
| | | | | | | * armor.c (is_armor_header): Allow CR and LF (not just actual spaces) in an armor header line (-----BEGIN etc). This is needed due to CRLF issues on win32. As before, --openpgp makes it strict.
* * Makefile.am: Use @LIBUSB@ instead of @LIBUSB_LIBS@David Shaw2005-01-033-3/+15
| | | | | * import.c (delete_inv_parts): Comments on import-unusable-sigs.
* * options.h, import.c (parse_import_options, delete_inv_parts): AddDavid Shaw2005-01-014-2/+44
| | | | | | | | | | import-unusable-sigs flag to enable importing unusable (currently: expired) sigs. * options.h, export.c (parse_export_options, do_export_stream): Add export-unusable-sigs flag to enable exporting unusable (currently: expired) sigs.