gnupg.git
15 years ago2004-02-26 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Thu, 26 Feb 2004 16:28:27 +0000 (16:28 +0000)]
2004-02-26  Marcus Brinkmann  <marcus@g10code.de>

* README.gpgconf (NAME): Add info about optional arg and arg type 0.
* gpgconf-comp.c (gc_component_change_options): Parse list of
arg type 0 options.
(option_check_validity): Add new argument NEW_VALUE_NR.  Perform
rigorous validity checks.
(change_options_program): Disable an option also if we have a new
value for it.

15 years ago2004-02-25 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Wed, 25 Feb 2004 20:24:53 +0000 (20:24 +0000)]
2004-02-25  Marcus Brinkmann  <marcus@g10code.de>

* gpgconf-comp.c (struct gc_option): Add new member new_flags.
(option_check_validity): Check OPTION->new_flags beside
OPTION->new_value.  Add new argument FLAGS.
(gc_component_change_options): Support default flag correctly.
(change_options_program): Likewise.

15 years ago2004-02-25 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Wed, 25 Feb 2004 19:35:36 +0000 (19:35 +0000)]
2004-02-25  Marcus Brinkmann  <marcus@g10code.de>

* gpgconf-comp.c (gc_component_list_options): Correct output for
lists of arg type none.

15 years agoNew option --disable-threads to inhibit
Werner Koch [Wed, 25 Feb 2004 08:58:46 +0000 (08:58 +0000)]
New option --disable-threads to inhibit
unintentional builds without Pth.

15 years ago2004-02-24 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Tue, 24 Feb 2004 14:31:59 +0000 (14:31 +0000)]
2004-02-24  Marcus Brinkmann  <marcus@g10code.de>

* README.gpgconf: Revert last change.  Add new flags "default",
"default desc" and "no arg desc".  Add new field ARGDEF.  Add new
field FLAG to backend interface.
* gpgconf-comp.c (struct gc_option): Make flags of type unsigned
long.
(gc_component_list_options): Adjust type for flags.
Add default argument field.
(retrieve_options_from_program): Use "1" as value for non-option
arguments, not "Y".
(gc_component_change_options): Read in flags from input.

15 years ago(list_cert_colon): Print the fingerprint as the
Werner Koch [Tue, 24 Feb 2004 14:15:43 +0000 (14:15 +0000)]
(list_cert_colon): Print the fingerprint as the
cert-id for root certificates.

15 years ago2004-02-23 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Mon, 23 Feb 2004 20:59:18 +0000 (20:59 +0000)]
2004-02-23  Marcus Brinkmann  <marcus@g10code.de>

* README.gpgconf: Change meaning of type 0 options value if it is
the empty string or "0".

15 years ago2004-02-23 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Mon, 23 Feb 2004 20:31:35 +0000 (20:31 +0000)]
2004-02-23  Marcus Brinkmann  <marcus@g10code.de>

* gpgconf.h (struct): Add member runtime.
* gpgconf.c: Add new option oRuntime.
(main): Same here.

15 years ago2004-02-23 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Mon, 23 Feb 2004 19:37:04 +0000 (19:37 +0000)]
2004-02-23  Marcus Brinkmann  <marcus@g10code.de>

* gpgconf-comp.c (hextobyte): New function.
(percent_deescape): New function.
(get_config_pathname): Percent deescape pathname if taken from
option (default) value.  Use default value only if it exists and
is not empty.  Use empty string otherwise.  Don't include leading
quote in pathname.
(change_options_program): Percent deescape string before writing
it out.

15 years agopost release version bumb
Werner Koch [Sat, 21 Feb 2004 13:35:42 +0000 (13:35 +0000)]
post release version bumb

15 years agoAbout to release 1.9.5 V1-9-5
Werner Koch [Sat, 21 Feb 2004 13:13:35 +0000 (13:13 +0000)]
About to release 1.9.5

15 years ago* keylist.c (list_internal_keys): Return error codes.
Werner Koch [Sat, 21 Feb 2004 13:05:52 +0000 (13:05 +0000)]
* keylist.c (list_internal_keys): Return error codes.
(list_external_keys, gpgsm_list_keys): Ditto.
* server.c (do_listkeys): Ditto.

