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

17 years ago*** empty log message ***
Werner Koch [Thu, 10 Jan 2002 19:46:20 +0000 (19:46 +0000)]
*** empty log message ***

17 years ago* assuan-handler.c (assuan_set_okay_line): New.
Werner Koch [Thu, 10 Jan 2002 19:46:04 +0000 (19:46 +0000)]
* assuan-handler.c (assuan_set_okay_line): New.
(process_request): And use it here.

17 years ago* genkey.c: Store the secret part and return the public part.
Werner Koch [Thu, 10 Jan 2002 19:45:32 +0000 (19:45 +0000)]
* genkey.c: Store the secret part and return the public part.

17 years ago* verify.c (gpgsm_verify): Implemented non-detached signature
Werner Koch [Thu, 20 Dec 2001 16:51:06 +0000 (16:51 +0000)]
* verify.c (gpgsm_verify): Implemented non-detached signature
verification.  Add OUT_FP arg, initialize a writer and changed all
callers.
* server.c (cmd_verify): Pass an out_fp if one has been set.

17 years ago* keybox-blob.c (_keybox_create_x509_blob): Skip the leading
Werner Koch [Thu, 20 Dec 2001 16:50:13 +0000 (16:50 +0000)]
* keybox-blob.c (_keybox_create_x509_blob): Skip the leading
parenthesis of the serial number's S-exp.
(_keybox_create_x509_blob): And fixed length calculation.
(create_blob_header): Don't add an offset when writing the serial.

17 years ago* maperror.c (map_gcry_err): Add some mappings.
Werner Koch [Thu, 20 Dec 2001 16:49:48 +0000 (16:49 +0000)]
* maperror.c (map_gcry_err): Add some mappings.

17 years ago* base64.c (base64_reader_cb): Try to detect an S/MIME body part.
Werner Koch [Thu, 20 Dec 2001 13:25:08 +0000 (13:25 +0000)]
* base64.c (base64_reader_cb): Try to detect an S/MIME body part.

* certdump.c (print_sexp): Renamed to gpgsm_dump_serial, made
global.
(print_time): Renamed to gpgsm_dump_time, made global.
(gpgsm_dump_serial): Take a real S-Expression as argument and
print the first item.
* keylist.c (list_cert_colon): Ditto.
* keydb.c (keydb_search_issuer_sn): Ditto.
* decrypt.c (print_integer_sexp): Removed and made callers
use gpgsm_dump_serial.
* verify.c (print_time): Removed, made callers use gpgsm_dump_time.

17 years ago* keybox-blob.c (_keybox_create_x509_blob): Skip the leading
Werner Koch [Thu, 20 Dec 2001 13:24:49 +0000 (13:24 +0000)]
* keybox-blob.c (_keybox_create_x509_blob): Skip the leading
parenthesis of the serial number's S-exp.

17 years ago* keyformat.txt: New.
Werner Koch [Wed, 19 Dec 2001 15:03:35 +0000 (15:03 +0000)]
* keyformat.txt: New.

17 years agoThe last log had an incorrect changelog entry, and was missing a fix.
Marcus Brinkmann [Wed, 19 Dec 2001 00:20:55 +0000 (00:20 +0000)]
The last log had an incorrect changelog entry, and was missing a fix.

2001-12-14  Marcus Brinkmann  <marcus@g10code.de>

* assuan-connect.c (assuan_pipe_connect): New argument
FD_CHILD_LIST.  Don't close those fds.
* assuan.h: Likewise for prototype.

17 years agoassuan/
Marcus Brinkmann [Wed, 19 Dec 2001 00:18:11 +0000 (00:18 +0000)]
assuan/
2001-12-14  Marcus Brinkmann  <marcus@g10code.de>

* assuan-buffer.c (_assuan_read_line): New variable ATTICLEN, use
it to save the length of the attic line.
Rediddle the code a bit to make it more clear what happens.

agent/
2001-12-19  Marcus Brinkmann  <marcus@g10code.de>

* query.c (start_pinentry): Add new argument to assuan_pipe_connect.

sm/
2001-12-19  Marcus Brinkmann  <marcus@g10code.de>

* call-agent.c (start_agent): Add new argument to assuan_pipe_connect.

17 years ago* Makefile.am (AM_CPPFLAGS): Add flags for libksba NEWPG-0-0-0
Werner Koch [Tue, 18 Dec 2001 19:35:12 +0000 (19:35 +0000)]
* Makefile.am (AM_CPPFLAGS): Add flags for libksba
* Makefile.am (AM_CPPFLAGS): Include flags for gcrypt and ksba
* Makefile.am: Use LIBGCRYPT macros

