Show
Ignore:
Timestamp:
12/18/06 21:58:16 (2 years ago)
Author:
aj
Message:

update to latest muscle code.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/libopensc/muscle.h

    r3067 r3080  
    2929#include "muscle-filesystem.h" 
    3030 
     31#define MSC_MAX_APDU 256 /* Max APDU send/recv, used for stack allocation */ 
     32#define MSC_MAX_PIN_LENGTH 8 
     33#define MSC_MAX_PIN_COMMAND_LENGTH ((1 + MSC_MAX_PIN_LENGTH) * 2) 
     34 
     35/* Currently max size handled by muscle driver is 255 ... */ 
     36#define MSC_MAX_READ (MIN(card->reader->driver->max_recv_size,255)) 
     37#define MSC_MAX_SEND (MIN(card->reader->driver->max_send_size,255)) 
     38 
    3139int msc_list_objects(sc_card_t* card, u8 next, mscfs_file_t* file); 
    3240int msc_partial_read_object(sc_card_t *card, msc_id objectId, int offset, u8 *data, size_t dataLength); 
     
    4149 
    4250int msc_verify_pin(sc_card_t *card, int pinNumber, const u8 *pinValue, int pinLength, int *tries); 
    43 void msc_verify_pin_apdu(sc_card_t *card, sc_apdu_t *apdu, int pinNumber, const u8 *pinValue, int pinLength); 
     51void msc_verify_pin_apdu(sc_card_t *card, sc_apdu_t *apdu, u8* buffer, size_t bufferLength, int pinNumber, const u8 *pinValue, int pinLength); 
    4452int msc_unblock_pin(sc_card_t *card, int pinNumber, const u8 *pukValue, int pukLength, int *tries); 
    45 void msc_unblock_pin_apdu(sc_card_t *card, sc_apdu_t *apdu, int pinNumber, const u8 *pukValue, int pukLength); 
     53void msc_unblock_pin_apdu(sc_card_t *card, sc_apdu_t *apdu, u8* buffer, size_t bufferLength, int pinNumber, const u8 *pukValue, int pukLength); 
    4654int msc_change_pin(sc_card_t *card, int pinNumber, const u8 *pinValue, int pinLength, const u8 *newPin, int newPinLength, int *tries); 
    47 void msc_change_pin_apdu(sc_card_t *card, sc_apdu_t *apdu, int pinNumber, const u8 *pinValue, int pinLength, const u8 *newPin, int newPinLength); 
     55void msc_change_pin_apdu(sc_card_t *card, sc_apdu_t *apdu, u8* buffer, size_t bufferLength, int pinNumber, const u8 *pinValue, int pinLength, const u8 *newPin, int newPinLength); 
    4856 
    4957int msc_get_challenge(sc_card_t *card, short dataLength, short seedLength, u8 *seedData, u8* outputData);