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

17 years agoMore error codes
Werner Koch [Mon, 18 Feb 2002 20:46:09 +0000 (20:46 +0000)]
More error codes

17 years agoA bunch of new features. Allow empty responses on an inquiry.
Werner Koch [Mon, 18 Feb 2002 20:45:52 +0000 (20:45 +0000)]
A bunch of new features.  Allow empty responses on an inquiry.

17 years ago* command.c (cmd_marktrusted): Implemented.
Werner Koch [Mon, 18 Feb 2002 20:44:48 +0000 (20:44 +0000)]
* command.c (cmd_marktrusted): Implemented.
* trustlist.c (agent_marktrusted): New.
(open_list): Add APPEND arg.

* query.c (agent_get_confirmation): New.

17 years ago* fopencookie.c: Dummy function.
Werner Koch [Tue, 12 Feb 2002 20:42:25 +0000 (20:42 +0000)]
* fopencookie.c: Dummy function.

* vasprintf.c: New.  Taken from binutils-2.9.1 and dropped all non
ANSI-C stuff.  Merged with asprintf version.

* no-pth.c: New.

17 years ago* assuan-buffer.c (writen,readline) [USE_GNU_PT]: Use pth_read/write.
Werner Koch [Tue, 12 Feb 2002 20:41:34 +0000 (20:41 +0000)]
* assuan-buffer.c (writen,readline) [USE_GNU_PT]: Use pth_read/write.
* assuan-socket-server.c (accept_connection) [USE_GNU_PTH]: Ditto.

17 years agoSet version numbers add a comment NEWPG-0-3-0
Werner Koch [Thu, 7 Feb 2002 20:41:00 +0000 (20:41 +0000)]
Set version numbers add a comment

17 years ago* certlist.c (gpgsm_add_to_certlist): Check that the specified
Werner Koch [Thu, 7 Feb 2002 18:43:22 +0000 (18:43 +0000)]
* certlist.c (gpgsm_add_to_certlist): Check that the specified
name identifies a certificate unambiguously.
(gpgsm_find_cert): Ditto.
* server.c (cmd_listkeys): Check that the data stream is available.
(cmd_listsecretkeys): Ditto.
(has_option): New.
(cmd_sign): Fix ambiguousity in option recognition.
* gpgsm.c (main): Enable --logger-fd.
* encrypt.c (gpgsm_encrypt): Increased buffer size for better
performance.
* call-agent.c (gpgsm_agent_pksign): Check the S-Exp received from
the agent.
* keylist.c (list_cert_colon): Filter out control characters.

17 years ago* decrypt.c (gpgsm_decrypt): Bail out after an decryption error.
Werner Koch [Wed, 6 Feb 2002 14:52:03 +0000 (14:52 +0000)]
* decrypt.c (gpgsm_decrypt): Bail out after an decryption error.

* server.c (reset_notify): Close input and output FDs.
(cmd_encrypt,cmd_decrypt,cmd_verify,cmd_sign.cmd_import)
(cmd_genkey): Close the FDs and release the recipient list even in
the error case.

17 years ago* cache.c (housekeeping): Fixed linking in the remove case.
Werner Koch [Wed, 6 Feb 2002 14:51:35 +0000 (14:51 +0000)]
* cache.c (housekeeping): Fixed linking in the remove case.

17 years ago2002-02-01 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Fri, 1 Feb 2002 19:50:01 +0000 (19:50 +0000)]
2002-02-01  Marcus Brinkmann  <marcus@g10code.de>

* Makefile.am (MOSTLYCLEANFILES): New variable.

17 years ago2002-02-01 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Fri, 1 Feb 2002 18:08:32 +0000 (18:08 +0000)]
2002-02-01  Marcus Brinkmann  <marcus@g10code.de>

* sign.c (gpgsm_sign): Do not release certificate twice.

17 years ago* cache.c: Add a few debug outputs.
Werner Koch [Fri, 1 Feb 2002 11:39:06 +0000 (11:39 +0000)]
* cache.c: Add a few debug outputs.

* protect.c (agent_private_key_type): New.
* agent.h: Add PRIVATE_KEY_ enums.
* findkey.c (agent_key_from_file): Use it to decide whether we
have to unprotect a key.
(unprotect): Cache the passphrase.

* findkey.c (agent_key_from_file,agent_key_available): The key
files do now require a ".key" suffix to make a script's life
easier.
* genkey.c (store_key): Ditto.

17 years agoAdded a few more error codes
Werner Koch [Thu, 31 Jan 2002 17:46:29 +0000 (17:46 +0000)]
Added a few more error codes

