source: trunk/src/ifd/atr.h @ 826

Revision 826, 759 bytes checked in by aj, 6 years ago (diff)

improvements by Chaskiel Grundman to add support for more eutron
versions.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1/*
2 * ATR type definitions
3 *
4 * Copyright (C) 2004, Olaf Kirch <okir@suse.de>
5 */
6
7#ifndef OPENCT_ATR_H
8#define OPENCT_ATR_H
9
10#ifdef __cplusplus
11extern "C" {
12#endif
13
14        typedef struct ifd_atr_info {
15                /* The following contain -1 if the field wasn't present */
16                int TA[4];
17                int TB[4];
18                int TC[4];
19                unsigned int supported_protocols;
20                int default_protocol;
21        } ifd_atr_info_t;
22
23        extern int ifd_atr_parse(ifd_atr_info_t *, const unsigned char *,
24                                 size_t);
25        extern int ifd_build_pts(const ifd_atr_info_t *, int, unsigned char *,
26                                 size_t);
27        extern int ifd_verify_pts(ifd_atr_info_t *, int,
28                                  const unsigned char *, size_t);
29        extern int ifd_pts_complete(const unsigned char *pts, size_t len);
30
31#ifdef __cplusplus
32}
33#endif
34#endif                          /* OPENCT_ATR_H */
Note: See TracBrowser for help on using the repository browser.