gnupg.git
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.

17 years ago* certlist.c (cert_usable_p): New.
Werner Koch [Fri, 12 Apr 2002 18:54:34 +0000 (18:54 +0000)]
* certlist.c (cert_usable_p): New.
(gpgsm_cert_use_sign_p,gpgsm_cert_use_encrypt_p): New.
(gpgsm_cert_use_verify_p,gpgsm_cert_use_decrypt_p): New.
(gpgsm_add_to_certlist): Check the key usage.
* sign.c (gpgsm_sign): Ditto.
* verify.c (gpgsm_verify): Print a message wehn an unsuitable
certificate was used.
* decrypt.c (gpgsm_decrypt): Ditto
* keylist.c (print_capabilities): Determine values from the cert.

17 years ago* card.c (card_open): Return immediately when no reader is available.
Werner Koch [Wed, 10 Apr 2002 11:45:11 +0000 (11:45 +0000)]
* card.c (card_open): Return immediately when no reader is available.

17 years ago* assuan-buffer.c (my_log_prefix): New. Use it for all i/o debug output.
Werner Koch [Tue, 9 Apr 2002 18:36:20 +0000 (18:36 +0000)]
* assuan-buffer.c (my_log_prefix): New.  Use it for all i/o debug output.

17 years ago* protect-tool.c (show_file): New. Used as default action.
Werner Koch [Tue, 9 Apr 2002 18:34:38 +0000 (18:34 +0000)]
* protect-tool.c (show_file): New.  Used as default action.

17 years agoyet another test certificate NEWPG-0-3-4
Werner Koch [Thu, 28 Mar 2002 17:25:28 +0000 (17:25 +0000)]
yet another test certificate

17 years ago* certpath.c (gpgsm_walk_cert_chain): Be a bit more silent on
Werner Koch [Thu, 28 Mar 2002 17:21:54 +0000 (17:21 +0000)]
* certpath.c (gpgsm_walk_cert_chain): Be a bit more silent on
common errors.

17 years ago* keylist.c (list_cert_colon): Fixed listing of crt record; the
Werner Koch [Thu, 28 Mar 2002 16:36:25 +0000 (16:36 +0000)]
* keylist.c (list_cert_colon): Fixed listing of crt record; the
issuer is not at the right place.  Print a chainingID.

17 years ago* card.c (card_open, card_close): Adjusted for changes in OpenSC.
Werner Koch [Thu, 28 Mar 2002 11:43:24 +0000 (11:43 +0000)]
* card.c (card_open, card_close): Adjusted for changes in OpenSC.

17 years ago* divert-scd.c (encode_md_for_card): Don't do the pkcs-1 padding,
Werner Koch [Thu, 28 Mar 2002 11:42:40 +0000 (11:42 +0000)]
* divert-scd.c (encode_md_for_card): Don't do the pkcs-1 padding,
the scdaemon should take care of it.
(ask_for_card): Hack to not display the trailing zero.

17 years ago* export.c: New.
Werner Koch [Thu, 21 Mar 2002 14:42:14 +0000 (14:42 +0000)]
* export.c: New.
* gpgsm.c: Add command --export.
* server.c (cmd_export): New.

17 years agoAdded missing file NEWPG-0-3-3
Werner Koch [Mon, 18 Mar 2002 13:22:35 +0000 (13:22 +0000)]
Added missing file

17 years agoMore stuff for SCs - don't expect them to work.
Werner Koch [Mon, 18 Mar 2002 09:42:03 +0000 (09:42 +0000)]
More stuff for SCs - don't expect them to work.

17 years agoDoc fixes, moved some fizmes to TODO, fixed minor bugs.
Werner Koch [Mon, 18 Mar 2002 09:30:35 +0000 (09:30 +0000)]
Doc fixes, moved some fizmes to TODO, fixed minor bugs.

