gnupg.git
17 years ago* keybox-defs.h: New BLOBTYPTE_EMPTY.
Werner Koch [Mon, 22 Jul 2002 10:21:04 +0000 (10:21 +0000)]
* keybox-defs.h: New BLOBTYPTE_EMPTY.
* keybox-dump.c (_keybox_dump_blob): Handle new type.
* keybox-file.c (_keybox_read_blob): Skip over empty blobs.  Store
the file offset.
* keybox-blob.c (_keybox_new_blob): Add new arg OFF.
(_keybox_get_blob_fileoffset): New.
* keybox-update.c (keybox_delete): Implemented.

17 years ago* fseeko.c, ftello.c: New.
Werner Koch [Mon, 22 Jul 2002 10:20:39 +0000 (10:20 +0000)]
* fseeko.c, ftello.c: New.

* configure.ac: Check for ftello and provide a replacement.

17 years ago* keyedit.c (keyedit_menu, menu_addrevoker): Allow specifying "sensitive"
David Shaw [Fri, 19 Jul 2002 05:08:54 +0000 (05:08 +0000)]
* keyedit.c (keyedit_menu, menu_addrevoker): Allow specifying "sensitive"
as an argument to an addrevoker command.  This sets the 0x40 sensitive
revoker flag.

* revoke.c (gen_desig_revoke): When generating a designated revocation,
include the direct key sig that contains the designated revoker subpacket.
This allows sensitive designated revocation subpackets to be exported.
Also indicate which revokers are sensitive in the first place.

17 years ago* keyedit.c (show_key_with_all_names_colon): The 0x40 class bit in a
David Shaw [Wed, 17 Jul 2002 19:48:19 +0000 (19:48 +0000)]
* keyedit.c (show_key_with_all_names_colon): The 0x40 class bit in a
designated revoker means "sensitive", not "local".  It's exportable under
the right circumstances.

