aboutsummaryrefslogtreecommitdiffstats
path: root/scd/iso7816.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2011-12-02Fix pinpad input support for passphrase modification.NIIBE Yutaka1-44/+7
* apdu.c (pcsc_keypad_verify): Have dummy Lc field with value 0. (pcsc_keypad_modify): Likewise. (pcsc_keypad_modify): It's only for ISO7816_CHANGE_REFERENCE_DATA. bConfirmPIN value is determined by the parameter p0. * app-openpgp.c (do_change_pin): The flag use_keypad should be 0 when reset_mode is on, or resetcode is on. use_keypad only makes sense for iso7816_change_reference_data_kp. * iso7816.h (iso7816_put_data_kp): Remove. (iso7816_reset_retry_counter_kp): Remove. (iso7816_reset_retry_counter_with_rc_kp): Remove. (iso7816_change_reference_data_kp): Add an argument: IS_EXCHANGE. * iso7816.c (iso7816_put_data_kp): Remove. (iso7816_reset_retry_counter_kp): Remove. (iso7816_reset_retry_counter_with_rc_kp): Remove. (iso7816_change_reference_data_kp): Add an argument: IS_EXCHANGE.
2011-11-29PC/SC pinpad support (pinpad input for modify pass phrase with resetcode, by ↵NIIBE Yutaka1-17/+35
admin).
2011-11-29PC/SC pinpad support (pinpad input for modify pass phrase).NIIBE Yutaka1-30/+21
2011-11-28PC/SC pinpad support.NIIBE Yutaka1-13/+10
Before this change, it is layered like following: iso7816_verify iso7816_verify_kp apdu_send_simple, apdu_send_simple_kp ... After this change, it will be layered like: iso7816_verify iso7816_verify_kp apdu_send_simple apdu_keypad_verify ... and apdu_send_simple_kp will be deprecated. For PC/SC API, we use: SCardControl API to compose CCID PC_to_RDR_Secure message SCardTransmit API to compose CCID PC_to_RDR_XfrBlock message Considering the support of PC/SC, we have nothing to share between _kp version of iso7816_* and no _kp version.
2011-02-04Nuked almost all trailing white space.post-nuke-of-trailing-wsWerner Koch1-18/+17
We better do this once and for all instead of cluttering all future commits with diffs of trailing white spaces. In the majority of cases blank or single lines are affected and thus this change won't disturb a git blame too much. For future commits the pre-commit scripts checks that this won't happen again.
2009-12-15Do not use the VMC C reserved word readonly.Werner Koch1-2/+2
2009-09-03Fix for extended length Le in decipherWerner Koch1-14/+18
2009-07-10Fix for card keys > 2048 bit.Werner Koch1-8/+26
2009-06-17Add readcert command.Werner Koch1-4/+12
fix reading large certificates.
2009-05-08More support for Netkey cards.Werner Koch1-12/+23
Small changes to teh CCID driver. Support 2048 bit OpenPGP cards.
2009-03-30Implement decryption for TCOS 3 cards.Werner Koch1-16/+21
2009-01-08Add limited support for NetKey 3.0 cards.Werner Koch1-12/+45
2008-09-25Finished support for v2 cards with the exception of secure messaging.Werner Koch1-1/+30
2008-09-23Support the Certifciate DO of the v2 OpenPGP cards.Werner Koch1-10/+15
2007-07-04Changed to GPLv3.Werner Koch1-4/+2
Removed intl/.
2006-11-20Made some PIN pads work.Werner Koch1-1/+1
Some cleanups for 64 bit CPUs.
2006-09-14Take advantage of newer gpg-error features.Werner Koch1-1/+1
2005-11-28Preparing an interim releaseWerner Koch1-19/+96
2005-09-09Bug fixes and ssh support for the BELPIC.Werner Koch1-1/+2
2005-09-05Basically made Belgian EID cards work.Werner Koch1-2/+53
Signature creation has not yet been tested. Also other changes to better cope with T=0 cards.
2005-07-27Removed directories which are only used by the 1.9 branchWerner Koch1-371/+0
2005-06-16gcc-4 defaults forced me to edit many many files to get rid of theWerner Koch1-8/+10
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-04-27* app-p15.c (micardo_mse): New.Werner Koch1-3/+4
(do_sign): Call it. * iso7816.c (iso7816_manage_security_env): Allow passing DATA as NULL to indicate an empty Lc. * tlv.c (find_tlv): Check that a found object fits into the buffer. (find_tlv_unchecked): New as replacement for the old non-checking variant. * app.c (select_application): Keep on using the non-checking variant. * app-openpgp.c (get_one_do, dump_all_do): Ditto.
2004-10-20* sc-investigate: Removed.Werner Koch1-8/+1
* 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/+13
2004-08-05* configure.ac: Changed tests for libusb to also suuport theWerner Koch1-0/+1
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-0/+6
(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* pcsc-wrapper.c: New.Werner Koch1-0/+3
* 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* app-dinsig.c: Implemented. Based on app-nks.c and card-dinsig.cWerner Koch1-5/+15
* app-nks.c (get_length_of_cert): Removed. * app-help.c: New. (app_help_read_length_of_cert): New. Code taken from above. New optional arg R_CERTOFF. * card-dinsig.c: Removed. * card.c (card_get_serial_and_stamp): Do not bind to the old and never finsiged card-dinsig.c. * iso7816.c (iso7816_read_binary): Allow for an NMAX > 254.
2004-03-16*** empty log message ***Werner Koch1-9/+15
2004-01-28(iso7816_manage_security_env): New.Werner Koch1-15/+42
(iso7816_decipher): Add PADIND argument. ** app-nks.c is now functional **
2004-01-27Some minor bug fixes, new test utilities and started support for otherWerner Koch1-2/+190
smartcard applications.
2003-10-02Fixes to make inclusion of card raleted source files into 1.3 easier.Werner Koch1-4/+16
2003-08-14 * Always use 'dynload.h' instead of 'dlfcn.h'.Timo Schulz1-1/+1
2003-08-05This commit was manufactured by cvs2svn to create branchRepo Admin1-0/+371
'GNUPG-1-9-BRANCH'.
2003-07-23* command.c (cmd_pkauth): New.Werner Koch1-38/+110
(cmd_setdata): Check whether data was given at all to avoid passing 0 to malloc. * app.c (app_auth): New. * app-openpgp.c (do_auth): New.
2003-07-03* app-openpgp.c (do_setattr): Add setting of the URL.Werner Koch1-3/+3
(app_select_openpgp): Dump card data only in very verbose mode. (do_decipher): New.
2003-06-03* scdaemon.h: Include gpg-error.h and errno.hWerner Koch1-0/+299
* card.c (map_sc_err): Use unknown for the error source. * Makefile.am: Link with libgpg-error