aboutsummaryrefslogtreecommitdiffstats
path: root/g10 (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* * 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.
* * packet.h, getkey.c (merge_selfsigs_main, sig_to_revoke_info), keyid.cDavid Shaw2004-12-305-11/+46
| | | | | | (revokestr_from_pk), keyedit.c (show_key_with_all_names): Show who revoked a key (either the same key or a designated revoker) and when.
* (find_endpoint): New.Werner Koch2004-12-282-26/+190
| | | | | | | | | | | | | (scan_or_find_devices): Add new args to return endpoint info and interface number. (ccid_open_reader, ccid_shutdown_reader): Take care of these new args. (bulk_in, bulk_out): Use the correct endpoints. (ccid_transceive_apdu_level): New. (ccid_transceive): Divert to above. (parse_ccid_descriptor): Allow APDU level exchange mode. (do_close_reader): Pass the interface number to usb_release_interface.
* * keyserver.c (keyserver_typemap): Only map HTTP and FTP if libcurl hasDavid Shaw2004-12-242-2/+9
| | | | | specifically been selected to handle them.
* * options.h, keyserver.c (parse_keyserver_uri): Properly parse auth dataDavid Shaw2004-12-223-0/+24
| | | | | from URLs and pass to keyserver helpers.
* * keyserver.c (keyserver_typemap): New. Map certain keyserver types to aDavid Shaw2004-12-223-11/+33
| | | | | | | | | common type (e.g. ldaps -> ldap). If we are building with curl, map both http and ftp to curl. * build-packet.c (build_sig_subpkt): Only allow one preferred keyserver subpacket at a time.
* * keyedit.c (menu_set_keyserver_url): Make sure we only operate on theDavid Shaw2004-12-213-4/+14
| | | | | | | | chosen selfsig so we don't accidentally promote an older selfsig to chosen. Discovered by Simon Josefsson and 'Todd'. * keygen.c (ask_expire_interval): Fix typo.
* * keylist.c (list_keyblock_print): Secret key listings should always showDavid Shaw2004-12-213-16/+31
| | | | | | | everything (expired UIDs, revoked subkeys, etc, etc). * keyedit.c (keyedit_menu): Add additional help for the "sign" flags.
* (ask_expire_interval): For better translations chnage 2Werner Koch2004-12-202-7/+13
| | | | | strings.
* * seckey-cert.c (do_check): Handle case when checksum was okay butWerner Koch2004-12-202-2/+22
| | | | | | | | | passphrase still wrong. Roman Pavlik found such a case. * mpicoder.c (mpi_read_from_buffer): Don't abort in case of an invalid MPI but print a message and return NULL. Use log_info and not log_error.
* * keyedit.c (keyedit_menu): Invisible alias "passwd" as "password".David Shaw2004-12-208-32/+61
| | | | | | | | | | | * passphrase.c: Don't check for __CYGWIN__, so it is treated as a unix-like system. * options.h, g10.c (main), textfilter.c (standard): Use new option --rfc2440-text to determine whether to filter "<space>\t\r\n" or just "\r\n" before canonicalizing text line endings. Default to "<space>\t\r\n".
* * keygen.c (keygen_get_std_prefs): Set reference count when creating theDavid Shaw2004-12-193-28/+61
| | | | | | | | | | | | temporary user ID. * keyedit.c (keyedit_menu): Merge updpref and setpref. Keep updpref as an invisible alias. Add invisible alias for revphoto. Fix small memory leak when using "setpref" (not all of the uid was freed). (menu_revkey): Trigger a trust rebuild after revoking a key. Don't allow revoking an already-revoked whole key. (menu_revsubkey): Don't allow revoking an already-revoked subkey.
* * keyedit.c (menu_revkey): Rename to menu_revsubkey. (menu_revkey): New.David Shaw2004-12-192-19/+77
| | | | | | | Revoke a whole key. (keyedit_menu): Call it here for when 'revkey' is used without any subkeys selected. This is to be consistent with the other functions which are "selected part if selected, whole key if not".
* Readline fix to be robust against platforms where readline has its ownDavid Shaw2004-12-183-3/+10
| | | | | | dependencies. We play guess-the-depedency for a while, and try termcap, curses, and ncurses.
* * passphrase.c (agent_get_passphrase): Define NREAD locally asWerner Koch2004-12-174-3/+13
| | | | | | | | size_t or int. * keylist.c (list_keyblock_print): Make field width an int. * keyedit.c (show_key_with_all_names): Ditto.
* * g10.c (main): Add --require-secmem/--no-require-secmem to cause gpg toDavid Shaw2004-12-162-18/+21
| | | | | | | | | | | exit if it cannot lock memory. Also remove --nrsign-key and --nrlsign-key since this can better be done via --edit-key. * secmem.c (secmem_init): Return a flag to indicate whether we got the lock. * memory.h: Return a flag to indicate whether we got the lock.
* * apdu.c (apdu_send_le, apdu_send_direct), keylist.cDavid Shaw2004-12-155-9/+24
| | | | | | | | | | (status_one_subpacket, print_one_subpacket): Fix some compiler warnings. * g10.c (main): Fix --compression-algo to take a string argument like --compress-algo. * trustdb.c (uid_trust_string_fixed): For safety, check for a pk.
* * keyedit.c (keyedit_menu): Re-remove the N_() markers.David Shaw2004-12-142-43/+45
|
* * trustdb.c (uid_trust_string_fixed): Show uids as revoked if the key isDavid Shaw2004-12-143-119/+196
| | | | | | | | | | | | | revoked. * keyedit.c (show_key_with_all_names): Don't show validity for secret key UIDs. * keyedit.c (parse_sign_type): New. Figure out the flags (local, nonrevoke, trust) for a signature. (keyedit_menu): Call it here so we can mix and match flags, and don't need "nrltsign", "ltsign", "tnrsign", etc, etc, etc.
* automake updates, removed one debug outputV1-3-93Werner Koch2004-12-142-1/+2
|
* Prepared for last 1.4 release candidateWerner Koch2004-12-144-82/+95
|
* (read_passphrase_from_fd): Fixed memory leak.Werner Koch2004-12-132-1/+9
| | | | | Noted by Andrei Darashenka.
* * keyserver.c (parse_preferred_keyserver): Force preferred keyserverDavid Shaw2004-12-122-1/+6
| | | | | subpackets to have a URI scheme specified.
* * options.h, g10.c (main), textfilter.c (standard): Use --rfc2440 orDavid Shaw2004-12-115-6/+11
| | | | | | | | --openpgp directly to determine the end of line hashing rule. * trustdb.c (uid_trust_string_fixed): Show uids as expired if the key is expired.
* * app-openpgp.c (send_fprtime_if_not_null): New.Werner Koch2004-12-105-2/+65
| | | | | | | | (do_getattr): Add KEY_TIME. (do_learn_status): Print KEY_TIME. * cardglue.c (learn_status_cb): Parse KEY-TIME. * card-util.c (card_status): Print creation time if available.
* * options.h, g10.c (main), textfilter.c (len_without_trailing_ws): RemovedDavid Shaw2004-12-104-11/+35
| | | | | | | | | | (not used). (standard): 2440 says that textmode hashes should canonicalize line endings to CRLF and remove spaces and tabs. 2440bis-12 says to just canonicalize to CRLF. So, we default to the 2440bis-12 behavior, but revert to the strict 2440 behavior if the user specifies --rfc2440. In practical terms this makes no difference to any signatures in the real world except for a textmode detached signature.
* * passphrase.c (agent_get_passphrase): New args CUSTOM_PROMPT andWerner Koch2004-12-096-66/+235
| | | | | | | | | | | | | | | | | | | | | CUSTOM_DESCRIPTION. Changed all callers. * app-openpgp.c (do_getattr, do_learn_status, do_setattr): Support the new private DOs. (do_change_pin): Add a "N" prefix to the strings so that the callback can act accordingly for a new PIN. Unfortunately this breaks existing translations but I see no wother way to overvome this. * cardglue.c (learn_status_cb): Ditto. (agent_release_card_info): Ditto. (struct pin_cb_info_s): Removed and changed all users. (pin_cb): Reworked. * card-util.c (card_status): Print them (card_edit): New command PRIVATEDO. (change_private_do): New.
* * keygen.c (ask_algo): Add a choose-your-own-capabilities option for DSA.David Shaw2004-12-092-8/+20
|
* * keygen.c (ask_keysize): Change strings to always use %u instead ofDavid Shaw2004-12-072-57/+69
| | | | | | | hardcoding key sizes. Bump default to 2048. Bump minimum down to 512, where possible, but require --expert to get there. DSA is always 1024 unless --expert is given.
* * getkey.c (parse_key_usage): New function to parse out key usage flags.David Shaw2004-11-292-51/+80
| | | | | | | Set PUBKEY_USAGE_UNKNOWN to handle flags that we don't understand. (fixup_uidnode, merge_selfsigs_main, merge_selfsigs_subkey): Call it from here to remove duplicate code.
* * export.c (do_export_stream): Allow export-minimal to work with secretDavid Shaw2004-11-262-4/+11
| | | | | keys, even though a non-selfsig secret key signature is rare.
* * options.h, export.c (parse_export_options, do_export_stream), import.cDavid Shaw2004-11-265-19/+32
| | | | | | | (parse_import_options, import_keys_internal): Make the import-options and export-options distinct since they can be mixed together as part of keyserver-options.
* * options.h, export.c (parse_export_options, do_export_stream): AddDavid Shaw2004-11-253-23/+45
| | | | | "export-minimal" option to disregard any sigs except selfsigs.
* * trustdb.c (uid_trust_string_fixed): Use a string that can be atoi-ed,David Shaw2004-11-252-3/+7
| | | | | but also has a comment for the translator.
* * trustdb.h, trustdb.c (uid_trust_string_fixed): New. Return a fixed-sizeDavid Shaw2004-11-246-29/+58
| | | | | | | | | | | translatable string similar to trust_value_to_string. This allows for easier lining up of displays. * keyedit.c (show_key_with_all_names), keylist.c (list_keyblock_print): Use it here to print validity strings. * gpgv.c: Stub.
* (S_IRGRP) [HAVE_DOSISH_SYSTEM]: Define to 0.Werner Koch2004-11-182-1/+8
|
* (open_info_file): New.Werner Koch2004-11-176-85/+221
| | | | | | | | (main): Unconditionally implement --status-file, --logger-file, --attribute-file, --passphrase-file, --command-file. This is not generally useful but easy to support and might make scripting under Windows easier.
* * plaintext.c (handle_plaintext): Don't try and create a zero-lengthDavid Shaw2004-11-045-18/+31
| | | | | | | | | | filename when using --use-embedded-filename with input that has no filename (clearsigned or message generated from a pipe). * encode.c (encode_simple, encode_crypt), progress.c (handle_progress), sign.c (write_plaintext_packet): Fix a few inconsistent calls (NULL filename means a pipe here, so don't bother to check it twice).
* * misc.c (print_digest_algo_note): The latest 2440bis drafts deprecatesDavid Shaw2004-11-032-35/+39
| | | | | | | MD5, so give a warning. (print_pubkey_algo_note, print_cipher_algo_note, print_digest_algo_note): Give the algorithm name in the experimental algo warning.
* 2004-11-03 Timo Schulz <[email protected]>Timo Schulz2004-11-033-64/+83
| | | | | | | | * strgutil.c (w32_strerror): New. * ttyio.c (init_ttyfp, tty_printf, do_get): Use it here. * iobuf.c (fd_cache_open, file_filter): Likewise. (iobuf_seek, translate_file_handle): Likewise.
* * skclist.c (build_sk_list): Don't need to warn about PGP-generatedDavid Shaw2004-10-286-52/+78
| | | | | | | | | | | | | | | | | Elgamal signing keys since we no longer support any Elgamal signing keys. * sign.c (sign_file, clearsign_file): Use "writing to" instead of "writing to file" to match other strings. * pkclist.c (check_signatures_trust): Fix typo. Noted by Moray Allan. This is Debian bug #278708. * passphrase.c (ask_passphrase, passphrase_to_dek): "password" -> "passphrase". * keyedit.c (show_key_with_all_names): Show designated revoker as part of translatable string.
* Inlcude LIBICONVWerner Koch2004-10-282-1/+7
|
* About to release 1.3.92Werner Koch2004-10-283-3/+9
|
* * card-util.c, delkey.c, keygen.c, plaintext.c, keyedit.c, passphrase.c,David Shaw2004-10-288-19/+27
| | | | | | revoke.c: Collapse the two different "can't do that in batch mode" strings into one.
* * keylist.c (status_one_subpacket): New. Send the subpacket data to theDavid Shaw2004-10-286-84/+116
| | | | | | | | | | | --status interface. * card-util.c (card_edit): Show when admin is enabled or not. * status.h, status.c: New STATUS_SIG_SUBPACKET type. * build-packet.c (build_sig_subpkt): Multiple keyserver URLs are allowed.
* * keyring.c: Make some strings translatable.David Shaw2004-10-284-25/+34
| | | | | | | * exec.c, sign.c: Change "can't open file" to "can't open" and "can't create file" to "can't create" to be consistent with other strings so we don't have to translate both.
* * delkey.c, export.c, keyedit.c, pkclist.c, revoke.c, skclist.c: Fix a fewDavid Shaw2004-10-287-33/+48
| | | | | missed possible \"username\" quotes.