* gpgsm.c (main): Display a key description for --passwd.
* call-agent.c (gpgsm_agent_passwd): New arg DESC.

15 years ago* command.c (cmd_passwd): Take acount of a key description.
Werner Koch [Sat, 21 Feb 2004 13:05:22 +0000 (13:05 +0000)]
* command.c (cmd_passwd): Take acount of a key description.

* genkey.c (reenter_compare_cb): Do not set the error text.
(agent_protect_and_store, agent_genkey): Force a re-enter after a
non-matching passphrase.
* query.c (agent_askpin): Add new arg INITIAL_ERRTEXT; changed
all callers.

15 years agoFixed URLs in the notice messages.
Werner Koch [Fri, 20 Feb 2004 14:23:30 +0000 (14:23 +0000)]
Fixed URLs in the notice messages.

15 years ago* Makefile.am: Reset GPG_AGENT_INFO here
Werner Koch [Fri, 20 Feb 2004 13:46:35 +0000 (13:46 +0000)]
* Makefile.am: Reset GPG_AGENT_INFO here
* runtest: and not anymore here.

15 years ago* gpgsm.c (main): New option --debug-ignore-expiration.
Werner Koch [Fri, 20 Feb 2004 13:46:21 +0000 (13:46 +0000)]
* gpgsm.c (main): New option --debug-ignore-expiration.
* certchain.c (gpgsm_validate_chain): Use it here.

* certlist.c (cert_usage_p): Apply extKeyUsage.

15 years ago* protect-tool.c: New options --have-cert and --prompt.
Werner Koch [Thu, 19 Feb 2004 16:26:32 +0000 (16:26 +0000)]
* protect-tool.c: New options --have-cert and --prompt.
(export_p12_file): Read a certificate from STDIN and pass it to
p12_build.  Detect a keygrip and construct the filename in that
case.  Unprotcet a key if needed.  Print error messages for key
formats we can't handle.
(release_passphrase): New.
(get_passphrase): New arg PROMPTNO. Return the allocated
string. Changed all callers.

* minip12.c: Revamped the build part.
(p12_build): New args CERT and CERTLEN.

* simple-pwquery.c (agent_open): Don't mangle INFOSTR.

* export.c (export_p12, popen_protect_tool)
(gpgsm_p12_export): New.
* gpgsm.c (main): New command --export-secret-key-p12.

15 years ago* acinclude.m4: Removed macros to detect gpg-error, libgcrypt,
Werner Koch [Wed, 18 Feb 2004 18:38:50 +0000 (18:38 +0000)]
* acinclude.m4: Removed macros to detect gpg-error, libgcrypt,
libassuan and ksba as they are now distributed in m4/.

* gpg-error.m4, libgcrypt.m4, libassuan.m4, ksba.m4: New.
* Makefile.am: Distribute them

15 years agoAdded empty components for gpgsm and scdaemon.
Werner Koch [Wed, 18 Feb 2004 17:00:56 +0000 (17:00 +0000)]
Added empty components for gpgsm and scdaemon.

15 years ago* gpgsm.c (set_debug): Set the new --debug-level flags.
Werner Koch [Wed, 18 Feb 2004 17:00:21 +0000 (17:00 +0000)]
* gpgsm.c (set_debug): Set the new --debug-level flags.
(main): New option --gpgconf-list.
(main): Do not setup -u and -r keys when not required.
(main): Setup the used character set.

* keydb.c (keydb_add_resource): Print a hint to start the
gpg-agent.

15 years ago* sc-investigate.c (main): Setup the used character set.
Werner Koch [Wed, 18 Feb 2004 17:00:11 +0000 (17:00 +0000)]
* sc-investigate.c (main): Setup the used character set.
* scdaemon.c (main): Ditto.

* scdaemon.c (set_debug): New.  Add option --debug-level.
(main): Add option --gpgconf-list.

15 years agoAdjusted for moved file.
Werner Koch [Wed, 18 Feb 2004 16:59:53 +0000 (16:59 +0000)]
Adjusted for moved file.

