aboutsummaryrefslogtreecommitdiffstats
path: root/scd/ccid-driver.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2007-04-03Add a way to get a listing of available CCID readers.Werner Koch1-4/+13
2007-03-07The Cherry XX44 keyboard's PINpad does now work.Werner Koch1-18/+29
DINSIG and NKS card applications are now also PIN pad aware.
2007-01-31Included LIBICONV in all Makefiles.Werner Koch1-3/+6
g10/ * passphrase.c (passphrase_get): Set the cancel flag on all error from the agent. Fixes a bug reported by Tom Duerbusch. sm/ * gpgsm.c (main): Let --gen-key print a more informative error message.
2006-11-20Made some PIN pads work.Werner Koch1-24/+49
Some cleanups for 64 bit CPUs.
2006-03-01Fixed card removal problemsWerner Koch1-4/+17
2006-02-08Fixed a couple of problems with omnikey based readersWerner Koch1-20/+59
2006-02-06.Werner Koch1-1/+1
2006-02-06Support for CardMan 4040Werner Koch1-229/+488
2005-11-28Preparing an interim releaseWerner Koch1-10/+54
2005-09-09Bug fixes and ssh support for the BELPIC.Werner Koch1-1/+2
2005-06-16gcc-4 defaults forced me to edit many many files to get rid of theWerner Koch1-7/+7
char * vs. unsigned char * warnings. The GNU coding standards used to say that these mismatches are okay and better than a bunch of casts. Obviously this has changed now.
2005-05-23(parse_ccid_descriptor): SCR335 FW version 5.14 isWerner Koch1-22/+105
good. (do_close_reader): Never do a reset. The caller should instead make sure that the reader has been closed properly. The new retry code in ccid_slot_status will make sure that the readersatrts up fine even if the last process didn't closed the USB connection properly. (ccid_get_atr): For certain readers try switching to ISO mode. Thanks to Ludovic Rousseau for this hint and the magic numbers. (print_command_failed): New. (bulk_in): Use it here. Add new arg NO_DEBUG.
2005-05-20* protect-tool.c: New option --canonical.Werner Koch1-48/+56
(show_file): Implement it. * keyformat.txt: Define the created-at attribute for keys. * ccid-driver.c: Replaced macro DEBUG_T1 by a new debug level. (parse_ccid_descriptor): Mark SCR335 firmware version 5.18 good. (ccid_transceive): Arghhh. The seqno is another bit in the R-block than in the I block, this was wrong at one place. * scdaemon.c: New options --debug-ccid-driver and --debug-disable-ticker. * app-openpgp.c (do_genkey, do_writekey): Factored code to check for existing key out into .. (does_key_exist): .. New function. * gpg-connect-agent.c (add_definq, show_definq, clear_definq) (handle_inquire): New. (read_and_print_response): Handle INQUIRE command. (main): Implement control commands.
2005-05-18Changed the scdaemon to handle concurrent sessions. AdjustedWerner Koch1-4/+5
gpg-agent accordingly. Code cleanups.
2005-04-21* configure.ac: Do not build gpg by default.Werner Koch1-1/+1
* 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-11* app-openpgp.c (do_check_pin): Add hack to allow verification ofWerner Koch1-27/+62
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-02-03Forgot to commit the recent fixed to scd and logging - doing it nowWerner Koch1-2/+2
2005-01-13* acinclude.m4 (GNUPG_PTH_VERSION_CHECK): Link a simple testV1-9-15Werner Koch1-5/+18
program to see whether the installation is sane. * certreqgen.c (proc_parameters): Cast printf arg.
2004-12-28(find_endpoint): New.Werner Koch1-21/+159
(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-10-20* sc-investigate: Removed.Werner Koch1-0/+2
* 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-14Added ID keywords because these files are often used in other packages.Werner Koch1-0/+2
2004-10-06(ccid_open_reader): Store the vendor ID.Werner Koch1-26/+354
(ccid_transceive_secure): New. (parse_ccid_descriptor): Workaround for an SCM reader problem.
2004-09-30Preparing a new release. Updated gettextWerner Koch1-251/+663
2004-08-05* configure.ac: Changed tests for libusb to also suuport theWerner Koch1-11/+103
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-16(reader_table_s): Add function pointers for the backends.Werner Koch1-21/+32
(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-04-20* command.c (scd_update_reader_status_file): Write status files.Werner Koch1-1/+1
* 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 Koch1-46/+230
* 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-03-16*** empty log message ***Werner Koch1-3/+11
2004-02-12Include cmacros.am for common flags.Werner Koch1-1/+1
2004-01-27Some minor bug fixes, new test utilities and started support for otherWerner Koch1-1/+8
smartcard applications.
2003-12-17Replaced deprecated type names.Werner Koch1-1/+1
* card-p15.c (p15_enum_keypairs): Replaced KRC by RC. * card-dinsig.c (dinsig_enum_keypairs): Ditto.
2003-10-31* apdu.c (close_ct_reader, close_pcsc_reader): Implemented.Werner Koch1-0/+3
(get_ccid_error_string): New. Not very useful messages, though.
2003-10-25* command.c (cmd_genkey, cmd_passwd): Fixed faulty use ofWerner Koch1-0/+4
!spacep(). * apdu.c (apdu_open_reader): Hacks for PC/SC under Windows.
2003-10-21* command.c (cmd_checkpin): New.Werner Koch1-10/+51
(register_commands): Add command CHECKPIN. * app.c (app_check_pin): New. * app-openpgp.c (check_against_given_fingerprint): New. Factored out that code elsewhere. (do_check_pin): New.
2003-10-09* ccid-driver.c (ccid_transceive): Add T=1 chaining for sending.Werner Koch1-32/+70
2003-10-02Fixes to make inclusion of card raleted source files into 1.3 easier.Werner Koch1-3/+10
2003-09-19(parse_ccid_descriptor): New.Werner Koch1-0/+240
(read_device_info): New. (ccid_open_reader): Check that the device has all required features.
2003-09-06* configure.ac: Required newer versions of some libraries.V1-9-1Werner Koch1-12/+14
* misc.c (openpgp_pk_algo_usage): Allow AUTH where SIGN is allowed. * keygen.c (ask_passphrase): No need to allocated S2K in secure memory. * scdaemon.c (main): --pcsc-driver again defaults to pcsclite. David Corcoran was so kind to remove the GPL incompatible advertisng clause from pcsclite. * apdu.c (apdu_open_reader): Actually make pcsc-driver option work.
2003-09-05* ccid-driver.c: More work, data can now actually be retrieved.Werner Koch1-164/+280
* ccid-driver.c, ccid-driver.h: Alternativley allow use under BSD conditions.
2003-09-02* configure.ac (HAVE_LIBUSB): Added a simple test for libusb.Werner Koch1-0/+627
* scdaemon.c, scdaemon.h: New option --pcsc-ccid. * ccid-driver.c, ccid-driver.h: New but far from being useful. * Makefile.am: Add above. * apdu.c: Add support for that ccid driver.