17 years agoChanges to be used with the new libksba interface.
Werner Koch [Tue, 18 Dec 2001 17:37:48 +0000 (17:37 +0000)]
Changes to be used with the new libksba interface.
libgcrypt-1.1.5 is required (cvs or tarball)

17 years ago* gpgsm.c (main): Renamed the default key database to "keyring.kbx".
Werner Koch [Sat, 15 Dec 2001 16:19:24 +0000 (16:19 +0000)]
* gpgsm.c (main): Renamed the default key database to "keyring.kbx".

17 years ago* keybox-search.c (blob_cmp_name): There is no terminating 0 stored
Werner Koch [Sat, 15 Dec 2001 16:19:08 +0000 (16:19 +0000)]
* keybox-search.c (blob_cmp_name): There is no terminating 0 stored
for the uid; fixed length compare.

17 years ago* decrypt.c (gpgsm_decrypt): Write STATUS_DECRYPTION_*.
Werner Koch [Sat, 15 Dec 2001 12:36:39 +0000 (12:36 +0000)]
* decrypt.c (gpgsm_decrypt): Write STATUS_DECRYPTION_*.
* sign.c (gpgsm_sign): Write a STATUS_SIG_CREATED.

17 years ago* keylist.c (list_cert_colon): Kludge to show an email address
Werner Koch [Fri, 14 Dec 2001 20:48:26 +0000 (20:48 +0000)]
* keylist.c (list_cert_colon): Kludge to show an email address
encoded in the subject's DN.

17 years ago* keybox-blob.c (x509_email_kludge): New.
Werner Koch [Fri, 14 Dec 2001 20:48:07 +0000 (20:48 +0000)]
* keybox-blob.c (x509_email_kludge): New.
(_keybox_create_x509_blob): Insert an extra email address if the
subject's DN has an email part.
* keybox-defs.h: Added the xtoi_2 and digitp macros.

17 years ago* verify.c (gpgsm_verify): Add hash debug helpers
Werner Koch [Fri, 14 Dec 2001 19:36:33 +0000 (19:36 +0000)]
* verify.c (gpgsm_verify): Add hash debug helpers
* sign.c (gpgsm_sign): Ditto.

* base64.c (base64_reader_cb): Reset the linelen when we need to
skip the line and adjusted test; I somehow forgot about DeMorgan.

* server.c (cmd_encrypt,cmd_decrypt,cmd_sign,cmd_verify)
(cmd_import): Close the FDs on success.
(close_message_fd): New.
(input_notify): Setting autodetect_encoding to 0 after initializing
it to 0 is pretty pointless.  Easy to fix.

17 years ago* assuan-listen.c (assuan_close_input_fd): New.
Werner Koch [Fri, 14 Dec 2001 19:35:56 +0000 (19:35 +0000)]
* assuan-listen.c (assuan_close_input_fd): New.
(assuan_close_output_fd): New.
* assuan-handler.c (std_handler_reset): Always close them after a
reset command.
(std_handler_bye): Likewise.

17 years ago* gpgsm.c (main): New option --debug-wait n, so that it is
Werner Koch [Fri, 14 Dec 2001 15:40:20 +0000 (15:40 +0000)]
* gpgsm.c (main): New option --debug-wait n, so that it is
possible to attach gdb when used in server mode.

17 years ago* gpg-agent.c (main): New option --batch. New option --debug-wait
Werner Koch [Fri, 14 Dec 2001 15:39:44 +0000 (15:39 +0000)]
* gpg-agent.c (main): New option --batch.  New option --debug-wait
n, so that it is possible to attach gdb when used in server mode.
* query.c (agent_askpin): Don't ask in batch mode.

17 years ago* util.h (digitp, hexdigitp): New ctype like macros.
Werner Koch [Fri, 14 Dec 2001 13:43:42 +0000 (13:43 +0000)]
* util.h (digitp, hexdigitp): New ctype like macros.
(atoi_1,atoi_2,atoi_4,xtoi_1,xtoi_2): New.

* command.c: Removed the conversion macros as they are now in
../common/util.h.

17 years ago* util.h (digitp, hexdigitp): New ctype like macros.
Werner Koch [Fri, 14 Dec 2001 13:37:08 +0000 (13:37 +0000)]
* util.h (digitp, hexdigitp): New ctype like macros.
(atoi_1,atoi_2,atoi_4,xtoi_1,xtoi_2): New.

17 years ago* sign.c (get_default_signer): Use keydb_classify_name here.
Werner Koch [Fri, 14 Dec 2001 13:35:34 +0000 (13:35 +0000)]
* sign.c (get_default_signer): Use keydb_classify_name here.