15 years ago(print_sanitized_buffer): Don't care about
Werner Koch [Wed, 18 Feb 2004 16:59:19 +0000 (16:59 +0000)]
(print_sanitized_buffer): Don't care about
non-ASCII characaters.
(sanitize_buffer): Ditto.

15 years ago* call-agent.c (start_agent): Ignore an empty GPG_AGENT_INFO.
Werner Koch [Wed, 18 Feb 2004 16:59:03 +0000 (16:59 +0000)]
* call-agent.c (start_agent): Ignore an empty GPG_AGENT_INFO.
* passphrase.c (agent_open): Ditto.

15 years agoDescribed new options
Werner Koch [Wed, 18 Feb 2004 16:58:29 +0000 (16:58 +0000)]
Described new options

15 years ago* simple-pwquery.c (agent_open): Ignore an empty GPG_AGENT_INFO.
Werner Koch [Wed, 18 Feb 2004 16:58:00 +0000 (16:58 +0000)]
* simple-pwquery.c (agent_open): Ignore an empty GPG_AGENT_INFO.

15 years ago* protect-tool.c (main): Setup the used character set.
Werner Koch [Wed, 18 Feb 2004 16:57:38 +0000 (16:57 +0000)]
* protect-tool.c (main): Setup the used character set.
* gpg-agent.c (main): Ditto.

* gpg-agent.c (set_debug): New.  New option --debug-level.
(main): New option --gpgconf-list.

15 years ago* gpgsm.c: Fixed value parsing for --with-validation.
Werner Koch [Tue, 17 Feb 2004 17:21:07 +0000 (17:21 +0000)]
* gpgsm.c: Fixed value parsing for --with-validation.
* call-agent.c (start_agent): Ignore an empty GPG_AGENT_INFO.
* call-dirmngr.c (start_dirmngr): Likewise for DIRMNGR_INFO.

15 years agoMore samples
Werner Koch [Tue, 17 Feb 2004 15:07:27 +0000 (15:07 +0000)]
More samples

15 years ago* gpgsm.c: New option --with-md5-fingerprint.
Werner Koch [Tue, 17 Feb 2004 15:05:04 +0000 (15:05 +0000)]
* gpgsm.c: New option --with-md5-fingerprint.
* keylist.c (list_cert_std): Print MD5 fpr.

* gpgsm.c: New options --with-validation.
* server.c (option_handler): New option "with-validation".
* keylist.c (list_cert_std, list_internal_keys): New args CTRL and
WITH_VALIDATION. Changed callers to set it.
(list_external_cb, list_external_keys): Pass CTRL to the callback.
(list_cert_colon): Add arg CTRL.  Check validation if requested.
* certchain.c (unknown_criticals, allowed_ca, check_cert_policy)
(gpgsm_validate_chain): New args LISTMODE and FP.
(do_list): New helper for info output.
(find_up): New arg FIND_NEXT.
(gpgsm_validate_chain): After a bad signature try again with other
CA certificates.

* import.c (print_imported_status): New arg NEW_CERT. Print
additional STATUS_IMPORT_OK becuase that is what gpgme expects.
(check_and_store): Always call above function after import.
* server.c (get_status_string): Added STATUS_IMPORT_OK.

15 years agoAdded new options
Werner Koch [Tue, 17 Feb 2004 15:04:49 +0000 (15:04 +0000)]
Added new options

15 years agoAdded STATUS_IMPORT_OK.
Werner Koch [Tue, 17 Feb 2004 15:04:28 +0000 (15:04 +0000)]
Added STATUS_IMPORT_OK.

15 years ago* certcheck.c (gpgsm_create_cms_signature): Format a description
Werner Koch [Fri, 13 Feb 2004 17:06:50 +0000 (17:06 +0000)]
* certcheck.c (gpgsm_create_cms_signature): Format a description
for use by the pinentry.
* decrypt.c (gpgsm_decrypt): Ditto. Free HEXKEYGRIP.
* certdump.c (format_name_cookie, format_name_writer)
(gpgsm_format_name): New.
(gpgsm_format_serial): New.
(gpgsm_format_keydesc): New.
* call-agent.c (gpgsm_agent_pksign): New arg DESC.
(gpgsm_agent_pkdecrypt): Ditto.

