aboutsummaryrefslogtreecommitdiffstats
path: root/sm/gpgsm.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2002-09-03* gpgsm.c (main): Disable the internal libgcrypt locking.Werner Koch1-1/+5
2002-08-20* gpgsm.c (main): Use the log file only in server mode.Werner Koch1-9/+2
* import.c (print_imported_summary): New. (check_and_store): Update the counters, take new argument. (import_one): Factored out core of gpgsm_import. (gpgsm_import): Print counters. (gpgsm_import_files): New. * gpgsm.c (main): Use the new function for import.
2002-08-16* call-agent.c (learn_cb): Special treatment when the issuerWerner Koch1-6/+5
certificate is missing.
2002-08-10Minor changes for gettextNEWPG-0-3-10Werner Koch1-1/+1
2002-08-09* gpgsm.c (emergency_cleanup): New.Werner Koch1-96/+47
(main): Initialize the signal handler. * sign.c (gpgsm_sign): Reset the hash context for subsequent signers and release it at the end.
2002-07-22* delete.c: New.Werner Koch1-8/+5
* gpgsm.c: Made --delete-key work. * server.c (cmd_delkeys): New. (register_commands): New command DELKEYS. * decrypt.c (gpgsm_decrypt): Print a convenience note when RC2 is used and a STATUS_ERROR with the algorithm oid.
2002-07-03* server.c (gpgsm_status2): Insert a blank between all optionalWerner Koch1-8/+8
arguments when using assuan. * server.c (cmd_recipient): No more need for extra blank in constants. * import.c (print_imported_status): Ditto. * gpgsm.c (main): Ditto.
2002-07-02* call-dirmngr.c (gpgsm_dirmngr_isvalid): print status of dirmngrWerner Koch1-1/+8
call in very verbose mode. * gpgsm.c (main): Use the same error codes for STATUS_INV_RECP as with the server mode.
2002-06-29* gpgsm.c: New option --auto-issuer-key-retrieve.Werner Koch1-2/+8
* certpath.c (find_up): Try to retrieve an issuer key from an external source and from the ephemeral key DB. (find_up_store_certs_cb): New. * keydb.c (keydb_set_ephemeral): Does now return the old state. Call the backend only when required. * call-dirmngr.c (start_dirmngr): Use GNUPG_DEFAULT_DIRMNGR. (lookup_status_cb): Issue status only when CTRL is not NULL. (gpgsm_dirmngr_lookup): Document that CTRL is optional. * call-agent.c (start_agent): Use GNUPG_DEFAULT_AGENT.
2002-06-27* gpgsm.c (main): Use GNUPG_DEFAULT_HOMEDIR constant.Werner Koch1-3/+1
* call-agent.c (start_agent): Create and pass the list of FD to keep in the child to assuan. * call-dirmngr.c (start_dirmngr): Ditto. * scdaemon.c (main): Use GNUPG_DEFAULT_HOMEDIR constant. * assuan-pipe-connect.c (assuan_pipe_connect): No special handling for the log_fd and stderr. Connect stderr to /dev/null if it should not be retained.
2002-06-26* import.c (gpgsm_import): Print an STATUS_IMPORTED.Werner Koch1-1/+1
* gpgsm.c: --debug-no-path-validation does not take an argument.
2002-06-25* certdump.c (print_dn_part): Always print a leading slash,Werner Koch1-1/+0
removed NEED_DELIM arg and changed caller. * export.c (gpgsm_export): Print LFs to FP and not stdout. (print_short_info): Ditto. Make use of gpgsm_print_name. * server.c (cmd_export): Use output-fd instead of data lines; this was actually the specified way.
2002-06-24* gpgsm.c, gpgsm.h: New option --debug-no-path-validation.Werner Koch1-0/+4
* certpath.c (gpgsm_validate_path): Use it here instead of the debug flag hack. * certpath.c (check_cert_policy): Return No_Policy_Match if the policy file could not be opened.
2002-06-20* certlist.c (gpgsm_add_to_certlist): Fixed locating of aWerner Koch1-2/+2
certificate with the required key usage. * gpgsm.c (main): Fixed a segv when using --outfile without an argument. * keylist.c (print_capabilities): Also check for non-repudiation and data encipherment. * certlist.c (cert_usage_p): Test for signing and encryption was swapped. Add a case for certification usage, handle non-repudiation and data encipherment. (gpgsm_cert_use_cert_p): New. (gpgsm_add_to_certlist): Added a CTRL argument and changed all callers to pass it. * certpath.c (gpgsm_validate_path): Use it here to print a status message. Added a CTRL argument and changed all callers to pass it. * decrypt.c (gpgsm_decrypt): Print a status message for wrong key usage. * verify.c (gpgsm_verify): Ditto. * keydb.c (classify_user_id): Allow a colon delimited fingerprint.
2002-06-19* call-agent.c (learn_cb): Use log_info instead of log_error onWerner Koch1-1/+11
successful import. * keydb.c (keydb_set_ephemeral): New. (keydb_store_cert): New are ephemeral, changed all callers. * keylist.c (list_external_cb): Store cert as ephemeral. * export.c (gpgsm_export): Kludge to export epehmeral certificates. * gpgsm.c (main): New command --list-external-keys.
2002-06-13* gpgsm.c (main): New option --log-file.Werner Koch1-0/+11
2002-06-12* gpgsm.c (open_fwrite): New.Werner Koch1-10/+56
(main): Allow --output for --verify.
2002-06-12* sign.c (hash_and_copy_data): New.Werner Koch1-5/+6
(gpgsm_sign): Implemented normal (non-detached) signatures. * gpgsm.c (main): Ditto. * certpath.c (gpgsm_validate_path): Special error handling for no policy match. * configure.ac (NEED_LIBKSBA_VERSION): We need 0.4.3 now.
2002-06-04* gpgsm.c (main): New command --list-sigsNEWPG-0-3-7Werner Koch1-3/+6
* keylist.c (list_cert_std): New. Use it whenever colon mode is not used. (list_cert_chain): New.
2002-05-31* gpgsm.c (main): Don't print the "go ahead" message for anWerner Koch1-1/+1
invalid command.
2002-05-21* keylist.c (list_internal_keys): Renamed from gpgsm_list_keys.Werner Koch1-2/+2
(list_external_keys): New. (gpgsm_list_keys): Dispatcher for above. * call-dirmngr.c (lookup_cb,pattern_from_strlist) (gpgsm_dirmngr_lookup): New. * server.c (option_handler): Handle new option --list-mode. (do_listkeys): Handle options and actually use the mode argument. (get_status_string): New code TRUNCATED.
2002-05-14sm/Werner Koch1-3/+15
* gpgsm.c: New option --faked-system-time * sign.c (gpgsm_sign): And use it here. * certpath.c (gpgsm_validate_path): Ditto. common/ * gettime.c: New. agent/ * cache.c (housekeeping, agent_put_cache): Use our time() wrapper. / * doc/: New * configure.ac, Makefile.am: Added doc/
2002-04-242002-04-25 Marcus Brinkmann <[email protected]>Marcus Brinkmann1-5/+5
* 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.
2002-04-242002-04-24 Marcus Brinkmann <[email protected]>Marcus Brinkmann1-0/+17
* configure.ac: Check for locale.h. agent/ 2002-04-24 Marcus Brinkmann <[email protected]> * 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 <[email protected]> * 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.
2002-04-15 released 0.3.5NEWPG-0-3-5Werner Koch1-1/+1
2002-04-15* gpgsm.c (main): Check ksba version.Werner Koch1-2/+7
2002-03-21* export.c: New.Werner Koch1-4/+9
* gpgsm.c: Add command --export. * server.c (cmd_export): New.
2002-03-18Doc fixes, moved some fizmes to TODO, fixed minor bugs.Werner Koch1-2/+2
2002-03-12* verify.c (gpgsm_verify): Detect certs-only message.Werner Koch1-3/+9
2002-03-06sm/Werner Koch1-1/+27
* 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.
2002-03-05* gpgsm.c, gpgsm.h: Add local_user.Werner Koch1-0/+1
* 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.
2002-03-04Minor fixes; about to release 0.3.1NEWPG-0-3-1Werner Koch1-1/+1
2002-02-25* server.c (option_handler): Allow to use -2 for "send all certsWerner Koch1-1/+1
except the root cert". * sign.c (add_certificate_list): Implement it here. * certpath.c (gpgsm_is_root_cert): New.
2002-02-19* certpath.c (check_cert_policy): New.Werner Koch1-4/+27
(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.
2002-02-07* certlist.c (gpgsm_add_to_certlist): Check that the specifiedWerner Koch1-3/+3
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.
2002-01-29* call-agent.c (gpgsm_agent_havekey): New.Werner Koch1-4/+5
* 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.
2002-01-25* gpgsm.c (main): Disable core dumps.Werner Koch1-3/+25
* 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.
2002-01-21* gpgsm.c: Add option --enable-crl-checks.Werner Koch1-15/+20
* call-agent.c (start_agent): Implemented socket based access. * call-dirmngr.c (start_dirmngr): Ditto.
2002-01-19* server.c (gpgsm_server): Use assuan_deinit_server and setupWerner Koch1-1/+1
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
2002-01-11* call-dirmngr.c: New.Werner Koch1-2/+12
* 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.
2001-12-20* verify.c (gpgsm_verify): Implemented non-detached signatureWerner Koch1-3/+3
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.
2001-12-15* gpgsm.c (main): Renamed the default key database to "keyring.kbx".Werner Koch1-1/+1
2001-12-14* gpgsm.c (main): New option --debug-wait n, so that it isWerner Koch1-9/+20
possible to attach gdb when used in server mode.
2001-12-14* keylist.c (list_cert_colon): Print alternative names of subjectWerner Koch1-0/+6
and a few other values.
2001-12-13Made decryption work in --server mode, allow output of plain base64,Werner Koch1-31/+46
allow --armor and --base64 arguments for INPUT and OUTPUT, new global option --base64, cleaned up the help page.
2001-12-12* gpgsm.c (main): New options --assume-{armor,base64,binary}.Werner Koch1-1/+40
* base64.c (base64_reader_cb): Fixed non-autodetection mode.
2001-12-11Implemented encryption in server mode.Werner Koch1-13/+29
Allow to specify a recipient on the commandline There is still a default hardwired recipient if none has been set.
2001-12-05Started with decryption stuffWerner Koch1-12/+13
2001-11-27--armor does now produce PEM format.Werner Koch1-0/+4
2001-11-27* base64.c: New. Changed all other functions to use this insteadWerner Koch1-1/+5
of direct creation of ksba_reader/writer. * gpgsm.c (main): Set ctrl.auto_encoding unless --no-armor is used. This way we can feed PEM encoded stuff to --verify.