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

Annotation of /trunk/OpenPGPminidriver/PinOperations.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 8 - (hide annotations)
Thu Mar 11 20:32:26 2010 UTC (15 years, 1 month ago) by vletoux
File MIME type: text/plain
File size: 1919 byte(s)
improvement of the quality of the project.
More test for the qualification of the driver success but not all ...

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    
19     #define ROLE_SIGNATURE ROLE_USER
20     #define ROLE_AUTHENTICATION 3
21     #define ROLE_CONFIDENTIALITY 4
22     #define ROLE_PUK 5
23    
24     DWORD CheckPinLength(__in PCARD_DATA pCardData, __in PIN_ID PinId, __in DWORD cbPin);
25     DWORD GetRemainingPin(__in PCARD_DATA pCardData, __in PIN_ID PinId, __out PDWORD pdwCounter);
26     DWORD VerifyPIN(__in PCARD_DATA pCardData,__in PIN_ID PinId,
27     __in_bcount(cbPin) PBYTE pbPin, __in DWORD cbPin)
28     ;
29     DWORD ChangePIN(__in PCARD_DATA pCardData, __in PIN_ID PinId,
30     __in_bcount(cbPin) PBYTE pbOldPin, __in DWORD cbOldPin,
31     __in_bcount(cbPin) PBYTE pbNewPin, __in DWORD cbNewPin
32     );
33     DWORD ResetUserPIN(__in PCARD_DATA pCardData, __in PIN_ID PinId,
34     __in_bcount(cbPin) PBYTE pbAuthenticator, __in DWORD cbAuthenticator,
35     __in_bcount(cbPin) PBYTE pbNewPin, __in DWORD cbNewPin
36     );
37 vletoux 8 DWORD SetPUK(__in PCARD_DATA pCardData,
38     __in_bcount(cbPin) PBYTE pbAdminPin, __in DWORD cbAdminPin,
39     __in_bcount(cbPin) PBYTE pbPuk, __in DWORD cbPuk
40     );
41     DWORD Deauthenticate(__in PCARD_DATA pCardData);
42     DWORD GetPinInfo(DWORD __in bContainerIndex, __inout PPIN_INFO pPinInfo);

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26