gnupg.git
14 years agoMake --without-included-zlib work as
Werner Koch [Mon, 17 Jan 2005 10:13:59 +0000 (10:13 +0000)]
Make --without-included-zlib work as
expected. Reported by Norihiko Murase.

14 years ago* ksutil.h, gpgkeys_curl.c, gpgkeys_hkp.c, gpgkeys_ldap.c,
David Shaw [Thu, 13 Jan 2005 23:37:26 +0000 (23:37 +0000)]
* ksutil.h, gpgkeys_curl.c, gpgkeys_hkp.c, gpgkeys_ldap.c,
gpgkeys_finger.c, gpgkeys_http.c: Part 2 of the cleanup.  Move all the
various defines to ksutil.h.

14 years ago* gpgkeys_finger.c, gpgkeys_hkp.c, gpgkeys_http.c, gpgkeys_ldap.c: Part 1
David Shaw [Thu, 13 Jan 2005 23:22:10 +0000 (23:22 +0000)]
* gpgkeys_finger.c, gpgkeys_hkp.c, gpgkeys_http.c, gpgkeys_ldap.c: Part 1
of a minor cleanup to use #defines instead of hard-coded sizes.

14 years ago* http.c (connect_server): Use INADDR_NONE instead of SOCKET_ERROR.
David Shaw [Thu, 13 Jan 2005 22:09:33 +0000 (22:09 +0000)]
* http.c (connect_server): Use INADDR_NONE instead of SOCKET_ERROR.
Noted by Timo.

14 years ago* gpgkeys_finger.c (connect_server): Use INADDR_NONE instead of
David Shaw [Thu, 13 Jan 2005 22:08:18 +0000 (22:08 +0000)]
* gpgkeys_finger.c (connect_server): Use INADDR_NONE instead of
SOCKET_ERROR.  Noted by Timo.

14 years ago* w32installer.nsi: New.
Werner Koch [Tue, 11 Jan 2005 12:03:22 +0000 (12:03 +0000)]
* w32installer.nsi: New.
* mk-w32-dist: Append ".txt" to some files.  Call makensis if
available.

14 years ago* keyedit.c (keyedit_menu): Move command strings outside the function to
David Shaw [Tue, 11 Jan 2005 04:15:55 +0000 (04:15 +0000)]
* keyedit.c (keyedit_menu): Move command strings outside the function to
get ready for the readline completion code.

