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(PSTR wszPin, PWSTR wszUserId, PDWORD pcAttemptsRemaining); |
22 |
DWORD ResetPin(PSTR wszPin, PSTR wszPin2, BOOL fIsPUK, PDWORD pcAttemptsRemaining); |
23 |
DWORD ChangePin(PSTR szPin, PSTR szPin2, PWSTR wszUserId, PDWORD pcAttemptsRemaining); |
24 |
DWORD SetPuk(PSTR szPin, PSTR szPin2, PDWORD pcAttemptsRemaining); |
25 |
DWORD SetSM(PSTR szPin, PSTR szPin2, PDWORD pcAttemptsRemaining); |
26 |
DWORD ListFiles(HWND hWnd); |
27 |
DWORD ViewFile(HWND hWnd); |
28 |
DWORD ListContainer(HWND hWnd); |
29 |
DWORD ViewCertificate(HWND hWnd, PTSTR szContainer, DWORD dwKeySpec); |
30 |
DWORD Sign(PTSTR szContainer, DWORD dwKeySpec); |
31 |
DWORD Decrypt(PTSTR szContainer, DWORD dwKeySpec); |
32 |
DWORD GenerateNewKey(DWORD dwIndex); |
33 |
DWORD ImportKey(DWORD dwIndex); |
34 |
DWORD SetTheSameKeyForAllContainers(); |
35 |
DWORD SetReadOnly(BOOL fSet); |
36 |
void ViewCertificate(HWND hWnd, PCCERT_CONTEXT pCertContext); |
37 |
DWORD Personnalize(); |
38 |
HRESULT Enroll(); |
39 |
#define OPENPGP_TEST_CONTAINER TEXT("Test_OPENPGPG") |