15 years ago* command.c (cmd_setkeydesc): New.
Werner Koch [Fri, 13 Feb 2004 17:06:34 +0000 (17:06 +0000)]
* command.c (cmd_setkeydesc): New.
(register_commands): Add command SETKEYDESC.
(cmd_pksign, cmd_pkdecrypt): Use the key description.
(reset_notify): Reset the description.
* findkey.c (unprotect): Add arg DESC_TEXT.
(agent_key_from_file): Ditto.
* pksign.c (agent_pksign): Ditto.
* pkdecrypt.c (agent_pkdecrypt): Ditto. Made CIPHERTEXT an
unsigned char*.

15 years agoRequire libksba 0.9.4 and libgcrypt 1.1.92.
Werner Koch [Fri, 13 Feb 2004 12:40:54 +0000 (12:40 +0000)]
Require libksba 0.9.4 and libgcrypt 1.1.92.

15 years ago* encrypt.c (init_dek): Check for too weak algorithms.
Werner Koch [Fri, 13 Feb 2004 12:40:23 +0000 (12:40 +0000)]
* encrypt.c (init_dek): Check for too weak algorithms.

* import.c (parse_p12, popen_protect_tool): New.

* base64.c (gpgsm_create_reader): New arg ALLOW_MULTI_PEM.
Changed all callers.
(base64_reader_cb): Handle it here.
(gpgsm_reader_eof_seen): New.
(base64_reader_cb): Set a flag for EOF.
(simple_reader_cb): Ditto.

15 years agoRemoved debugging cruft.
Werner Koch [Fri, 13 Feb 2004 12:39:49 +0000 (12:39 +0000)]
Removed debugging cruft.

15 years ago(main): New options --no-fail-on-exist, --homedir.
Werner Koch [Fri, 13 Feb 2004 12:37:54 +0000 (12:37 +0000)]
(main): New options --no-fail-on-exist, --homedir.
(store_private_key): Use them here.

15 years agoRemoved cruft from debugging.
Werner Koch [Thu, 12 Feb 2004 10:05:47 +0000 (10:05 +0000)]
Removed cruft from debugging.

15 years ago* watchgnupg.c (main): Implement option "--".
Werner Koch [Thu, 12 Feb 2004 10:02:22 +0000 (10:02 +0000)]
* watchgnupg.c (main): Implement option "--".
(print_version): New.

* Makefile.am: Include cmacros.am for common flags.

15 years agoMore stuff for testing
Werner Koch [Thu, 12 Feb 2004 09:30:37 +0000 (09:30 +0000)]
More stuff for testing

15 years ago* Makefile.am (AM_CPPFLAGS): Pass directory constants via -D; this
Werner Koch [Thu, 12 Feb 2004 09:29:42 +0000 (09:29 +0000)]
* Makefile.am (AM_CPPFLAGS): Pass directory constants via -D; this
will allow to override directory names at make time.

15 years agoInclude cmacros.am for common flags.
Werner Koch [Thu, 12 Feb 2004 09:29:14 +0000 (09:29 +0000)]
Include cmacros.am for common flags.

15 years agoReplaced INCLUDES by AM_CPPFLAGS.
Werner Koch [Thu, 12 Feb 2004 09:29:00 +0000 (09:29 +0000)]
Replaced INCLUDES by AM_CPPFLAGS.

15 years ago* gpgv.c: Removed g10defs.h.
Werner Koch [Thu, 12 Feb 2004 09:28:52 +0000 (09:28 +0000)]
* gpgv.c: Removed g10defs.h.

* Makefile.am: Include cmacros.am for common flags.

15 years agominor cleanups
Werner Koch [Thu, 12 Feb 2004 09:28:32 +0000 (09:28 +0000)]
minor cleanups

15 years agoNew
Werner Koch [Thu, 12 Feb 2004 09:27:58 +0000 (09:27 +0000)]
New

15 years agoInclude cmacros.am for common flags.
Werner Koch [Thu, 12 Feb 2004 09:27:36 +0000 (09:27 +0000)]
Include cmacros.am for common flags.
(libexec_PROGRAMS): Put gpg-protect-tool there.