* main.h, options.h, export.c (do_export_stream), g10.c (main), hkp.c
(hkp_export), keyserver.c (keyserver_spawn: Add a flag to skip attribute
packets and their signatures while exporting.  This is to accomodate
keyservers (pksd again) that choke on attributes. Use keyserver-option
"include-attributes" to control it.  This defaults to ON (i.e. don't
skip).

17 years ago* gpgkeys_ldap.c (send_key, get_key, main): Consult the server version
David Shaw [Mon, 15 Jul 2002 23:13:48 +0000 (23:13 +0000)]
* gpgkeys_ldap.c (send_key, get_key, main): Consult the server version
string to determine whether to use pgpKey or pgpKeyV2.

17 years ago* options.h, keyserver.c (parse_keyserver_uri, keyserver_spawn,
David Shaw [Tue, 9 Jul 2002 19:40:18 +0000 (19:40 +0000)]
* options.h, keyserver.c (parse_keyserver_uri, keyserver_spawn,
keyserver_work), hkp.c (hkp_ask_import, hkp_export, hkp_search): Use a
much more strict reading of RFC-2396 for the keyserver URIs. Specifically,
don't try and be smart about checking the value of ":port" so long as it
is all digits, and properly handle opaque data (those scheme specific
parts that do not start with "//").

17 years ago* gpgkeys_mailto.in: Use new OPAQUE tag for non net-path URIs. Fail more
David Shaw [Tue, 9 Jul 2002 19:19:25 +0000 (19:19 +0000)]
* gpgkeys_mailto.in: Use new OPAQUE tag for non net-path URIs. Fail more
elegantly if there is no email address to send to.  Show the GnuPG version
in the message body.

----------------------------------------------------------------------
gpgkeys_mailto.in CVS:
----------------------------------------------------------------------

17 years ago* configure.ac: Add --with-mailprog to override the use of sendmail with
David Shaw [Tue, 9 Jul 2002 02:55:00 +0000 (02:55 +0000)]
* configure.ac: Add --with-mailprog to override the use of sendmail with
another MTA.  We can use anything that follows the "$MAILPROG -t"
convention.

17 years ago* argparse.c (initialize): We better exit after a read error so
Werner Koch [Fri, 5 Jul 2002 06:25:14 +0000 (06:25 +0000)]
* argparse.c (initialize): We better exit after a read error so
that we don't run into an endless loop when reading a directory.
Noted by Andrew Suffield.

17 years ago* photoid.c (get_default_photo_command, show_photos): Honor
David Shaw [Thu, 4 Jul 2002 16:06:38 +0000 (16:06 +0000)]
* photoid.c (get_default_photo_command, show_photos): Honor
FIXED_PHOTO_VIEWER and DISABLE_PHOTO_VIEWER.

* mainproc.c (check_sig_and_print): Use --show-photos to show photos when
verifying a sig made by a key with a photo.

* keyserver.c (parse_keyserver_uri): Properly parse a URI with no :port
section and an empty file path, but with a terminating '/'.
(keyserver_work): Honor DISABLE_KEYSERVER_HELPERS.

* hkp.c (hkp_ask_import): Display keyserver URI as a URI, but only if
verbose.

* exec.c, g10.c: USE_EXEC_PATH -> FIXED_EXEC_PATH

17 years ago* configure.ac: --enable-exec-path should be a 'with'. Fix 'no' cases of
David Shaw [Thu, 4 Jul 2002 14:37:40 +0000 (14:37 +0000)]
* configure.ac: --enable-exec-path should be a 'with'.  Fix 'no' cases of
--with-exec-path and --with-photo-viewer.

17 years ago* gpgkeys_ldap.c (get_key), gpgkeys_hkp.c (get_key): Display keyserver URI
David Shaw [Thu, 4 Jul 2002 14:14:08 +0000 (14:14 +0000)]
* gpgkeys_ldap.c (get_key), gpgkeys_hkp.c (get_key): Display keyserver URI
as a URI, but only if verbose.

17 years agoFix previous ChangeLog commit
David Shaw [Thu, 4 Jul 2002 13:37:52 +0000 (13:37 +0000)]
Fix previous ChangeLog commit

17 years ago* README: Document --disable-exec, --disable-photo-viewers,
David Shaw [Thu, 4 Jul 2002 13:35:42 +0000 (13:35 +0000)]
* README: Document --disable-exec, --disable-photo-viewers,
--disable-keyserver-helpers, --enable-exec-path, and --with-photo-viewer.

* configure.ac: Add --with-photo-viewer to lock the viewer at compile time
and --disable-keyserver-helpers and --disable-photo-viewers to allow
disabling one without disabling the other.

17 years ago* server.c (gpgsm_status2): Insert a blank between all optional
Werner Koch [Wed, 3 Jul 2002 16:03:22 +0000 (16:03 +0000)]
* server.c (gpgsm_status2): Insert a blank between all optional
arguments when using assuan.
* server.c (cmd_recipient): No more need for extra blank in constants.
* import.c (print_imported_status): Ditto.
* gpgsm.c (main): Ditto.

17 years ago* configure.ac: Allow setting USE_EXEC_PATH to lock the exec-path to a
David Shaw [Wed, 3 Jul 2002 04:05:06 +0000 (04:05 +0000)]
* configure.ac: Allow setting USE_EXEC_PATH to lock the exec-path to a
fixed value.

17 years ago* exec.h, exec.c (set_exec_path, exec_write), g10.c (main): If
David Shaw [Wed, 3 Jul 2002 04:01:21 +0000 (04:01 +0000)]
* exec.h, exec.c (set_exec_path, exec_write), g10.c (main): If
USE_EXEC_PATH is defined at compile time, use it to lock the exec-path and
not allow the user to change it.

17 years ago* options.h, g10.c (main), keyserver.c (keyserver_refresh): Maintain and
David Shaw [Tue, 2 Jul 2002 22:13:00 +0000 (22:13 +0000)]
* options.h, g10.c (main), keyserver.c (keyserver_refresh): Maintain and
use the original keyserver URI for cosmetics rather than trying to
recreate it when needed.

* mainproc.c (check_sig_and_print): Properly disregard expired uids.
Make sure that the first uid listed is a real uid and not an attribute
(attributes should only be listed in the "aka" section).  When there are
no valid textual userids, try for an invalid textual userid before using
any attribute uid.

17 years ago* verify.c (gpgsm_verify): Extend the STATUS_BADSIG line with
Werner Koch [Tue, 2 Jul 2002 19:38:14 +0000 (19:38 +0000)]
* verify.c (gpgsm_verify): Extend the STATUS_BADSIG line with
the fingerprint.

17 years ago* certpath.c (check_cert_policy): Don't use log_error to print a
Werner Koch [Tue, 2 Jul 2002 17:40:26 +0000 (17:40 +0000)]
* certpath.c (check_cert_policy): Don't use log_error to print a
warning.

17 years ago* keydb.c (keydb_store_cert): Add optional ar EXISTED and changed
Werner Koch [Tue, 2 Jul 2002 10:40:12 +0000 (10:40 +0000)]
* keydb.c (keydb_store_cert): Add optional ar EXISTED and changed
all callers.
* call-agent.c (learn_cb): Print info message only for real imports.

* import.c (gpgsm_import): Moved duplicated code to ...
(check_and_store): new function.  Added magic to import the entire
chain. Print status only for real imports and moved printing code
to ..
(print_imported_status): New.

17 years ago* call-dirmngr.c (gpgsm_dirmngr_isvalid): print status of dirmngr
Werner Koch [Tue, 2 Jul 2002 09:26:05 +0000 (09:26 +0000)]
* call-dirmngr.c (gpgsm_dirmngr_isvalid): print status of dirmngr
call in very verbose mode.

* gpgsm.c (main): Use the same error codes for STATUS_INV_RECP as
with the server mode.

17 years agoRemoved old keyserver (daemon) code.
Timo Schulz [Tue, 2 Jul 2002 08:52:34 +0000 (08:52 +0000)]
Removed old keyserver (daemon) code.

17 years ago* gpg.sgml: Clarify "group".
David Shaw [Mon, 1 Jul 2002 22:03:49 +0000 (22:03 +0000)]
* gpg.sgml: Clarify "group".

17 years ago* argparse.c (optfile_parse): Fix variable typo - 'p2' should be 'p' :)
David Shaw [Mon, 1 Jul 2002 21:42:41 +0000 (21:42 +0000)]
* argparse.c (optfile_parse): Fix variable typo - 'p2' should be 'p' :)