17 years ago* genkey.c (store_key): Protect the key.
Werner Koch [Thu, 31 Jan 2002 16:38:45 +0000 (16:38 +0000)]
* genkey.c (store_key): Protect the key.
(agent_genkey): Ask for the passphrase.
* findkey.c (unprotect): Actually unprotect the key.
* query.c (agent_askpin): Add an optional start_err_text.

17 years agoA few test certificates
Werner Koch [Tue, 29 Jan 2002 15:46:55 +0000 (15:46 +0000)]
A few test certificates

17 years ago* call-agent.c (gpgsm_agent_havekey): New.
Werner Koch [Tue, 29 Jan 2002 10:05:24 +0000 (10:05 +0000)]
* call-agent.c (gpgsm_agent_havekey): New.
* keylist.c (list_cert_colon): New arg HAVE_SECRET, print "crs"
when we know that the secret key is available.
(gpgsm_list_keys): New arg MODE, check whether a secret key is
available.  Changed all callers.
* gpgsm.c (main): New command --list-secret-keys.
* server.c (cmd_listsecretkeys): New.
(cmd_listkeys): Return secret keys with "crs" record.

17 years ago* findkey.c (agent_key_available): New.
Werner Koch [Tue, 29 Jan 2002 10:05:05 +0000 (10:05 +0000)]
* findkey.c (agent_key_available): New.
* command.c (cmd_havekey): New.
(register_commands): And register new command.

17 years ago* certreqgen.c (create_request): Store the email address in the req.
Werner Koch [Mon, 28 Jan 2002 14:23:18 +0000 (14:23 +0000)]
* certreqgen.c (create_request): Store the email address in the req.
Note, that I have not yet achieved to generate a cert with the
subjectAltName using OpenSSL.  It seems that openssl requires the
email address to be part of the subject DN (subjectAltName=email:copy)
but this is something we don't want to do.

17 years agoUpdated copyright notices
Werner Koch [Sat, 26 Jan 2002 13:41:48 +0000 (13:41 +0000)]
Updated copyright notices

17 years ago* scdaemon.c scdaemon.h, command.c: New. Based on the code from
Werner Koch [Sat, 26 Jan 2002 13:38:38 +0000 (13:38 +0000)]
* scdaemon.c scdaemon.h, command.c: New. Based on the code from
the gpg-agent.

17 years ago* gpgsm.c (main): Disable core dumps.
Werner Koch [Fri, 25 Jan 2002 16:41:13 +0000 (16:41 +0000)]
* gpgsm.c (main): Disable core dumps.
* sign.c (add_certificate_list): New.
(gpgsm_sign): Add the certificates to the CMS object.
* certpath.c (gpgsm_walk_cert_chain): New.
* gpgsm.h (server_control_s): Add included_certs.
* gpgsm.c: Add option --include-certs.
(gpgsm_init_default_ctrl): New.
(main): Call it.
* server.c (gpgsm_server): Ditto.
(option_handler): Support --include-certs.

17 years ago* assuan-socket-connect.c (LOGERRORX): and removed typo.
Werner Koch [Wed, 23 Jan 2002 16:00:48 +0000 (16:00 +0000)]
* assuan-socket-connect.c (LOGERRORX): and removed typo.

17 years ago* mkdtemp.c: Copied from gnupg-1.0.6c and changed to use libgcrypt.
Werner Koch [Wed, 23 Jan 2002 15:49:58 +0000 (15:49 +0000)]
* mkdtemp.c: Copied from gnupg-1.0.6c and changed to use libgcrypt.

* configure.ac (mkdtemp): See whether we have to provide a
replacement.

17 years ago* certpath.c (gpgsm_validate_path): Print the DN of a missing issuer.
Werner Koch [Wed, 23 Jan 2002 13:40:38 +0000 (13:40 +0000)]
* certpath.c (gpgsm_validate_path): Print the DN of a missing issuer.
* certdump.c (gpgsm_dump_string): New.
(print_dn): Replaced by above.

17 years ago2002-01-22 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Tue, 22 Jan 2002 15:44:24 +0000 (15:44 +0000)]
2002-01-22  Marcus Brinkmann  <marcus@g10code.de>

* assuan-socket-connect.c (LOGERRORX): Reverse arguments to fputs.

17 years ago* certpath.c (unknown_criticals): New.
Werner Koch [Tue, 22 Jan 2002 13:32:48 +0000 (13:32 +0000)]
* certpath.c (unknown_criticals): New.
(allowed_ca): New.
(gpgsm_validate_path): Check validity, CA attribute, path length
and unknown critical extensions.