15 years ago* am/cmacros.am: New.
Werner Koch [Thu, 12 Feb 2004 09:25:30 +0000 (09:25 +0000)]
* am/cmacros.am: New.
* configure.ac: Removed the need for g10defs.h.  Reworked the
--with-foo-pgm stuff.
* autogen.sh (check_version): Removed bashism and simplified.
* acinclude.m4 (AM_PATH_OPENSC): Kludge to avoid error output for
a bad opensc-config.

15 years agoNew. Based on code from ../sm/base64.c.
Werner Koch [Tue, 10 Feb 2004 19:27:54 +0000 (19:27 +0000)]
New.  Based on code from ../sm/base64.c.

15 years ago* minip12.c (parse_bag_encrypted_data): Finished implementation.
Werner Koch [Tue, 10 Feb 2004 19:26:55 +0000 (19:26 +0000)]
* minip12.c (parse_bag_encrypted_data): Finished implementation.
(p12_parse): Add callback args.
* protect-tool.c (import_p12_cert_cb): New.
(import_p12_file): Use it.

15 years agoFixed a build bug (straw letter in sm/import.c) and updated the documentation.
Werner Koch [Wed, 4 Feb 2004 19:13:16 +0000 (19:13 +0000)]
Fixed a build bug (straw letter in sm/import.c) and updated the documentation.

15 years agoTry to use getent, so that it also works for NIS
Werner Koch [Tue, 3 Feb 2004 16:38:07 +0000 (16:38 +0000)]
Try to use getent, so that it also works for NIS
setups.

15 years ago* import.c (check_and_store): Import certificates even with
Werner Koch [Tue, 3 Feb 2004 16:27:51 +0000 (16:27 +0000)]
* import.c (check_and_store): Import certificates even with
missing issuer's cert.  Fixed an "depending on the verbose
setting" bug.

15 years ago* findkey.c (agent_key_from_file): Extra paranoid wipe.
Werner Koch [Tue, 3 Feb 2004 16:24:37 +0000 (16:24 +0000)]
* findkey.c (agent_key_from_file): Extra paranoid wipe.
* protect.c (agent_unprotect): Ditto.
(merge_lists): Ditto. Add arg RESULTLEN.
* pkdecrypt.c (agent_pkdecrypt): Don't show the secret key even in
debug mode.

* protect.c: Add DSA and Elgamal description.

15 years ago* keybox.h (keybox_flag_t): New.
Werner Koch [Mon, 2 Feb 2004 17:09:35 +0000 (17:09 +0000)]
* keybox.h (keybox_flag_t): New.
* keybox-search.c (get_flag_from_image, keybox_get_flags): New.
(_keybox_get_flag_location): New.

* certchain.c (gpgsm_validate_chain): Mark revoked certs in the
keybox.

* keylist.c (list_cert_colon): New arg VALIDITY; use it to print a
revoked flag.
(list_internal_keys): Retrieve validity flag.
(list_external_cb): Pass 0 as validity flag.
* keydb.c (keydb_get_flags, keydb_set_flags): New.
(keydb_set_cert_flags): New.
(lock_all): Return a proper error code.
(keydb_lock): New.
(keydb_delete): Don't lock but check that it has been locked.
(keydb_update_keyblock): Ditto.
* delete.c (delete_one): Take a lock.

15 years agoFix copyright line.
Marcus Brinkmann [Sun, 1 Feb 2004 15:30:50 +0000 (15:30 +0000)]
Fix copyright line.

15 years ago2004-01-31 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Sat, 31 Jan 2004 13:58:27 +0000 (13:58 +0000)]
2004-01-31  Marcus Brinkmann  <marcus@g10code.de>

* gpgconf-comp.c: Some bug fixes, parse only defaults from the
program, and read the current values from the configuration file
directly.

15 years ago*** empty log message ***
Werner Koch [Fri, 30 Jan 2004 17:57:16 +0000 (17:57 +0000)]
*** empty log message ***

15 years ago2004-01-30 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Fri, 30 Jan 2004 12:37:09 +0000 (12:37 +0000)]
2004-01-30  Marcus Brinkmann  <marcus@g10code.de>

* Makefile.am (libcommon_a_SOURCES): Add xasprintf.c.
* miscellaneous.c (xasprintf): Moved to ...
* xasprintf (xasprintf): ... here.  New file.
This allows to use xasprintf without sucking in gpg-error.

