/[openpgpmdrv]/trunk/OpenPGPminidriver/PinOperations.h
ViewVC logotype

Contents of /trunk/OpenPGPminidriver/PinOperations.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 11 - (show annotations)
Thu Mar 18 16:03:39 2010 UTC (15 years, 1 month ago) by vletoux
File MIME type: text/plain
File size: 1887 byte(s)
first working & stable version
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
19 #define ROLE_SIGNATURE ROLE_USER
20 #define ROLE_AUTHENTICATION 3
21 #define ROLE_PUK 4
22
23 DWORD CheckPinLength(__in PCARD_DATA pCardData, __in PIN_ID PinId, __in DWORD cbPin);
24 DWORD GetRemainingPin(__in PCARD_DATA pCardData, __in PIN_ID PinId, __out PDWORD pdwCounter);
25 DWORD VerifyPIN(__in PCARD_DATA pCardData,__in PIN_ID PinId,
26 __in_bcount(cbPin) PBYTE pbPin, __in DWORD cbPin)
27 ;
28 DWORD ChangePIN(__in PCARD_DATA pCardData, __in PIN_ID PinId,
29 __in_bcount(cbPin) PBYTE pbOldPin, __in DWORD cbOldPin,
30 __in_bcount(cbPin) PBYTE pbNewPin, __in DWORD cbNewPin
31 );
32 DWORD ResetUserPIN(__in PCARD_DATA pCardData, __in PIN_ID PinId,
33 __in_bcount(cbPin) PBYTE pbAuthenticator, __in DWORD cbAuthenticator,
34 __in_bcount(cbPin) PBYTE pbNewPin, __in DWORD cbNewPin
35 );
36 DWORD SetPUK(__in PCARD_DATA pCardData,
37 __in_bcount(cbPin) PBYTE pbAdminPin, __in DWORD cbAdminPin,
38 __in_bcount(cbPin) PBYTE pbPuk, __in DWORD cbPuk
39 );
40 DWORD Deauthenticate(__in PCARD_DATA pCardData);
41 DWORD GetPinInfo(DWORD __in bContainerIndex, __inout PPIN_INFO pPinInfo);

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26