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

15 years ago* card-util.c (print_name): Fixed bad format string usage.
Werner Koch [Wed, 17 Dec 2003 12:26:56 +0000 (12:26 +0000)]
* card-util.c (print_name): Fixed bad format string usage.
(print_isoname): Ditto.

* trustdb.c (check_regexp): s/exp/expr/.

* keyedit.c (trustsig_prompt): Removed a "> 255" term; it is
always false due to the data type.

* passphrase.c (agent_get_passphrase): Use xasprintf and avoid
non-literal format strings.

* tdbio.c (upd_hashtable, drop_from_hashtable, lookup_hashtable):
Fixed log_error format string bugs.  Kudos to the now working
gcc-3.3 -Wformat-nonliteral and Florian Weimer's investigations in
gnupg 1.2.3.

15 years ago* gettime.c (asctimestamp): Add a note on a non-avoidable gcc warning.
Werner Koch [Wed, 17 Dec 2003 12:26:38 +0000 (12:26 +0000)]
* gettime.c (asctimestamp): Add a note on a non-avoidable gcc warning.

* util.h [!HAVE_VASPRINTF]: Add printf format attribute to the
replacement function.

* miscellaneous.c (xasprintf): New.

15 years ago(initialize): Replaced use of non-literal forma
Werner Koch [Wed, 17 Dec 2003 12:25:09 +0000 (12:25 +0000)]
(initialize): Replaced use of non-literal forma
args.  Suggested by Florian Weimer.

15 years agoUpdated.
Werner Koch [Tue, 16 Dec 2003 16:32:02 +0000 (16:32 +0000)]
Updated.

15 years agoprint the time.
Werner Koch [Tue, 16 Dec 2003 16:31:42 +0000 (16:31 +0000)]
print the time.

15 years ago* gpgsm.c (main): Set the prefixes for assuan logging.
Werner Koch [Tue, 16 Dec 2003 16:31:16 +0000 (16:31 +0000)]
* gpgsm.c (main): Set the prefixes for assuan logging.

* sign.c (gpgsm_sign): Add validation checks for the default
certificate.

* gpgsm.c: Add -k as alias for --list-keys and -K for
--list-secret-keys.

15 years ago(main): Set the prefixes for assuan logging.
Werner Koch [Tue, 16 Dec 2003 16:30:55 +0000 (16:30 +0000)]
(main): Set the prefixes for assuan logging.

15 years ago(writen, fun_writer, fun_closer): New.
Werner Koch [Tue, 16 Dec 2003 16:30:48 +0000 (16:30 +0000)]
(writen, fun_writer, fun_closer): New.
(log_set_file): Add feature to log to a socket.
(log_set_file, do_logv): Force printing with prefix and pid.

15 years agoFixed blatant allocation bug.
Werner Koch [Tue, 16 Dec 2003 14:20:45 +0000 (14:20 +0000)]
Fixed blatant allocation bug.

15 years agoAdd simple tool to watch the log output of gnupg and related modules.
Werner Koch [Tue, 16 Dec 2003 11:32:52 +0000 (11:32 +0000)]
Add simple tool to watch the log output of gnupg and related modules.

15 years ago* encrypt.c (init_dek): Use gry_create_nonce for the IV; there is
Werner Koch [Tue, 16 Dec 2003 11:31:46 +0000 (11:31 +0000)]
* encrypt.c (init_dek): Use gry_create_nonce for the IV; there is
not need for real strong random here and it even better protect
the random bits used for the key.

15 years ago* seckey-cert.c (protect_secret_key): Use gry_create_nonce for the
Werner Koch [Tue, 16 Dec 2003 11:30:57 +0000 (11:30 +0000)]
* seckey-cert.c (protect_secret_key): Use gry_create_nonce for the
IV; there is not need for real strong random here and it even
better protect the random bits used for the key.

15 years ago* protect.c (do_encryption): Use gcry_create_nonce instad of the
Werner Koch [Tue, 16 Dec 2003 11:30:38 +0000 (11:30 +0000)]
* protect.c (do_encryption): Use gcry_create_nonce instad of the
obsolete WEAK_RANDOM.

15 years ago* configure.ac: Check for funopen and fopencookie as part of the
Werner Koch [Tue, 16 Dec 2003 11:30:16 +0000 (11:30 +0000)]
* configure.ac: Check for funopen and fopencookie as part of the
jnlib checks.

* logging.c (writen, fun_writer, fun_closer): New.
(log_set_file): Add feature to log to a socket.

