aboutsummaryrefslogtreecommitdiffstats
path: root/sm/gpgsm.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* * import.c (gpgsm_import): Print an STATUS_IMPORTED.Werner Koch2002-06-261-1/+1
| | | | | * gpgsm.c: --debug-no-path-validation does not take an argument.
* * certdump.c (print_dn_part): Always print a leading slash,Werner Koch2002-06-251-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.
* * gpgsm.c, gpgsm.h: New option --debug-no-path-validation.Werner Koch2002-06-241-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.
* * certlist.c (gpgsm_add_to_certlist): Fixed locating of aWerner Koch2002-06-201-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.
* * call-agent.c (learn_cb): Use log_info instead of log_error onWerner Koch2002-06-191-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.
* * gpgsm.c (main): New option --log-file.Werner Koch2002-06-131-0/+11
|
* * gpgsm.c (open_fwrite): New.Werner Koch2002-06-121-10/+56
| | | | | (main): Allow --output for --verify.
* * sign.c (hash_and_copy_data): New.Werner Koch2002-06-121-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.
* * gpgsm.c (main): New command --list-sigsNEWPG-0-3-7Werner Koch2002-06-041-3/+6
| | | | | | | * keylist.c (list_cert_std): New. Use it whenever colon mode is not used. (list_cert_chain): New.
* * gpgsm.c (main): Don't print the "go ahead" message for anWerner Koch2002-05-311-1/+1
| | | | | invalid command.
* * keylist.c (list_internal_keys): Renamed from gpgsm_list_keys.Werner Koch2002-05-211-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.
* sm/Werner Koch2002-05-141-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-25 Marcus Brinkmann <[email protected]>Marcus Brinkmann2002-04-241-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-24 Marcus Brinkmann <[email protected]>Marcus Brinkmann2002-04-241-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.
* released 0.3.5NEWPG-0-3-5Werner Koch2002-04-151-1/+1
|
* * gpgsm.c (main): Check ksba version.Werner Koch2002-04-151-2/+7
|
* * export.c: New.Werner Koch2002-03-211-4/+9
| | | | | | * gpgsm.c: Add command --export. * server.c (cmd_export): New.
* Doc fixes, moved some fizmes to TODO, fixed minor bugs.Werner Koch2002-03-181-2/+2
|
* * verify.c (gpgsm_verify): Detect certs-only message.Werner Koch2002-03-121-3/+9
|
* sm/Werner Koch2002-03-061-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.
* * gpgsm.c, gpgsm.h: Add local_user.Werner Koch2002-03-051-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.
* Minor fixes; about to release 0.3.1NEWPG-0-3-1Werner Koch2002-03-041-1/+1
|
* * server.c (option_handler): Allow to use -2 for "send all certsWerner Koch2002-02-251-1/+1
| | | | | | | except the root cert". * sign.c (add_certificate_list): Implement it here. * certpath.c (gpgsm_is_root_cert): New.
* * certpath.c (check_cert_policy): New.Werner Koch2002-02-191-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.
* * certlist.c (gpgsm_add_to_certlist): Check that the specifiedWerner Koch2002-02-071-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.
* * call-agent.c (gpgsm_agent_havekey): New.Werner Koch2002-01-291-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.
* * gpgsm.c (main): Disable core dumps.Werner Koch2002-01-251-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.
* * gpgsm.c: Add option --enable-crl-checks.Werner Koch2002-01-211-15/+20
| | | | | | * call-agent.c (start_agent): Implemented socket based access. * call-dirmngr.c (start_dirmngr): Ditto.
* * server.c (gpgsm_server): Use assuan_deinit_server and setupWerner Koch2002-01-191-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
* * call-dirmngr.c: New.Werner Koch2002-01-111-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.
* * verify.c (gpgsm_verify): Implemented non-detached signatureWerner Koch2001-12-201-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.
* * gpgsm.c (main): Renamed the default key database to "keyring.kbx".Werner Koch2001-12-151-1/+1
|
* * gpgsm.c (main): New option --debug-wait n, so that it isWerner Koch2001-12-141-9/+20
| | | | | possible to attach gdb when used in server mode.
* * keylist.c (list_cert_colon): Print alternative names of subjectWerner Koch2001-12-141-0/+6
| | | | | and a few other values.
* Made decryption work in --server mode, allow output of plain base64,Werner Koch2001-12-131-31/+46
| | | | | | allow --armor and --base64 arguments for INPUT and OUTPUT, new global option --base64, cleaned up the help page.
* * gpgsm.c (main): New options --assume-{armor,base64,binary}.Werner Koch2001-12-121-1/+40
| | | | | * base64.c (base64_reader_cb): Fixed non-autodetection mode.
* Implemented encryption in server mode.Werner Koch2001-12-111-13/+29
| | | | | | Allow to specify a recipient on the commandline There is still a default hardwired recipient if none has been set.
* Started with decryption stuffWerner Koch2001-12-051-12/+13
|
* --armor does now produce PEM format.Werner Koch2001-11-271-0/+4
|
* * base64.c: New. Changed all other functions to use this insteadWerner Koch2001-11-271-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.
* * gpgsm.c: New option --agent-programWerner Koch2001-11-261-1/+4
| | | | | | * call-agent.c (start_agent): Allow to override the default path to the agent.
* Just a Backup. We can now write out a basic signature which in turnWerner Koch2001-11-231-0/+10
| | | | | exhibits a bug in --verify.
* Added basic code for keylisting.Werner Koch2001-11-191-4/+3
| | | | | New Assuan command LISTKEYS.
* Write status output, make verify work in server mode.Werner Koch2001-11-191-6/+19
|
* gpgsm --verify does now work like gpg including theWerner Koch2001-11-191-3/+68
| | | | | --enable-special-filenames option.
* Base code for gpgsm --verify does workWerner Koch2001-11-161-0/+4
|
* We have reached a state where we are able to import certs andWerner Koch2001-11-131-7/+8
| | | | | check the certification path.
* we are now able to check self-signed certificatesWerner Koch2001-11-101-0/+1
|
* Implemented server main loop and started with import command.Werner Koch2001-11-071-1/+1
|
* gpgsm does now build and a dummy server can be started.Werner Koch2001-11-061-2/+1030
|