aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 2004-10-03 Timo Schulz <[email protected]>Timo Schulz2004-10-042-0/+6
| | | | | * apdu.c (apdu_open_remote_reader) [_WIN32]: Do not set ENOSYS.
* * keyedit.c (print_and_check_one_sig_colon): Fix bad keyids in colonDavid Shaw2004-10-042-10/+21
| | | | | | delsig output. Noted by Peter Palfrader. (show_prefs): Do not reference missing selfsig. Noted by Alex Moroz.
* post release preparationsWerner Koch2004-10-012-1/+5
|
* * gpgv.c (i18n_init): Always use LC_ALL.V1-3-90Werner Koch2004-10-016-19/+12
| | | | | | | * bftest.c (i18n_init): Always use LC_ALL. * shmtest.c (i18n_init): Ditto. * mpicalc.c (i18n_init): Ditto.
* * mk-w32-dist: Updated from stable branch.Werner Koch2004-10-0148-20746/+24946
| | | | | | | | * mk-gpg-texi: Changed to use the newer docbook2x-texi utility. * config.guess, config.sub, mkinstalldirs, missing * depcomp, install-sh: Upgraded.
* * gpgv.c, keydb.c (keydb_add_resource): Factored keyring creation out toDavid Shaw2004-09-304-52/+136
| | | | | | | | | | | .. (maybe_create_keyring): .. new. Make sure that we do the checks in a locked state. Problem reported by Stefan Haller. Try to create the home directory before acquiring a lock for the keyring. From Werner on stable branch. * g10.c (main): Blow up if we didn't lose setuid. From Werner on stable branch.
* * util.h: Prototype destroy_dotlock(). From Werner on stable branch.David Shaw2004-09-302-0/+6
|
* * iobuf.c (pop_filter): Make static.David Shaw2004-09-303-12/+59
| | | | | | | * dotlock.c (destroy_dotlock): New. Remove the handle from the list of locks. (release_dotlock): Don't act if we don't have any locks at all. From Werner on stable branch.
* * mpicoder.c (mpi_read): If we must fail due to a oversize (generallyDavid Shaw2004-09-302-1/+9
| | | | | | corrupt) MPI, make sure the number of bytes we read is valid so we can skip the rest of the bad packet (in hopes the whole stream isn't invalid).
* * keyedit.c, keylist.c, keyserver.c, mainproc.c: Reduce the manyDavid Shaw2004-09-295-24/+33
| | | | | | variations of "revoked" ("revoked", "[revoked]", " [revoked]", "[revoked] ") "and" expired down to two to simplify translation.
* * keyedit.c (print_and_check_one_sig): Account for the extra space thatDavid Shaw2004-09-292-16/+9
| | | | | | | show-sig-expire takes up so we do not wrap lines. (show_key_with_all_names): No need to show subkey revocations as a seperate line since we now show revocation date in the main subkey line.
* * signal.c (got_fatal_signal): HAVE_DECL_SYS_SIGLIST is defined, but zeroDavid Shaw2004-09-283-4/+12
| | | | | | | | if not found. Noted by John Clizbe. * keyserver.c (parse_keyrec): Fix problem with non-expiring keys appearing expired in --search-keys results.
* * card-util.c (card_edit): Take admin only status from the table.Werner Koch2004-09-273-53/+93
| | | | | | | | | | | | * app-openpgp.c: Made all strings translatable. (verify_chv3) [GNUPG_MAJOR_VERSION]: Make opt.allow_admin available for use in gnupg 2. (verify_chv3): Reimplemented countdown showing to use only functions from this module. Flush the CVH status cache on a successful read. (get_one_do): Hack to bypass the cache for cards versions > 1.0. (store_fpr): Store the creation date for card version > 1.0.
* We need to take care that several files are also used in gnupg 1.9 andWerner Koch2004-09-272-42/+68
| | | | | | | | | | | | | | there by the scdaemon which is a bit different to the direct integration in gpg 1.3. In general they should all be maintained in 1.9 but while preparing 1.4 its okay to do it in 1.3. We just need to take some care not to break 1.9 to heavily. app-openpgp.c: Made all strings translatable. (verify_chv3) [GNUPG_MAJOR_VERSION]: Make opt.allow_admin available for use in gnupg 2. (verify_chv3): Reimplemented countdown showing to use only functions from this module.
* * main.h, g10.c (main), card-util.c (change_pin): If "admin" has not beenDavid Shaw2004-09-256-94/+143
| | | | | | | | | | | | | | issued, skip right to the CHV1/CHV2 PIN change. No need to show the unblock or admin PIN change option. (card_edit): Add "admin" command to add admin commands to the menu. Do not allow admin commands until "admin" is given. * app-openpgp.c (verify_chv3): Show a countdown of how many wrong admin PINs can be entered before the card is locked. * options.h, g10.c (main), app-openpgp.c (verify_chv3): Remove --allow-admin.
* * main.h: Create S2K_DIGEST_ALGO macro so we do not need to always setDavid Shaw2004-09-2412-34/+45
| | | | | | | | | | | opt.s2k_digest_algo. This helps fix a problem with PGP 2.x encrypted symmetric messages. Change all callers (encode.c, g10.c, keyedit.c, keygen.c, passphrase.c, sign.c). * armor.c, cardglue.c, getkey.c, import.c, keygen.c: Be consistent in some more quoted strings. Always use 'user ID', not 'user id', "quotes" for user IDs, etc.
* * keyedit.c (keyedit_menu), gpgv.c (agent_scd_getattr (stub)), keygen.cDavid Shaw2004-09-244-34/+45
| | | | | | (copy_mpi, generate_raw_key): Fix a compile problem and a few warnings when building without card support.
* Note: I have not fully tested the new key creation due to a pc/scWerner Koch2004-09-238-315/+652
| | | | | | | | | | | | | | | | | | | error. However the backupfile has been created successfully. * rsa.c (rsa_generate): Return the dummy list of factors only if the caller asked for it. * card_util.c (generate_card_keys): ask whether backup should be created. (card_store_subkey): Factored some code out to .. * keygen.c (save_unprotected_key_to_card): .. new function. (gen_card_key_with_backup): New. (generate_raw_key): New. (generate_keypair): New arg BACKUP_ENCRYPTION_DIR. Changed all callers. (do_generate_keypair): Divert to gen_card_key_with_backup when desired.
* * gpg.sgml: Document "addcardkey" and "keytocard".Werner Koch2004-09-2315-116/+580
| | | | | | | | | | | | | | | | | | | | * apdu.c (open_pcsc_reader): Do not print empty reader string. * keygen.c (ask_algo): Allow creation of AUTH keys. * keyid.c (usagestr_from_pk): New. * app-openpgp.c (app_openpgp_storekey): Call flush_cache. * keyedit.c (keyedit_menu): New command "keytocard" (keyedit_menu): Bad hack for the not_with_sk element. (show_key_with_all_names): Print the usage. (find_pk_from_sknode): New. * card-util.c (card_store_subkey): New. (copy_mpi): New. * cardglue.c (agent_openpgp_storekey): New.
* * mainproc.c (check_sig_and_print), keyedit.c (show_prefs,David Shaw2004-09-223-6/+15
| | | | | | menu_set_keyserver_url): Make sure that keyserver URLs with control characters inside are printed properly. In fact, handle them as UTF8.
* * keyedit.c (keyedit_menu): Don't show "addcardkey" in the menu if we doDavid Shaw2004-09-214-5/+15
| | | | | | | | not have card support. * keydb.h, keyserver.c (print_keyrec, keyserver_spawn): fpr is an array of unsigned bytes.
* * gpg.sgml: Document -K.Werner Koch2004-09-2012-14/+356
| | | | | | | | | | | | | | | | | * g10.c: Make -K an alias for --list-secret-keys. * keylist.c (print_card_serialno): New. Taken from gnupg 1.9.11. (list_keyblock_print): Make use of it. * keyedit.c (show_key_with_all_names): Print the card S/N. * keyedit.c (keyedit_menu): New command ADDCARDKEY. * card-util.c (card_generate_subkey): New. * keygen.c (generate_card_subkeypair): New. (gen_card_key): New arg IS_PRIMARY; changed all callers. * cardglue.c (open_card): Use shutdown code if possible. (check_card_serialno): Ditto.
* * cardglue.c (open_card): Use shutdown code if possible.Werner Koch2004-09-206-43/+179
| | | | | | | | | | | | (check_card_serialno): Ditto. * ccid-driver.c (do_close_reader): Factored some code out from ... (ccid_close_reader): ..here. (ccid_shutdown_reader): New. * apdu.c (apdu_shutdown_reader): New. (shutdown_ccid_reader): New.
* (apdu_open_reader): No fallback if a full CCID reader id has beenWerner Koch2004-09-173-238/+21
| | | | | Removed test code from ccid-driver.c
* * configure.ac: Don't check for usb_create_match orWerner Koch2004-09-177-298/+628
| | | | | | | | | | | | | | | | | | | | | | use_get_string_simple anymore. * g10.c (list_config): New config option ccid-reader-id. (gpgconf_list): Add "reader-port". * apdu.c (open_ccid_reader): New arg PORTSTR. Pass it to ccid_open_reader. (apdu_open_reader): Pass portstr to open_ccid_reader. * ccid-driver.c (ccid_get_reader_list): New. (ccid_open_reader): Changed API to take a string for the reader. Removed al the cruft for the libusb development vesion which seems not to be maintained anymore and there are no packages anyway. The stable library works just fine. (struct ccid_reader_id_s): Deleted and replaced everywhere by a simple string. (usb_get_string_simple): Removed. (bulk_in): Do valgrind hack here and not just everywhere.
* * keyedit.c (show_key_with_all_names, show_prefs): Show preferredDavid Shaw2004-09-162-5/+35
| | | | | keyserver(s) in "showpref" output.
* * keygen.c (keygen_add_keyserver_url), keyedit.c (menu_set_keyserver_url):David Shaw2004-09-163-15/+34
| | | | | | Allow setting a keyserver URL of "none" to remove an existing keyserver URL.
* * keyedit.c (menu_set_keyserver_url): Confirm replacement of a keyserverDavid Shaw2004-09-162-9/+25
| | | | | URL before overwriting the old one.
* * DETAILS: Document the 'spk' signature subpacket record. Add more detailDavid Shaw2004-09-163-9/+51
| | | | | | | | | on "tru" records. * gpg.sgml: Note that PGP scales photo IDs to fit in the dialog box. Document show-sig-subpackets. Document the '%c' signature counter expando.
* * gpgv.c (agent_scd_getattr): Stub.David Shaw2004-09-154-0/+98
| | | | | | | | | | | * misc.c (get_signature_count): New. Get the signature count from a smartcard. (pct_expando): Call it here so the %c expando becomes the number of signatures issued. This allows for notations or the like with an automatic signature count. * ccid-driver.c (usb_get_string_simple): Replacement function to work with older libusb.
* * configure.ac: Give warning when using capabilities. Check forDavid Shaw2004-09-153-3/+17
| | | | | usb_get_string_simple for old libusb reasons.
* * g10.c [HAVE_LIBUSB]: New option --debug-ccid-driver.Werner Koch2004-09-154-128/+361
| | | | | | | | | | * ccid-driver.c (read_device_info): Removed. (make_reader_id, scan_or_find_devices): New. (ccid_open_reader): Simplified by make use of the new functions. (ccid_set_debug_level): New. Changed the macros to make use of it. It has turned out that it is often useful to enable debugging at runtime so I added this option.
* Document "--debug-ccid-driver".Werner Koch2004-09-152-0/+11
|
* * gpg.sgml: Note that --throw-keyid is --throw-keyids. Note changes inDavid Shaw2004-09-142-32/+34
| | | | | | --pgp8. Rephrase the "don't play algorithm games" warning now that PGP has blowfish, zlib, and bzip2.
* * getkey.c (premerge_public_with_secret): Fix subkey<->binding sigDavid Shaw2004-09-142-1/+5
| | | | | | mismatch when some secret subkeys are missing. Discovered by Michael Roth.
* * pgpgroup-to-gpggroup: New perl script to take groups from PGP commandDavid Shaw2004-09-142-0/+47
| | | | | line and write out GnuPG 'group' config lines.
* * main.h, keylist.c (print_subpackets_colon): Make a public function.David Shaw2004-09-134-7/+85
| | | | | | | * keyedit.c (print_and_check_one_sig_colon): New. Print a with-colons version of the sig record. (menu_delsig): Call it here for a with-colons delsig.
* * options.h, keylist.c (print_one_subpacket, print_subpackets_colon):David Shaw2004-09-124-27/+176
| | | | | | | | | Print a spk record for each request subpacket. (list_keyblock_colon): Call them here. * g10.c (parse_subpacket_list, parse_list_options): New. Make the list of subpackets we are going to print. (main): Call them here.
* * card-util.c (fetch_url, card_edit): Use the pubkey URL stored on theDavid Shaw2004-09-115-5/+67
| | | | | | | | | | card to fetch an updated copy. Works with either straight URLs or HKP or LDAP keyservers. * keyserver-internal.h, keyserver.c (keyserver_import_fprint), import.c (revocation_present): Use a keyserver_spec so the caller can pass in whatever keyserver they like.
* * app-openpgp.c (get_cached_data): Avoid mallocing zero since it breaks usDavid Shaw2004-09-112-8/+15
| | | | | when using --enable-m-guard.
* * NEWS: Note HTTP basic auth.David Shaw2004-09-113-1/+16
| | | | | | * configure.ac: Check for usb_get_busses since very old stable libusb doesn't have it.
* * ccid-driver.c (read_device_info): Fix segfault when usb device is notDavid Shaw2004-09-112-0/+15
| | | | | | accessible. (ccid_open_reader): Allow working with an even older version of libusb (usb_busses global instead of usb_get_busses()).
* * http.h: Add auth field for a parsed_uri to allow for basic auth.David Shaw2004-09-102-1/+6
|
* * http.c (make_radix64_string, do_parse_uri, send_request): Add basic authDavid Shaw2004-09-102-16/+82
| | | | | for proxies and direct requests. Suggested by Florent Thoumie.
* * http.c (main): Fix test code for http-test.David Shaw2004-09-102-2/+6
|
* * README: Doc --disable-card-support and --without-readline.Werner Koch2004-09-0921-610/+1600
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * configure.ac: Check for readline. Make enable-card-support the default. New option --without-readline. Allow the use of either the development or the stable libusb. * cardglue.h: Add members for CA fingerprints. * cardglue.c (agent_release_card_info): Invalid them. (learn_status_cb): Store them. * app-common.h, app-openpgp.c, iso7816.c, iso7816.h * apdu.c, apdu.h, ccid-driver.c, ccid-driver.h * card-util.c: Updated from current gnupg-1.9. * ccid-driver.h (CCID_DRIVER_ERR_ABORTED): New. * ccid-driver.c (ccid_open_reader): Support the stable 0.1 version of libusb. (ccid_get_atr): Handle short messages. * apdu.c (my_rapdu_get_status): Implemented. * apdu.c: Include <signal.h>. * apdu.c (reader_table_s): Add function pointers for the backends. (apdu_close_reader, apdu_get_status, apdu_activate) (send_apdu): Make use of them. (new_reader_slot): Intialize them to NULL. (dump_ccid_reader_status, ct_dump_reader_status): New. (dump_pcsc_reader_status): New. (open_ct_reader, open_pcsc_reader, open_ccid_reader) (open_osc_reader, open_rapdu_reader): Intialize function pointers. (ct_activate_card, ct_send_apdu, pcsc_send_apdu, osc_send_apdu) (error_string): Removed. Replaced by apdu_strerror. (get_ccid_error_string): Removed. (ct_activate_card): Remove the unused loop. (reset_ct_reader): Implemented. (ct_send_apdu): Activate the card if not yet done. (pcsc_send_apdu): Ditto. * ccid-driver.h: Add error codes. * ccid-driver.c: Implement more or less proper error codes all over the place. * apdu.c (apdu_send_direct): New. (get_ccid_error_string): Add some error code mappings. (send_apdu): Pass error codes along for drivers already supporting them. (host_sw_string): New. (get_ccid_error_string): Use above. (send_apdu_ccid): Reset the reader if it has not yet been done. (open_ccid_reader): Don't care if the ATR can't be read. (apdu_activate_card): New. (apdu_strerror): New. (dump_reader_status): Only enable it with opt.VERBOSE. * iso7816.c (map_sw): Add mappings for the new error codes. * apdu.c (open_ct_reader, open_pcsc_reader, open_ccid_reader) (reset_ccid_reader, open_osc_reader): Call dump_reader_status only in verbose mode. * app-openpgp.c (do_getattr): Fix for sending CA-FPR. * app-openpgp.c (app_openpgp_readkey): Fixed check for valid exponent. * app-openpgp.c (do_setattr): Sync FORCE_CHV1. * card-util.c (change_login): Kludge to allow reading data from a file. (card_edit): Pass ARG_STRING to change_login. (card_status): Print CA fingerprints. (change_cafpr): New. (card_edit): New command CAFPR. * errors.h (G10ERR_NO_CARD, G10ERR_CANCELED): New error codes. * errors.c (g10_errstr): New error codes G10ERR_NO_CARD, G10ERR_CANCELED.
* * configure.ac: Check for readline.Werner Koch2004-09-097-17/+93
| | | | | | | | | | * signal.c (got_fatal_signal): Do readline cleanup. Print signal number if we can't print the name. Use new autoconf macro HAVE_DECL_SYS_SIGLIST. (get_signal_name): Removed. * ttyio.c (tty_get): Add readline support.
* * photoid.c: Include ttyio.h.Werner Koch2004-09-097-35/+75
| | | | | | | | | * parse-packet.c (skip_rest): Removed. Changed all callers to use the new iobuf_skip_reset. Orginal patch by Florian Weimer. * iobuf.c (iobuf_skip_rest): New. Orginal patch by Florian Weimer. Added new argument PARTIAL.
* (generate_photo_id): Use tty_printf and not justWerner Koch2004-09-072-4/+9
| | | | | printf. Put _() around one string.
* * keyserver.c (parse_keyrec): Force the 'e'xpired flag on as soon as weDavid Shaw2004-09-032-13/+22
| | | | | know the key is definitely expired. Some translatable string cleanup.