17 years ago* gpgsm.c: Add option --enable-crl-checks.
Werner Koch [Mon, 21 Jan 2002 12:03:38 +0000 (12:03 +0000)]
* gpgsm.c: Add option --enable-crl-checks.

* call-agent.c (start_agent): Implemented socket based access.
* call-dirmngr.c (start_dirmngr): Ditto.

17 years ago* keybox-search.c (keybox_search): Allow KEYDB_SEARCH_MODE_FPR20.
Werner Koch [Mon, 21 Jan 2002 12:03:25 +0000 (12:03 +0000)]
* keybox-search.c (keybox_search): Allow KEYDB_SEARCH_MODE_FPR20.

17 years ago* assuan-connect.c: Move all except assuan_get_pid to...
Werner Koch [Mon, 21 Jan 2002 12:03:14 +0000 (12:03 +0000)]
* assuan-connect.c: Move all except assuan_get_pid to...
* assuan-pipe-connect.c: this.
(assuan_pipe_disconnect): Removed.
(do_finish, do_deinit): New
(assuan_pipe_connect): and set them into the context.
* assuan-socket-connect.c: New.

* assuan-util.c (_assuan_log_sanitized_string): New.

* assuan-pipe-server.c (assuan_init_pipe_server): Factored most
code out to ...
(_assuan_new_context): new func.
(_assuan_release_context): New
* assuan-connect.c (assuan_pipe_connect): Use the new functions.

17 years ago* server.c (option_handler): New.
Werner Koch [Sun, 20 Jan 2002 16:49:46 +0000 (16:49 +0000)]
* server.c (option_handler): New.
(gpgsm_server): Register it with assuan.

17 years ago* assuan.h: Added Invalid Option error code.
Werner Koch [Sun, 20 Jan 2002 16:49:34 +0000 (16:49 +0000)]
* assuan.h: Added Invalid Option error code.

* assuan-handler.c (std_handler_option): New.
(std_cmd_tbl): Add OPTION as standard command.
(assuan_register_option_handler): New.
(dispatch_command): Use case insensitive matching as a fallback.
(my_strcasecmp): New.

17 years ago* command.c (cmd_get_passphrase): Remove the plus signs.
Werner Koch [Sun, 20 Jan 2002 16:49:10 +0000 (16:49 +0000)]
* command.c (cmd_get_passphrase): Remove the plus signs.
* query.c (start_pinentry): Send no-grab option to pinentry
* gpg-agent.c (main): Move variable grab as no_grab to agent.h.

17 years ago* gpg-agent.c (main): Disable core dumps.
Werner Koch [Sat, 19 Jan 2002 20:59:19 +0000 (20:59 +0000)]
* gpg-agent.c (main): Disable core dumps.

* cache.c: New.
* command.c (cmd_get_passphrase): Use the cache.
(cmd_clear_passphrase): Ditto.

* gpg-agent.c:  Removed unused cruft and implement the socket
based server.
(my_strusage): Take bug report address from configure.ac.
* command.c (start_command_handler): Add an argument to start as
regular server.
(start_command_handler): Enable Assuan logging.

17 years ago* sysutils.c: New. This is the misc.c file from gnupg 1.0.6 with
Werner Koch [Sat, 19 Jan 2002 20:58:41 +0000 (20:58 +0000)]
* sysutils.c: New.  This is the misc.c file from gnupg 1.0.6 with
the OpenPGP stuff removed.
* sysutils.h: New.

17 years ago* server.c (gpgsm_server): Use assuan_deinit_server and setup
Werner Koch [Sat, 19 Jan 2002 18:21:14 +0000 (18:21 +0000)]
* server.c (gpgsm_server): Use assuan_deinit_server and setup
assuan logging if enabled.
* call-agent.c (inq_ciphertext_cb): Don't show the session key in
an Assuan log file.

* gpgsm.c (my_strusage): Take bugreport address from configure.ac

17 years agoMore error codes and mappings
Werner Koch [Sat, 19 Jan 2002 18:20:45 +0000 (18:20 +0000)]
More error codes and mappings

17 years ago* assuan-buffer.c (_assuan_read_line): Add output logging.
Werner Koch [Sat, 19 Jan 2002 18:20:15 +0000 (18:20 +0000)]
* assuan-buffer.c (_assuan_read_line): Add output logging.
(assuan_write_line): Ditto.
(_assuan_cookie_write_data): Ditto.
(_assuan_cookie_write_flush): Ditto.
* assuan-util.c (_assuan_log_print_buffer): New.
(assuan_set_log_stream): New.
(assuan_begin_confidential): New.
(assuan_end_confidential): New.

