aboutsummaryrefslogtreecommitdiffstats
path: root/scd (unfollow)
Commit message (Collapse)AuthorFilesLines
2005-04-21* configure.ac: Do not build gpg by default.Werner Koch3-14/+18
* gpgsm.c: New options --{enable,disable}-trusted-cert-crl-check. * certchain.c (gpgsm_validate_chain): Make use of it. * certchain.c (gpgsm_validate_chain): Check revocations even for expired certificates. This is required because on signature verification an expired key is fine whereas a revoked one is not. * gpgconf-comp.c: Add gpgsm option disable-trusted-cert-crl-check.
2005-04-14(retrieve_key_material): Rewritten. Return aWerner Koch3-335/+446
proper error code. (retrieve_next_token): Removed. (retrieve_fpr_from_card): Rewritten to make use of DO caching and to take the KEYNO as arg. (get_public_key): Renamed variable for clarity.
2005-04-11* app-openpgp.c (do_check_pin): Add hack to allow verification ofWerner Koch5-90/+241
CHV3. (get_public_key): Don't use gcry functions to create S-expressions. (do_deinit, do_readkey, do_genkey, send_keypair_info): Adjust for above change.
2005-03-292005-03-29 Moritz Schulte <[email protected]>Moritz Schulte2-14/+324
* app-openpgp.c (retrieve_fpr_from_card): New function. (retrieve_next_token): New function. (retrieve_key_material): New function. (get_public_key): Implement retrival of key through expernal helper (gpg) in case the openpgp card is not cooperative enough.
2005-02-25* findkey.c (modify_description): Keep invalid % escapes, so thatWerner Koch3-29/+76
%0A may pass through. * agent.h (server_control_s): New field USE_AUTH_CALL. * call-scd.c (agent_card_pksign): Make use of it. * command-ssh.c (data_sign): Set the flag. (ssh_send_key_public): New arg OVERRIDE_COMMENT. (card_key_available): Add new arg CARDSN. (ssh_handler_request_identities): Use the card s/n as comment. (sexp_key_extract): Use GCRYMPI_FMT_STD. (data_sign): Ditto. * learncard.c (make_shadow_info): Moved to .. * protect.c (make_shadow_info): .. here. Return NULL on malloc failure. Made global. * agent.h: Add prototype. * xasprintf.c (xtryasprintf): New. * app-openpgp.c (get_public_key): Make sure not to return negative numbers. (do_sign): Allow passing of indata with algorithm prefix. (do_auth): Allow OPENPGP.3 as an alternative ID. * app.c (app_getattr): Return just the S/N but not the timestamp. * no-libgcrypt.c (gcry_strdup): New.
2005-02-24* call-scd.c (unescape_status_string): New. Actual a copy ofWerner Koch3-8/+49
../g10/call-agent.c (card_getattr_cb, agent_card_getattr): New. * command-ssh.c (card_key_available): New. (ssh_handler_request_identities): First see whether a card key is available. * app.c (app_getattr): Return APPTYPE or SERIALNO type even if the application does dot support the getattr call. * app.c (select_application): Return an error code and the application context in an new arg. * command.c (open_card): Adjusted for that. Don't use the fallback if no card is present. Return an error if the card has been removed without a reset. (do_reset, cmd_serialno): Clear that error flag. (TEST_CARD_REMOVAL): New. Use it with all command handlers. (scd_update_reader_status_file): Set the error flag on all changes.
2005-02-24* gpg-agent.c (handle_connections): Need to check for events ifWerner Koch7-222/+380
select returns with -1. * tools.texi (gpg-connect-agent): New. * app-openpgp.c (get_one_do): Never try to get a non cacheable object from the cache. (get_one_do): Add new arg to return an error code. Changed all callers. (do_getattr): Let it return a proper error code. * app.c (select_application): Return an error code and the application context in an new arg. * command.c (open_card): Adjusted for that. Don't use the fallback if no card is present. Return an error if the card has been removed without a reset. (do_reset, cmd_serialno): Clear that error flag. (TEST_CARD_REMOVAL): New. Use it with all command handlers. * scdaemon.c (ticker_thread): Termintate if a shutdown is pending. * apdu.c: Added some PCSC error codes. (pcsc_error_to_sw): New. (reset_pcsc_reader, pcsc_get_status, pcsc_send_apdu) (open_pcsc_reader): Do proper error code mapping. * gpg-connect-agent.c: New. * Makefile.am: Add it.
2005-02-22* app-openpgp.c (app_local_s): New field PK.Werner Koch5-13/+316
(do_deinit, do_genkey, app_openpgp_storekey): Clear it. (get_public_key, send_keypair_info): New. (do_learn_status): Send KEYPAIR info * app-common.h (app_ctx_t): Add function pointer READKEY. * app.c (app_readkey): New. * command.c (cmd_readkey): Use READKEY function if possible.
2005-02-03Forgot to commit the recent fixed to scd and logging - doing it nowWerner Koch4-70/+162
2005-01-13* acinclude.m4 (GNUPG_PTH_VERSION_CHECK): Link a simple testV1-9-15Werner Koch2-5/+19
program to see whether the installation is sane. * certreqgen.c (proc_parameters): Cast printf arg.
2004-12-28(find_endpoint): New.Werner Koch2-21/+171
(scan_or_find_devices): Add new args to return endpoint info and interface number. (ccid_open_reader, ccid_shutdown_reader): Take care of these new args. (bulk_in, bulk_out): Use the correct endpoints. (ccid_transceive_apdu_level): New. (ccid_transceive): Divert to above. (parse_ccid_descriptor): Allow APDU level exchange mode.
2004-12-21* gpg-agent.c (main): Use default_homedir().Werner Koch3-16/+8
* 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().
2004-12-19* query.c (initialize_module_query):Werner Koch1-0/+5
* call-scd.c (initialize_module_call_scd): New. * w32-pth.c (pth_init): Enable debugging depending on env var. (pth_self): New. (pth_mutex_release, pth_mutex_acquire): Implemented directly using the W32 API.
2004-12-18* configure.ac (AH_BOTTOM): Define EXEEXT_S.Werner Koch2-6/+2
* 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..
2004-12-18Avoid the " map_to_assuan_status called with no error source" diagnostic.Werner Koch2-0/+8
2004-12-15A whole bunch of changes to allow building for W32.Werner Koch5-10/+67
2004-12-06* configure.ac (have_w32_system): New. Disable Pth checks for W32.Werner Koch2-0/+6
Link jnlib/w32-pth.h to pth.h. * Makefile.am (pkglib_PROGRAMS): Build only for W32. * keydb.c: Don't define DIRSEP_S here.
2004-12-02First take on a W32 portWerner Koch1-0/+691
2004-10-22Compile fixes.Werner Koch2-3/+8
2004-10-22 * app-openpgp.c (do_sign): Replace asprintf by direct allocation.Werner Koch3-2/+22
This avoids problems with missing vasprintf implementations in gnupg 1.4. * app-common.h (app_openpgp_storekey: Add prototype.
2004-10-20* sc-investigate: Removed.Werner Koch7-911/+713
* Makefile.am (sc_investigate): Removed. * pcsc-wrapper.c (load_pcsc_driver): Load get_status_change func. (handle_open): Succeed even without a present card. (handle_status, handle_reset): New. * apdu.c (apdu_open_reader): Load pcsc_get_status_change fucntion. (pcsc_get_status): Implemented. (reset_pcsc_reader): Implemented. (open_pcsc_reader): Succeed even with no card inserted. (open_ccid_reader): Set LAST_STATUS. * iso7816.c (iso7816_select_application): Always use 0 for P1.
2004-10-14(parse_login_data): New.Werner Koch2-29/+112
(app_select_openpgp): Call it. (do_setattr): Reparse it after change.
2004-10-14Added ID keywords because these files are often used in other packages.Werner Koch8-0/+29
2004-10-06(ccid_open_reader): Store the vendor ID.Werner Koch3-26/+369
(ccid_transceive_secure): New. (parse_ccid_descriptor): Workaround for an SCM reader problem.
2004-09-30Preparing a new release. Updated gettextWerner Koch6-260/+712
2004-09-30* de.po: Updated.Werner Koch2-80/+267
* 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.
2004-09-20(show_key_with_all_names): Print the card S/N.Werner Koch2-1/+6
* app-openpgp.c (app_select_openpgp): Its app_munge_serialno and not app_number_serialno.
2004-09-09* app.c (select_application): Fixed serial number extraction andWerner Koch4-3/+74
added the BMI card workaround. (app_munge_serialno): New. * app-openpgp.c (app_select_openpgp): Try munging serialno.
2004-08-17* import.c (check_and_store): Do a full validation ifWerner Koch1-1/+1
--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
2004-08-05* configure.ac: Changed tests for libusb to also suuport theWerner Koch9-18/+181
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.
2004-07-272004-07-27 Moritz Schulte <[email protected]>Moritz Schulte2-0/+7
* apdu.c: Include <signal.h>.
2004-07-272004-07-27 Moritz Schulte <[email protected]>Moritz Schulte1-4/+5
* Makefile.am: Use @DL_LIBS@ instead of -ldl.
2004-07-22* configure.ac: Define AM conditional HAVE_OPENSC.V1-9-10Werner Koch5-12/+38
* Makefile.am: Make OpenSC lib link after libgcrypt. Do not link to pth. * apdu.c: Don't use Pth if we use OpenSC. * sc-investigate.c, scdaemon.c: Disable use of pth if OpenSC is used. * scdaemon.c (main): Bumbed thread stack size up to 512k.
2004-07-22* trustlist.c (read_list): Allow colons in the fingerprint.Werner Koch2-1/+5
(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.
2004-07-16(reader_table_s): Add function pointers for the backends.Werner Koch6-558/+1226
(apdu_close_reader, apdu_get_status, apdu_activate) (send_apdu): Make use of them. (new_reader_slot): Intialize them to NULL. (dump_ccid_reader_status, ct_dump_reader_status): New. (dump_pcsc_reader_status): New. (open_ct_reader, open_pcsc_reader, open_ccid_reader) (open_osc_reader, open_rapdu_reader): Intialize function pointers. (ct_activate_card, ct_send_apdu, pcsc_send_apdu, osc_send_apdu) (error_string): Removed. Replaced by apdu_strerror. (get_ccid_error_string): Removed. (ct_activate_card): Remove the unused loop. (reset_ct_reader): Implemented. (ct_send_apdu): Activate the card if not yet done. (pcsc_send_apdu): Ditto.
2004-07-01Initialize Pth which is now required.Werner Koch2-1/+43
(interactive_shell): New command "readpk".
2004-07-01(do_getattr): Fix for sending CA-FPR.Werner Koch2-2/+11
2004-06-21* sc-investigate.c (my_read_line): Renamed from read_line.Werner Koch2-2/+6
2004-06-16(osc_get_status): Fixed type in function name. Noted byWerner Koch2-1/+6
Axel Thimm. Yes, I didn't tested it with OpenSC :-(.
2004-04-29* app-openpgp.c (do_setattr): Sync FORCE_CHV1.Werner Koch2-1/+9
2004-04-28* app-common.h: Do not include ksba.h for gnupg 1.Werner Koch3-1/+6
2004-04-26* app-common.h: New members FNC.DEINIT and APP_LOCAL.Werner Koch4-33/+235
* app.c (release_application): Call new deconstructor. * app-openpgp.c (do_deinit): New. (get_cached_data, flush_cache_item, flush_cache_after_error) (flush_cache): New. (get_one_do): Replaced arg SLOT by APP. Make used of cached data. (verify_chv2, verify_chv3): Flush some cache item after error. (do_change_pin): Ditto. (do_sign): Ditto. (do_setattr): Flush cache item. (do_genkey): Flush the entire cache. (compare_fingerprint): Use cached data.
2004-04-26* scdaemon.c (main): Do the last change the usual way. This is soWerner Koch2-5/+8
that we can easily test for versioned config files above. * gpgsm.c (main) <gpgconf>: Do not use /dev/null as default config filename.
2004-04-262004-04-26 Marcus Brinkmann <[email protected]>Marcus Brinkmann2-3/+12
* scdaemon.c (main): For now, always print default filename for --gpgconf-list, and never /dev/null.
2004-04-21* command.c (scd_update_reader_status_file): Send a signal back toWerner Koch3-8/+55
the client. (option_handler): Parse the new event-signal option. * scdaemon.c (handle_signal): Do not use SIGUSR{1,2} anymore for changing the verbosity.
2004-04-20* command.c (scd_update_reader_status_file): Write status files.Werner Koch5-11/+63
* app-help.c (app_help_read_length_of_cert): Fixed calculation of R_CERTOFF. * pcsc-wrapper.c: New. * Makefile.am (pkglib_PROGRAMS): Install it here. * apdu.c (writen, readn): New. (open_pcsc_reader, pcsc_send_apdu, close_pcsc_reader): Use the pcsc-wrapper if we are using Pth. (apdu_send_le): Reinitialize RESULTLEN. Handle SW_EOF_REACHED like SW_SUCCESS.
2004-04-20* pcsc-wrapper.c: New.Werner Koch11-78/+1827
* Makefile.am (pkglib_PROGRAMS): Install it here. * apdu.c (writen, readn): New. (open_pcsc_reader, pcsc_send_apdu, close_pcsc_reader): Use the pcsc-wrapper if we are using Pth.
2004-04-06* configure.ac: Require libgcrypt 1.1.94.Werner Koch1-3/+3
Introduce PACKAGE_GT and set it to gnupg2. * gpg-agent.c (main): Use new libgcrypt thread library register scheme. * Makevars (DOMAIN): Init from PACKAGE_GT
2004-03-23(main) <gpgconf_list>: Fixed output for pcsc_driver.Werner Koch3-15/+11
2004-03-17* gpg-agent.c (main) <gpgconf>: Fixed default value quoting.Werner Koch2-2/+6
* scdaemon.c (main) <gpgconf>: Fixed default value quoting. * gpgsm.c (main) <gpgconf>: Fixed default value quoting.