15 years ago2004-01-30 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Fri, 30 Jan 2004 12:15:53 +0000 (12:15 +0000)]
2004-01-30  Marcus Brinkmann  <marcus@g10code.de>

* gpgconf-comp.c (gc_error): New function, use it instead of
error() throughout.

15 years ago2004-01-30 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Fri, 30 Jan 2004 10:38:07 +0000 (10:38 +0000)]
2004-01-30  Marcus Brinkmann  <marcus@g10code.de>

* gpgconf-comp.c: Use xmalloc, libcommon's asctimestamp and
gnupg_get_time, fix error() invocation and use getline()
consistently.

15 years agoPost release updated
Werner Koch [Fri, 30 Jan 2004 10:13:51 +0000 (10:13 +0000)]
Post release updated

15 years ago(check_cert_policy): Fixed read error checking. V1-9-4
Werner Koch [Fri, 30 Jan 2004 09:47:28 +0000 (09:47 +0000)]
(check_cert_policy): Fixed read error checking.
(check_cert_policy): With no critical policies issue only a
warning if the policy file does not exists.

15 years ago* configure.ac: Require libksba 0.9.3 due to another bug fix there.
Werner Koch [Fri, 30 Jan 2004 09:12:36 +0000 (09:12 +0000)]
* configure.ac: Require libksba 0.9.3 due to another bug fix there.

* sign.c (add_certificate_list): Decrement N for the first cert.

* Makefile.am (sbin_SCRIPTS): New, to install addgnupghome.
(EXTRA_DIST): Added rfc822parse.c rfc822parse.h gpgparsemail.c
which might be useful for debugging.

15 years agoNew.
Werner Koch [Thu, 29 Jan 2004 20:20:10 +0000 (20:20 +0000)]
New.

15 years ago(reset_notify): Release the application context and
Werner Koch [Thu, 29 Jan 2004 20:17:51 +0000 (20:17 +0000)]
(reset_notify): Release the application context and
close the reader.

15 years ago* agent.h (server_control_s): Add connection_fd field.
Werner Koch [Thu, 29 Jan 2004 20:17:27 +0000 (20:17 +0000)]
* agent.h (server_control_s): Add connection_fd field.
* command.c (start_command_handler): Init it here.
* gpg-agent.c (agent_init_default_ctrl): and here.
* call-scd.c: Add the CTRL arg to all functions calling start_scd
and pass it to start_scd.  Changed all callers
(start_scd): Keep track of the current active connection.
(agent_reset_scd): New.
* command.c (start_command_handler): Call it here.
* learncard.c (agent_handle_learn): Add arg CTRL; changed caller.
(send_cert_back): Ditto.

15 years ago* README: Updated.
Werner Koch [Thu, 29 Jan 2004 20:16:59 +0000 (20:16 +0000)]
* README: Updated.

15 years ago(parse_dn_part): Map common OIDs to human readable
Werner Koch [Thu, 29 Jan 2004 07:41:55 +0000 (07:41 +0000)]
(parse_dn_part): Map common OIDs to human readable
labels.  Make sure that a value won't get truncated if it includes
a Nul.

15 years ago2004-01-29 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Wed, 28 Jan 2004 23:58:18 +0000 (23:58 +0000)]
2004-01-29  Marcus Brinkmann  <marcus@g10code.de>

* gpgconf-list.c: File removed.
* README.gpgconf: New file.
* gpgconf-comp.c: New file.
* Makefile.am (gpgconf_SOURCES): Remove gpgconf-list.c, add
gpgconf-comp.c.

15 years agoadd a few notes.
Werner Koch [Wed, 28 Jan 2004 16:22:25 +0000 (16:22 +0000)]
add a few notes.

15 years ago(iso7816_manage_security_env): New.
Werner Koch [Wed, 28 Jan 2004 16:21:57 +0000 (16:21 +0000)]
(iso7816_manage_security_env): New.
(iso7816_decipher): Add PADIND argument.

** app-nks.c is now functional **

15 years ago(gpgsm_validate_chain): Changed the message printed
Werner Koch [Wed, 28 Jan 2004 16:20:17 +0000 (16:20 +0000)]
(gpgsm_validate_chain): Changed the message printed
for an untrusted root certificate.

