forked from open-eid/minidriver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnotimplemented.cpp
237 lines (214 loc) · 8.11 KB
/
notimplemented.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
/*
* EstEID Minidriver
*
* This software is released under either the GNU Library General Public
* License (see LICENSE.LGPL) or the BSD License (see LICENSE.BSD).
*
* Note that the only valid version of the LGPL license as far as this
* project is concerned is the original GNU Library General Public License
* Version 2.1, February 1999
*
*/
#include "precompiled.h"
#include "notimplemented.h"
DWORD WINAPI CardDeleteContainer(__in PCARD_DATA pCardData,
__in BYTE bContainerIndex,
__in DWORD dwReserved)
{
SCardLog::writeLog("[%s:%d] CardDeleteContainer:dummy",__FUNCTION__, __LINE__);
return SCARD_E_UNSUPPORTED_FEATURE;
}
DWORD WINAPI CardCreateDirectory(__in PCARD_DATA pCardData,
__in LPSTR pszDirectoryName,
__in CARD_DIRECTORY_ACCESS_CONDITION AccessCondition)
{
SCardLog::writeLog("[%s:%d] CardCreateDirectory:dummy",__FUNCTION__, __LINE__);
return SCARD_E_UNSUPPORTED_FEATURE;
}
DWORD WINAPI CardDeleteDirectory(__in PCARD_DATA pCardData,
__in LPSTR pszDirectoryName)
{
SCardLog::writeLog("[%s:%d] CardDeleteDirectory:dummy",__FUNCTION__, __LINE__);
return SCARD_E_UNSUPPORTED_FEATURE;
}
DWORD WINAPI CardCreateFile(__in PCARD_DATA pCardData,
__in LPSTR pszDirectoryName,
__in LPSTR pszFileName,
__in DWORD cbInitialCreationSize,
__in CARD_FILE_ACCESS_CONDITION AccessCondition)
{
SCardLog::writeLog("[%s:%d] CardCreateFile:dummy",__FUNCTION__, __LINE__);
return SCARD_E_UNSUPPORTED_FEATURE;
}
DWORD WINAPI CardDeleteFile(__in PCARD_DATA pCardData,
__in LPSTR pszDirectoryName,
__in LPSTR pszFileName,
__in DWORD dwFlags)
{
SCardLog::writeLog("[%s:%d] CardDeleteFile:dummy",__FUNCTION__, __LINE__);
return SCARD_E_UNSUPPORTED_FEATURE;
}
DWORD WINAPI CardConstructDHAgreement(__in PCARD_DATA pCardData,
__in PCARD_DH_AGREEMENT_INFO pAgreementInfo)
{
SCardLog::writeLog("[%s:%d] CardConstructDHAgreement:dummy",__FUNCTION__, __LINE__);
return SCARD_E_UNSUPPORTED_FEATURE;
}
DWORD WINAPI CardDeriveKey(__in PCARD_DATA pCardData,
__in PCARD_DERIVE_KEY pAgreementInfo)
{
SCardLog::writeLog("[%s:%d] CardDeriveKey:dummy",__FUNCTION__, __LINE__);
return SCARD_E_UNSUPPORTED_FEATURE;
}
DWORD WINAPI CardDestroyDHAgreement(__in PCARD_DATA pCardData,
__in BYTE bSecretAgreementIndex,
__in DWORD dwFlags)
{
SCardLog::writeLog("[%s:%d] CardDestroyDHAgreement:dummy",__FUNCTION__, __LINE__);
return SCARD_E_UNSUPPORTED_FEATURE;
}
DWORD WINAPI CspGetDHAgreement(__in PCARD_DATA pCardData,
__in PVOID hSecretAgreement,
__out BYTE* pbSecretAgreementIndex,
__in DWORD dwFlags)
{
SCardLog::writeLog("[%s:%d] CspGetDHAgreement:dummy",__FUNCTION__, __LINE__);
return SCARD_E_UNSUPPORTED_FEATURE;
}
DWORD WINAPI CardAuthenticateChallenge(__in PCARD_DATA pCardData,
__in_bcount(cbResponseData) PBYTE pbResponseData,
__in DWORD cbResponseData,
__out_opt PDWORD pcAttemptsRemaining)
{
SCardLog::writeLog("[%s:%d] CardAuthenticateChallenge:dummy",__FUNCTION__, __LINE__);
return SCARD_E_UNSUPPORTED_FEATURE;
}
DWORD WINAPI CardGetChallengeEx(__in PCARD_DATA pCardData,
__in PIN_ID PinId,
__deref_out_bcount(*pcbChallengeData) PBYTE *ppbChallengeData,
__out PDWORD pcbChallengeData,
__in DWORD dwFlags )
{
SCardLog::writeLog("[%s:%d] CardGetChallengeEx:dummy",__FUNCTION__, __LINE__);
return SCARD_E_UNSUPPORTED_FEATURE;
}
DWORD WINAPI CardDeauthenticate(__in PCARD_DATA pCardData,
__in LPWSTR pwszUserId,
__in DWORD dwFlags)
{
SCardLog::writeLog("[%s:%d] CardDeauthenticate:dummy",__FUNCTION__, __LINE__);
return SCARD_E_UNSUPPORTED_FEATURE;
}
DWORD WINAPI CardDeauthenticateEx(__in PCARD_DATA pCardData,
__in PIN_SET PinId,
__in DWORD dwFlags)
{
SCardLog::writeLog("[%s:%d] CardDeauthenticateEx:dummy",__FUNCTION__, __LINE__);
return SCARD_E_UNSUPPORTED_FEATURE;
}
DWORD WINAPI CardGetSharedKeyHandle(__in PCARD_DATA pCardData,
__in_bcount(cbInput) PBYTE pbInput,
__in DWORD cbInput,
__deref_opt_out_bcount(*pcbOutput)PBYTE *ppbOutput,
__out_opt PDWORD pcbOutput,
__out PCARD_KEY_HANDLE phKey)
{
SCardLog::writeLog("[%s:%d] CardGetSharedKeyHandle:dummy",__FUNCTION__, __LINE__);
return SCARD_E_UNSUPPORTED_FEATURE;
}
DWORD WINAPI CardDestroyKey(__in PCARD_DATA pCardData,
__in CARD_KEY_HANDLE hKey)
{
SCardLog::writeLog("[%s:%d] CardDestroyKey:dummy",__FUNCTION__, __LINE__);
return SCARD_E_UNSUPPORTED_FEATURE;
}
DWORD WINAPI CardGetAlgorithmProperty(__in PCARD_DATA pCardData,
__in LPCWSTR pwszAlgId,
__in LPCWSTR pwszProperty,
__out_bcount_part_opt(cbData, *pdwDataLen)PBYTE pbData,
__in DWORD cbData,
__out PDWORD pdwDataLen,
__in DWORD dwFlags)
{
SCardLog::writeLog("[%s:%d] CardGetAlgorithmProperty:dummy",__FUNCTION__, __LINE__);
return SCARD_E_UNSUPPORTED_FEATURE;
}
DWORD WINAPI CardGetKeyProperty(__in PCARD_DATA pCardData,
__in CARD_KEY_HANDLE hKey,
__in LPCWSTR pwszProperty,
__out_bcount_part_opt(cbData, *pdwDataLen) PBYTE pbData,
__in DWORD cbData,
__out PDWORD pdwDataLen,
__in DWORD dwFlags)
{
SCardLog::writeLog("[%s:%d] CardGetKeyProperty:dummy",__FUNCTION__, __LINE__);
return SCARD_E_UNSUPPORTED_FEATURE;
}
DWORD WINAPI CardSetKeyProperty(__in PCARD_DATA pCardData,
__in CARD_KEY_HANDLE hKey,
__in LPCWSTR pwszProperty,
__in_bcount(cbInput) PBYTE pbInput,
__in DWORD cbInput,
__in DWORD dwFlags)
{
SCardLog::writeLog("[%s:%d] CardSetKeyProperty:dummy",__FUNCTION__, __LINE__);
return SCARD_E_UNSUPPORTED_FEATURE;
}
DWORD WINAPI CardProcessEncryptedData(__in PCARD_DATA pCardData,
__in CARD_KEY_HANDLE hKey,
__in LPCWSTR pwszSecureFunction,
__in_ecount(cEncryptedData)PCARD_ENCRYPTED_DATA pEncryptedData,
__in DWORD cEncryptedData,
__out_bcount_part_opt(cbOutput, *pdwOutputLen) PBYTE pbOutput,
__in DWORD cbOutput,
__out_opt PDWORD pdwOutputLen,
__in DWORD dwFlags)
{
SCardLog::writeLog("[%s:%d] CardProcessEncryptedData:dummy",__FUNCTION__, __LINE__);
return SCARD_E_UNSUPPORTED_FEATURE;
}
DWORD WINAPI CardImportSessionKey(__in PCARD_DATA pCardData,
__in BYTE bContainerIndex,
__in VOID *pPaddingInfo,
__in LPCWSTR pwszBlobType,
__in LPCWSTR pwszAlgId,
__out CARD_KEY_HANDLE *phKey,
__in_bcount(cbInput) PBYTE pbInput,
__in DWORD cbInput,
__in DWORD dwFlags)
{
SCardLog::writeLog("[%s:%d] CardImportSessionKey:dummy",__FUNCTION__, __LINE__);
return SCARD_E_UNSUPPORTED_FEATURE;
}
DWORD WINAPI MDEncryptData(__in PCARD_DATA pCardData,
__in CARD_KEY_HANDLE hKey,
__in LPCWSTR pwszSecureFunction,
__in_bcount(cbInput) PBYTE pbInput,
__in DWORD cbInput, __in DWORD dwFlags,
__deref_out_ecount(*pcEncryptedData) PCARD_ENCRYPTED_DATA *ppEncryptedData,
__out PDWORD pcEncryptedData)
{
SCardLog::writeLog("[%s:%d] MDEncryptData:dummy",__FUNCTION__, __LINE__);
return SCARD_E_UNSUPPORTED_FEATURE;
}
DWORD WINAPI MDImportSessionKey(__in PCARD_DATA pCardData,
__in LPCWSTR pwszBlobType,
__in LPCWSTR pwszAlgId,
__out PCARD_KEY_HANDLE phKey,
__in_bcount(cbInput) PBYTE pbInput,
__in DWORD cbInput)
{
SCardLog::writeLog("[%s:%d] MDImportSessionKey:dummy",__FUNCTION__, __LINE__);
return SCARD_E_UNSUPPORTED_FEATURE;
}
DWORD WINAPI CardCreateContainerEx(__in PCARD_DATA pCardData,
__in BYTE bContainerIndex,
__in DWORD dwFlags,
__in DWORD dwKeySpec,
__in DWORD dwKeySize,
__in PBYTE pbKeyData,
__in PIN_ID PinId)
{
SCardLog::writeLog("[%s:%d] CardCreateContainerEx:dummy",__FUNCTION__, __LINE__);
return SCARD_E_UNSUPPORTED_FEATURE;
}