File: apduspli.h

package info (click to toggle)
libgcr410 2.4.0-9.2
  • links: PTS
  • area: main
  • in suites: bullseye, buster, jessie, jessie-kfreebsd, stretch, wheezy
  • size: 552 kB
  • ctags: 738
  • sloc: ansic: 4,748; sh: 91; makefile: 49
file content (69 lines) | stat: -rw-r--r-- 2,689 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 ***************************************************************************/
/*******************************************************************************
*                   Copyright (c) 1991 - 2001 Gemplus
*
* Name        : ApduSpli.c
*
* Description : Module which splits APDU commands for being transported
*               according to T=0 protocole.
*
* Release     : 4.31.001
*
* Last Modif  : 13/10/97: V4.31.001  (GP)
*               18/03/97: V4.30.001  (TF)
*                 - Start of development.
*
********************************************************************************
*
* Warning     : The 7616-4 standard indicates that only the transmission system
*               can initiate GET_RESPONSE and ENVELOPE command. This two
*               commands cannot be transmitted by this module.
*
* Remark      : The true cases 2E and 4E.2 are not supported because the command
*               ENVELOPE is not supported by this module.
*
*******************************************************************************/

/*------------------------------------------------------------------------------
Name definition:
   _APDUSPLI_H is used to avoid multiple inclusion.
------------------------------------------------------------------------------*/
#ifndef _APDUSPLI_H
#define _APDUSPLI_H

/*------------------------------------------------------------------------------
C++ Section:
------------------------------------------------------------------------------*/
#ifdef __cplusplus
extern "C"
{
#endif
/*------------------------------------------------------------------------------
Prototype section
------------------------------------------------------------------------------*/
		INT16 G_DECL ApduSpliter
		(
		const WORD32 Timeout,
		const G4_APDU_COMM G_FAR * ApduComm,
		G4_APDU_RESP G_FAR * ApduResp,
		INT16(G_DECL * IsoIn)
		(const WORD32 Timeout,
const WORD8 G_FAR Command[5],
const WORD8 G_FAR Data[],
WORD16 G_FAR * RespLen,
BYTE G_FAR RespBuff[]),
INT16(G_DECL * IsoOut) (const WORD32 Timeout, const WORD8 G_FAR Command[5], WORD16 G_FAR * RespLen, BYTE G_FAR RespBuff[]));

#ifdef __cplusplus
}
#endif

#endif