15 years agoKeep those files in CVS too.
Werner Koch [Tue, 9 Dec 2003 09:28:27 +0000 (09:28 +0000)]
Keep those files in CVS too.

15 years agoAdded missing files
Werner Koch [Tue, 9 Dec 2003 09:23:54 +0000 (09:23 +0000)]
Added missing files

15 years agoReadded accidential removed files
Werner Koch [Tue, 9 Dec 2003 09:21:06 +0000 (09:21 +0000)]
Readded accidential removed files

15 years agoThis commit was manufactured by cvs2svn to create branch
Repo Admin [Tue, 9 Dec 2003 09:21:06 +0000 (09:21 +0000)]
This commit was manufactured by cvs2svn to create branch
'GNUPG-1-9-BRANCH'.

15 years agoReadded file
Werner Koch [Tue, 9 Dec 2003 09:20:26 +0000 (09:20 +0000)]
Readded file

15 years ago(MSGID_BUGS_ADDRESS): New.
Werner Koch [Tue, 9 Dec 2003 09:13:29 +0000 (09:13 +0000)]
(MSGID_BUGS_ADDRESS): New.

15 years ago* configure.ac: Add a min_automake_version.
Werner Koch [Tue, 9 Dec 2003 09:12:43 +0000 (09:12 +0000)]
* configure.ac: Add a min_automake_version.
* README.CVS: New.
* autogen.sh: Revamped except for the --build-w32 hack.
* Makefile.am: Add README.CVS

15 years agoAdded files we better keep in the CVS
Werner Koch [Tue, 9 Dec 2003 09:07:09 +0000 (09:07 +0000)]
Added files we better keep in the CVS

15 years agoThis commit was manufactured by cvs2svn to create branch
Repo Admin [Tue, 9 Dec 2003 09:07:09 +0000 (09:07 +0000)]
This commit was manufactured by cvs2svn to create branch
'GNUPG-1-9-BRANCH'.

15 years agoAdded a very simple tool.
Werner Koch [Mon, 1 Dec 2003 10:54:59 +0000 (10:54 +0000)]
Added a very simple tool.

15 years ago* gpgsm.c, gpgsm.h: New options --{enable,disable}-ocsp.
Werner Koch [Mon, 1 Dec 2003 10:54:30 +0000 (10:54 +0000)]
* gpgsm.c, gpgsm.h: New options --{enable,disable}-ocsp.
(gpgsm_init_default_ctrl): Set USE_OCSP to the default value.
* certchain.c (gpgsm_validate_chain): Handle USE_OCSP.
* call-dirmngr.c (gpgsm_dirmngr_isvalid): Add arg USE_OCSP and
proceed accordingly.

15 years ago* scdaemon.c, scdaemon.h: New options --allow-admin and --deny-admin.
Werner Koch [Mon, 1 Dec 2003 10:54:09 +0000 (10:54 +0000)]
* scdaemon.c, scdaemon.h: New options --allow-admin and --deny-admin.
* app-openpgp.c (verify_chv3): Check it here.

15 years ago(Certificate Options): Add --{enable,disable}-ocsp.
Werner Koch [Mon, 1 Dec 2003 10:53:40 +0000 (10:53 +0000)]
(Certificate Options): Add --{enable,disable}-ocsp.

15 years ago* sexp-parse.h (snext): Don't use atoi_1 and digitp macros, so
Werner Koch [Mon, 1 Dec 2003 10:53:26 +0000 (10:53 +0000)]
* sexp-parse.h (snext): Don't use atoi_1 and digitp macros, so
that this file is useful by other applications too.

15 years ago* verify.c (gpgsm_verify): Fixed for changes API of gcry_md_info.
Werner Koch [Tue, 18 Nov 2003 17:29:51 +0000 (17:29 +0000)]
* verify.c (gpgsm_verify): Fixed for changes API of gcry_md_info.

* certchain.c (unknown_criticals): Fixed an error code test.

15 years ago*** empty log message ***
Werner Koch [Mon, 17 Nov 2003 12:56:43 +0000 (12:56 +0000)]
*** empty log message ***

15 years agoPreparing for 1.9.2 release. V1-9-2
Werner Koch [Mon, 17 Nov 2003 12:20:11 +0000 (12:20 +0000)]
Preparing for 1.9.2 release.

15 years ago2003-11-16 Moritz Schulte <mo@g10code.com>
Moritz Schulte [Sun, 16 Nov 2003 15:29:07 +0000 (15:29 +0000)]
2003-11-16  Moritz Schulte  <mo@g10code.com>