17 years ago* gpgkeys_hkp.c (parse_hkp_index): Error if the keyserver returns an
David Shaw [Mon, 1 Jul 2002 17:46:56 +0000 (17:46 +0000)]
* gpgkeys_hkp.c (parse_hkp_index): Error if the keyserver returns an
unparseable HKP response.

* gpgkeys_hkp.c (main): Warn on honor-http-proxy, broken-http-proxy, and
include-subkeys (not supported yet).

* gpgkeys_ldap.c (main), gpgkeys_hkp.c (http_connect, main): Fix some
shadowing warnings.

17 years ago* options.skel: Fix a few typos, clarify "group", and remove sample photo
David Shaw [Mon, 1 Jul 2002 16:47:22 +0000 (16:47 +0000)]
* options.skel: Fix a few typos, clarify "group", and remove sample photo
viewers for Win32 since they are the defaults now.

* parse-packet.c (make_attribute_uidname), keylist.c (dump_attribs): Fix
two typecast warnings.

17 years ago* packet.h, build-packet.c (build_attribute_subpkt), exec.c (expand_args),
David Shaw [Mon, 1 Jul 2002 16:40:52 +0000 (16:40 +0000)]
* packet.h, build-packet.c (build_attribute_subpkt), exec.c (expand_args),
mkdtemp.c (mkdtemp), photoid.c (parse_image_header): Fix some signedness
compiler warnings.

17 years agotypo fix. NEWPG-0-3-9
Werner Koch [Mon, 1 Jul 2002 13:21:39 +0000 (13:21 +0000)]
typo fix.

17 years ago* configure.ac: Set version number to 1.1.91.
Werner Koch [Mon, 1 Jul 2002 10:51:26 +0000 (10:51 +0000)]
* configure.ac: Set version number to 1.1.91.

17 years ago* INSTALL: Replaced by generic install file. V1-1-90
Werner Koch [Mon, 1 Jul 2002 09:44:56 +0000 (09:44 +0000)]
* INSTALL: Replaced by generic install file.
* README: Marked as development version and moved most stuff of
the old INSTALL file to here.

17 years ago* encode.c (encode_symmetric): Do not use the new encryption code.
Werner Koch [Mon, 1 Jul 2002 09:44:42 +0000 (09:44 +0000)]
* encode.c (encode_symmetric): Do not use the new encryption code.

17 years agotypo fix
Werner Koch [Mon, 1 Jul 2002 09:44:27 +0000 (09:44 +0000)]
typo fix

17 years ago* mk-gpg-texi: New.
Werner Koch [Mon, 1 Jul 2002 08:52:54 +0000 (08:52 +0000)]
* mk-gpg-texi: New.

17 years agoBetter keep it in the CVS
Werner Koch [Mon, 1 Jul 2002 08:52:37 +0000 (08:52 +0000)]
Better keep it in the CVS

17 years ago* Makefile.am: Due to problems with VPATH builds we don't try to
Werner Koch [Mon, 1 Jul 2002 08:51:43 +0000 (08:51 +0000)]
* Makefile.am: Due to problems with VPATH builds we don't try to
build the texi vesions of the manual pages anymore automatically.

17 years ago* README.W32: Adjusted some descriptions. Fixed the regsitry
Werner Koch [Sun, 30 Jun 2002 10:02:57 +0000 (10:02 +0000)]
* README.W32: Adjusted some descriptions.  Fixed the regsitry
entry descriptions.

17 years ago* configure.ac: Link W32 version against libwsock32.
Werner Koch [Sun, 30 Jun 2002 07:40:57 +0000 (07:40 +0000)]
* configure.ac: Link W32 version against libwsock32.