14 years ago* passphrase.c (readline, agent_send_option, agent_open,
David Shaw [Mon, 10 Jan 2005 22:56:46 +0000 (22:56 +0000)]
* passphrase.c (readline, agent_send_option, agent_open,
agent_get_passphrase, passphrase_clear_cache): Rename readline() to
readaline() to keep readline library namespace clear.

14 years ago* gpgkeys_curl.c (get_key): Newer versions of libcurl don't define TRUE.
David Shaw [Mon, 10 Jan 2005 03:46:12 +0000 (03:46 +0000)]
* gpgkeys_curl.c (get_key): Newer versions of libcurl don't define TRUE.

14 years ago* filter.h, armor.c (armor_filter): Use the eol string from the armor
David Shaw [Thu, 6 Jan 2005 16:23:47 +0000 (16:23 +0000)]
* filter.h, armor.c (armor_filter): Use the eol string from the armor
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.

14 years ago(set_native_charset): Assume that ASCII,
Werner Koch [Thu, 6 Jan 2005 11:51:49 +0000 (11:51 +0000)]
(set_native_charset): Assume that ASCII,
ANSI_X3.4-1968 and 646 are actually meant as Latin-1.  If
nl_langinfo is not available get the charset from environment
variables. For W32 use GetACP as error fallback.  Removed Latin-15
to Latin-1 aliasing.

14 years ago* g10.c (main): Typo.
David Shaw [Thu, 6 Jan 2005 04:44:38 +0000 (04:44 +0000)]
* g10.c (main): Typo.

* 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.

14 years ago* configure.ac: Use new GNUPG_CHECK_LIBUSB macro.
David Shaw [Mon, 3 Jan 2005 15:18:24 +0000 (15:18 +0000)]
* configure.ac: Use new GNUPG_CHECK_LIBUSB macro.

14 years ago* Makefile.am, libusb.m4: New libusb check macro.
David Shaw [Mon, 3 Jan 2005 15:16:57 +0000 (15:16 +0000)]
* Makefile.am, libusb.m4: New libusb check macro.

14 years ago* Makefile.am: Use @LIBUSB@ instead of @LIBUSB_LIBS@
David Shaw [Mon, 3 Jan 2005 15:15:34 +0000 (15:15 +0000)]
* Makefile.am: Use @LIBUSB@ instead of @LIBUSB_LIBS@

* import.c (delete_inv_parts): Comments on import-unusable-sigs.

14 years ago* options.h, import.c (parse_import_options, delete_inv_parts): Add
David Shaw [Sat, 1 Jan 2005 21:21:11 +0000 (21:21 +0000)]
* options.h, import.c (parse_import_options, delete_inv_parts): Add
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.

14 years ago* configure.ac: Better implementation for the SRV check. We don't need to
David Shaw [Thu, 30 Dec 2004 03:31:19 +0000 (03:31 +0000)]
* configure.ac: Better implementation for the SRV check.  We don't need to
actually check all the header files individually since the SRV test
compile uses them together.

14 years ago* packet.h, getkey.c (merge_selfsigs_main, sig_to_revoke_info), keyid.c
David Shaw [Thu, 30 Dec 2004 03:26:57 +0000 (03:26 +0000)]
* packet.h, getkey.c (merge_selfsigs_main, sig_to_revoke_info), keyid.c
(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.

14 years agoBetter implementation for the SRV check. We don't need to actually check
David Shaw [Wed, 29 Dec 2004 00:58:05 +0000 (00:58 +0000)]
Better implementation for the SRV check.  We don't need to actually check
all the header files individually since the SRV test compile uses them
together.

14 years ago(find_endpoint): New.
Werner Koch [Tue, 28 Dec 2004 07:30:57 +0000 (07:30 +0000)]
(find_endpoint): New.
(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.

14 years ago* keyserver.c (keyserver_typemap): Only map HTTP and FTP if libcurl has
David Shaw [Fri, 24 Dec 2004 19:51:02 +0000 (19:51 +0000)]
* keyserver.c (keyserver_typemap): Only map HTTP and FTP if libcurl has
specifically been selected to handle them.

14 years ago* gpgkeys_curl.c (main): Use new defines for opting out of certain
David Shaw [Fri, 24 Dec 2004 19:48:36 +0000 (19:48 +0000)]
* gpgkeys_curl.c (main): Use new defines for opting out of certain
transfer protocols.  Allow setting HTTP proxy via "http-proxy=foo" option
(there is natural support in libcurl for the http_proxy environment
variable).

* Makefile.am: Remove the conditional since this is all handled in
autoconf now.

14 years ago* configure.ac: Use new LIBCURL_CHECK_CONFIG macro for all libcurl stuff.
David Shaw [Fri, 24 Dec 2004 19:43:16 +0000 (19:43 +0000)]
* configure.ac: Use new LIBCURL_CHECK_CONFIG macro for all libcurl stuff.
This simplifies, and we don't need the automake conditional stuff any
longer.

14 years ago* libcurl.m4: Rewrite this to use the new --protocols flag I gave to the
David Shaw [Fri, 24 Dec 2004 19:41:06 +0000 (19:41 +0000)]
* libcurl.m4: Rewrite this to use the new --protocols flag I gave to the
libcurl people.

* Makefile.am: Add readline.m4 and libcurl.m4.

14 years ago* libcurl.m4: OSX has a problem with their curl-config script.
David Shaw [Thu, 23 Dec 2004 16:34:08 +0000 (16:34 +0000)]
* libcurl.m4: OSX has a problem with their curl-config script.

14 years ago* readline.m4: Make sure that readline is modern enough to understand
David Shaw [Thu, 23 Dec 2004 16:12:13 +0000 (16:12 +0000)]
* readline.m4: Make sure that readline is modern enough to understand
rl_catch_signals.

* libcurl.m4: Don't require curl-config to be present since it seems some
binary packages don't include it.  Allow users to specify LIBCURL and
LIBCURL_INCLUDES for us.

14 years ago* gpgkeys_curl.c (main): New "follow-redirects" option. Takes an optional
David Shaw [Wed, 22 Dec 2004 19:19:10 +0000 (19:19 +0000)]
* gpgkeys_curl.c (main): New "follow-redirects" option.  Takes an optional
numeric value for the maximum number of redirects to allow.  Defaults to
5.

* gpgkeys_curl.c (main), gpgkeys_finger.c (main), gpgkeys_hkp.c (main),
gpgkeys_http.c (main), gpgkeys_ldap.c (main): Make sure that a "timeout"
option passed with no arguments is properly handled.

14 years ago* options.h, keyserver.c (parse_keyserver_uri): Properly parse auth data
David Shaw [Wed, 22 Dec 2004 18:09:41 +0000 (18:09 +0000)]
* options.h, keyserver.c (parse_keyserver_uri): Properly parse auth data
from URLs and pass to keyserver helpers.

14 years ago* gpgkeys_curl.c (get_key, writer): New function to wrap around fwrite to
David Shaw [Wed, 22 Dec 2004 18:07:21 +0000 (18:07 +0000)]
* gpgkeys_curl.c (get_key, writer): New function to wrap around fwrite to
avoid DLL access problem on win32.

* gpgkeys_http.c (main, get_key): Properly pass authentication info
through to the http library.

14 years ago* keyserver.c (keyserver_typemap): New. Map certain keyserver types to a
David Shaw [Wed, 22 Dec 2004 17:49:44 +0000 (17:49 +0000)]
* keyserver.c (keyserver_typemap): New.  Map certain keyserver types to a
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.

14 years ago* Makefile.am: Build gpgkeys_http or gpgkeys_curl as needed.
David Shaw [Wed, 22 Dec 2004 17:12:23 +0000 (17:12 +0000)]
* Makefile.am: Build gpgkeys_http or gpgkeys_curl as needed.

* gpgkeys_curl.c (main, get_key): Minor tweaks to work with either FTP or
HTTP.

* gpgkeys_ftp.c: renamed to gpgkeys_curl.c.

14 years ago* configure.ac: --enable-ftp is on by default, --with-libcurl is off by
David Shaw [Wed, 22 Dec 2004 17:07:39 +0000 (17:07 +0000)]
* configure.ac: --enable-ftp is on by default, --with-libcurl is off by
default.  If we have neither of --enable-ftp or --enable-http, don't even
check for curl.

14 years ago* libcurl.m4: Be much more strict with libcurl by trying to compile and
David Shaw [Wed, 22 Dec 2004 17:03:27 +0000 (17:03 +0000)]
* libcurl.m4: Be much more strict with libcurl by trying to compile and
link a test program that uses the features that we need.

14 years ago* gpgkeys_ftp.c (main, get_key): Use auth data as passed by gpg. Use
David Shaw [Wed, 22 Dec 2004 05:23:22 +0000 (05:23 +0000)]
* gpgkeys_ftp.c (main, get_key): Use auth data as passed by gpg. Use
CURLOPT_FILE instead of CURLOPT_WRITEDATA (same option, but backwards
compatible).

14 years ago* autogen.sh: automake needs --add-missing for conditional CPPFLAGS build
David Shaw [Tue, 21 Dec 2004 23:44:06 +0000 (23:44 +0000)]
* autogen.sh: automake needs --add-missing for conditional CPPFLAGS build
in keyserver/Makefile.am.

14 years agoAs always, CVS leaves out the local directory?
David Shaw [Tue, 21 Dec 2004 23:40:51 +0000 (23:40 +0000)]
As always, CVS leaves out the local directory?

14 years agoFTP keyserver support via gpgkeys_ftp. This is currently off by default.
David Shaw [Tue, 21 Dec 2004 23:39:57 +0000 (23:39 +0000)]
FTP keyserver support via gpgkeys_ftp.  This is currently off by default.

14 years ago* keyedit.c (menu_set_keyserver_url): Make sure we only operate on the
David Shaw [Tue, 21 Dec 2004 15:49:56 +0000 (15:49 +0000)]
* keyedit.c (menu_set_keyserver_url): Make sure we only operate on the
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.

14 years ago* keylist.c (list_keyblock_print): Secret key listings should always show
David Shaw [Tue, 21 Dec 2004 04:19:03 +0000 (04:19 +0000)]
* keylist.c (list_keyblock_print): Secret key listings should always show
everything (expired UIDs, revoked subkeys, etc, etc).

* keyedit.c (keyedit_menu): Add additional help for the "sign" flags.

14 years ago(ask_expire_interval): For better translations chnage 2
Werner Koch [Mon, 20 Dec 2004 18:14:57 +0000 (18:14 +0000)]
(ask_expire_interval): For better translations chnage 2
strings.

14 years ago* seckey-cert.c (do_check): Handle case when checksum was okay but
Werner Koch [Mon, 20 Dec 2004 10:05:20 +0000 (10:05 +0000)]
* seckey-cert.c (do_check): Handle case when checksum was okay but
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.

14 years ago(handle_iconv_error): Turn diagnostics into warnings
Werner Koch [Mon, 20 Dec 2004 08:55:03 +0000 (08:55 +0000)]
(handle_iconv_error): Turn diagnostics into warnings
so that gpg does not return with failure.
(native_to_utf8, utf8_to_native): Ditto.

14 years ago* keyedit.c (keyedit_menu): Invisible alias "passwd" as "password".
David Shaw [Mon, 20 Dec 2004 05:19:09 +0000 (05:19 +0000)]
* keyedit.c (keyedit_menu): Invisible alias "passwd" as "password".

* 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".

14 years ago* keygen.c (keygen_get_std_prefs): Set reference count when creating the
David Shaw [Sun, 19 Dec 2004 05:20:07 +0000 (05:20 +0000)]
* keygen.c (keygen_get_std_prefs): Set reference count when creating the
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.

14 years ago* keyedit.c (menu_revkey): Rename to menu_revsubkey. (menu_revkey): New.
David Shaw [Sun, 19 Dec 2004 04:30:16 +0000 (04:30 +0000)]
* keyedit.c (menu_revkey): Rename to menu_revsubkey. (menu_revkey): New.
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".

14 years agoOddly commit missed this one.
David Shaw [Sat, 18 Dec 2004 22:39:31 +0000 (22:39 +0000)]
Oddly commit missed this one.

* configure.ac: Call the new GNUPG_CHECK_READLINE macro for readline
stuff.

14 years agoReadline fix to be robust against platforms where readline has its own
David Shaw [Sat, 18 Dec 2004 22:23:49 +0000 (22:23 +0000)]
Readline fix to be robust against platforms where readline has its own
dependencies.  We play guess-the-depedency for a while, and try termcap,
curses, and ncurses.

14 years ago* configure.ac: Add a --with-ldap=DIR so people can add to the search
David Shaw [Fri, 17 Dec 2004 23:07:59 +0000 (23:07 +0000)]
* configure.ac: Add a --with-ldap=DIR so people can add to the search
path.

14 years ago* passphrase.c (agent_get_passphrase): Define NREAD locally as
Werner Koch [Fri, 17 Dec 2004 18:51:32 +0000 (18:51 +0000)]
* passphrase.c (agent_get_passphrase): Define NREAD locally as
size_t or int.

* keylist.c (list_keyblock_print): Make field width an int.
* keyedit.c (show_key_with_all_names): Ditto.

14 years ago* configure.ac: Check for arpa/nameser.h.
David Shaw [Thu, 16 Dec 2004 18:45:48 +0000 (18:45 +0000)]
* configure.ac: Check for arpa/nameser.h.

14 years ago* configure.ac: Check for arpa/nameser.h.
David Shaw [Thu, 16 Dec 2004 18:36:42 +0000 (18:36 +0000)]
* configure.ac: Check for arpa/nameser.h.

* srv.h: Don't include arpa/nameser.h unless we have it.  Include
"types.h" for u16.

14 years agopost release updates
Werner Koch [Thu, 16 Dec 2004 10:53:25 +0000 (10:53 +0000)]
post release updates

14 years agoMinor fixes V1-4-0
Werner Koch [Thu, 16 Dec 2004 10:28:50 +0000 (10:28 +0000)]
Minor fixes

14 years agoAdd a note on how to send translations.
Werner Koch [Thu, 16 Dec 2004 10:13:02 +0000 (10:13 +0000)]
Add a note on how to send translations.

14 years agoAbout to release 1.4.0
Werner Koch [Thu, 16 Dec 2004 10:04:36 +0000 (10:04 +0000)]
About to release 1.4.0

14 years ago* gpg.sgml: Document --require-secmem/--no-require-secmem. Note that the
David Shaw [Thu, 16 Dec 2004 06:01:19 +0000 (06:01 +0000)]
* gpg.sgml: Document --require-secmem/--no-require-secmem.  Note that the
sign flags (l, t, nr) can be mixed.  Remove --nrsign-key.

14 years ago* g10.c (main): Add --require-secmem/--no-require-secmem to cause gpg to
David Shaw [Thu, 16 Dec 2004 05:16:09 +0000 (05:16 +0000)]
* g10.c (main): Add --require-secmem/--no-require-secmem to cause gpg to
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.

14 years ago* apdu.c (apdu_send_le, apdu_send_direct), keylist.c
David Shaw [Wed, 15 Dec 2004 05:16:53 +0000 (05:16 +0000)]
* apdu.c (apdu_send_le, apdu_send_direct), keylist.c
(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.

14 years ago* keyedit.c (keyedit_menu): Re-remove the N_() markers.
David Shaw [Tue, 14 Dec 2004 14:50:15 +0000 (14:50 +0000)]
* keyedit.c (keyedit_menu): Re-remove the N_() markers.

14 years ago* trustdb.c (uid_trust_string_fixed): Show uids as revoked if the key is
David Shaw [Tue, 14 Dec 2004 14:42:41 +0000 (14:42 +0000)]
* trustdb.c (uid_trust_string_fixed): Show uids as revoked if the key is
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.

14 years agopost release updates
Werner Koch [Tue, 14 Dec 2004 08:33:01 +0000 (08:33 +0000)]
post release updates

14 years agoautomake updates, removed one debug output V1-3-93
Werner Koch [Tue, 14 Dec 2004 08:03:56 +0000 (08:03 +0000)]
automake updates, removed one debug output

14 years agoPrepared for last 1.4 release candidate
Werner Koch [Tue, 14 Dec 2004 07:49:27 +0000 (07:49 +0000)]
Prepared for last 1.4 release candidate

14 years ago(read_passphrase_from_fd): Fixed memory leak.
Werner Koch [Mon, 13 Dec 2004 08:04:52 +0000 (08:04 +0000)]
(read_passphrase_from_fd): Fixed memory leak.
Noted by Andrei Darashenka.

14 years ago(keys): Removed my old 621CC013 key
Werner Koch [Sun, 12 Dec 2004 16:03:47 +0000 (16:03 +0000)]
(keys): Removed my old 621CC013 key
which expires at the end of this year.  Add g10 Code's source code
signing key 37D92FFB.

14 years ago* keyserver.c (parse_preferred_keyserver): Force preferred keyserver
David Shaw [Sun, 12 Dec 2004 05:10:22 +0000 (05:10 +0000)]
* keyserver.c (parse_preferred_keyserver): Force preferred keyserver
subpackets to have a URI scheme specified.

14 years ago* options.h, g10.c (main), textfilter.c (standard): Use --rfc2440 or
David Shaw [Sat, 11 Dec 2004 04:47:33 +0000 (04:47 +0000)]
* options.h, g10.c (main), textfilter.c (standard): Use --rfc2440 or
--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.

14 years ago* sv.po: Take the update done for 1.2.6.
Werner Koch [Fri, 10 Dec 2004 22:21:02 +0000 (22:21 +0000)]
* sv.po: Take the update done for 1.2.6.

* zh_CN.po, fr.po, cs.po, ja.po: Updated.

14 years ago* app-openpgp.c (send_fprtime_if_not_null): New.
Werner Koch [Fri, 10 Dec 2004 10:49:14 +0000 (10:49 +0000)]
* app-openpgp.c (send_fprtime_if_not_null): New.
(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.

14 years ago* options.h, g10.c (main), textfilter.c (len_without_trailing_ws): Removed
David Shaw [Fri, 10 Dec 2004 05:35:54 +0000 (05:35 +0000)]
* options.h, g10.c (main), textfilter.c (len_without_trailing_ws): Removed
(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.

14 years ago* passphrase.c (agent_get_passphrase): New args CUSTOM_PROMPT and
Werner Koch [Thu, 9 Dec 2004 16:57:30 +0000 (16:57 +0000)]
* passphrase.c (agent_get_passphrase): New args CUSTOM_PROMPT and
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.

14 years ago* keygen.c (ask_algo): Add a choose-your-own-capabilities option for DSA.
David Shaw [Thu, 9 Dec 2004 15:49:47 +0000 (15:49 +0000)]
* keygen.c (ask_algo): Add a choose-your-own-capabilities option for DSA.

14 years ago* highlights-1.4.txt: New.
David Shaw [Thu, 9 Dec 2004 13:17:48 +0000 (13:17 +0000)]
* highlights-1.4.txt: New.

* mksamplekeys, samplekeys.asc: Add the PGP global directory key.

14 years ago*** empty log message ***
Werner Koch [Tue, 7 Dec 2004 19:00:15 +0000 (19:00 +0000)]
*** empty log message ***

14 years ago* keygen.c (ask_keysize): Change strings to always use %u instead of
David Shaw [Tue, 7 Dec 2004 17:58:35 +0000 (17:58 +0000)]
* keygen.c (ask_keysize): Change strings to always use %u instead of
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.

14 years ago(fd_cache_strcmp): New. Use whenever we compare
Werner Koch [Mon, 6 Dec 2004 10:32:20 +0000 (10:32 +0000)]
(fd_cache_strcmp): New. Use whenever we compare
filenames for the fd_cache. This is needed because the backslash
is an alias for a slash under W32. Reported by Tobias Winkler.

14 years ago* http.c (send_request): Include the port if non-80 in the Host: header.
David Shaw [Fri, 3 Dec 2004 20:23:12 +0000 (20:23 +0000)]
* http.c (send_request): Include the port if non-80 in the Host: header.
Noted by Jason Harris.

14 years ago* Makefile.am: The harmless "ignored error" on gpgkeys_ldap install on top
David Shaw [Fri, 3 Dec 2004 19:12:38 +0000 (19:12 +0000)]
* Makefile.am: The harmless "ignored error" on gpgkeys_ldap install on top
of an existing install is bound to confuse people. Use ln -s -f to force
the overwrite.

14 years ago* md.c (string_to_digest_algo): Allow read/write SHA384 and SHA512.
David Shaw [Wed, 1 Dec 2004 04:01:16 +0000 (04:01 +0000)]
* md.c (string_to_digest_algo): Allow read/write SHA384 and SHA512.

14 years ago* getkey.c (parse_key_usage): New function to parse out key usage flags.
David Shaw [Mon, 29 Nov 2004 21:21:52 +0000 (21:21 +0000)]
* getkey.c (parse_key_usage): New function to parse out key usage flags.
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.

14 years ago* cipher.h: Add PUBKEY_USAGE_UNKNOWN.
David Shaw [Mon, 29 Nov 2004 21:14:18 +0000 (21:14 +0000)]
* cipher.h: Add PUBKEY_USAGE_UNKNOWN.

14 years ago* export.c (do_export_stream): Allow export-minimal to work with secret
David Shaw [Fri, 26 Nov 2004 16:48:05 +0000 (16:48 +0000)]
* export.c (do_export_stream): Allow export-minimal to work with secret
keys, even though a non-selfsig secret key signature is rare.

14 years ago* gpg.sgml: Document export-minimal.
David Shaw [Fri, 26 Nov 2004 16:46:53 +0000 (16:46 +0000)]
* gpg.sgml: Document export-minimal.

14 years ago* options.h, export.c (parse_export_options, do_export_stream), import.c
David Shaw [Fri, 26 Nov 2004 15:51:37 +0000 (15:51 +0000)]
* options.h, export.c (parse_export_options, do_export_stream), import.c
(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.

14 years ago* options.h, export.c (parse_export_options, do_export_stream): Add
David Shaw [Thu, 25 Nov 2004 03:58:42 +0000 (03:58 +0000)]
* options.h, export.c (parse_export_options, do_export_stream): Add
"export-minimal" option to disregard any sigs except selfsigs.

14 years ago* trustdb.c (uid_trust_string_fixed): Use a string that can be atoi-ed,
David Shaw [Thu, 25 Nov 2004 03:48:34 +0000 (03:48 +0000)]
* trustdb.c (uid_trust_string_fixed): Use a string that can be atoi-ed,
but also has a comment for the translator.

14 years ago* trustdb.h, trustdb.c (uid_trust_string_fixed): New. Return a fixed-size
David Shaw [Wed, 24 Nov 2004 05:25:03 +0000 (05:25 +0000)]
* trustdb.h, trustdb.c (uid_trust_string_fixed): New.  Return a fixed-size
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.

14 years ago(S_IRGRP) [HAVE_DOSISH_SYSTEM]: Define to 0.
Werner Koch [Thu, 18 Nov 2004 16:01:08 +0000 (16:01 +0000)]
(S_IRGRP) [HAVE_DOSISH_SYSTEM]: Define to 0.

14 years ago(open_info_file): New.
Werner Koch [Wed, 17 Nov 2004 16:04:21 +0000 (16:04 +0000)]
(open_info_file): New.
(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.

14 years ago* configure.ac: Autodetect wldap32 on Windoze.
David Shaw [Sat, 6 Nov 2004 13:18:13 +0000 (13:18 +0000)]
* configure.ac: Autodetect wldap32 on Windoze.

14 years ago* README, configure.ac: Add --enable-backsigs to enable the experimental
David Shaw [Fri, 5 Nov 2004 03:45:06 +0000 (03:45 +0000)]
* README, configure.ac: Add --enable-backsigs to enable the experimental
backsigs code.

14 years ago* plaintext.c (handle_plaintext): Don't try and create a zero-length
David Shaw [Thu, 4 Nov 2004 22:28:39 +0000 (22:28 +0000)]
* plaintext.c (handle_plaintext): Don't try and create a zero-length
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).

14 years ago* misc.c (print_digest_algo_note): The latest 2440bis drafts deprecates
David Shaw [Wed, 3 Nov 2004 20:35:28 +0000 (20:35 +0000)]
* misc.c (print_digest_algo_note): The latest 2440bis drafts deprecates
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.

14 years ago2004-11-03 Timo Schulz <twoaday@g10code.com>
Timo Schulz [Wed, 3 Nov 2004 20:03:46 +0000 (20:03 +0000)]
2004-11-03  Timo Schulz  <twoaday@g10code.com>

        * 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.

14 years ago* strgutil.c (load_libiconv): Use log_info to avoid failures when
Werner Koch [Wed, 3 Nov 2004 16:40:29 +0000 (16:40 +0000)]
* strgutil.c (load_libiconv): Use log_info to avoid failures when
iconv.dll is not installed.

14 years ago(get_string): Removed debugging hack.
Werner Koch [Sat, 30 Oct 2004 22:49:09 +0000 (22:49 +0000)]
(get_string): Removed debugging hack.

14 years ago* skclist.c (build_sk_list): Don't need to warn about PGP-generated
David Shaw [Thu, 28 Oct 2004 22:09:09 +0000 (22:09 +0000)]
* skclist.c (build_sk_list): Don't need to warn about PGP-generated
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.

14 years ago* DETAILS: Document SIG_SUBPACKET status tag.
David Shaw [Thu, 28 Oct 2004 22:08:15 +0000 (22:08 +0000)]
* DETAILS: Document SIG_SUBPACKET status tag.

14 years ago* gpgkeys_finger.c [_WIN32] (connect_server): Fix typo.
David Shaw [Thu, 28 Oct 2004 21:53:51 +0000 (21:53 +0000)]
* gpgkeys_finger.c [_WIN32] (connect_server): Fix typo.

14 years agoInlcude LIBICONV
Werner Koch [Thu, 28 Oct 2004 18:57:50 +0000 (18:57 +0000)]
Inlcude LIBICONV