- bugfix: general authenticate response data is now encapsulated in a
dynamic data object - added more debug messages - bugfix: get_ef_card_access didn't fetch the whole file - bugfix: set mse set at apdu type to case 3 - bugfix: only send the plain value (without tag/length) of the PACE_MSE_SET_AT object - bugfix: fixed general authenticate cla byte and set apdu type to case 4 - sanity checks in sc_transmit_apdu forbid the required apdu format of general authenticate so it had to be reimplemented in my_transmit_apdu. apdu.c/apdu.h are mainly copied from opensc. git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@44 96b47cad-a561-4643-ad3b-153ac7d7599c
This commit is contained in:
20
ccid/apdu.h
Normal file
20
ccid/apdu.h
Normal file
@@ -0,0 +1,20 @@
|
||||
#ifndef _PACE_H
|
||||
#define _PACE_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include <opensc.h>
|
||||
|
||||
/** Sends a APDU to the card
|
||||
* @param card sc_card_t object to which the APDU should be send
|
||||
* @param apdu sc_apdu_t object of the APDU to be send
|
||||
* @return SC_SUCCESS on succcess and an error code otherwise
|
||||
*/
|
||||
int my_transmit_apdu(sc_card_t *card, sc_apdu_t *apdu);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
Reference in New Issue
Block a user