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 |
|
|
extern PCARD_DATA pCardData; |
19 |
|
|
DWORD Connect(BOOL fSystemDll); |
20 |
|
|
DWORD Disconnect(); |
21 |
|
|
DWORD Authenticate(PWSTR wszPin, PWSTR wszUserId, PDWORD pcAttemptsRemaining); |
22 |
|
|
DWORD ListFiles(); |
23 |
|
|
DWORD ListContainer(); |
24 |
|
|
DWORD ViewCertificate(PTSTR szContainer, DWORD dwKeySpec); |
25 |
|
|
DWORD Sign(PTSTR szContainer, DWORD dwKeySpec); |
26 |
|
|
DWORD Decrypt(PTSTR szContainer, DWORD dwKeySpec); |
27 |
|
|
DWORD GenerateNewKey(DWORD dwIndex); |
28 |
vletoux |
3 |
DWORD ImportKey(DWORD dwIndex); |
29 |
|
|
#define OPENPGP_TEST_CONTAINER TEXT("Test_OPENPGPG") |