1 |
vletoux |
1 |
/* OpenPGP Smart Card Mini Driver |
2 |
|
|
Copyright (C) 2009 Vincent Le Toux |
3 |
|
|
|
4 |
|
|
This library is Free software; you can redistribute it and/or |
5 |
|
|
modify it under the terms of the GNU Lesser General Public |
6 |
|
|
License version 2.1 as published by the Free Software Foundation. |
7 |
|
|
|
8 |
|
|
This library is distributed in the hope that it will be useful, |
9 |
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of |
10 |
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
11 |
|
|
Lesser General Public License for more details. |
12 |
|
|
|
13 |
|
|
You should have received a copy of the GNU Lesser General Public |
14 |
|
|
License along with this library; if not, write to the Free Software |
15 |
|
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
16 |
|
|
*/ |
17 |
|
|
|
18 |
|
|
// max len = 8 bytes |
19 |
|
|
#define szOpenPGPDir "openpgp" |
20 |
|
|
#define szOpenPGPFingerprint "fingerpr" |
21 |
|
|
#define szOpenPGPStatus "status" |
22 |
|
|
#define szOpenPGPApplicationIdentifier "aid" |
23 |
|
|
#define szOpenPGPLogin "logindat" |
24 |
|
|
#define szOpenPGPName "name" |
25 |
|
|
#define szOpenPGPLanguage "language" |
26 |
|
|
#define szOpenPGPSex "sex" |
27 |
|
|
#define szOpenPGPUrl "url" |
28 |
|
|
#define szOpenPGPHistoricalBytes "histo" |
29 |
|
|
#define szOpenPGPCertificate "certific" |
30 |
|
|
#define szOpenPGPExtendedCap "extcapab" |
31 |
|
|
#define szOpenPGPAlgoAttributesSignature "algsign" |
32 |
|
|
#define szOpenPGPAlgoAttributesDecryption "algcryp" |
33 |
|
|
#define szOpenPGPAlgoAttributesAuthentication "algauth" |
34 |
|
|
|
35 |
|
|
|
36 |
|
|
DWORD SCardReadFile(__in PCARD_DATA pCardData, |
37 |
|
|
__in_opt PSTR szDirectory, __in PSTR file, |
38 |
|
|
__in PBYTE* pbResponse, __in_opt PDWORD pdwResponseSize); |
39 |
|
|
|
40 |
|
|
DWORD SCardEnumFile(__in PCARD_DATA pCardData, |
41 |
|
|
__in_opt PSTR szDirectory, |
42 |
|
|
__in PBYTE* pbResponse, __in PDWORD pdwResponseSize); |
43 |
|
|
|
44 |
|
|
DWORD SCardGetFileInfo(__in PCARD_DATA pCardData, |
45 |
|
|
__in_opt PSTR szDirectory, __in PSTR szFile, |
46 |
|
|
__inout PCARD_FILE_INFO pCardFileInfo); |
47 |
|
|
|
48 |
|
|
DWORD SCardWriteFile(__in PCARD_DATA pCardData, |
49 |
|
|
__in_opt PSTR szDirectory, __in PSTR szFile, |
50 |
|
|
__in PBYTE pbData, __in DWORD dwSize); |
51 |
|
|
|
52 |
|
|
DWORD SCardDeleteFile(__in PCARD_DATA pCardData, |
53 |
|
|
__in_opt PSTR szDirectory, __in PSTR szFile); |
54 |
|
|
|
55 |
|
|
DWORD SCardCreateFile(__in PCARD_DATA pCardData, |
56 |
|
|
__in_opt PSTR szDirectory, __in PSTR szFile); |