17 years ago* decrypt.c (gpgsm_decrypt): Allow multiple recipients.
Werner Koch [Wed, 13 Mar 2002 10:19:50 +0000 (10:19 +0000)]
* decrypt.c (gpgsm_decrypt): Allow multiple recipients.

17 years agoMore error codes
Werner Koch [Tue, 12 Mar 2002 13:36:55 +0000 (13:36 +0000)]
More error codes

17 years ago* verify.c (gpgsm_verify): Detect certs-only message.
Werner Koch [Tue, 12 Mar 2002 13:36:29 +0000 (13:36 +0000)]
* verify.c (gpgsm_verify): Detect certs-only message.

17 years ago* server.c (cmd_listkeys, cmd_listsecretkeys): Divert to NEWPG-0-3-2
Werner Koch [Wed, 6 Mar 2002 16:13:47 +0000 (16:13 +0000)]
* server.c (cmd_listkeys, cmd_listsecretkeys): Divert to
(do_listkeys): new.  Add pattern parsing.
* keylist.c (gpgsm_list_keys): Handle selection pattern.

17 years agosm/
Werner Koch [Wed, 6 Mar 2002 14:16:37 +0000 (14:16 +0000)]
sm/
* gpgsm.c: New command --learn-card
* call-agent.c (learn_cb,gpgsm_agent_learn): New.
* gpgsm.c (main): Print error messages for non-implemented commands.
agent/
* learncard.c: New.
* divert-scd.c (ask_for_card): The serial number is binary so
convert it to hex here.
* findkey.c (agent_write_private_key): New.
* genkey.c (store_key): And use it here.
scd/
* pkdecrypt.c (agent_pkdecrypt): Changed the way the diversion is done.
* divert-scd.c (divert_pkdecrypt): Changed interface and
implemented it.

17 years ago* assuan-client.c (_assuan_read_from_server): Detect END.
Werner Koch [Wed, 6 Mar 2002 14:15:14 +0000 (14:15 +0000)]
* assuan-client.c (_assuan_read_from_server): Detect END.
(assuan_transact): Pass it to the data callback.

17 years agoDecryption using a Cryptoflex card does now work.
Werner Koch [Wed, 6 Mar 2002 09:01:12 +0000 (09:01 +0000)]
Decryption using a Cryptoflex card does now work.

17 years agoWe got more error codes than actual code ;-)
Werner Koch [Tue, 5 Mar 2002 17:17:41 +0000 (17:17 +0000)]
We got more error codes than actual code ;-)

17 years agoWell and some stuff to access the SC will be helpful. Note, that the
Werner Koch [Tue, 5 Mar 2002 17:17:08 +0000 (17:17 +0000)]
Well and some stuff to access the SC will be helpful.  Note, that the
code requires the latest OpenSC CVS code.

17 years agoThis file was missing.
Werner Koch [Tue, 5 Mar 2002 17:16:04 +0000 (17:16 +0000)]
This file was missing.

17 years agoSigning using a PKCS15 smartcard does work. How to create such a card
Werner Koch [Tue, 5 Mar 2002 17:14:45 +0000 (17:14 +0000)]
Signing using a PKCS15 smartcard does work.  How to create such a card
is of course a different thing.  Note, that you need to create the
shadowed-private-key file manually.

17 years ago* gpgsm.c, gpgsm.h: Add local_user.
Werner Koch [Tue, 5 Mar 2002 15:56:46 +0000 (15:56 +0000)]
* gpgsm.c, gpgsm.h: Add local_user.
* sign.c (gpgsm_get_default_cert): New.
(get_default_signer): Use the new function if local_user is not
set otherwise used that value.
* encrypt.c (get_default_recipient): Removed.
(gpgsm_encrypt): Use gpgsm_get_default_cert.
* verify.c (gpgsm_verify): Better error text for a bad signature
found by comparing the hashs.

