aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Removed files for CVS reorganizationDavid Shaw2002-06-2917-2707/+0
|
* * maperror.c (map_to_assuan_status): Map more errorcodes to BadWerner Koch2002-06-282-0/+11
| | | | | Certificate.
* * server.c (cmd_recipient): Add more reason codes.Werner Koch2002-06-284-3/+17
|
* * protect-tool.c (export_p12_file): New.Werner Koch2002-06-284-15/+492
| | | | | | | (main): New command --p12-export. * minip12.c (create_final,p12_build,compute_tag_length): New. (store_tag_length): New.
* * gpgsm.c (main): Use GNUPG_DEFAULT_HOMEDIR constant.Werner Koch2002-06-278-24/+71
| | | | | | | | | | | | | * 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.
* * Makefile.am (pkglib_PROGRAMS): Put protect-tool there.Werner Koch2002-06-2713-41/+769
| | | | | | | | | | | | | | | | * findkey.c (agent_write_private_key,agent_key_from_file) (agent_key_available): Use GNUPG_PRIVATE_KEYS_DIR constant. * gpg-agent.c (main): Use GNUPG_DEFAULT_HOMEDIR constant. * protect-tool.c (store_private_key): New. (import_p12_file): Store the new file if requested. (main): New options --force and --store. * gpg-agent.c (main): Set a global flag when runing detached. * query.c (start_pinentry): Pass the list of FD to keep in the child when not running detached. * call-scd.c (start_scd): Ditto.
* * import.c (gpgsm_import): Print an STATUS_IMPORTED.Werner Koch2002-06-263-2/+15
| | | | | * gpgsm.c: --debug-no-path-validation does not take an argument.
* * maperror.c (map_to_assuan_status): Map EOF to No_Data_Available.Werner Koch2002-06-262-0/+7
|
* * assuan-buffer.c (assuan_write_line): Make sure we neverWerner Koch2002-06-262-5/+18
| | | | | accidently print an extra LF.
* * protect-tool.c (rsa_key_check): New.NEWPG-0-3-8Werner Koch2002-06-256-10/+1112
| | | | | | | (import_p12_file): New. (main): New command --p12-import. * minip12.c, minip12.h: New.
* * certdump.c (print_dn_part): Always print a leading slash,Werner Koch2002-06-255-49/+53
| | | | | | | | | | | 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-245-5/+18
| | | | | | | | | * 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-2012-36/+176
| | | | | | | | | | | | | | | | | | | | | | | 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-199-8/+78
| | | | | | | | | | | | 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.
* * keybox-init.c (keybox_set_ephemeral): New.Werner Koch2002-06-199-15/+79
| | | | | | | | | | | * keybox-blob.c (create_blob_header): Store epheermal flag. (_keybox_create_x509_blob): Pass epheermal flag on. * keybox-update.c (keybox_insert_cert): Ditto. * keybox-search.c (blob_get_blob_flags): New. (keybox_search): Ignore ephemeral blobs when not in ephemeral mode. * keybox-dump.c (_keybox_dump_blob): Print blob flags as strings.
* * certreqgen.c (read_parameters): Improved error handling.Werner Koch2002-06-172-11/+37
| | | | | (gpgsm_genkey): Print error message.
* * agent.h: Add a callback function to the pin_entry_info structure.Werner Koch2002-06-176-79/+118
| | | | | | | | | | | | | | | * query.c (agent_askpin): Use the callback to check for a correct PIN. Removed the start_err_text argument becuase it is not anymore needed; changed callers. * findkey.c (unprotect): Replace our own check loop by a callback. (try_unprotect_cb): New. * genkey.c (reenter_compare_cb): New. (agent_genkey): Use this callback here. Fixed setting of the pi2 variable and a segv in case of an empty PIN. * divert-scd.c (getpin_cb): Removed some unused stuff and explained what we still have to change.
* * card-dinsig.c: Documented some stuff from the DIN norm.Werner Koch2002-06-152-2/+57
|
* Fixed last fix.Werner Koch2002-06-131-4/+0
|
* * gpgsm.c (main): New option --log-file.Werner Koch2002-06-134-26/+54
|
* * call-dirmngr.c (lookup_status_cb): New.Werner Koch2002-06-124-6/+27
| | | | | | (gpgsm_dirmngr_lookup): Use the status CB. Add new arg CTRL and changed caller to pass it.
* * gpgsm.c (open_fwrite): New.Werner Koch2002-06-122-11/+60
| | | | | (main): Allow --output for --verify.
* Various changes.Werner Koch2002-06-125-6/+91
|
* * protect-tool.c: Add command --show-keygripWerner Koch2002-06-123-1/+43
| | | | | (show_keygrip): New.
* * sign.c (hash_and_copy_data): New.Werner Koch2002-06-127-34/+212
| | | | | | | | | | | (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-045-5/+480
| | | | | | | * 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-312-1/+6
| | | | | invalid command.
* * import.c (gpgsm_import): Add error messages.Werner Koch2002-05-232-1/+19
|
* * no-pth.c, Makefile.am: Removed.Werner Koch2002-05-2312-162/+416
| | | | | | | | | | | | * call-scd.c: Seirialized all scdaeom access when using Pth. * cache.c: Made the cache Pth-thread-safe. (agent_unlock_cache_entry): New. * findkey.c (unprotect): Unlock the returned cache value. * command.c (cmd_get_passphrase): Ditto. * gpg-agent.c (main): Register pth_read/write with Assuan.
* * assuan-util.c (assuan_set_io_func): New.Werner Koch2002-05-237-35/+97
| | | | | | | | | * assuan-buffer.c (writen, readline): Use the new functions instead of pth. * assuan-socket-server.c (accept_connection): Don't use the pth_accept - using the assuan included accept code would be a bad idea within Pth so we don't need a replacement function.
* * mkdtemp.c: Replaced byte by unsigned char because it is no longerWerner Koch2002-05-222-2/+7
| | | | | defined in gcrypt.h.
* * keylist.c (list_internal_keys): Renamed from gpgsm_list_keys.Werner Koch2002-05-217-26/+345
| | | | | | | | | | | (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.
* * import.c (gpgsm_import): Try to identify the type of input andWerner Koch2002-05-214-19/+121
| | | | | | | | | | handle certs-only messages. * maperror.c (map_gcry_err): Add libgcrypt's new S-expression errors. (map_ksba_err): Add a few mappings. * configure.ac: We now require libgcrypt 1.1.7 and libksba 0.4.2.
* sm/Werner Koch2002-05-1411-11/+132
| | | | | | | | | | | | | | * 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/
* * errors.h: Added STARUS_EXPSIG and STATUS_EXPKEYSIG.NEWPG-0-3-6Werner Koch2002-05-032-0/+7
|
* * certpath.c (gpgsm_validate_path): Added EXPTIME arg and changedWerner Koch2002-05-037-40/+96
| | | | | | | all callers. * verify.c (gpgsm_verify): Tweaked usage of log_debug and log_error. Return EXPSIG status and add expiretime to VALIDSIG.
* Debug message cleanups.Werner Koch2002-04-275-7/+18
|
* Debug message cleanups.Werner Koch2002-04-275-8/+22
| | | | | Fixed passphrase caching.
* * call-agent.c (start_agent): Make copies of old locales and checkWerner Koch2002-04-254-11/+37
| | | | | | | for setlocale. * configure.ac: Check for setlocale.
* 2002-04-25 Marcus Brinkmann <[email protected]>Marcus Brinkmann2002-04-245-7/+25
| | | | | | | | | | * 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.
* 2002-04-25 Marcus Brinkmann <[email protected]>Marcus Brinkmann2002-04-242-17/+30
| | | | | | * call-agent.c (start_agent): Fix error handling logic so the locale is always correctly reset.
* 2002-04-25 Marcus Brinkmann <[email protected]>Marcus Brinkmann2002-04-244-10/+57
| | | | | | | | * 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-249-8/+266
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* * certreqgen.c (gpgsm_genkey): Write status output on success.Werner Koch2002-04-182-0/+5
|
* released 0.3.5NEWPG-0-3-5Werner Koch2002-04-153-1/+43
|
* * gpgsm.c (main): Check ksba version.Werner Koch2002-04-152-2/+9
|
* * certpath.c (find_up): New to use the authorithKeyIdentifier.Werner Koch2002-04-153-8/+67
| | | | | Use it in all other functions to locate the signing cert..
* * command.c (cmd_pksign, cmd_pkdecrypt): Use a copy of the key ID.Werner Koch2002-04-152-2/+19
|
* * cryptmiss.c: New.Werner Koch2002-04-153-1/+45
|
* * scdaemon.c: New option --debug-sc N.Werner Koch2002-04-125-85/+78
| | | | | | | | | * 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.