aboutsummaryrefslogtreecommitdiffstats
path: root/scd/apdu.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Pth tweaks and improved estream.cWerner Koch2006-10-171-1/+1
|
* The big Assuan error code removal.Werner Koch2006-09-061-1/+2
|
* Added command APDUWerner Koch2006-04-111-2/+2
|
* Fixed card removal problemsWerner Koch2006-03-011-2/+2
|
* Print warning for missing pcsc-wrapperWerner Koch2005-12-061-1/+9
|
* Preparing an interim releaseWerner Koch2005-11-281-38/+138
|
* Basically made Belgian EID cards work.Werner Koch2005-09-051-9/+36
| | | | | | Signature creation has not yet been tested. Also other changes to better cope with T=0 cards.
* * keylist.c (email_kludge): Reworked.Werner Koch2005-07-201-2/+4
| | | | | | | * certdump.c (gpgsm_print_serial, gpgsm_dump_serial): Cast printf arg to unsigned. * call-dirmngr.c (gpgsm_dirmngr_run_command): Ditto
* gcc-4 defaults forced me to edit many many files to get rid of theWerner Koch2005-06-161-1/+1
| | | | | | | 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.
* Changed the scdaemon to handle concurrent sessions. AdjustedWerner Koch2005-05-181-0/+4
| | | | | gpg-agent accordingly. Code cleanups.
* * configure.ac: Removed OpenSC detection and options.Werner Koch2005-04-271-243/+3
| | | | | | | | | | | | | | | | | | | * acinclude.m4: Ditto. * scdaemon.texi: Removed OpenSC specific options. * app-p15.c: New. Basic support for pkcs15 cards without OpenSC. There are quite a couple of things missing but at least I can use my old TCOS cards from the Aegypten-1 development for signing. * app.c (select_application): Detect pkcs15 applications. * Makefile.am (scdaemon_SOURCES): Removed card.c, card-common.h and card-p15.c because they are now obsolete. Added app-p15.c. Removed all OpenSC stuff. * command.c (do_reset, open_card, cmd_serialno, cmd_learn) (cmd_readcert, cmd_readkey, cmd_pksign, cmd_pkdecrypt): Removed all special cases for the old card.c based mechanisms. * scdaemon.c, apdu.c: Removed all special cases for OpenSC.
* * gpg-agent.c (handle_connections): Need to check for events ifWerner Koch2005-02-241-176/+243
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Forgot to commit the recent fixed to scd and logging - doing it nowWerner Koch2005-02-031-4/+8
|
* A whole bunch of changes to allow building for W32.Werner Koch2004-12-151-1/+6
|
* * sc-investigate: Removed.Werner Koch2004-10-201-35/+453
| | | | | | | | | | | | | | | | | * 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.
* Added ID keywords because these files are often used in other packages.Werner Koch2004-10-141-0/+2
|
* Preparing a new release. Updated gettextWerner Koch2004-09-301-5/+39
|
* * configure.ac: Changed tests for libusb to also suuport theWerner Koch2004-08-051-2/+37
| | | | | | | | | | | | | | | | | | 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-27 Moritz Schulte <[email protected]>Moritz Schulte2004-07-271-0/+1
| | | | | * apdu.c: Include <signal.h>.
* * configure.ac: Define AM conditional HAVE_OPENSC.V1-9-10Werner Koch2004-07-221-0/+4
| | | | | | | | | | * 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.
* (reader_table_s): Add function pointers for the backends.Werner Koch2004-07-161-535/+1104
| | | | | | | | | | | | | | | | | | (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.
* (osc_get_status): Fixed type in function name. Noted byWerner Koch2004-06-161-1/+1
| | | | | Axel Thimm. Yes, I didn't tested it with OpenSC :-(.
* * command.c (scd_update_reader_status_file): Write status files.Werner Koch2004-04-201-7/+16
| | | | | | | | | | | | | | * 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.
* * pcsc-wrapper.c: New.Werner Koch2004-04-201-8/+680
| | | | | | | | * 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.
* *** empty log message ***Werner Koch2004-03-161-1/+3
|
* Some minor bug fixes, new test utilities and started support for otherWerner Koch2004-01-271-1/+1
| | | | | smartcard applications.
* * apdu.c (apdu_send_le): Send a get_response with the indicatedWerner Koch2003-12-231-1/+1
| | | | | | | | length and not the 64 bytes we used for testing. * app-openpgp.c (verify_chv2, verify_chv3, do_sign): Check the minimum length of the passphrase, so that we don't need to decrement the retry counter.
* * apdu.c (close_ct_reader, close_pcsc_reader): Implemented.Werner Koch2003-10-311-4/+13
| | | | | (get_ccid_error_string): New. Not very useful messages, though.
* * command.c (cmd_genkey, cmd_passwd): Fixed faulty use ofWerner Koch2003-10-251-3/+30
| | | | | | | !spacep(). * apdu.c (apdu_open_reader): Hacks for PC/SC under Windows.
* * command.c (cmd_checkpin): New.Werner Koch2003-10-211-34/+103
| | | | | | | | | (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.
* Fixes to make inclusion of card raleted source files into 1.3 easier.Werner Koch2003-10-021-0/+13
|
* * configure.ac: Required newer versions of some libraries.V1-9-1Werner Koch2003-09-061-12/+6
| | | | | | | | | | | | | * 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.
* * configure.ac (HAVE_LIBUSB): Added a simple test for libusb.Werner Koch2003-09-021-1/+95
| | | | | | | | * 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.
* 2003-08-26 Timo Schulz <[email protected]>Timo Schulz2003-08-261-0/+2
| | | | | | * apdu.c (new_reader_slot): Only set 'is_osc' when OpenSC is used.
* * scdaemon.c, scdaemon.h: New option --pcsc-driver.Werner Koch2003-08-191-0/+6
| | | | | | * apdu.c (apdu_open_reader): Use that option here instead of a hardcoded one.
* * Makefile.am: Add OPENSC_LIBS to all programs.Werner Koch2003-08-181-7/+230
| | | | | | | | | | | * scdaemon.c, scdaemon.h: New option --disable-opensc. * card.c (card_open): Implement it. * apdu.c (open_osc_reader, osc_send_apdu): New. (apdu_open_reader) [HAVE_OPENSC]: Use the opensc driver if not disabled. (error_string) [HAVE_OPENSC]: Use sc_strerror. (send_apdu) [HAVE_OPENSC]: Call osc_apdu_send.
* * Always use 'dynload.h' instead of 'dlfcn.h'.Timo Schulz2003-08-141-29/+26
|
* Cleanups, fixes and PC/SC supportWerner Koch2003-08-051-60/+366
|
* This commit was manufactured by cvs2svn to create branchRepo Admin2003-08-051-0/+558
'GNUPG-1-9-BRANCH'.