17 years ago* photoid.c: Use __MINGW32__ to include windows because
Werner Koch [Sun, 30 Jun 2002 07:40:40 +0000 (07:40 +0000)]
* photoid.c: Use __MINGW32__ to include windows because
HAVE_DOSISH_SYSTEM is also set for OS/2 and plain DOS.  Provide
constant missing in older mingw installations.

17 years ago* mk-w32-dist (bindir): Fixes vor VPATH builds in a subdir,
Werner Koch [Sun, 30 Jun 2002 07:39:53 +0000 (07:39 +0000)]
* mk-w32-dist (bindir): Fixes vor VPATH builds in a subdir,
include gpgv.

17 years agomsgmerge'd.
Werner Koch [Sun, 30 Jun 2002 07:38:33 +0000 (07:38 +0000)]
msgmerge'd.

17 years agoautomake updated.
Werner Koch [Sat, 29 Jun 2002 20:48:11 +0000 (20:48 +0000)]
automake updated.

17 years ago* configure.ac (development_version): New.
Werner Koch [Sat, 29 Jun 2002 20:47:08 +0000 (20:47 +0000)]
* configure.ac (development_version): New.
(HAVE_DEV_RANDOM_IOCTL): Removed test for it; it was never used.

* BUGS, AUTHORS: Add a note on how to send security related bug
reports.

17 years ago* rndlinux.c: Removed HAVE_LINUX_RANDOM_H conditional because it
Werner Koch [Sat, 29 Jun 2002 20:46:43 +0000 (20:46 +0000)]
* rndlinux.c: Removed HAVE_LINUX_RANDOM_H conditional because it
was never used and the configure test did set the wrong macro
anyway.

17 years ago* argparse.c (optfile_parse): Renamed an auto I to P2 to avoid
Werner Koch [Sat, 29 Jun 2002 20:46:28 +0000 (20:46 +0000)]
* argparse.c (optfile_parse): Renamed an auto I to P2 to avoid
shadowing warning.

17 years agoUpdate head to match stable 1.0
David Shaw [Sat, 29 Jun 2002 14:15:02 +0000 (14:15 +0000)]
Update head to match stable 1.0

17 years ago* gpgsm.c: New option --auto-issuer-key-retrieve.
Werner Koch [Sat, 29 Jun 2002 14:01:53 +0000 (14:01 +0000)]
* gpgsm.c: New option --auto-issuer-key-retrieve.
* certpath.c (find_up): Try to retrieve an issuer key from an
external source and from the ephemeral key DB.
(find_up_store_certs_cb): New.

* keydb.c (keydb_set_ephemeral): Does now return the old
state.  Call the backend only when required.

* call-dirmngr.c (start_dirmngr): Use GNUPG_DEFAULT_DIRMNGR.
(lookup_status_cb): Issue status only when CTRL is not NULL.
(gpgsm_dirmngr_lookup): Document that CTRL is optional.

* call-agent.c (start_agent): Use GNUPG_DEFAULT_AGENT.

17 years ago* query.c (start_pinentry): Use GNUPG_DERAULT_PINENTRY.
Werner Koch [Sat, 29 Jun 2002 14:01:35 +0000 (14:01 +0000)]
* query.c (start_pinentry): Use GNUPG_DERAULT_PINENTRY.
* call-scd.c (start_scd): Use GNUPG_DEFAULT_SCDAEMON.

17 years agoUpdate head to match stable 1.0
David Shaw [Sat, 29 Jun 2002 13:46:34 +0000 (13:46 +0000)]
Update head to match stable 1.0

17 years agoUpdate head to match stable 1.0
David Shaw [Sat, 29 Jun 2002 13:31:13 +0000 (13:31 +0000)]
Update head to match stable 1.0

17 years agoRemoved files for CVS reorganization
David Shaw [Sat, 29 Jun 2002 12:56:01 +0000 (12:56 +0000)]
Removed files for CVS reorganization

17 years ago* maperror.c (map_to_assuan_status): Map more errorcodes to Bad
Werner Koch [Fri, 28 Jun 2002 16:16:57 +0000 (16:16 +0000)]
* maperror.c (map_to_assuan_status): Map more errorcodes to Bad
Certificate.

17 years ago* server.c (cmd_recipient): Add more reason codes.
Werner Koch [Fri, 28 Jun 2002 14:04:46 +0000 (14:04 +0000)]
* server.c (cmd_recipient): Add more reason codes.

17 years ago* protect-tool.c (export_p12_file): New.
Werner Koch [Fri, 28 Jun 2002 09:30:35 +0000 (09:30 +0000)]
* protect-tool.c (export_p12_file): New.
(main): New command --p12-export.
* minip12.c (create_final,p12_build,compute_tag_length): New.
(store_tag_length): New.

