aboutsummaryrefslogtreecommitdiffstats
path: root/g10 (unfollow)
Commit message (Collapse)AuthorFilesLines
2005-02-03Updated to match the switch to the NSIS installer.Werner Koch3-136/+164
2005-02-01* keygen.c (do_generate_keypair): Write the auth key to the cardDavid Shaw2-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.
2005-01-28* keyid.c (keyid_from_sk, keyid_from_pk): Use 0xFFFFFFFFFFFFFFFFDavid Shaw4-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 ;)
2005-01-27* keygen.c (generate_subkeypair): Detect primary key on-card andWerner Koch3-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.
2005-01-27Updated to the version from 1.2.7.Werner Koch2-2/+8
2005-01-26* keyserver.c (parse_keyserver_uri): Allow RFC-2732 IPv6 [literalDavid Shaw2-4/+42
address] syntax in keyserver URLs. (keyserver_typemap): Map ftps if we are supporting it.
2005-01-25(do_generate_keypair): Don't continue after an error;Werner Koch2-3/+7
fixed at two places. Why at all didn't I used a goto to cleanup, tsss?
2005-01-25(get_cached_data): New arg GET_IMMEDIATE to bypassWerner Koch3-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.
2005-01-22* keyserver.c (free_keyserver_spec): Fix small leak.David Shaw2-0/+11
(keyserver_typemap): Map https if we are supporting it.
2005-01-20(open_card): Issue new CARDCTRL(4) status.Werner Koch2-1/+4
2005-01-20* gpgv.c (tty_fprintf): New stub.Werner Koch8-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.
2005-01-20* g10.c (i18n_init) [W32]: Pass registry key to gettextWerner Koch5-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.
2005-01-18(public_key_list): Do a trustdb staleness check beforeWerner Koch2-0/+15
opening the keyring. (secret_key_list): Ditto.
2005-01-11* keyedit.c (keyedit_menu): Move command strings outside the function toDavid Shaw2-80/+89
get ready for the readline completion code.
2005-01-10* passphrase.c (readline, agent_send_option, agent_open,David Shaw2-7/+11
agent_get_passphrase, passphrase_clear_cache): Rename readline() to readaline() to keep readline library namespace clear.
2005-01-06* filter.h, armor.c (armor_filter): Use the eol string from the armorDavid Shaw4-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.
2005-01-06* g10.c (main): Typo.David Shaw3-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.
2005-01-03* Makefile.am: Use @LIBUSB@ instead of @LIBUSB_LIBS@David Shaw3-3/+15
* import.c (delete_inv_parts): Comments on import-unusable-sigs.
2005-01-01* options.h, import.c (parse_import_options, delete_inv_parts): AddDavid Shaw4-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.
2004-12-30* packet.h, getkey.c (merge_selfsigs_main, sig_to_revoke_info), keyid.cDavid Shaw5-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.
2004-12-28(find_endpoint): New.Werner Koch2-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.
2004-12-24* keyserver.c (keyserver_typemap): Only map HTTP and FTP if libcurl hasDavid Shaw2-2/+9
specifically been selected to handle them.
2004-12-22* options.h, keyserver.c (parse_keyserver_uri): Properly parse auth dataDavid Shaw3-0/+24
from URLs and pass to keyserver helpers.
2004-12-22* keyserver.c (keyserver_typemap): New. Map certain keyserver types to aDavid Shaw3-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.
2004-12-21* keyedit.c (menu_set_keyserver_url): Make sure we only operate on theDavid Shaw3-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.
2004-12-21* keylist.c (list_keyblock_print): Secret key listings should always showDavid Shaw3-16/+31
everything (expired UIDs, revoked subkeys, etc, etc). * keyedit.c (keyedit_menu): Add additional help for the "sign" flags.
2004-12-20(ask_expire_interval): For better translations chnage 2Werner Koch2-7/+13
strings.
2004-12-20* seckey-cert.c (do_check): Handle case when checksum was okay butWerner Koch2-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.
2004-12-20* keyedit.c (keyedit_menu): Invisible alias "passwd" as "password".David Shaw8-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".
2004-12-19* keygen.c (keygen_get_std_prefs): Set reference count when creating theDavid Shaw3-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.
2004-12-19* keyedit.c (menu_revkey): Rename to menu_revsubkey. (menu_revkey): New.David Shaw2-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".
2004-12-18Readline fix to be robust against platforms where readline has its ownDavid Shaw3-3/+10
dependencies. We play guess-the-depedency for a while, and try termcap, curses, and ncurses.
2004-12-17* passphrase.c (agent_get_passphrase): Define NREAD locally asWerner Koch4-3/+13
size_t or int. * keylist.c (list_keyblock_print): Make field width an int. * keyedit.c (show_key_with_all_names): Ditto.
2004-12-16* g10.c (main): Add --require-secmem/--no-require-secmem to cause gpg toDavid Shaw2-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.
2004-12-15* apdu.c (apdu_send_le, apdu_send_direct), keylist.cDavid Shaw5-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.
2004-12-14* keyedit.c (keyedit_menu): Re-remove the N_() markers.David Shaw2-43/+45
2004-12-14* trustdb.c (uid_trust_string_fixed): Show uids as revoked if the key isDavid Shaw3-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.
2004-12-14automake updates, removed one debug outputV1-3-93Werner Koch2-1/+2
2004-12-14Prepared for last 1.4 release candidateWerner Koch4-82/+95
2004-12-13(read_passphrase_from_fd): Fixed memory leak.Werner Koch2-1/+9
Noted by Andrei Darashenka.
2004-12-12* keyserver.c (parse_preferred_keyserver): Force preferred keyserverDavid Shaw2-1/+6
subpackets to have a URI scheme specified.
2004-12-11* options.h, g10.c (main), textfilter.c (standard): Use --rfc2440 orDavid Shaw5-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.
2004-12-10* app-openpgp.c (send_fprtime_if_not_null): New.Werner Koch5-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.
2004-12-10* options.h, g10.c (main), textfilter.c (len_without_trailing_ws): RemovedDavid Shaw4-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.
2004-12-09* passphrase.c (agent_get_passphrase): New args CUSTOM_PROMPT andWerner Koch6-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.
2004-12-09* keygen.c (ask_algo): Add a choose-your-own-capabilities option for DSA.David Shaw2-8/+20
2004-12-07* keygen.c (ask_keysize): Change strings to always use %u instead ofDavid Shaw2-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.
2004-11-29* getkey.c (parse_key_usage): New function to parse out key usage flags.David Shaw2-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.
2004-11-26* export.c (do_export_stream): Allow export-minimal to work with secretDavid Shaw2-4/+11
keys, even though a non-selfsig secret key signature is rare.
2004-11-26* options.h, export.c (parse_export_options, do_export_stream), import.cDavid Shaw5-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.