Estonian ID Card C-library
DigiCrypt.h
1 #ifndef DigiCryptH
2 #define DigiCryptH
3 
4 
5 #ifdef __cplusplus
6 extern "C" {
7 #endif
8 
9 
10 #include <windows.h>
11 #include <wincrypt.h>
12 
13 #define dDigiCrypt_Okey 0
14 #define dDigiCrypt_Error_NotFoundCSP 1
15 #define dDigiCrypt_Error_UserCancel 2
16 #define dDigiCrypt_Error_NoDefaultKey 3
17 #define dDIgiCrypt_Error_NotFoundCert 4
18 
19 PCCERT_CONTEXT DigiCrypt_FindContext(BOOL fByKeyContainer, DWORD *dwResult);
20 char *DigiCrypt_FindContext_GetCSPName(void);
21 char *DigiCrypt_FindContext_GetKeyName(void);
22 DWORD DigiCrypt_FindContext_GetCSPType(char *psCSPName);
23 void LOG(char *psMsgFmt, ...);
24 
25 #ifdef __cplusplus
26 }
27 #endif
28 #endif