* signal.c: Removed unused file.

15 years agoRemoved.
Werner Koch [Fri, 14 Nov 2003 11:36:04 +0000 (11:36 +0000)]
Removed.

15 years ago(vasprintf): Also fixed the prototype.
Werner Koch [Thu, 13 Nov 2003 19:15:38 +0000 (19:15 +0000)]
(vasprintf): Also fixed the prototype.

15 years ago(vasprintf): ARGS should not be a pointer. Fixed
Werner Koch [Thu, 13 Nov 2003 07:37:18 +0000 (07:37 +0000)]
(vasprintf): ARGS should not be a pointer.  Fixed
segv on Solaris.  Reported by Andrew J. Schorr.

15 years agoMainly changes to adjust for the changed KSBA API.
Werner Koch [Wed, 12 Nov 2003 15:17:44 +0000 (15:17 +0000)]
Mainly changes to adjust for the changed KSBA API.

15 years ago2003-11-10 Moritz Schulte <mo@g10code.com>
Moritz Schulte [Mon, 10 Nov 2003 10:42:43 +0000 (10:42 +0000)]
2003-11-10  Moritz Schulte  <mo@g10code.com>

* Makefile.am (INCLUDES): Added: @LIBGCRYPT_CFLAGS@.

15 years agoThe Changelog was not yet ready, so again:
Werner Koch [Fri, 31 Oct 2003 12:14:14 +0000 (12:14 +0000)]
The Changelog was not yet ready, so again:

* certchain.c (gpgsm_validate_chain): Changed to use ksba_isotime_t.
* verify.c (strtimestamp_r, gpgsm_verify): Ditto.
* sign.c (gpgsm_sign): Ditto.
* keylist.c (print_time, list_cert_std, list_cert_colon): Ditto.
* certdump.c (gpgsm_print_time, gpgsm_dump_time, gpgsm_dump_cert):
Ditto.

15 years ago* verify.c (strtimestamp_r, gpgsm_verify):
Werner Koch [Fri, 31 Oct 2003 12:12:47 +0000 (12:12 +0000)]
* verify.c (strtimestamp_r, gpgsm_verify):

* sign.c (gpgsm_sign):

* keylist.c (print_time, list_cert_std, list_cert_colon):

* certdump.c (gpgsm_print_time, gpgsm_dump_time, gpgsm_dump_cert):

* certchain.c (gpgsm_validate_chain): Changed to use ksba_isotime_t.

15 years ago* apdu.c (close_ct_reader, close_pcsc_reader): Implemented.
Werner Koch [Fri, 31 Oct 2003 12:12:36 +0000 (12:12 +0000)]
* apdu.c (close_ct_reader, close_pcsc_reader): Implemented.
(get_ccid_error_string): New.  Not very useful messages, though.

15 years agonew command
Werner Koch [Fri, 31 Oct 2003 12:12:17 +0000 (12:12 +0000)]
new command

15 years ago* util.h (gnupg_isotime_t): New.
Werner Koch [Fri, 31 Oct 2003 12:11:57 +0000 (12:11 +0000)]
* util.h (gnupg_isotime_t): New.
(gnupg_copy_time): New.

* gettime.c (gnupg_get_isotime): New.

15 years ago* command.c (cmd_get_confirmation): New command.
Werner Koch [Fri, 31 Oct 2003 12:11:48 +0000 (12:11 +0000)]
* command.c (cmd_get_confirmation): New command.

15 years ago(NEED_KSBA_VERSION): Set to 0.9.0 due the changed
Werner Koch [Fri, 31 Oct 2003 12:11:33 +0000 (12:11 +0000)]
(NEED_KSBA_VERSION): Set to 0.9.0 due the changed
time interface.

16 years ago(read_parameters): Fixed faulty of !spacep().
Werner Koch [Sat, 25 Oct 2003 14:23:11 +0000 (14:23 +0000)]
(read_parameters): Fixed faulty of !spacep().

16 years ago* command.c (cmd_genkey, cmd_passwd): Fixed faulty use of
Werner Koch [Sat, 25 Oct 2003 14:22:42 +0000 (14:22 +0000)]
* command.c (cmd_genkey, cmd_passwd): Fixed faulty use of
!spacep().

* apdu.c (apdu_open_reader): Hacks for PC/SC under Windows.