17 years ago* gpgsm.c (main): Use GNUPG_DEFAULT_HOMEDIR constant.
Werner Koch [Thu, 27 Jun 2002 07:29:57 +0000 (07:29 +0000)]
* gpgsm.c (main): Use GNUPG_DEFAULT_HOMEDIR constant.

* call-agent.c (start_agent): Create and pass the list of FD to
keep in the child to assuan.
* call-dirmngr.c (start_dirmngr): Ditto.

* scdaemon.c (main): Use GNUPG_DEFAULT_HOMEDIR constant.

* assuan-pipe-connect.c (assuan_pipe_connect): No special handling
for the log_fd and stderr.  Connect stderr to /dev/null if it
should not be retained.

17 years ago* Makefile.am (pkglib_PROGRAMS): Put protect-tool there.
Werner Koch [Thu, 27 Jun 2002 07:29:29 +0000 (07:29 +0000)]
* Makefile.am (pkglib_PROGRAMS): Put protect-tool there.

* findkey.c (agent_write_private_key,agent_key_from_file)
(agent_key_available): Use GNUPG_PRIVATE_KEYS_DIR constant.
* gpg-agent.c (main): Use GNUPG_DEFAULT_HOMEDIR constant.

* protect-tool.c (store_private_key): New.
(import_p12_file): Store the new file if requested.
(main): New options --force and --store.

* gpg-agent.c (main): Set a global flag when runing detached.
* query.c (start_pinentry): Pass the list of FD to keep in the
child when not running detached.
* call-scd.c (start_scd): Ditto.

17 years ago* import.c (gpgsm_import): Print an STATUS_IMPORTED.
Werner Koch [Wed, 26 Jun 2002 12:51:34 +0000 (12:51 +0000)]
* import.c (gpgsm_import): Print an STATUS_IMPORTED.

* gpgsm.c: --debug-no-path-validation does not take an argument.

17 years ago* maperror.c (map_to_assuan_status): Map EOF to No_Data_Available.
Werner Koch [Wed, 26 Jun 2002 12:51:24 +0000 (12:51 +0000)]
* maperror.c (map_to_assuan_status): Map EOF to No_Data_Available.

17 years ago* assuan-buffer.c (assuan_write_line): Make sure we never
Werner Koch [Wed, 26 Jun 2002 12:51:15 +0000 (12:51 +0000)]
* assuan-buffer.c (assuan_write_line): Make sure we never
accidently print an extra LF.

17 years ago* protect-tool.c (rsa_key_check): New. NEWPG-0-3-8
Werner Koch [Tue, 25 Jun 2002 17:50:59 +0000 (17:50 +0000)]
* protect-tool.c (rsa_key_check): New.
(import_p12_file): New.
(main): New command --p12-import.
* minip12.c, minip12.h: New.

17 years ago* certdump.c (print_dn_part): Always print a leading slash,
Werner Koch [Tue, 25 Jun 2002 09:34:10 +0000 (09:34 +0000)]
* certdump.c (print_dn_part): Always print a leading slash,
removed NEED_DELIM arg and changed caller.

* export.c (gpgsm_export): Print LFs to FP and not stdout.
(print_short_info): Ditto.  Make use of gpgsm_print_name.

* server.c (cmd_export): Use output-fd instead of data lines; this
was actually the specified way.

17 years ago* gpgsm.c, gpgsm.h: New option --debug-no-path-validation.
Werner Koch [Mon, 24 Jun 2002 14:34:52 +0000 (14:34 +0000)]
* gpgsm.c, gpgsm.h: New option --debug-no-path-validation.
* certpath.c (gpgsm_validate_path): Use it here instead of the
debug flag hack.

* certpath.c (check_cert_policy): Return No_Policy_Match if the
policy file could not be opened.

17 years ago* certlist.c (gpgsm_add_to_certlist): Fixed locating of a
Werner Koch [Thu, 20 Jun 2002 10:43:02 +0000 (10:43 +0000)]
* certlist.c (gpgsm_add_to_certlist): Fixed locating of a
certificate with the required key usage.

* gpgsm.c (main): Fixed a segv when using --outfile without an
argument.

* keylist.c (print_capabilities): Also check for non-repudiation
and data encipherment.
* certlist.c (cert_usage_p): Test for signing and encryption was
swapped.  Add a case for certification usage, handle
non-repudiation and data encipherment.
(gpgsm_cert_use_cert_p): New.
(gpgsm_add_to_certlist): Added a CTRL argument and changed all
callers to pass it.
* certpath.c (gpgsm_validate_path): Use it here to print a status
message. Added a CTRL argument and changed all callers to pass it.
* decrypt.c (gpgsm_decrypt): Print a status message for wrong key
usage.
* verify.c (gpgsm_verify): Ditto.
* keydb.c (classify_user_id): Allow a colon delimited fingerprint.