17 years agoMinor fixes; about to release 0.3.1 NEWPG-0-3-1
Werner Koch [Mon, 4 Mar 2002 10:35:34 +0000 (10:35 +0000)]
Minor fixes; about to release 0.3.1

17 years ago* pksign.c (agent_pksign): Detect whether a Smartcard is to be
Werner Koch [Mon, 4 Mar 2002 10:34:51 +0000 (10:34 +0000)]
* pksign.c (agent_pksign): Detect whether a Smartcard is to be
used and divert the operation in this case.
* pkdecrypt.c (agent_pkdecrypt): Likewise
* findkey.c (agent_key_from_file): Add optional arg shadow_info
and have it return information about a shadowed key.
* protect.c (agent_get_shadow_info): New.
* protect.c (snext,sskip,smatch): Moved to
* sexp-parse.h: new file.
* divert-scd.c: New.

17 years agoAdded more code fragments.
Werner Koch [Mon, 4 Mar 2002 10:34:09 +0000 (10:34 +0000)]
Added more code fragments.

17 years agoChanges needed to support smartcards. Well, only _support_. There is
Werner Koch [Thu, 28 Feb 2002 11:07:59 +0000 (11:07 +0000)]
Changes needed to support smartcards.  Well, only _support_.  There is
no real code yet.

17 years ago* assuan-client.c (assuan_transact): Add 2 more arguments to
Werner Koch [Thu, 28 Feb 2002 11:05:57 +0000 (11:05 +0000)]
* assuan-client.c (assuan_transact): Add 2 more arguments to
support status lines. Passing NULL yields the old behaviour.
* assuan-handler.c (process_request): Flush data lines send
without using the data fp.

17 years ago* server.c (option_handler): Allow to use -2 for "send all certs
Werner Koch [Mon, 25 Feb 2002 18:18:40 +0000 (18:18 +0000)]
* server.c (option_handler): Allow to use -2 for "send all certs
except the root cert".
* sign.c (add_certificate_list): Implement it here.
* certpath.c (gpgsm_is_root_cert): New.

17 years ago* keybox-search.c (blob_cmp_mail): Use case-insensitive compare
Werner Koch [Mon, 25 Feb 2002 18:18:18 +0000 (18:18 +0000)]
* keybox-search.c (blob_cmp_mail): Use case-insensitive compare
because mail addresses are in general case insensitive (well
RFC2822 allows for case sensitive mailbox parts, but this is in
general considired a Bad Thing). Add additional substr parameter
to allow for substring matches within the mail address.  Change
all callers to pass this along.
(blob_cmp_name): Likewise but do the case-insensitive search only
in sub string mode.
(keybox_search): Implement MAILSUB and SUBSTR mode.

* stringhelp.c (ascii_memcasemem): New.

17 years ago* certpath.c (check_cert_policy): New.
Werner Koch [Tue, 19 Feb 2002 17:39:05 +0000 (17:39 +0000)]
* certpath.c (check_cert_policy): New.
(gpgsm_validate_path): And call it from here.
* gpgsm.c (main): New options --policy-file,
--disable-policy-checks and --enable-policy-checks.
* gpgsm.h (opt): Added policy_file, no_policy_checks.

17 years ago* findkey.c (unprotect): Show an error message for a bad passphrase.
Werner Koch [Mon, 18 Feb 2002 22:39:26 +0000 (22:39 +0000)]
* findkey.c (unprotect): Show an error message for a bad passphrase.

17 years ago* certpath.c (gpgsm_validate_path): Ask the agent to add the
Werner Koch [Mon, 18 Feb 2002 20:47:29 +0000 (20:47 +0000)]
* certpath.c (gpgsm_validate_path): Ask the agent to add the
certificate into the trusted list.
* call-agent.c (gpgsm_agent_marktrusted): New.

17 years agoSome experimental code - don't use it.
Werner Koch [Mon, 18 Feb 2002 20:47:17 +0000 (20:47 +0000)]
Some experimental code - don't use it.