16 years ago(learn_status_cb, scd_genkey_cb): Fixed faulty use
Werner Koch [Sat, 25 Oct 2003 14:22:08 +0000 (14:22 +0000)]
(learn_status_cb, scd_genkey_cb): Fixed faulty use
of !spacep().

16 years ago* command.c (cmd_checkpin): New.
Werner Koch [Tue, 21 Oct 2003 17:12:50 +0000 (17:12 +0000)]
* command.c (cmd_checkpin): New.
(register_commands): Add command CHECKPIN.
* app.c (app_check_pin): New.
* app-openpgp.c (check_against_given_fingerprint): New. Factored
out that code elsewhere.
(do_check_pin): New.

16 years ago* card-util.c (card_edit): New command "passwd". Add logic to
Werner Koch [Tue, 21 Oct 2003 17:12:21 +0000 (17:12 +0000)]
* card-util.c (card_edit): New command "passwd".  Add logic to
check the PIN in advance.
(card_status): Add new args to return the serial number.  Changed
all callers.
* call-agent.c (agent_scd_checkpin): New.

16 years ago(PRINTABLE_OS_NAME): Remove special case for The
Werner Koch [Tue, 21 Oct 2003 17:11:32 +0000 (17:11 +0000)]
(PRINTABLE_OS_NAME): Remove special case for The
Hurd; Robert Millan reported that the uname test is now
sufficient.

16 years ago* ccid-driver.c (ccid_transceive): Add T=1 chaining for sending.
Werner Koch [Thu, 9 Oct 2003 15:18:08 +0000 (15:18 +0000)]
* ccid-driver.c (ccid_transceive): Add T=1 chaining for sending.

16 years ago* call-agent.c (agent_scd_getattr): Don't clear the passed info
Werner Koch [Wed, 8 Oct 2003 10:46:58 +0000 (10:46 +0000)]
* call-agent.c (agent_scd_getattr): Don't clear the passed info
structure, so that it can indeed be updated.

* card-util.c (fpr_is_zero): New.
(generate_card_keys): New.
(card_edit): New command "generate".
* keygen.c (generate_keypair): New arg CARD_SERIALNO, removed call
to check_smartcard.
(check_smartcard,show_smartcard): Removed.
(show_sha1_fpr,fpr_is_zero): Removed.

* app-openpgp.c (do_getattr): Support SERIALNO and AID.

16 years agoFixes to make inclusion of card raleted source files into 1.3 easier.
Werner Koch [Thu, 2 Oct 2003 10:27:34 +0000 (10:27 +0000)]
Fixes to make inclusion of card raleted source files into 1.3 easier.

16 years ago* command.c (cmd_getattr): New command GETATTR.
Werner Koch [Tue, 30 Sep 2003 17:35:05 +0000 (17:35 +0000)]
* command.c (cmd_getattr): New command GETATTR.
* app.c (app_setattr): New.
(do_getattr): New.
(do_learn_status): Reimplemented in terms of do_getattr.

* app-openpgp.c (do_change_pin): Make sure CVH1 and CHV2 are
always synced.
(verify_chv2, verify_chv3): New. Factored out common code.
(do_setattr, do_sign, do_auth, do_decipher): Change the names of
the prompts to match that we have only 2 different PINs.
(app_select_openpgp): Check whether the card enforced CHV1.
(convert_sig_counter_value): New. Factor out code from
get_sig_counter.

16 years ago* keylist.c (print_card_serialno): New.
Werner Koch [Tue, 30 Sep 2003 17:34:38 +0000 (17:34 +0000)]
* keylist.c (print_card_serialno): New.
(list_keyblock_print): Use it here.

* card-util.c (toggle_forcesig): New.
(card_edit): New command "forcesig".

* card-util.c (print_name, print_isoname): Use 0 and not LF fro
the max_n arg of tty_print_utf8_string2.

* call-agent.c (agent_scd_getattr): New.
(learn_status_cb): Release values before assignment so that it can
be used by getattr to update the structure.

* card-util.c (change_pin): Simplified.  We now have only a PIN
and an Admin PIN.

16 years agoMinor fixes
Werner Koch [Tue, 30 Sep 2003 13:22:33 +0000 (13:22 +0000)]
Minor fixes

16 years ago*** empty log message ***
Werner Koch [Tue, 30 Sep 2003 13:16:33 +0000 (13:16 +0000)]
*** empty log message ***

