]>
Commit | Line | Data |
---|---|---|
a2bb2735 | 1 | /* |
2 | * libopenemv - a library to work with EMV family of smart cards | |
3 | * Copyright (C) 2015 Dmitry Eremin-Solenikov | |
4 | * | |
5 | * This library is free software; you can redistribute it and/or | |
6 | * modify it under the terms of the GNU Lesser General Public | |
7 | * License as published by the Free Software Foundation; either | |
8 | * version 2.1 of the License, or (at your option) any later version. | |
9 | * | |
10 | * This library is distributed in the hope that it will be useful, | |
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
13 | * Lesser General Public License for more details. | |
14 | */ | |
15 | ||
16 | #ifndef TAGS_H | |
17 | #define TAGS_H | |
18 | ||
19 | #include "tlv.h" | |
20 | #include <stdio.h> | |
21 | ||
7a7afeba | 22 | // AC |
23 | # define EMVAC_AC_MASK 0xC0 | |
24 | # define EMVAC_AAC 0x00 | |
25 | # define EMVAC_TC 0x40 | |
26 | # define EMVAC_ARQC 0x80 | |
27 | # define EMVAC_CDAREQ 0x10 | |
28 | ||
29 | // CID | |
30 | # define EMVCID_ADVICE 0x08 | |
31 | # define EMVCID_REASON_MASK 0x07 | |
32 | ||
43912d63 | 33 | bool emv_tag_dump(const struct tlv *tlv, FILE *f, int level); |
a2bb2735 | 34 | |
35 | #endif |