| 1 |
/*
|
| 2 |
apdu.h
|
| 3 |
Definitions for ISO 7816-4 Application Layer PDU's handling
|
| 4 |
|
| 5 |
This file is part of the Unix driver for Towitoko smartcard readers
|
| 6 |
Copyright (C) 2000 2001 Carlos Prados <cprados@yahoo.com>
|
| 7 |
|
| 8 |
This library is free software; you can redistribute it and/or
|
| 9 |
modify it under the terms of the GNU Lesser General Public
|
| 10 |
License as published by the Free Software Foundation; either
|
| 11 |
version 2 of the License, or (at your option) any later version.
|
| 12 |
|
| 13 |
This library is distributed in the hope that it will be useful,
|
| 14 |
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
| 15 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
| 16 |
Lesser General Public License for more details.
|
| 17 |
|
| 18 |
You should have received a copy of the GNU Lesser General Public
|
| 19 |
License along with this library; if not, write to the Free Software
|
| 20 |
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
| 21 |
*/
|
| 22 |
|
| 23 |
#ifndef _APDU_
|
| 24 |
#define _APDU_
|
| 25 |
|
| 26 |
#include "defines.h"
|
| 27 |
|
| 28 |
/*
|
| 29 |
* Exported data types definition
|
| 30 |
*/
|
| 31 |
|
| 32 |
/* Command APDU */
|
| 33 |
typedef struct
|
| 34 |
{
|
| 35 |
BYTE *command;
|
| 36 |
unsigned long length;
|
| 37 |
}
|
| 38 |
APDU_Cmd;
|
| 39 |
|
| 40 |
/* Response APDU */
|
| 41 |
typedef struct
|
| 42 |
{
|
| 43 |
BYTE *response;
|
| 44 |
unsigned long length;
|
| 45 |
}
|
| 46 |
APDU_Rsp;
|
| 47 |
|
| 48 |
#endif
|
| 49 |
|