16 years ago2003-09-26 Timo Schulz <twoaday@freakmail.de>
Timo Schulz [Fri, 26 Sep 2003 11:03:08 +0000 (11:03 +0000)]
2003-09-26  Timo Schulz  <twoaday@freakmail.de>

        * card_status (card_status): Do not use fputs since the fp
        parameter can be NULL. This fixes a segv.

16 years ago(print_isoname,card_status): Handle opt.with_colons.
Werner Koch [Wed, 24 Sep 2003 08:31:16 +0000 (08:31 +0000)]
(print_isoname,card_status): Handle opt.with_colons.
(print_sha1_fpr_colon): New.

16 years agoMerged most of David Shaw's changes in 1.3 since 2003-06-03.
Werner Koch [Tue, 23 Sep 2003 17:48:33 +0000 (17:48 +0000)]
Merged most of David Shaw's changes in 1.3 since 2003-06-03.

16 years ago2003-09-22 Timo Schulz <twoaday@freakmail.de>
Timo Schulz [Mon, 22 Sep 2003 20:43:25 +0000 (20:43 +0000)]
2003-09-22  Timo Schulz  <twoaday@freakmail.de>

        * card-util.c (card_status): Free pk in case of an error
        and return if the card is no OpenPGP card.

16 years ago(parse_ccid_descriptor): New.
Werner Koch [Fri, 19 Sep 2003 11:17:11 +0000 (11:17 +0000)]
(parse_ccid_descriptor): New.
(read_device_info): New.
(ccid_open_reader): Check that the device has all required features.

16 years ago* g10.c: New command --card-edit.
Werner Koch [Thu, 18 Sep 2003 15:51:18 +0000 (15:51 +0000)]
* g10.c: New command --card-edit.
* card-util.c (card_status): Use tty_fprintf for all output.
(print_sha1_fpr, print_isoname): Ditto.
(get_one_name,change_name, change_url, change_login,change_lang)
(change_sex): New; taken from keygen.c.
* keygen.c (smartcard_get_one_name, smartcard_change_name)
(smartcard_change_url, smartcard_change_login_data)
(smartcard_change_lang, smartcard_change_sex): Removed.
(check_smartcard): Removed most menu items.

16 years ago(tty_fprintf): New.
Werner Koch [Thu, 18 Sep 2003 15:51:01 +0000 (15:51 +0000)]
(tty_fprintf): New.
(tty_print_string, tty_print_utf8_string2)
(tty_print_utf8_string): Made P argument const byte*.

16 years agoPost release version number update
Werner Koch [Sat, 6 Sep 2003 13:44:17 +0000 (13:44 +0000)]
Post release version number update

16 years ago* configure.ac: Required newer versions of some libraries. V1-9-1
Werner Koch [Sat, 6 Sep 2003 13:23:48 +0000 (13:23 +0000)]
* configure.ac: Required newer versions of some libraries.

* misc.c (openpgp_pk_algo_usage): Allow AUTH where SIGN is allowed.

* keygen.c (ask_passphrase): No need to allocated S2K in secure
memory.

* scdaemon.c (main): --pcsc-driver again defaults to pcsclite.
David Corcoran was so kind to remove the GPL incompatible
advertisng clause from pcsclite.
* apdu.c (apdu_open_reader): Actually make pcsc-driver option work.

16 years ago* ccid-driver.c: More work, data can now actually be retrieved.
Werner Koch [Fri, 5 Sep 2003 07:40:41 +0000 (07:40 +0000)]
* ccid-driver.c: More work, data can now actually be retrieved.
* ccid-driver.c, ccid-driver.h: Alternativley allow use under BSD
conditions.

16 years ago* keygen.c (do_add_key_flags, parse_parameter_usage)
Werner Koch [Fri, 5 Sep 2003 07:40:18 +0000 (07:40 +0000)]
* keygen.c (do_add_key_flags, parse_parameter_usage)
(do_generate_keypair): Add support the proposed AUTH key flag.
* getkey.c (fixup_uidnode, merge_selfsigs_main)
(merge_selfsigs_subkey, premerge_public_with_secret): Ditto.
* keylist.c (print_capabilities): Ditto.

16 years ago* configure.ac (HAVE_LIBUSB): Added a simple test for libusb.
Werner Koch [Tue, 2 Sep 2003 19:06:34 +0000 (19:06 +0000)]
* configure.ac (HAVE_LIBUSB): Added a simple test for libusb.

* scdaemon.c, scdaemon.h: New option --pcsc-ccid.
* ccid-driver.c, ccid-driver.h: New but far from being useful.
* Makefile.am: Add above.
* apdu.c: Add support for that ccid driver.