aboutsummaryrefslogtreecommitdiffstats
path: root/sm (follow)
Commit message (Collapse)AuthorAgeFilesLines
* * gpg-agent.c (main): Use default_homedir().Werner Koch2004-12-212-9/+6
| | | | | | | | | | | | | | | | | | | * protect-tool.c (main): Ditto. * signal.c (got_fatal_signal, got_usr_signal) (got_fatal_signal) [DOSISH]: Don't build. * simple-gettext.c: Include sysutils.h * homedir.c: New. * Makefile.am (libcommon_a_SOURCES): Add it. (EXTRA_DIST): Removed mkerror and mkerrtok. * gpgv.c, g10.c (main): Use default_hoemdir (). * scdaemon.c (main): Use default_homedir(). * gpgsm.c (main): Use default_homedir().
* * configure.ac: Add PATHSEP_C and PATHSEP_S. For W32 let allWerner Koch2004-12-204-31/+52
| | | | | | | | | | | | | | | | | | | | directories default to c:/gnupg. Require libassuan 0.6.9. * gpg-agent.c (main) [W32]: Now that Mutexes work we can remove the pth_init kludge. (main): Add new options --[no-]use-standard-socket. (check_for_running_agent): Check whether it is running on the standard socket. * sysutils.h [W32]: Define sleep. * util.h: Add prototype for mkdtemp. * call-agent.c (start_agent): Before starting a pipe server start to connect to a server on the standard socket. Use PATHSEP * call-dirmngr.c (start_dirmngr): Use PATHSEP. * import.c: Include unistd.h for dup and close.
* * maperror.c (map_assuan_err_with_source): Oops, args were swapped.Werner Koch2004-12-191-2/+2
| | | | | * w32-pth.c (pth_init): Enable debugging depending on env var.
* * configure.ac (AH_BOTTOM): Define EXEEXT_S.Werner Koch2004-12-181-0/+1
| | | | | | | | | | | | | | * autogen.sh: Updated --build-w32 feature. * gpg-agent.c (main): Remove special Pth initialize. * w32-pth.c (pth_init): Reverse return values. Use TRUE and FALSE constants. (pth_kill, pth_mutex_acquire, pth_attr_set, pth_join, pth_cancel): Ditto. * scdaemon.c (main) [W32]: Remove special Pth initialize..
* Avoid the " map_to_assuan_status called with no error source" diagnostic.Werner Koch2004-12-183-1/+11
|
* * call-dirmngr.c (isvalid_status_cb, lookup_status_cb)Werner Koch2004-12-174-17/+33
| | | | | | | | | | (run_command_status_cb): Return cancel status if gpgsm_status returned an error. * server.c (gpgsm_status, gpgsm_status2) (gpgsm_status_with_err_code): Return an error code. (gpgsm_status2): Always call va_end().
* (lookup_status_cb): Send progress messagesWerner Koch2004-12-152-3/+41
| | | | | | | | | upstream. (isvalid_status_cb): Ditto. (gpgsm_dirmngr_isvalid): Put CTRL into status CB parameters. (gpgsm_dirmngr_run_command, run_command_status_cb): Pass CTRL to status callback and handle PROGRESS.
* A whole bunch of changes to allow building for W32.Werner Koch2004-12-153-7/+26
|
* VArious hacks to make it at least build under W32.Werner Koch2004-12-131-1/+1
| | | | | | | | | | * stringhelp.c (w32_strerror) [W32]: New. * w32-pth.c, w32-pth.h: Added real code written by Timo Schulz. Not finished, though. * gpgconf-comp.c <ignore-ocsp-service-url>: Fixed typo.
* * asshelp.c (send_pinentry_environment) [W32]: Do not use ttyname.Werner Koch2004-12-073-3/+12
| | | | | | | | | | * w32-pth.c, w32-pth.h: New. * Makefile.am (gpgsm_LDADD): Put libassuan before jnlib because under W32 we need the w32 pth code from jnlib. * misc.c (setup_pinentry_env) [W32]: Disabled.
* * exechelp.h, exechelp.c: New. Based on code from ../sm/import.c.Werner Koch2004-12-064-233/+51
| | | | | | | | | | | * gpgsm.c (run_protect_tool) [_WIN32]: Disabled. * import.c (popen_protect_tool): Simplified by making use of gnupg_spawn_process. (parse_p12): Likewise, using gnupg_wait_process. * export.c (popen_protect_tool): Ditto. (export_p12): Ditto.
* * configure.ac (have_w32_system): New. Disable Pth checks for W32.Werner Koch2004-12-062-2/+4
| | | | | | | | | Link jnlib/w32-pth.h to pth.h. * Makefile.am (pkglib_PROGRAMS): Build only for W32. * keydb.c: Don't define DIRSEP_S here.
* Preparing 1.9.13Werner Koch2004-12-032-4/+23
|
* First take on a W32 portWerner Koch2004-12-022-21/+30
|
* * b64enc.c: Include stdio.h and string.hWerner Koch2004-11-234-19/+44
| | | | | | | | | * gpgsm.c: New option --prefer-system-dirmngr. * call-dirmngr.c (start_dirmngr): Implement this option. * gpgconf-comp.c <dirmngr>: Add the proxy options. <gpgsm>: Add --prefer-system-daemon.
* (gpgsm_genkey): Remove the NEW from the certificateWerner Koch2004-10-222-1/+6
| | | | | request PEM header. This is according to the Sphinx standard.
* 2004-10-08 Moritz Schulte <[email protected]>Moritz Schulte2004-10-082-2/+9
| | | | | | | * certchain.c (gpgsm_validate_chain): Do not use keydb_new() in case the no_chain_validation-return-short-cut is used (fixes memory leak).
* (setup_pinentry_env): Try hard to set a default for GPG_TTY.Werner Koch2004-10-042-1/+20
|
* * gpgconf-comp.c (my_dgettext): Also switch codeset and directoryWerner Koch2004-10-011-1/+1
| | | | | | | for the other used domains (i.e. dirmngr). * gpgconf.c (main): Fixed translation markers.
* * gpgv.c (i18n_init): Always use LC_ALL.Werner Koch2004-09-304-17/+48
| | | | | | | | | | | | | | | | | | | * kbxutil.c (i18n_init): Always use LC_ALL. * gpgsm.c (i18n_init): Always use LC_ALL. * certdump.c (gpgsm_format_name): Factored code out to .. (gpgsm_format_name2): .. new. (gpgsm_print_name): Factored code out to .. (gpgsm_print_name2): .. new. (print_dn_part): New arg TRANSLATE. Changed all callers. (print_dn_parts): Ditto. (gpgsm_format_keydesc): Do not translate the SUBJECT; we require it to stay UTF-8 but we still want to filter out bad control characters. * gpgconf.c (i18n_init): Always use LC_ALL.
* Preparing a new release. Updated gettextWerner Koch2004-09-302-1/+5
|
* * de.po: Updated.Werner Koch2004-09-302-2/+10
| | | | | | | | | | | * POTFILES.in: Add more files. * app-openpgp.c (do_sign): Add the error string to the verify failed messages. * keylist.c (list_cert_colon): Make sure that the expired flag has a higher precedence than the invalid flag.
* spelling fixWerner Koch2004-09-301-1/+4
|
* Print warning when --default-key is used.Werner Koch2004-09-291-0/+1
|
* * minip12.c (parse_bag_encrypted_data): Print error if a badWerner Koch2004-09-293-10/+61
| | | | | | | | | | | | passphrase has been given. * gpg-agent.texi (Invoking GPG-AGENT): Add a few words about the expected pinentry filename. * import.c (parse_p12): Write an error status line for bad passphrases. Add new arg CTRL and changed caller. * export.c (export_p12): Likewise.
* (show_key_with_all_names): Print the card S/N.Werner Koch2004-09-202-3/+18
| | | | | | * app-openpgp.c (app_select_openpgp): Its app_munge_serialno and not app_number_serialno.
* Fixed typo in ocsp OID.Werner Koch2004-08-242-1/+5
|
* * certlist.c (gpgsm_cert_use_ocsp_p): New.Werner Koch2004-08-184-4/+36
| | | | | | (cert_usage_p): Support it here. * call-dirmngr.c (gpgsm_dirmngr_isvalid): Use it here.
* 2004-08-17 Marcus Brinkmann <[email protected]>Marcus Brinkmann2004-08-172-1/+5
| | | | | * import.c: Fix typo in last change.
* * import.c (check_and_store): Do a full validation ifWerner Koch2004-08-176-61/+156
| | | | | | | | | | | | | | --with-validation is set. * certchain.c (gpgsm_basic_cert_check): Print more detailed error messages. * certcheck.c (do_encode_md): Partly support DSA. Add new arg PKALGO. Changed all callers to pass it. (pk_algo_from_sexp): New. tests/pkits: New directory
* (cmd_encrypt): Use DEFAULT_RECPLIST and not recplistWerner Koch2004-08-162-1/+6
| | | | | for encrypt-to keys.
* * gpgsm.c: New option --with-ephemeral-keys.Werner Koch2004-08-064-8/+39
| | | | | | | * keylist.c (list_internal_keys): Set it here. (list_cert_raw): And indicate those keys. Changed all our callers to pass the new arg HD through.
* * configure.ac: Changed tests for libusb to also suuport theWerner Koch2004-08-052-7/+13
| | | | | | | | | | | | | | | | | | stable version 0.1.x. * scdaemon.texi (Card applications): New section. * scdaemon.c (main): New option --disable-application. * app.c (is_app_allowed): New. (select_application): Use it to check for disabled applications. * ccid-driver.h (CCID_DRIVER_ERR_ABORTED): New. * ccid-driver.c (ccid_open_reader): Support the stable 0.1 version of libusb. (ccid_get_atr): Handle short messages. * apdu.c (my_rapdu_get_status): Implemented.
* * trustlist.c (read_list): Allow colons in the fingerprint.Werner Koch2004-07-222-1/+9
| | | | | | | | | | | | | (headerblurb): Rephrased. * gpg-agent.c (handle_connections): Increase the stack size ot 256k. * de.po: Updated. * scdaemon.c (main): Bumbed thread stack size up to 512k. * keylist.c (list_cert_raw): Print the keygrip.
* (gpgsm_validate_chain): The trust check didn'tWerner Koch2004-07-202-0/+8
| | | | | worked anymore, probably due to the changes at 2003-03-04. Fixed.
* * configure.ac: Require libksba 0.9.7.Werner Koch2004-06-069-65/+111
| | | | | | | | | | | | | | | | * certreqgen.c (get_parameter_uint, create_request): Create an extension for key usage when requested. * gpgsm.c (main): Install emergency_cleanup also as an atexit handler. * verify.c (gpgsm_verify): Removed the separate error code handling for KSBA. We use shared error codes anyway. * export.c (export_p12): Removed debugging code. * encrypt.c (gpgsm_encrypt): Put the session key in to secure memory.
* * gpg-agent.c (handle_signal): Reload the trustlist on SIGHUP.Werner Koch2004-05-112-20/+47
| | | | | | | | | | | | | | | | (start_connection_thread): Hack to simulate a ticker. * trustlist.c (agent_trustlist_housekeeping) (agent_reload_trustlist): New. Protected all global functions here with a simple counter which is sufficient for Pth. * fingerprint.c (gpgsm_get_key_algo_info): New. * sign.c (gpgsm_sign): Don't assume RSA in the status line. * keylist.c (list_cert_colon): Really print the algorithm and key length. (list_cert_raw, list_cert_std): Ditto. (list_cert_colon): Reorganized to be able to tell whether a root certificate is trusted.
* * sign.c (gpgsm_sign): Include the error source in the final errorWerner Koch2004-05-116-12/+106
| | | | | | | | | | | | | | | message. * decrypt.c (gpgsm_decrypt): Ditto. * fingerprint.c (gpgsm_get_key_algo_info): New. * sign.c (gpgsm_sign): Don't assume RSA in the status line. * keylist.c (list_cert_colon): Really print the algorithm and key length. (list_cert_raw, list_cert_std): Ditto. * gpgsm.h (opt): Add member CONFIG_FILENAME. * gpgsm.c (main): Use it here instead of the local var.
* * sysutils.c (disable_core_dumps): Only set the current limit.Werner Koch2004-05-113-1/+9
| | | | | | | | | | | | | | | (enable_core_dumps): New. * gpgsm.texi (Esoteric Options): Add --debug-allow-core-dump. * gpgsm.c: New option --debug-allow-core-dump. * gpgsm.h (opt): Add member CONFIG_FILENAME. * gpgsm.c (main): Use it here instead of the local var. * server.c (gpgsm_server): Print some additional information with the hello in verbose mode.
* Also print agent and dirmngr info.Werner Koch2004-05-111-6/+13
|
* * gpgsm.h (opt): Add member CONFIG_FILENAME.Werner Koch2004-05-114-10/+34
| | | | | | | * gpgsm.c (main): Use it here instead of the local var. * server.c (gpgsm_server): Print some additional information with the hello in verbose mode.
* * protect-tool.c: New option --enable-status-msg.Werner Koch2004-04-302-12/+62
| | | | | | | | | | | | (store_private_key): Print status messages for imported keys. (read_and_unprotect): Ditto for bad passphrase. * import.c (check_and_store): Do not update the stats for hidden imports of issuer certs. (popen_protect_tool): Request statusmessages from the protect-tool. (parse_p12): Detect status messages. Add new arg STATS and update them. (print_imported_summary): Include secret key stats.
* (check_and_store): Do not update the stats for hiddenWerner Koch2004-04-302-8/+20
| | | | | imports of issuer certs.
* typo fixWerner Koch2004-04-291-1/+1
|
* * gpgsm.c: New command --keydb-clear-some-cert-flags.Werner Koch2004-04-284-3/+118
| | | | | | | * keydb.c (keydb_clear_some_cert_flags): New. (keydb_update_keyblock, keydb_set_flags): Change error code CONFLICT to NOT_LOCKED.
* * scdaemon.c (main): Do the last change the usual way. This is soWerner Koch2004-04-262-2/+7
| | | | | | | | that we can easily test for versioned config files above. * gpgsm.c (main) <gpgconf>: Do not use /dev/null as default config filename.
* * call-agent.c (gpgsm_agent_pksign, gpgsm_agent_pkdecrypt)Werner Koch2004-04-2612-65/+90
| | | | | | | | | | | | | | (gpgsm_agent_genkey, gpgsm_agent_istrusted) (gpgsm_agent_marktrusted, gpgsm_agent_havekey) (gpgsm_agent_passwd): Add new arg CTRL and changed all callers. (start_agent): New arg CTRL. Send progress item when starting a new agent. * sign.c (gpgsm_get_default_cert, get_default_signer): New arg CTRL to be passed down to the agent function. * decrypt.c (prepare_decryption): Ditto. * certreqgen.c (proc_parameters, read_parameters): Ditto. * certcheck.c (gpgsm_create_cms_signature): Ditto.
* The keybox gets now compressed after 3 hours and ephemeralWerner Koch2004-04-262-0/+17
| | | | | stored certificates are deleted after about a day.
* (oidtranstbl): New. OIDs collected from several sources.Werner Koch2004-04-232-21/+309
| | | | | | | (print_name_raw, print_names_raw, list_cert_raw): New. (gpgsm_list_keys): Check the dump mode and pass it down as necessary.
* (main): New commands --dump-keys, --dump-external-keys,Werner Koch2004-04-224-13/+241
| | | | | --dump-secret-keys.