* assuan-defs.h: Add a few handler variables.
* assuan-pipe-server.c (assuan_deinit_pipe_server): Removed.
(deinit_pipe_server): New.
(assuan_deinit_server): New.  Changed all callers to use this.
* assuan-listen.c (assuan_accept): Use the accept handler.
* assuan-handler.c (process_request): Use the close Handler.
* assuan-socket-server.c: New.

17 years ago* gpg-agent.c: Removed unused cruft and implement the socket
Werner Koch [Sat, 19 Jan 2002 18:19:47 +0000 (18:19 +0000)]
* gpg-agent.c:  Removed unused cruft and implement the socket
based server.
(my_strusage): Take bug report address from configure.ac.
* command.c (start_command_handler): Add an argument to start as
regular server.
(start_command_handler): Enable Assuan logging.

17 years ago* import.c (gpgsm_import): Just do a basic cert check before
Werner Koch [Tue, 15 Jan 2002 13:02:47 +0000 (13:02 +0000)]
* import.c (gpgsm_import): Just do a basic cert check before
storing it.
* certpath.c (gpgsm_basic_cert_check): New.

* keydb.c (keydb_store_cert): New.
* import.c (store_cert): Removed and change all caller to use
the new function.
* verify.c (store_cert): Ditto.

* certlist.c (gpgsm_add_to_certlist): Validate the path

* certpath.c (gpgsm_validate_path): Check the trust list.
* call-agent.c (gpgsm_agent_istrusted): New.

17 years ago* keybox-search.c (blob_cmp_fpr): New.
Werner Koch [Tue, 15 Jan 2002 13:02:25 +0000 (13:02 +0000)]
* keybox-search.c (blob_cmp_fpr): New.
(has_fingerprint): Implemented;

17 years ago* maperror.c: Add mapping for Not_Trusted.
Werner Koch [Tue, 15 Jan 2002 13:02:13 +0000 (13:02 +0000)]
* maperror.c: Add mapping for Not_Trusted.

17 years ago* trustlist.c: New.
Werner Koch [Tue, 15 Jan 2002 13:01:52 +0000 (13:01 +0000)]
* trustlist.c: New.
* command.c (cmd_istrusted, cmd_listtrusted, cmd_marktrusted): New.

17 years ago* call-dirmngr.c (inq_certificate): Changed for new interface semantic.
Werner Koch [Mon, 14 Jan 2002 12:15:30 +0000 (12:15 +0000)]
* call-dirmngr.c (inq_certificate): Changed for new interface semantic.
* certlist.c (gpgsm_find_cert): New.

DirMngr should now work.  Remember that there is a --disable-crl-check
option in gpgsm to be used when there is a problem with the dirmngr
communication or you want to do faster tests.

17 years ago* assuan-client.c (_assuan_read_from_server): Skip spaces after
Werner Koch [Mon, 14 Jan 2002 12:13:18 +0000 (12:13 +0000)]
* assuan-client.c (_assuan_read_from_server): Skip spaces after
the keyword.

17 years ago* fingerprint.c (gpgsm_get_certid): Print the serialand not the
Werner Koch [Sun, 13 Jan 2002 10:43:21 +0000 (10:43 +0000)]
* fingerprint.c (gpgsm_get_certid): Print the serialand not the
hash after the dot.

17 years ago* call-dirmngr.c: New.
Werner Koch [Fri, 11 Jan 2002 17:07:51 +0000 (17:07 +0000)]
* call-dirmngr.c: New.
* certpath.c (gpgsm_validate_path): Check the CRL here.
* fingerprint.c (gpgsm_get_certid): New.
* gpgsm.c: New options --dirmngr-program and --disable-crl-checks.

17 years ago* maperror.c (map_assuan_err): Codes for CRL
Werner Koch [Fri, 11 Jan 2002 17:07:15 +0000 (17:07 +0000)]
* maperror.c (map_assuan_err): Codes for CRL

17 years agonew error codes
Werner Koch [Fri, 11 Jan 2002 17:07:05 +0000 (17:07 +0000)]
new error codes

17 years ago* base64.c (gpgsm_create_writer): Allow to set the object name
Werner Koch [Thu, 10 Jan 2002 19:47:20 +0000 (19:47 +0000)]
* base64.c (gpgsm_create_writer): Allow to set the object name
* server.c (cmd_genkey): New.
* certreqgen.c: New.  The parameter handling code has been taken
from gnupg/g10/keygen.c version 1.0.6.
* call-agent.c (gpgsm_agent_genkey): New.