aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * 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.
* change back skey to unsigned and cast insteadStefan Bellon2004-08-272-2/+5
|
* fix type incompatibilityStefan Bellon2004-08-272-8/+13
|
* * encode.c, exec.c, g10.c, sign.c: Some translatable string cleanup.David Shaw2004-08-275-60/+68
| | | | | Change some "this" to `this'.
* * gpgkeys_ldap.c (get_key, search_key), gpgkeys_hkp.c (get_key,David Shaw2004-08-234-18/+4
| | | | | | search_key), gpgkeys_http.c (get_key): Do not give informational logs since this is now done inside gpg.
* * keyserver.c (keyserver_spawn): Show log line for what keyserver actionDavid Shaw2004-08-233-24/+57
| | | | | | | | | we are taking. * keyid.c (keystr): If printing a keyid that lacks the high 4 bytes, print the low 4 alone. (keystr_from_desc): Handle short keyids and warn on v3 fingerprints.
* * keydb.h, getkey.c (get_user_id_printable): Rename to get_user_id_nativeDavid Shaw2004-08-237-30/+31
| | | | | | | and remove the printable stuff since we're print-ifying valid utf8 characters. Change all callers in import.c, sign.c, keylist.c, and encode.c.
* * gpgkeys_hkp.c (dehtmlize): Understand the quote character (i.e.David Shaw2004-08-232-7/+21
| | | | | | "&quot;") in HTML responses. (search_key): Search key must be unsigned for url encoder to work properly for 8-bit values.
* * gpgkeys_ldap.c (get_key): Factor out informational display into newDavid Shaw2004-08-232-74/+81
| | | | | function build_info().
* * keyserver.c (keyserver_search_prompt): Make sure the search string isDavid Shaw2004-08-232-9/+24
| | | | | converted from UTF-8 before display.
* * gpgkeys_ldap.c (build_attrs): Properly terminate user ID strings thatDavid Shaw2004-08-232-0/+7
| | | | | got shrunk due to encoding.
* * gpgkeys_ldap.c (find_basekeyspacedn): Use LDAP_SCOPE_BASE along with aDavid Shaw2004-08-232-7/+33
| | | | | | | | full DN rather than LDAP_SCOPE_ONELEVEL plus a filter to find the pgpServerInfo object. Some LDAP setups don't like the search. (main): Stop binding to the server since it seems no server really requires it, and some require it not be there.
* * http.c (insert_escapes): Fix encoding problem for non-URI-safeDavid Shaw2004-08-192-2/+7
| | | | | characters. Noted by Vladimir Novak.
* (encode_session_key): Changed the zero random byteWerner Koch2004-08-192-2/+11
| | | | | | substituting code to actually do clever things. Thanks to Matthias Urlichs for noting the implementation problem.
* 2004-08-18 Marcus Brinkmann <[email protected]>Marcus Brinkmann2004-08-182-3/+10
| | | | | * passphrase.c (agent_get_passphrase):
* * plaintext.c (handle_plaintext): Bigger buffer for extra safety.David Shaw2004-08-086-30/+48
| | | | | | | | | | | | | | | | | * g10.c (main): New alias --throw-keyid for --throw-keyids, so that it continues to work in old configuration files. Noted by Jens Adam. * pkclist.c (algo_available): --pgp8 now allows blowfish, zlib, and bzip2. * status.c (do_get_from_fd): Flush stdout if status isn't flushing it for us. This guarantees that any menus that were displayed before the prompt don't get stuck in a buffer. Noted by Peter Palfrader. This is Debian bug #254072. * sign.c (update_keysig_packet): Revert change of 2004-05-18. It is not appropriate to strip policy and notations when remaking a sig. That should only happen when specifically requested by the user.
* * gpg.sgml: Remove show-long-keyids since it is replaced byDavid Shaw2004-08-072-24/+15
| | | | | | --keyid-format. Rename show-validity as show-uid-validity. --ask-cert-level defaults to no.
* * armor.c (radix64_read): No armor CRC is legal according to the spec (theDavid Shaw2004-08-052-1/+10
| | | | | CRC is a MAY).
* * gpgkeys_ldap.c (main): Add "debug" option. This is only really usefulDavid Shaw2004-07-292-11/+68
| | | | | | | | with OpenLDAP, but it's practically vital to debug SSL and TLS setups. Add "basedn" option. This allows users to override the autodetection for base DN. SSL overrides TLS, so TLS will not be started on SSL connections (starting an already started car).
* * gpgkeys_ldap.c (build_attrs): Add "pgpKeySize" and "pgpSubKeyID"David Shaw2004-07-282-2/+48
| | | | | | | | attributes so we can do subkey searches. * gpgkeys_ldap.c (main): Under certain error conditions, we might try and unbind twice. Don't.
* * gpgkeys_ldap.c (join_two_modlists): New. (send_key): Use new function soDavid Shaw2004-07-282-19/+70
| | | | | | | we can try a modify operation first, and fail over to an add if that fails. Add cannot cope with the NULLs at the head of the modify request, so we jump into the list in the middle.
* * misc.c (argsplit): Properly split quoted args from the keyword and trimDavid Shaw2004-07-282-9/+25
| | | | | whitespace afterwards.
* * misc.c (optsep): Add the ability to understand keyword="quoted arg withDavid Shaw2004-07-282-3/+20
| | | | | spaces" type options.
* * gpgkeys_ldap.c (main): Don't try and error out before making a ldapsDavid Shaw2004-07-282-28/+27
| | | | | | | connection to the NAI keyserver since we cannot tell if it is a NAI keyserver until we connect. Fail if we cannot find a base keyspace DN. Fix a false success message for TLS being enabled.
* Updated po files from 1.2.5Werner Koch2004-07-2730-32077/+95192
|
* * configure.ac (AM_GNU_GETTEXT_VERSION): New.Werner Koch2004-07-2775-1321/+5039
| | | | | | | | | | | (min_automake_version): New. * LINGUAS: Added all languages we supported in 1.2.5. Copied all po files from 1.2.5. * autogen.sh: Updated to the modern version, grepping the required tool versions from configure.ac.
* * keylist.c (list_keyblock_print): Always use the new listing format whereDavid Shaw2004-07-166-42/+45
| | | | | | | | | | | | | uids are always on a line for themselves. Mark expired secret keys as expired. * options.h, g10.c (main): Rename list show-validity to show-uid-validity as it only shows for uids. * armor.c (armor_filter): Do not use padding to get us to 8 bytes of header. Rather, use 2+4 as two different chunks. This avoids a fake filename of "is".
* * keyedit.c (sign_uids): Properly handle remaking a self-sig on revoked orDavid Shaw2004-07-155-5/+54
| | | | | | | | | | | | | | expired user IDs. Also, once we've established that a given uid cannot or will not be signed, don't continue to ask about each sig. * mainproc.c (proc_symkey_enc), seckey-cert.c (do_check): Check the S2K hash algorithm before we try to generate a passphrase using it. This prevents hitting BUG() when generating a passphrase using a hash that we don't have. * sign.c (sign_symencrypt_file): Allow using --force-mdc in --sign --symmetric messages.
* * g10.c (main): Alias --charset as --display-charset to help avoid theDavid Shaw2004-07-157-59/+100
| | | | | | | | | | | | | | continuing confusion and make room for possible changes in devel. * parse-packet.c (parse_plaintext): Show the hex value for the literal packet mode since it may not be printable. * keygen.c (make_backsig): Make sure that the backsig was built successfully before we try and use it. * status.h, status.c (get_status_string), plaintext.c (handle_plaintext): New status tags PLAINTEXT and PLAINTEXT_LENGTH.
* * ring-a-party: ElGamal -> ElgamalDavid Shaw2004-07-042-5/+5
|
* * DETAILS: Document PLAINTEXT and PLAINTEXT_LENGTH.David Shaw2004-06-293-29/+59
| | | | | | | | | * gpg.sgml: Clarify that --min-cert-level disregards level 1 certs by default. Clarify include-revoked a bit to note that keyservers might not be accurate. Note that --charset is --display-charset. Some language tweaks for --simple-sk-checksum (Debian 251795). Note the PGP silliness with preferred keyserver subpackets causing PGP/MIME.
* (copy_secret_key): Get last fix right.Werner Koch2004-06-162-10/+9
|
* s/1/i/Werner Koch2004-06-161-2/+2
|
* * free-packet.c (copy_secret_key): Fixed memory leak when D is notWerner Koch2004-06-163-1/+36
| | | | | | | | NULL. * passphrase.c (passphrase_to_dek): Added a few comments to the code.
* * mk-w32-dist: Do not include the en@* po files.Werner Koch2004-06-143-2/+11
| | | | | * autogen.sh <--build-w32>: Build keyserver helpers again.
* * gpgkeys_http.c: General polish and removal of leftover stuff fromDavid Shaw2004-05-262-31/+26
| | | | | gpgkeys_hkp.c.
* * keyserver.c (keyserver_refresh): Keep track of keys already fetched soDavid Shaw2004-05-262-3/+14
| | | | | | we don't do a regular keyserver fetch if the preferred keyserver fetch has exhausted the list.
* * configure.ac: Try for wldap32 on Win32 platforms.David Shaw2004-05-242-0/+5
|
* * verify.c (verify_signatures): Verify multiple files in the same order inDavid Shaw2004-05-233-22/+32
| | | | | | | | which we hashed them when issuing the signature. Noted by Nicholas Cole. * pkclist.c (do_edit_ownertrust): Fix a kbnode leak and do another keyid-format conversion.