15 years ago(agent_marktrusted): Check whether the trustlist is
Werner Koch [Wed, 28 Jan 2004 16:19:46 +0000 (16:19 +0000)]
(agent_marktrusted): Check whether the trustlist is
writable.

15 years ago(parse_dn_part): Pretty print the nameDistinguisher OID.
Werner Koch [Tue, 27 Jan 2004 19:10:38 +0000 (19:10 +0000)]
(parse_dn_part): Pretty print the nameDistinguisher OID.
(print_dn_part): Do not delimit multiple RDNs by " + ".  Handle
multi-valued RDNs in a special way, i.e. in the order specified by
the certificate.
(print_dn_parts): Simplified.

15 years agoSome minor bug fixes, new test utilities and started support for other
Werner Koch [Tue, 27 Jan 2004 16:40:42 +0000 (16:40 +0000)]
Some minor bug fixes, new test utilities and started support for other
smartcard applications.

15 years ago* call-scd.c (atfork_cb): New.
Werner Koch [Sat, 24 Jan 2004 20:50:49 +0000 (20:50 +0000)]
* call-scd.c (atfork_cb): New.
(start_scd): Make sure secmem gets cleared.
* query.c  (atfork_cb): New.
(start_pinentry): Make sure secmem gets cleared.

15 years ago2004-01-19 Moritz Schulte <mo@g10code.com>
Moritz Schulte [Mon, 19 Jan 2004 01:48:17 +0000 (01:48 +0000)]
2004-01-19  Moritz Schulte  <mo@g10code.com>

* keygen.c (do_generate_keypair): Don't try to execute certain pieces of code
in case an error occured.
(gen_card_key): Don't print out a message, which is already
printed by do_generate_keypair().

15 years ago2004-01-19 Moritz Schulte <mo@g10code.com>
Moritz Schulte [Mon, 19 Jan 2004 01:07:46 +0000 (01:07 +0000)]
2004-01-19  Moritz Schulte  <mo@g10code.com>

* keygen.c (do_generate_keypair): Print member fname, instead of
newfname, again.

15 years ago2004-01-18 Moritz Schulte <mo@g10code.com>
Moritz Schulte [Sun, 18 Jan 2004 22:48:49 +0000 (22:48 +0000)]
2004-01-18  Moritz Schulte  <mo@g10code.com>

* keygen.c (do_generate_keypair): Print member fname, instead of
newfname.

15 years ago(main): Need to use FD_ISSET for the client
Werner Koch [Fri, 16 Jan 2004 22:38:58 +0000 (22:38 +0000)]
(main): Need to use FD_ISSET for the client
descriptors too; aiiih.  Set the listening socket to non-blocking.

15 years ago* sign.c (gpgsm_sign): Print an error message on all failures.
Werner Koch [Fri, 16 Jan 2004 17:42:36 +0000 (17:42 +0000)]
* sign.c (gpgsm_sign): Print an error message on all failures.
* decrypt.c (gpgsm_decrypt): Ditto.

15 years agocomment typo fixes.
Werner Koch [Fri, 16 Jan 2004 17:42:08 +0000 (17:42 +0000)]
comment typo fixes.

15 years ago* argparse.c (strusage): Changed default copyright year to 2004.
Werner Koch [Fri, 16 Jan 2004 17:40:50 +0000 (17:40 +0000)]
* argparse.c (strusage): Changed default copyright year to 2004.

15 years ago* findkey.c (agent_key_from_file): Now return an error code so
Werner Koch [Fri, 16 Jan 2004 17:39:58 +0000 (17:39 +0000)]
* findkey.c (agent_key_from_file): Now return an error code so
that we have more detailed error messages in the upper layers.
This fixes the handling pinentry's cancel button.
* pksign.c (agent_pksign): Changed accordingly.
* pkdecrypt.c (agent_pkdecrypt): Ditto.
* command.c (cmd_passwd): Ditto.

15 years agoUse GPG_ERROR_CFLAGS
Werner Koch [Sat, 10 Jan 2004 11:50:48 +0000 (11:50 +0000)]
Use GPG_ERROR_CFLAGS