17 years agoFixed test key
Werner Koch [Fri, 14 Dec 2001 13:09:51 +0000 (13:09 +0000)]
Fixed test key

17 years agoFixed test key
Werner Koch [Fri, 14 Dec 2001 13:09:51 +0000 (13:09 +0000)]
Fixed test key

17 years ago* keylist.c (list_cert_colon): Print alternative names of subject
Werner Koch [Fri, 14 Dec 2001 09:20:42 +0000 (09:20 +0000)]
* keylist.c (list_cert_colon): Print alternative names of subject
and a few other values.

17 years agoChange history, doubleplusgood.
Marcus Brinkmann [Fri, 14 Dec 2001 01:28:22 +0000 (01:28 +0000)]
Change history, doubleplusgood.

17 years ago2001-12-14 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Fri, 14 Dec 2001 01:23:07 +0000 (01:23 +0000)]
2001-12-14  Marcus Brinkmann  <marcus@g10code.de>

* assuan-buffer.c (_assuan_read_line): New variable ATTICLEN, use
it to save the number of bytes left over after the complete line.
Rediddle the code a bit to make it more clear what happens.

17 years agoassuan/
Marcus Brinkmann [Thu, 13 Dec 2001 23:20:02 +0000 (23:20 +0000)]
assuan/
2001-12-14  Marcus Brinkmann  <marcus@g10code.de>

* assuan-defs.h (LINELENGTH): Define as ASSUAN_LINELENGTH.
assuan.h: Define ASSUAN_LINELENGTH.

agent/
2001-12-14  Marcus Brinkmann  <marcus@g10code.de>

* query.c (LINELENGTH): Removed.
(agent_askpin): Use ASSUAN_LINELENGTH, not LINELENGTH.

sm/
2001-12-14  Marcus Brinkmann  <marcus@g10code.de>

* call-agent.c (LINELENGTH): Removed.
(gpgsm_agent_pksign): Use ASSUAN_LINELENGTH, not LINELENGTH.
(gpgsm_agent_pkdecrypt): Likewise.

17 years ago2001-12-13 Marcus Brinkmann <marcus@gnu.org>
Marcus Brinkmann [Thu, 13 Dec 2001 20:16:21 +0000 (20:16 +0000)]
2001-12-13  Marcus Brinkmann  <marcus@gnu.org>

* assuan-buffer.c (assuan_read_line): Fix order of execution to
get correct return values.

2001-12-13  Werner Koch  <wk@gnupg.org>

* assuan-handler.c (assuan_get_active_fds): Fixed silly bug,
pretty obvious that nobody ever tested this function.

17 years ago* keylist.c (list_cert_colon): Print alternative names of subject
Werner Koch [Thu, 13 Dec 2001 13:11:40 +0000 (13:11 +0000)]
* keylist.c (list_cert_colon): Print alternative names of subject
and a few other values.

17 years ago* keybox-search.c (blob_cmp_name): Kludge to allow searching for
Werner Koch [Thu, 13 Dec 2001 13:10:58 +0000 (13:10 +0000)]
* keybox-search.c (blob_cmp_name): Kludge to allow searching for
more than one name.
(has_subject_or_alt): New.
(blob_cmp_mail): New.
(has_mail): New.
(keybox_search): Implemented exact search and exact mail search.

* kbx/keybox-blob.c (_keybox_create_x509_blob): Insert alternate
names.

17 years agoNow that the DN encoding works more correct, we have to update the
Werner Koch [Thu, 13 Dec 2001 09:33:36 +0000 (09:33 +0000)]
Now that the DN encoding works more correct, we have to update the
default key.

17 years agoMade decryption work in --server mode, allow output of plain base64,
Werner Koch [Thu, 13 Dec 2001 09:09:11 +0000 (09:09 +0000)]
Made decryption work in --server mode, allow output of plain base64,
allow --armor and --base64 arguments for INPUT and OUTPUT, new global
option --base64, cleaned up the help page.

17 years agoFixed INPUT/OUTPUT command
Werner Koch [Thu, 13 Dec 2001 09:07:28 +0000 (09:07 +0000)]
Fixed INPUT/OUTPUT command

17 years ago* gpgsm.c (main): New options --assume-{armor,base64,binary}.
Werner Koch [Wed, 12 Dec 2001 11:57:28 +0000 (11:57 +0000)]
* gpgsm.c (main): New options --assume-{armor,base64,binary}.
* base64.c (base64_reader_cb): Fixed non-autodetection mode.