aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Minor fixes; about to release 0.3.1NEWPG-0-3-1Werner Koch2002-03-042-1/+4
|
* * pksign.c (agent_pksign): Detect whether a Smartcard is to beWerner Koch2002-03-048-80/+198
| | | | | | | | | | | | 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.
* Added more code fragments.Werner Koch2002-03-043-29/+220
|
* Changes needed to support smartcards. Well, only _support_. There isWerner Koch2002-02-2823-106/+810
| | | | | no real code yet.
* * assuan-client.c (assuan_transact): Add 2 more arguments toWerner Koch2002-02-286-4/+242
| | | | | | | support status lines. Passing NULL yields the old behaviour. * assuan-handler.c (process_request): Flush data lines send without using the data fp.
* * server.c (option_handler): Allow to use -2 for "send all certsWerner Koch2002-02-259-6/+69
| | | | | | | except the root cert". * sign.c (add_certificate_list): Implement it here. * certpath.c (gpgsm_is_root_cert): New.
* * keybox-search.c (blob_cmp_mail): Use case-insensitive compareWerner Koch2002-02-252-20/+65
| | | | | | | | | | | | | | 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.
* * certpath.c (check_cert_policy): New.Werner Koch2002-02-196-11/+280
| | | | | | | | (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.
* * findkey.c (unprotect): Show an error message for a bad passphrase.Werner Koch2002-02-182-1/+6
|
* * certpath.c (gpgsm_validate_path): Ask the agent to add theWerner Koch2002-02-184-15/+77
| | | | | | certificate into the trusted list. * call-agent.c (gpgsm_agent_marktrusted): New.
* Some experimental code - don't use it.Werner Koch2002-02-184-16/+315
|
* More error codesWerner Koch2002-02-183-0/+23
|
* A bunch of new features. Allow empty responses on an inquiry.Werner Koch2002-02-186-18/+62
|
* * command.c (cmd_marktrusted): Implemented.Werner Koch2002-02-185-10/+161
| | | | | | | | * trustlist.c (agent_marktrusted): New. (open_list): Add APPEND arg. * query.c (agent_get_confirmation): New.
* * fopencookie.c: Dummy function.Werner Koch2002-02-127-4/+288
| | | | | | | | * vasprintf.c: New. Taken from binutils-2.9.1 and dropped all non ANSI-C stuff. Merged with asprintf version. * no-pth.c: New.
* * assuan-buffer.c (writen,readline) [USE_GNU_PT]: Use pth_read/write.Werner Koch2002-02-123-1/+23
| | | | | * assuan-socket-server.c (accept_connection) [USE_GNU_PTH]: Ditto.
* Set version numbers add a commentNEWPG-0-3-0Werner Koch2002-02-071-0/+1
|
* * certlist.c (gpgsm_add_to_certlist): Check that the specifiedWerner Koch2002-02-0710-21/+79
| | | | | | | | | | | | | | | | 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.
* * decrypt.c (gpgsm_decrypt): Bail out after an decryption error.Werner Koch2002-02-063-45/+45
| | | | | | | | * 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.
* * cache.c (housekeeping): Fixed linking in the remove case.Werner Koch2002-02-064-5/+20
|
* 2002-02-01 Marcus Brinkmann <[email protected]>Marcus Brinkmann2002-02-012-0/+5
| | | | | * Makefile.am (MOSTLYCLEANFILES): New variable.
* 2002-02-01 Marcus Brinkmann <[email protected]>Marcus Brinkmann2002-02-012-4/+5
| | | | | * sign.c (gpgsm_sign): Do not release certificate twice.
* * cache.c: Add a few debug outputs.Werner Koch2002-02-016-16/+118
| | | | | | | | | | | | | | * 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.
* Added a few more error codesWerner Koch2002-01-311-0/+3
|
* * genkey.c (store_key): Protect the key.Werner Koch2002-01-3110-64/+1409
| | | | | | | (agent_genkey): Ask for the passphrase. * findkey.c (unprotect): Actually unprotect the key. * query.c (agent_askpin): Add an optional start_err_text.
* A few test certificatesWerner Koch2002-01-2910-0/+162
|
* * call-agent.c (gpgsm_agent_havekey): New.Werner Koch2002-01-296-14/+89
| | | | | | | | | | | * 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.
* * findkey.c (agent_key_available): New.Werner Koch2002-01-294-3/+60
| | | | | | * command.c (cmd_havekey): New. (register_commands): And register new command.
* * certreqgen.c (create_request): Store the email address in the req.Werner Koch2002-01-282-1/+31
| | | | | | | | 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.
* Updated copyright noticesWerner Koch2002-01-261-3/+3
|
* * scdaemon.c scdaemon.h, command.c: New. Based on the code fromWerner Koch2002-01-265-0/+925
| | | | | the gpg-agent.
* * gpgsm.c (main): Disable core dumps.Werner Koch2002-01-257-10/+235
| | | | | | | | | | | | | * 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.
* * assuan-socket-connect.c (LOGERRORX): and removed typo.Werner Koch2002-01-232-1/+5
|
* * mkdtemp.c: Copied from gnupg-1.0.6c and changed to use libgcrypt.Werner Koch2002-01-233-0/+104
| | | | | | * configure.ac (mkdtemp): See whether we have to provide a replacement.
* * certpath.c (gpgsm_validate_path): Print the DN of a missing issuer.Werner Koch2002-01-235-15/+75
| | | | | | * certdump.c (gpgsm_dump_string): New. (print_dn): Replaced by above.
* 2002-01-22 Marcus Brinkmann <[email protected]>Marcus Brinkmann2002-01-222-1/+5
| | | | | * assuan-socket-connect.c (LOGERRORX): Reverse arguments to fputs.
* * certpath.c (unknown_criticals): New.Werner Koch2002-01-224-18/+239
| | | | | | | (allowed_ca): New. (gpgsm_validate_path): Check validity, CA attribute, path length and unknown critical extensions.
* * gpgsm.c: Add option --enable-crl-checks.Werner Koch2002-01-214-45/+105
| | | | | | * call-agent.c (start_agent): Implemented socket based access. * call-dirmngr.c (start_dirmngr): Ditto.
* * keybox-search.c (keybox_search): Allow KEYDB_SEARCH_MODE_FPR20.Werner Koch2002-01-212-0/+5
|
* * assuan-connect.c: Move all except assuan_get_pid to...Werner Koch2002-01-219-222/+546
| | | | | | | | | | | | | | | | | * 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.
* * server.c (option_handler): New.Werner Koch2002-01-202-0/+17
| | | | | (gpgsm_server): Register it with assuan.
* * assuan.h: Added Invalid Option error code.Werner Koch2002-01-204-2/+105
| | | | | | | | | * 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.
* * command.c (cmd_get_passphrase): Remove the plus signs.Werner Koch2002-01-205-9/+35
| | | | | | * query.c (start_pinentry): Send no-grab option to pinentry * gpg-agent.c (main): Move variable grab as no_grab to agent.h.
* * gpg-agent.c (main): Disable core dumps.Werner Koch2002-01-196-16/+314
| | | | | | | | | | | | | | * 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.
* * sysutils.c: New. This is the misc.c file from gnupg 1.0.6 withWerner Koch2002-01-194-1/+244
| | | | | | the OpenPGP stuff removed. * sysutils.h: New.
* * server.c (gpgsm_server): Use assuan_deinit_server and setupWerner Koch2002-01-194-2/+16
| | | | | | | | | 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
* More error codes and mappingsWerner Koch2002-01-192-0/+4
|
* * assuan-buffer.c (_assuan_read_line): Add output logging.Werner Koch2002-01-1911-19/+311
| | | | | | | | | | | | | | | | | | | (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.
* * gpg-agent.c: Removed unused cruft and implement the socketWerner Koch2002-01-195-653/+223
| | | | | | | | | 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.
* * import.c (gpgsm_import): Just do a basic cert check beforeWerner Koch2002-01-1511-80/+352
| | | | | | | | | | | | | | | | 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.