17 years ago* call-agent.c (learn_cb): Use log_info instead of log_error on
Werner Koch [Wed, 19 Jun 2002 08:30:10 +0000 (08:30 +0000)]
* call-agent.c (learn_cb): Use log_info instead of log_error on
successful import.

* keydb.c (keydb_set_ephemeral): New.
(keydb_store_cert): New are ephemeral, changed all callers.
* keylist.c (list_external_cb): Store cert as ephemeral.
* export.c (gpgsm_export): Kludge to export epehmeral certificates.

* gpgsm.c (main): New command --list-external-keys.

17 years ago* keybox-init.c (keybox_set_ephemeral): New.
Werner Koch [Wed, 19 Jun 2002 08:29:41 +0000 (08:29 +0000)]
* keybox-init.c (keybox_set_ephemeral): New.
* keybox-blob.c (create_blob_header): Store epheermal flag.
(_keybox_create_x509_blob): Pass epheermal flag on.
* keybox-update.c (keybox_insert_cert): Ditto.
* keybox-search.c (blob_get_blob_flags): New.
(keybox_search): Ignore ephemeral blobs when not in ephemeral mode.

* keybox-dump.c (_keybox_dump_blob): Print blob flags as strings.

17 years ago* certreqgen.c (read_parameters): Improved error handling.
Werner Koch [Mon, 17 Jun 2002 10:11:50 +0000 (10:11 +0000)]
* certreqgen.c (read_parameters): Improved error handling.
(gpgsm_genkey): Print error message.

17 years ago* agent.h: Add a callback function to the pin_entry_info structure.
Werner Koch [Mon, 17 Jun 2002 10:11:34 +0000 (10:11 +0000)]
* agent.h: Add a callback function to the pin_entry_info structure.
* query.c (agent_askpin): Use the callback to check for a correct
PIN.  Removed the start_err_text argument becuase it is not
anymore needed; changed callers.
* findkey.c (unprotect): Replace our own check loop by a callback.
(try_unprotect_cb): New.
* genkey.c (reenter_compare_cb): New.
(agent_genkey): Use this callback here.  Fixed setting of the pi2
variable and a segv in case of an empty PIN.

* divert-scd.c (getpin_cb): Removed some unused stuff and
explained what we still have to change.

17 years ago* card-dinsig.c: Documented some stuff from the DIN norm.
Werner Koch [Sat, 15 Jun 2002 16:46:27 +0000 (16:46 +0000)]
* card-dinsig.c: Documented some stuff from the DIN norm.

17 years agoFixed last fix.
Werner Koch [Thu, 13 Jun 2002 12:04:22 +0000 (12:04 +0000)]
Fixed last fix.

17 years ago* gpgsm.c (main): New option --log-file.
Werner Koch [Thu, 13 Jun 2002 11:45:36 +0000 (11:45 +0000)]
* gpgsm.c (main): New option --log-file.

17 years ago* call-dirmngr.c (lookup_status_cb): New.
Werner Koch [Wed, 12 Jun 2002 14:35:41 +0000 (14:35 +0000)]
* call-dirmngr.c (lookup_status_cb): New.
(gpgsm_dirmngr_lookup): Use the status CB.  Add new arg CTRL and
changed caller to pass it.

17 years ago* gpgsm.c (open_fwrite): New.
Werner Koch [Wed, 12 Jun 2002 10:33:40 +0000 (10:33 +0000)]
* gpgsm.c (open_fwrite): New.
(main): Allow --output for --verify.

17 years agoVarious changes.
Werner Koch [Wed, 12 Jun 2002 09:56:05 +0000 (09:56 +0000)]
Various changes.

17 years ago* protect-tool.c: Add command --show-keygrip
Werner Koch [Wed, 12 Jun 2002 09:55:41 +0000 (09:55 +0000)]
* protect-tool.c: Add command --show-keygrip
(show_keygrip): New.

17 years ago* sign.c (hash_and_copy_data): New.
Werner Koch [Wed, 12 Jun 2002 09:54:57 +0000 (09:54 +0000)]
* sign.c (hash_and_copy_data): New.
(gpgsm_sign): Implemented normal (non-detached) signatures.
* gpgsm.c (main): Ditto.

* certpath.c (gpgsm_validate_path): Special error handling for
no policy match.

* configure.ac (NEED_LIBKSBA_VERSION): We need 0.4.3 now.