15 years ago* Manifest: New.
Werner Koch [Mon, 5 Jan 2004 09:28:27 +0000 (09:28 +0000)]
* Manifest: New.
* gpgconf.c, gpgconf.h, gpgconf-list.c: New. A skeleton for now.
* no-libgcrypt.c: New.
* Makefile.am: Add above.

15 years agoPost release version number bump.
Werner Koch [Tue, 23 Dec 2003 11:27:13 +0000 (11:27 +0000)]
Post release version number bump.

15 years ago* README-alpha: Removed. V1-9-3
Werner Koch [Tue, 23 Dec 2003 11:05:19 +0000 (11:05 +0000)]
* README-alpha: Removed.
* configure.ac, Makefile.am: Add the tests and tools directories.

15 years ago* Makefile.am: New.
Werner Koch [Tue, 23 Dec 2003 11:05:00 +0000 (11:05 +0000)]
* Makefile.am: New.
* watchgnupg.c: New.

15 years ago* apdu.c (apdu_send_le): Send a get_response with the indicated
Werner Koch [Tue, 23 Dec 2003 10:25:24 +0000 (10:25 +0000)]
* apdu.c (apdu_send_le): Send a get_response with the indicated
length and not the 64 bytes we used for testing.
* app-openpgp.c (verify_chv2, verify_chv3, do_sign): Check the
minimum length of the passphrase, so that we don't need to
decrement the retry counter.

15 years ago(map_assuan_err): Prepared for a new error code.
Werner Koch [Tue, 23 Dec 2003 10:24:49 +0000 (10:24 +0000)]
(map_assuan_err): Prepared for a new error code.

15 years agoEnable the tests directory.
Werner Koch [Tue, 23 Dec 2003 10:23:16 +0000 (10:23 +0000)]
Enable the tests directory.

15 years ago* server.c (gpgsm_server): Add arg DEFAULT_RECPLIST.
Werner Koch [Wed, 17 Dec 2003 17:12:14 +0000 (17:12 +0000)]
* server.c (gpgsm_server): Add arg DEFAULT_RECPLIST.
(cmd_encrypt): Add all enrypt-to marked certs to the list.
* encrypt.c (gpgsm_encrypt): Check that real recipients are
available.
* gpgsm.c (main): Make the --encrypt-to and --no-encrypt-to
options work.  Pass the list of recients to gpgsm_server.
* gpgsm.h (certlist_s): Add field IS_ENCRYPT_TO.
(opt): Add NO_ENCRYPT_TO.
* certlist.c (gpgsm_add_to_certlist): New arg IS_ENCRYPT_TO.
Changed all callers and ignore duplicate entries.
(is_cert_in_certlist): New.
(gpgsm_add_cert_to_certlist): New.

15 years agoRequires now libassuan 0.6.2.
Werner Koch [Wed, 17 Dec 2003 13:03:59 +0000 (13:03 +0000)]
Requires now libassuan 0.6.2.
(CFLAGS): Add --Wformat-noliteral in gcc mode.

15 years ago(CFLAGS): Add --Wformat-noliteral in gcc mode.
Werner Koch [Wed, 17 Dec 2003 12:28:54 +0000 (12:28 +0000)]
(CFLAGS): Add --Wformat-noliteral in gcc mode.

15 years agoReplaced deprecated type names.
Werner Koch [Wed, 17 Dec 2003 12:28:24 +0000 (12:28 +0000)]
Replaced deprecated type names.

* certdump.c (gpgsm_print_serial): Cleaned up cast use in strtoul.
(gpgsm_dump_serial): Ditto.

* decrypt.c (gpgsm_decrypt): Replaced ERR by RC.

15 years agoReplaced deprecated type names.
Werner Koch [Wed, 17 Dec 2003 12:27:51 +0000 (12:27 +0000)]
Replaced deprecated type names.

* card-p15.c (p15_enum_keypairs): Replaced KRC by RC.
* card-dinsig.c (dinsig_enum_keypairs): Ditto.

15 years agoReplaced deprecated type names
Werner Koch [Wed, 17 Dec 2003 12:27:21 +0000 (12:27 +0000)]
Replaced deprecated type names