Werner Koch
a5fc1f40c3
Added new options
2004-02-17 15:04:49 +00:00
Werner Koch
ef5546a48b
Added STATUS_IMPORT_OK.
2004-02-17 15:04:28 +00:00
Werner Koch
01486117e8
* 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.
2004-02-13 17:06:50 +00:00
Werner Koch
cbff0b05e5
* 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*.
2004-02-13 17:06:34 +00:00
Werner Koch
e98b7a9b21
Require libksba 0.9.4 and libgcrypt 1.1.92.
2004-02-13 12:40:54 +00:00
Werner Koch
1a159fd8e3
* 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.
2004-02-13 12:40:23 +00:00
Werner Koch
8b49254b97
Removed debugging cruft.
2004-02-13 12:39:49 +00:00
Werner Koch
b01d989925
(main): New options --no-fail-on-exist, --homedir.
...
(store_private_key): Use them here.
2004-02-13 12:37:54 +00:00
Werner Koch
8197b20e24
Removed cruft from debugging.
2004-02-12 10:05:47 +00:00
Werner Koch
7080c6553f
* watchgnupg.c (main): Implement option "--".
...
(print_version): New.
* Makefile.am: Include cmacros.am for common flags.
2004-02-12 10:02:22 +00:00
Werner Koch
270576cf17
More stuff for testing
2004-02-12 09:30:37 +00:00
Werner Koch
76b1445390
* Makefile.am (AM_CPPFLAGS): Pass directory constants via -D; this
...
will allow to override directory names at make time.
2004-02-12 09:29:42 +00:00
Werner Koch
82b26c5965
Include cmacros.am for common flags.
2004-02-12 09:29:14 +00:00
Werner Koch
70631cf0df
Replaced INCLUDES by AM_CPPFLAGS.
2004-02-12 09:29:00 +00:00
Werner Koch
e99475d59e
* gpgv.c: Removed g10defs.h.
...
* Makefile.am: Include cmacros.am for common flags.
2004-02-12 09:28:52 +00:00
Werner Koch
584784ba6d
minor cleanups
2004-02-12 09:28:32 +00:00
Werner Koch
0bcd5e329b
New
2004-02-12 09:27:58 +00:00
Werner Koch
f5c3d2712b
Include cmacros.am for common flags.
...
(libexec_PROGRAMS): Put gpg-protect-tool there.
2004-02-12 09:27:36 +00:00
Werner Koch
53d1156682
* 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.
2004-02-12 09:25:30 +00:00
Werner Koch
f0d63ef75d
New. Based on code from ../sm/base64.c.
2004-02-10 19:27:54 +00:00
Werner Koch
a1dd1cc223
* 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.
2004-02-10 19:26:55 +00:00
Werner Koch
cfb33014ae
Fixed a build bug (straw letter in sm/import.c) and updated the documentation.
2004-02-04 19:13:16 +00:00
Werner Koch
6788ede345
Try to use getent, so that it also works for NIS
...
setups.
2004-02-03 16:38:07 +00:00
Werner Koch
336e415f5b
* import.c (check_and_store): Import certificates even with
...
missing issuer's cert. Fixed an "depending on the verbose
setting" bug.
2004-02-03 16:27:51 +00:00
Werner Koch
31de2267ec
* 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.
2004-02-03 16:24:37 +00:00
Werner Koch
5bda9a8e74
* 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.
2004-02-02 17:09:35 +00:00
Marcus Brinkmann
bdae155c7b
Fix copyright line.
2004-02-01 15:30:50 +00:00
Marcus Brinkmann
cff3f76862
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.
2004-01-31 13:58:27 +00:00
Werner Koch
a9eaa96f83
*** empty log message ***
2004-01-30 17:57:16 +00:00
Marcus Brinkmann
0f7a19f3b0
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.
2004-01-30 12:37:09 +00:00
Marcus Brinkmann
74a20c31e3
2004-01-30 Marcus Brinkmann <marcus@g10code.de>
...
* gpgconf-comp.c (gc_error): New function, use it instead of
error() throughout.
2004-01-30 12:15:53 +00:00
Marcus Brinkmann
0329746dce
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.
2004-01-30 10:38:07 +00:00
Werner Koch
82097af523
Post release updated
2004-01-30 10:13:51 +00:00
Werner Koch
6fe6139289
(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.
V1-9-4
2004-01-30 09:47:28 +00:00
Werner Koch
fec4dc4c99
* 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.
2004-01-30 09:12:36 +00:00
Werner Koch
a7840b9643
New.
2004-01-29 20:20:10 +00:00
Werner Koch
94c03c860e
(reset_notify): Release the application context and
...
close the reader.
2004-01-29 20:17:51 +00:00
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