17 years ago* gpgsm.c (main): New command --list-sigs NEWPG-0-3-7
Werner Koch [Tue, 4 Jun 2002 09:41:59 +0000 (09:41 +0000)]
* gpgsm.c (main): New command --list-sigs
* keylist.c (list_cert_std): New.  Use it whenever colon mode is
not used.
(list_cert_chain): New.

17 years ago* gpgsm.c (main): Don't print the "go ahead" message for an
Werner Koch [Fri, 31 May 2002 15:20:22 +0000 (15:20 +0000)]
* gpgsm.c (main): Don't print the "go ahead" message for an
invalid command.

17 years ago* import.c (gpgsm_import): Add error messages.
Werner Koch [Thu, 23 May 2002 13:57:19 +0000 (13:57 +0000)]
* import.c (gpgsm_import): Add error messages.

17 years ago* no-pth.c, Makefile.am: Removed.
Werner Koch [Thu, 23 May 2002 09:07:45 +0000 (09:07 +0000)]
* no-pth.c, Makefile.am: Removed.

* call-scd.c: Seirialized all scdaeom access when using Pth.

* cache.c: Made the cache Pth-thread-safe.
(agent_unlock_cache_entry): New.
* findkey.c (unprotect): Unlock the returned cache value.
* command.c (cmd_get_passphrase): Ditto.

* gpg-agent.c (main): Register pth_read/write with Assuan.

17 years ago* assuan-util.c (assuan_set_io_func): New.
Werner Koch [Thu, 23 May 2002 09:07:12 +0000 (09:07 +0000)]
* assuan-util.c (assuan_set_io_func): New.
* assuan-buffer.c (writen, readline): Use the new functions
instead of pth.
* assuan-socket-server.c (accept_connection): Don't use the
pth_accept - using the assuan included accept code would be a bad
idea within Pth so we don't need a replacement function.

17 years ago* mkdtemp.c: Replaced byte by unsigned char because it is no longer
Werner Koch [Wed, 22 May 2002 06:23:22 +0000 (06:23 +0000)]
* mkdtemp.c: Replaced byte by unsigned char because it is no longer
defined in gcrypt.h.

17 years ago* keylist.c (list_internal_keys): Renamed from gpgsm_list_keys.
Werner Koch [Tue, 21 May 2002 19:20:40 +0000 (19:20 +0000)]
* keylist.c (list_internal_keys): Renamed from gpgsm_list_keys.
(list_external_keys): New.
(gpgsm_list_keys): Dispatcher for above.
* call-dirmngr.c (lookup_cb,pattern_from_strlist)
(gpgsm_dirmngr_lookup): New.
* server.c (option_handler): Handle new option --list-mode.
(do_listkeys): Handle options and actually use the mode argument.
(get_status_string): New code TRUNCATED.

17 years ago* import.c (gpgsm_import): Try to identify the type of input and
Werner Koch [Tue, 21 May 2002 08:29:17 +0000 (08:29 +0000)]
* import.c (gpgsm_import): Try to identify the type of input and
handle certs-only messages.

* maperror.c (map_gcry_err): Add libgcrypt's new S-expression errors.
(map_ksba_err): Add a few mappings.

* configure.ac: We now require libgcrypt 1.1.7 and libksba 0.4.2.

17 years agosm/
Werner Koch [Tue, 14 May 2002 16:51:00 +0000 (16:51 +0000)]
sm/
* gpgsm.c: New option --faked-system-time
* sign.c (gpgsm_sign): And use it here.
* certpath.c (gpgsm_validate_path): Ditto.
common/
* gettime.c: New.
agent/
* cache.c (housekeeping, agent_put_cache): Use our time() wrapper.
/
* doc/: New
* configure.ac, Makefile.am:  Added doc/

17 years ago* errors.h: Added STARUS_EXPSIG and STATUS_EXPKEYSIG. NEWPG-0-3-6
Werner Koch [Fri, 3 May 2002 20:19:35 +0000 (20:19 +0000)]
* errors.h: Added STARUS_EXPSIG and STATUS_EXPKEYSIG.

17 years ago* certpath.c (gpgsm_validate_path): Added EXPTIME arg and changed
Werner Koch [Fri, 3 May 2002 20:18:54 +0000 (20:18 +0000)]
* certpath.c (gpgsm_validate_path): Added EXPTIME arg and changed
all callers.
* verify.c (gpgsm_verify): Tweaked usage of log_debug and
log_error.  Return EXPSIG status and add expiretime to VALIDSIG.

17 years agoDebug message cleanups.
Werner Koch [Sat, 27 Apr 2002 13:50:16 +0000 (13:50 +0000)]
Debug message cleanups.

