Werner Koch
b11106ebf0
* 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.
2004-01-29 20:17:27 +00:00
Werner Koch
e4587ba874
* README: Updated.
2004-01-29 20:16:59 +00:00
Werner Koch
b001af10ac
(parse_dn_part): Map common OIDs to human readable
...
labels. Make sure that a value won't get truncated if it includes
a Nul.
2004-01-29 07:41:55 +00:00
Marcus Brinkmann
42ab09e821
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.
2004-01-28 23:58:18 +00:00
Werner Koch
d6fe40e8d5
add a few notes.
2004-01-28 16:22:25 +00:00
Werner Koch
97958029f6
(iso7816_manage_security_env): New.
...
(iso7816_decipher): Add PADIND argument.
** app-nks.c is now functional **
2004-01-28 16:21:57 +00:00
Werner Koch
a0cb56fe7f
(gpgsm_validate_chain): Changed the message printed
...
for an untrusted root certificate.
2004-01-28 16:20:17 +00:00
Werner Koch
fa5d1513a2
(agent_marktrusted): Check whether the trustlist is
...
writable.
2004-01-28 16:19:46 +00:00
Werner Koch
4453659c9a
(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.
2004-01-27 19:10:38 +00:00
Werner Koch
eb24d8b751
Some minor bug fixes, new test utilities and started support for other
...
smartcard applications.
2004-01-27 16:40:42 +00:00
Werner Koch
203e1cc272
* 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.
2004-01-24 20:50:49 +00:00
Moritz Schulte
af41684669
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().
2004-01-19 01:48:17 +00:00
Moritz Schulte
7739d95804
2004-01-19 Moritz Schulte <mo@g10code.com>
...
* keygen.c (do_generate_keypair): Print member fname, instead of
newfname, again.
2004-01-19 01:07:46 +00:00
Moritz Schulte
36cbfed6fc
2004-01-18 Moritz Schulte <mo@g10code.com>
...
* keygen.c (do_generate_keypair): Print member fname, instead of
newfname.
2004-01-18 22:48:49 +00:00
Werner Koch
e5b228fc67
(main): Need to use FD_ISSET for the client
...
descriptors too; aiiih. Set the listening socket to non-blocking.
2004-01-16 22:38:58 +00:00
Werner Koch
4dc78204ae
* sign.c (gpgsm_sign): Print an error message on all failures.
...
* decrypt.c (gpgsm_decrypt): Ditto.
2004-01-16 17:42:36 +00:00
Werner Koch
30948e5ecd
comment typo fixes.
2004-01-16 17:42:08 +00:00
Werner Koch
52f5553759
* argparse.c (strusage): Changed default copyright year to 2004.
2004-01-16 17:40:50 +00:00
Werner Koch
671f696e55
* 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.
2004-01-16 17:39:58 +00:00
Werner Koch
1e53ff3608
Use GPG_ERROR_CFLAGS
2004-01-10 11:50:48 +00:00
Werner Koch
f332166e51
* Manifest: New.
...
* gpgconf.c, gpgconf.h, gpgconf-list.c: New. A skeleton for now.
* no-libgcrypt.c: New.
* Makefile.am: Add above.
2004-01-05 09:28:27 +00:00
Werner Koch
4ad92cecbc
Post release version number bump.
2003-12-23 11:27:13 +00:00
Werner Koch
c25ac44a7e
* README-alpha: Removed.
...
* configure.ac, Makefile.am: Add the tests and tools directories.
2003-12-23 11:05:19 +00:00
Werner Koch
e11529f290
* Makefile.am: New.
...
* watchgnupg.c: New.
2003-12-23 11:05:00 +00:00
Werner Koch
28db0fabb4
* 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.
2003-12-23 10:25:24 +00:00
Werner Koch
6103066b17
(map_assuan_err): Prepared for a new error code.
2003-12-23 10:24:49 +00:00
Werner Koch
02f20a7506
Enable the tests directory.
2003-12-23 10:23:16 +00:00
Werner Koch
711c4853d6
* 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.
2003-12-17 17:12:14 +00:00
Werner Koch
aac9cea6da
Requires now libassuan 0.6.2.
...
(CFLAGS): Add --Wformat-noliteral in gcc mode.
2003-12-17 13:03:59 +00:00
Werner Koch
a1bd2fa625
(CFLAGS): Add --Wformat-noliteral in gcc mode.
2003-12-17 12:28:54 +00:00
Werner Koch
cbd57643a7
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.
2003-12-17 12:28:24 +00:00
Werner Koch
c4182e3e24
Replaced deprecated type names.
...
* card-p15.c (p15_enum_keypairs): Replaced KRC by RC.
* card-dinsig.c (dinsig_enum_keypairs): Ditto.
2003-12-17 12:27:51 +00:00
Werner Koch
e4cea09fe1
Replaced deprecated type names
2003-12-17 12:27:21 +00:00
Werner Koch
23fa5c9792
* 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.
2003-12-17 12:26:56 +00:00
Werner Koch
8ab35a7d26
* 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.
2003-12-17 12:26:38 +00:00
Werner Koch
911daed647
(initialize): Replaced use of non-literal forma
...
args. Suggested by Florian Weimer.
2003-12-17 12:25:09 +00:00
Werner Koch
1114bc6430
Updated.
2003-12-16 16:32:02 +00:00
Werner Koch
d27fc828d7
print the time.
2003-12-16 16:31:42 +00:00
Werner Koch
a41d45af62
* 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.
2003-12-16 16:31:16 +00:00
Werner Koch
f438224dae
(main): Set the prefixes for assuan logging.
2003-12-16 16:30:55 +00:00
Werner Koch
bba0f77422
(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.
2003-12-16 16:30:48 +00:00
Werner Koch
082e84c273
Fixed blatant allocation bug.
2003-12-16 14:20:45 +00:00
Werner Koch
9f8cb453b7
Add simple tool to watch the log output of gnupg and related modules.
2003-12-16 11:32:52 +00:00
Werner Koch
d0fbe288b2
* 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.
2003-12-16 11:31:46 +00:00
Werner Koch
f18d0e557c
* 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.
2003-12-16 11:30:57 +00:00
Werner Koch
d06cba6984
* protect.c (do_encryption): Use gcry_create_nonce instad of the
...
obsolete WEAK_RANDOM.
2003-12-16 11:30:38 +00:00
Werner Koch
dba63c0a0c
* 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.
2003-12-16 11:30:16 +00:00
Werner Koch
56530d2c39
Keep those files in CVS too.
2003-12-09 09:28:27 +00:00
Werner Koch
f6dce349ae
Added missing files
2003-12-09 09:23:54 +00:00
Werner Koch
5b2dc2d67e
Readded accidential removed files
2003-12-09 09:21:06 +00:00