17 years agoDebug message cleanups.
Werner Koch [Sat, 27 Apr 2002 13:49:40 +0000 (13:49 +0000)]
Debug message cleanups.
Fixed passphrase caching.

17 years ago* call-agent.c (start_agent): Make copies of old locales and check
Werner Koch [Thu, 25 Apr 2002 08:31:48 +0000 (08:31 +0000)]
* call-agent.c (start_agent): Make copies of old locales and check
for setlocale.

* configure.ac: Check for setlocale.

17 years ago2002-04-25 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Wed, 24 Apr 2002 23:18:53 +0000 (23:18 +0000)]
2002-04-25  Marcus Brinkmann  <marcus@g10code.de>

* agent.h (agent_get_confirmation): Replace paramter prompt with
two parameters ok and cancel.
* query.c (agent_get_confirmation): Likewise.  Implement this.
* trustlist.c (agent_marktrusted): Fix invocation of
agent_get_confirmation.
* divert-scd.c (ask_for_card): Likewise.

17 years ago2002-04-25 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Wed, 24 Apr 2002 22:23:06 +0000 (22:23 +0000)]
2002-04-25  Marcus Brinkmann  <marcus@g10code.de>

* call-agent.c (start_agent): Fix error handling logic so the
locale is always correctly reset.

17 years ago2002-04-25 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Wed, 24 Apr 2002 22:08:35 +0000 (22:08 +0000)]
2002-04-25  Marcus Brinkmann  <marcus@g10code.de>

* server.c (option_handler): Accept display, ttyname, ttytype,
lc_ctype and lc_messages options.
* gpgsm.c (main): Allocate memory for these options.
* gpgsm.h (struct opt): Make corresponding members non-const.

17 years ago2002-04-24 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Wed, 24 Apr 2002 21:52:47 +0000 (21:52 +0000)]
2002-04-24  Marcus Brinkmann  <marcus@g10code.de>

* configure.ac: Check for locale.h.

agent/
2002-04-24  Marcus Brinkmann  <marcus@g10code.de>

* agent.h (struct opt): Add members display, ttyname, ttytype,
lc_ctype, and lc_messages.
* gpg-agent.c (enum cmd_and_opt_values): Add oDisplay, oTTYname,
oTTYtype, oLCctype, and LCmessages.
(main): Handle these options.
* command.c (option_handler): New function.
(register_commands): Register option handler.
* query.c (start_pinentry): Pass the various display and tty
options to the pinentry.

sm/
2002-04-24  Marcus Brinkmann  <marcus@g10code.de>

* gpgsm.h (struct opt): New members display, ttyname, ttytype,
lc_ctype, lc_messages.
* gpgsm.c (enum cmd_and_opt_values): New members oDisplay,
oTTYname, oTTYtype, oLCctype, oLCmessages.
(opts): New entries for these options.
(main): Handle these new options.
* call-agent.c (start_agent): Set the various display and tty
parameter after resetting.

17 years ago* certreqgen.c (gpgsm_genkey): Write status output on success.
Werner Koch [Thu, 18 Apr 2002 13:06:18 +0000 (13:06 +0000)]
* certreqgen.c (gpgsm_genkey): Write status output on success.

17 years ago released 0.3.5 NEWPG-0-3-5
Werner Koch [Mon, 15 Apr 2002 17:15:21 +0000 (17:15 +0000)]
 released 0.3.5

17 years ago* gpgsm.c (main): Check ksba version.
Werner Koch [Mon, 15 Apr 2002 16:57:15 +0000 (16:57 +0000)]
* gpgsm.c (main): Check ksba version.

17 years ago* certpath.c (find_up): New to use the authorithKeyIdentifier.
Werner Koch [Mon, 15 Apr 2002 13:18:44 +0000 (13:18 +0000)]
* certpath.c (find_up): New to use the authorithKeyIdentifier.
Use it in all other functions to locate the signing cert..

17 years ago* command.c (cmd_pksign, cmd_pkdecrypt): Use a copy of the key ID.
Werner Koch [Mon, 15 Apr 2002 10:11:11 +0000 (10:11 +0000)]
* command.c (cmd_pksign, cmd_pkdecrypt): Use a copy of the key ID.

17 years ago* cryptmiss.c: New.
Werner Koch [Mon, 15 Apr 2002 10:10:59 +0000 (10:10 +0000)]
* cryptmiss.c: New.

17 years ago* scdaemon.c: New option --debug-sc N.
Werner Koch [Fri, 12 Apr 2002 18:55:05 +0000 (18:55 +0000)]
* scdaemon.c: New option --debug-sc N.
* card.c (card_open): set it here.

* card-p15.c (p15_prepare_key): Factored out common code from ...
(p15_sign, p15_decipher): here and made the decryption work the
regular way.