• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2021-2023 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *    http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #ifndef DEVICE_AUTH_H
17 #define DEVICE_AUTH_H
18 
19 #include <stdint.h>
20 #include <stdbool.h>
21 
22 #if defined(__LINUX__) || defined(_UNIX)
23 #define DEVICE_AUTH_API_PUBLIC __attribute__ ((visibility("default")))
24 #else
25 #define DEVICE_AUTH_API_PUBLIC
26 #endif
27 
28 #define FIELD_CREDENTIAL_VAL "credentialVal"
29 #define FIELD_CREDENTIAL_OWNER "credentialOwner"
30 #define FIELD_PEER_USER_SPACE_ID "peerUserSpaceId"
31 #define FIELD_GROUP_ID "groupId"
32 #define FIELD_GROUP_TYPE "groupType"
33 #define FIELD_GROUP_NAME "groupName"
34 #define FIELD_PEER_DEVICE_ID "peerDeviceId"
35 #define FIELD_IS_ADMIN "isAdmin"
36 #define FIELD_CRED_TYPE "credType"
37 #define FIELD_CREDENTIAL_TYPE "credentialType"
38 #define FIELD_IS_FORCE_DELETE "isForceDelete"
39 #define FIELD_IS_IGNORE_CHANNEL "isIgnoreChannel"
40 #define FIELD_CONNECT_PARAMS "connectParams"
41 #define FIELD_ADD_ID "addId"
42 #define FIELD_DELETE_ID "deleteId"
43 #define FIELD_APP_ID "appId"
44 #define FIELD_SERVICE_TYPE "serviceType"
45 #define FIELD_IS_DEVICE_LEVEL "isDeviceLevel"
46 #define FIELD_ALTERNATIVE "alternative"
47 #define FIELD_PEER_UDID "peerUdid"
48 #define FIELD_PEER_CONN_DEVICE_ID "peerConnDeviceId"
49 #define FIELD_KEY_LENGTH "keyLength"
50 #define FIELD_IS_CLIENT "isClient"
51 #define FIELD_SESSION_KEY "sessionKey"
52 #define FIELD_AUTH_FORM "authForm"
53 #define FIELD_CONFIRMATION "confirmation"
54 #define FIELD_GROUP_OWNER "groupOwner"
55 #define FIELD_PEER_AUTH_ID "peerAuthId"
56 #define FIELD_PEER_USER_TYPE "peerUserType"
57 #define FIELD_PEER_USER_ID "peerUserId"
58 #define FIELD_SERVICE_PKG_NAME "servicePkgName"
59 #define FIELD_USER_TYPE "userType"
60 #define FIELD_USER_ID "userId"
61 #define FIELD_SHARED_USER_ID "sharedUserId"
62 #define FIELD_OWNER_USER_ID "ownerUserId"
63 #define FIELD_DEVICE_ID "deviceId"
64 #define FIELD_PIN_CODE "pinCode"
65 #define FIELD_AUTH_ID "authId"
66 #define FIELD_UDID "udid"
67 #define FIELD_IS_SELF_PK "isSelfPk"
68 #define FIELD_GROUP_VISIBILITY "groupVisibility"
69 #define FIELD_EXPIRE_TIME "expireTime"
70 #define FIELD_IS_DELETE_ALL "isDeleteAll"
71 #define FIELD_OS_ACCOUNT_ID "osAccountId"
72 #define FIELD_ACQURIED_TYPE "acquireType"
73 #define FIELD_CRED_OP_FLAG "flag"
74 #define FIELD_CRED_OP_RESULT "result"
75 #define FIELD_AUTH_CODE "authCode"
76 #define FIELD_DEVICE_LIST "deviceList"
77 #define FIELD_IS_UDID_HASH "isUdidHash"
78 #define FIELD_PROTOCOL_EXPAND "protocolExpand"
79 #define FIELD_IS_SELF_FROM_UPGRADE "isSelfFromUpgrade"
80 #define FIELD_IS_PEER_FROM_UPGRADE "isPeerFromUpgrade"
81 #define FIELD_IS_CRED_AUTH "isCredAuth"
82 #define FIELD_CRED_ID "credId"
83 #define FIELD_CREDENTIAL_OBJ "credentialObject"
84 #define FIELD_CREDENTIAL_FORMAT "credentialFormat"
85 #define FIELD_SUBJECT "subject"
86 #define FIELD_ISSUER "issuer"
87 #define FIELD_KEY_FORMAT "keyFormat"
88 #define FIELD_PROOF_TYPE "proofType"
89 #define FIELD_ALGORITHM_TYPE "algorithmType"
90 #define FIELD_CRED_OWNER "credOwner"
91 #define FIELD_AUTHORIZED_ACCOUNT_LIST "authorizedAccountList"
92 #define FIELD_PROTOCOL_TYPE "protocolType"
93 #define FIELD_EXTEND_INFO "extendInfo"
94 #define FIELD_AUTHORIZED_DEVICE_LIST "authorizedDeviceList"
95 #define FIELD_AUTHORIZED_APP_LIST "authorizedAppList"
96 #define FIELD_ACROSS_ACCOUNT_CRED_ID "acrossAccountCredId"
97 #define FIELD_DEVICE_ID_HASH "deviceIdHash"
98 #define FIELD_USER_ID_HASH "userIdHash"
99 #define FIELD_BASE_INFO "baseInfo"
100 #define FIELD_UPDATE_LISTS "updateLists"
101 
102 /**
103  * @brief protocol expand value for bind
104  */
105 typedef enum {
106     /** use this flag to support bind base on symmetric credential when interact with lite device */
107     LITE_PROTOCOL_STANDARD_MODE = 1,
108     /** use this flag when interact with lite device which used iso with short pin */
109     LITE_PROTOCOL_COMPATIBILITY_MODE = 2,
110 } ProtocolExpandValue;
111 
112 /**
113  * @brief type of local system account
114  */
115 typedef enum {
116     /** default local system account */
117     DEFAULT_OS_ACCOUNT = 0,
118     /** the local system account of foreground user */
119     ANY_OS_ACCOUNT = -2,
120 } OsAccountEnum;
121 
122 /**
123  * @brief describes all group types
124  */
125 typedef enum {
126     /** refers to all group types and is used to query group information */
127     ALL_GROUP = 0,
128     /** group type of the same clound account */
129     IDENTICAL_ACCOUNT_GROUP = 1,
130     /** group type of the p2p binding */
131     PEER_TO_PEER_GROUP = 256,
132     /** group type shared to other cloud accounts */
133     ACROSS_ACCOUNT_AUTHORIZE_GROUP = 1282
134 } GroupType;
135 
136 /**
137  * @brief describes all group visibility types
138  */
139 typedef enum {
140     /** visibility type of private group */
141     GROUP_VISIBILITY_PRIVATE = 0,
142     /** visibility type of public group */
143     GROUP_VISIBILITY_PUBLIC = -1
144 } GroupVisibility;
145 
146 /**
147  * @brief describes all group operation codes
148  */
149 typedef enum {
150     /** opeation code for group creation */
151     GROUP_CREATE = 0,
152     /** opeation code for group destruction */
153     GROUP_DISBAND = 1,
154     /** opeation code for inviting the peer device to join the local trusted group */
155     MEMBER_INVITE = 2,
156     /** opeation code for joining the peer trusted group */
157     MEMBER_JOIN = 3,
158     /** opeation code for unbinding with peer device */
159     MEMBER_DELETE = 4,
160 } GroupOperationCode;
161 
162 /**
163  * @brief describes all group authentication types
164  */
165 typedef enum {
166     /** invalid group authentication type */
167     AUTH_FORM_INVALID_TYPE = -1,
168     /** p2p group authentication type */
169     AUTH_FORM_ACCOUNT_UNRELATED = 0,
170     /** group authentication type of the same cloud account */
171     AUTH_FORM_IDENTICAL_ACCOUNT = 1,
172     /** group authentication type shared to other cloud accounts */
173     AUTH_FORM_ACROSS_ACCOUNT = 2,
174 } GroupAuthForm;
175 
176 /**
177  * @brief describes all credential types
178  */
179 typedef enum {
180     /** symmetrical credential type */
181     SYMMETRIC_CRED = 1,
182     /** asymmetric credential type */
183     ASYMMETRIC_CRED = 2,
184 } CredType;
185 
186 /**
187  * @brief describes all device types
188  */
189 typedef enum {
190     /** device type is accessory */
191     DEVICE_TYPE_ACCESSORY = 0,
192     /** device type is controller */
193     DEVICE_TYPE_CONTROLLER = 1,
194     /** device type is proxy */
195     DEVICE_TYPE_PROXY = 2
196 } UserType;
197 
198 /**
199  * @brief describes request response results
200  */
201 typedef enum {
202     /** reject the request from the peer device */
203     REQUEST_REJECTED = 0x80000005,
204     /** accept the request from the peer device */
205     REQUEST_ACCEPTED = 0x80000006,
206 } RequestResponse;
207 
208 /**
209  * @brief This structure provides the ability to monitor changes in trusted groups and devices.
210  */
211 typedef struct {
212     /** Call it when a new group is created. */
213     void (*onGroupCreated)(const char *groupInfo);
214     /** Call it when a group is destroyed. */
215     void (*onGroupDeleted)(const char *groupInfo);
216     /** Call it when a group adds a trusted device. */
217     void (*onDeviceBound)(const char *peerUdid, const char *groupInfo);
218     /** Call it when a group deletes a trusted device. */
219     void (*onDeviceUnBound)(const char *peerUdid, const char *groupInfo);
220     /** Call it when a device has no trust relationship in all groups. */
221     void (*onDeviceNotTrusted)(const char *peerUdid);
222     /** Call it when a device has no trust relationship in all groups of a certain type. */
223     void (*onLastGroupDeleted)(const char *peerUdid, int groupType);
224     void (*onTrustedDeviceNumChanged)(int curTrustedDeviceNum);
225 } DataChangeListener;
226 
227 /**
228  * @brief This structure provides the ability to monitor changes in credentials.
229  */
230 typedef struct {
231     /** Call it when a cred add. */
232     void (*onCredAdd)(const char *credId, const char *credInfo);
233     /** Call it when a cred is delete. */
234     void (*onCredDelete)(const char *credId, const char *credInfo);
235     /** Call it when a cred update. */
236     void (*onCredUpdate)(const char *credId, const char *credInfo);
237 } CredChangeListener;
238 
239 /**
240  * @brief This structure describes the callbacks that need to be provided by the business.
241  */
242 typedef struct {
243     /** Call it when there is data to be sent. */
244     bool (*onTransmit)(int64_t requestId, const uint8_t *data, uint32_t dataLen);
245     /** Call it when the session key is returned. */
246     void (*onSessionKeyReturned)(int64_t requestId, const uint8_t *sessionKey, uint32_t sessionKeyLen);
247     /** Call it when the asynchronous operation is successful. */
248     void (*onFinish)(int64_t requestId, int operationCode, const char *returnData);
249     /** Call it when the asynchronous operation fails. */
250     void (*onError)(int64_t requestId, int operationCode, int errorCode, const char *errorReturn);
251     /** Call it when receiving requests from other devices. */
252     char *(*onRequest)(int64_t requestId, int operationCode, const char *reqParams);
253 } DeviceAuthCallback;
254 
255 /**
256  * @brief This structure provides all the capabilities of group authentication.
257  */
258 typedef struct {
259     /** This interface is used to process authentication data. */
260     int32_t (*processData)(int64_t authReqId, const uint8_t *data, uint32_t dataLen,
261         const DeviceAuthCallback *gaCallback);
262     /** This interface is used to initiate authentication between devices. */
263     int32_t (*authDevice)(int32_t osAccountId, int64_t authReqId, const char *authParams,
264         const DeviceAuthCallback *gaCallback);
265     /** This interface is used to cancel an authentication process. */
266     void (*cancelRequest)(int64_t requestId, const char *appId);
267     /** This interface is used to get real info by pseudonym id. */
268     int32_t (*getRealInfo)(int32_t osAccountId, const char *pseudonymId, char **realInfo);
269     /** This interface is used to get pseudonym id by an index. */
270     int32_t (*getPseudonymId)(int32_t osAccountId, const char *indexKey, char **pseudonymId);
271 } GroupAuthManager;
272 
273 typedef struct {
274     /** This interface is used to register business callbacks. */
275     int32_t (*regCallback)(const char *appId, const DeviceAuthCallback *callback);
276     /** This interface is used to unregister business callbacks. */
277     int32_t (*unRegCallback)(const char *appId);
278     /** This interface is used to register callback for data change monitoring. */
279     int32_t (*regDataChangeListener)(const char *appId, const DataChangeListener *listener);
280     /** This interface is used to unregister callback for data change monitoring. */
281     int32_t (*unRegDataChangeListener)(const char *appId);
282     /** This interface is used to create a trusted group. */
283     int32_t (*createGroup)(int32_t osAccountId, int64_t requestId, const char *appId, const char *createParams);
284     /** This interface is used to delete a trusted group. */
285     int32_t (*deleteGroup)(int32_t osAccountId, int64_t requestId, const char *appId, const char *disbandParams);
286     /** This interface is used to add a trusted device to a trusted group. */
287     int32_t (*addMemberToGroup)(int32_t osAccountId, int64_t requestId, const char *appId, const char *addParams);
288     /** This interface is used to delete a trusted device from a trusted group. */
289     int32_t (*deleteMemberFromGroup)(int32_t osAccountId, int64_t requestId, const char *appId,
290         const char *deleteParams);
291     /** This interface is used to process data of binding or unbinding devices. */
292     int32_t (*processData)(int64_t requestId, const uint8_t *data, uint32_t dataLen);
293     /** This interface is used to batch add trusted devices with account relationships. */
294     int32_t (*addMultiMembersToGroup)(int32_t osAccountId, const char *appId, const char *addParams);
295     /** This interface is used to batch delete trusted devices with account relationships. */
296     int32_t (*delMultiMembersFromGroup)(int32_t osAccountId, const char *appId, const char *deleteParams);
297     /** This interface is used to obtain the registration information of the local device. */
298     int32_t (*getRegisterInfo)(const char *reqJsonStr, char **returnRegisterInfo);
299     /** This interface is used to check whether the specified application has access rights to the group. */
300     int32_t (*checkAccessToGroup)(int32_t osAccountId, const char *appId, const char *groupId);
301     /** This interface is used to obtain all public key information related to a device. */
302     int32_t (*getPkInfoList)(int32_t osAccountId, const char *appId, const char *queryParams, char **returnInfoList,
303         uint32_t *returnInfoNum);
304     /** This interface is used to obtain group information of a group. */
305     int32_t (*getGroupInfoById)(int32_t osAccountId, const char *appId, const char *groupId, char **returnGroupInfo);
306     /** This interface is used to obtain the group information of groups that meet the query parameters. */
307     int32_t (*getGroupInfo)(int32_t osAccountId, const char *appId, const char *queryParams,
308         char **returnGroupVec, uint32_t *groupNum);
309     /** This interface is used to obtain all group information of a specific group type. */
310     int32_t (*getJoinedGroups)(int32_t osAccountId, const char *appId, int groupType,
311         char **returnGroupVec, uint32_t *groupNum);
312     /** This interface is used to obtain all group information related to a certain device. */
313     int32_t (*getRelatedGroups)(int32_t osAccountId, const char *appId, const char *peerDeviceId,
314         char **returnGroupVec, uint32_t *groupNum);
315     /** This interface is used to obtain the information of a trusted device. */
316     int32_t (*getDeviceInfoById)(int32_t osAccountId, const char *appId, const char *deviceId, const char *groupId,
317         char **returnDeviceInfo);
318     /** This interface is used to obtain all trusted device information in a group. */
319     int32_t (*getTrustedDevices)(int32_t osAccountId, const char *appId, const char *groupId,
320         char **returnDevInfoVec, uint32_t *deviceNum);
321     /** This interface is used to query whether a specified device exists in the group. */
322     bool (*isDeviceInGroup)(int32_t osAccountId, const char *appId, const char *groupId, const char *deviceId);
323     /** This interface is used to cancel a binding or unbinding process. */
324     void (*cancelRequest)(int64_t requestId, const char *appId);
325     /** This interface is used to destroy the information returned by the internal allocated memory. */
326     void (*destroyInfo)(char **returnInfo);
327 } DeviceGroupManager;
328 
329 /**
330  * @brief This enum provides all the operationCode of interface ProcessCredential.
331  */
332 enum {
333     /** invalid operationCode for initialize */
334     CRED_OP_INVALID = -1,
335     /** operationCode for ProcessCredential to query credential */
336     CRED_OP_QUERY,
337     /** operationCode for ProcessCredential to create credential */
338     CRED_OP_CREATE,
339     /** operationCode for ProcessCredential to import credential */
340     CRED_OP_IMPORT,
341     /** operationCode for ProcessCredential to delete credential */
342     CRED_OP_DELETE,
343 };
344 
345 /**
346  * @brief This enum provides all the flag of reqJsion for interface ProcessCredential.
347  */
348 enum {
349     /** invalid flag for initialize */
350     RETURN_FLAG_INVALID = -1,
351     /** flag for only return result */
352     RETURN_FLAG_DEFAULT,
353     /** flag for return result and publicKey */
354     RETURN_FLAG_PUBLIC_KEY,
355 };
356 
357 /**
358  * @brief This enum provides all the acquireType of interface StartAuthDevice & ProcessAuthDevice.
359  */
360 typedef enum {
361     /** invalid acquireType for initialize */
362     ACQUIRE_TYPE_INVALID = -1,
363     /** acquireType for p2p bind */
364     P2P_BIND,
365 } AcquireType;
366 
367 /**
368  * @brief This structure provides all the capabilities of credential authentication.
369  */
370 typedef struct {
371     /** This interface is used to process authentication data. */
372     int32_t (*processCredData)(int64_t authReqId, const uint8_t *data, uint32_t dataLen,
373         const DeviceAuthCallback *gaCallback);
374     /** This interface is used to initiate authentication between devices. */
375     int32_t (*authCredential)(int32_t osAccountId, int64_t authReqId, const char *authParams,
376         const DeviceAuthCallback *gaCallback);
377 } CredAuthManager;
378 
379 #ifdef __cplusplus
380 extern "C" {
381 #endif
382 
383 /**
384  * @brief Process Credential data.
385  *
386  * This API is used to process Credential data.
387  *
388  * @param operationCode: use one of CRED_OP_QUERY|CRED_OP_CREATE|CRED_OP_IMPORT|CRED_OP_DELETE
389  * @param requestParams: json string contains group of osAccountId|deviceId|serviceType|acquireType|flag
390  * @param returnData: json string contains group of result|publicKey
391  *
392  * @return When the ipc call is successful, it returns HC_SUCCESS.
393  * Otherwise, it returns other values.
394  */
395 DEVICE_AUTH_API_PUBLIC int32_t ProcessCredential(
396     int32_t operationCode, const char *requestParams, char **returnData);
397 
398 /**
399  * @brief Start to auth device.
400  *
401  * This API is used to start to auth device.
402  *
403  * @param requestId: id of a request
404  * @param authParams: json string contains group of osAccountId|deviceId|serviceType|acquireType|pinCode
405  * @param callbak: callback object
406  *
407  * @return When the ipc call is successful, it returns HC_SUCCESS.
408  * Otherwise, it returns other values.
409  */
410 DEVICE_AUTH_API_PUBLIC int32_t StartAuthDevice(
411     int64_t requestId, const char *authParams, const DeviceAuthCallback *callbak);
412 
413 /**
414  * @brief Process auth device data.
415  *
416  * This API is used to process auth device data.
417  *
418  * @param requestId: id of a request
419  * @param authParams: json string contains group of osAccountId|data
420  * @param callbak: callback object
421  *
422  * @return When the ipc call is successful, it returns HC_SUCCESS.
423  * Otherwise, it returns other values.
424  */
425 DEVICE_AUTH_API_PUBLIC int32_t ProcessAuthDevice(
426     int64_t requestId, const char *authParams, const DeviceAuthCallback *callbak);
427 
428 /**
429  * @brief Cancle auth device request.
430  *
431  * This API is used to cancle auth device request.
432  *
433  * @param requestId: id of a request
434  * @param authParams: json string contains osAccountId or NULL
435  *
436  * @return When the ipc call is successful, it returns HC_SUCCESS.
437  * Otherwise, it returns other values.
438  */
439 DEVICE_AUTH_API_PUBLIC int32_t CancelAuthRequest(int64_t requestId, const char *authParams);
440 
441 /**
442  * @brief Initialize device auth service.
443  *
444  * This API is used to initialize device auth service.
445  *
446  * @return When the service initialization is successful, it returns HC_SUCCESS.
447  * Otherwise, it returns other values.
448  * @see DestroyDeviceAuthService
449  */
450 DEVICE_AUTH_API_PUBLIC int InitDeviceAuthService(void);
451 
452 /**
453  * @brief Destroy device auth service.
454  *
455  * This API is used to destroy device auth service.
456  *
457  * @see InitDeviceAuthService
458  */
459 DEVICE_AUTH_API_PUBLIC void DestroyDeviceAuthService(void);
460 
461 /**
462  * @brief Get group authentication instance.
463  *
464  * This API is used to get group authentication instance.
465  * The InitDeviceAuthService function must be called before using this method.
466  *
467  * @return When the method call result is successful, it returns GroupAuthManager instance.
468  * Otherwise, it returns NULL.
469  */
470 DEVICE_AUTH_API_PUBLIC const GroupAuthManager *GetGaInstance(void);
471 
472 /**
473  * @brief Get group management instance.
474  *
475  * This API is used to get group management instance.
476  * The InitDeviceAuthService function must be called before using this method.
477  *
478  * @return When the method call result is successful, it returns DeviceGroupManager instance.
479  * Otherwise, it returns NULL.
480  */
481 DEVICE_AUTH_API_PUBLIC const DeviceGroupManager *GetGmInstance(void);
482 
483 typedef struct {
484     int32_t (*addCredential)(int32_t osAccountId, const char *requestParams, char **returnData);
485 
486     int32_t (*exportCredential)(int32_t osAccountId, const char *credId, char **returnData);
487 
488     int32_t (*queryCredentialByParams)(int32_t osAccountId, const char *requestParams, char **returnData);
489 
490     int32_t (*queryCredInfoByCredId)(int32_t osAccountId, const char *credId, char **returnData);
491 
492     int32_t (*deleteCredential)(int32_t osAccountId, const char *credId);
493 
494     int32_t (*updateCredInfo)(int32_t osAccountId, const char *credId, const char *requestParams);
495 
496     int32_t (*agreeCredential)(int32_t osAccountId, const char *selfCredId, const char *requestParams,
497         char **returnData);
498 
499     int32_t (*registerChangeListener)(const char *appId, CredChangeListener *listener);
500 
501     int32_t (*unregisterChangeListener)(const char *appId);
502 
503     int32_t (*deleteCredByParams)(int32_t osAccountId, const char *requestParams, char **returnData);
504 
505     int32_t (*batchUpdateCredentials)(int32_t osAccountId, const char *requestParams, char **returnData);
506 
507     void (*destroyInfo)(char **returnData);
508 } CredManager;
509 
510 DEVICE_AUTH_API_PUBLIC const CredManager *GetCredMgrInstance(void);
511 
512 /**
513  * @brief Get credential authentication instance.
514  *
515  * This API is used to get credential authentication instance.
516  * The InitDeviceAuthService function must be called before using this method.
517  *
518  * @return When the method call result is successful, it returns CredAuthManager instance.
519  * Otherwise, it returns NULL.
520  */
521 DEVICE_AUTH_API_PUBLIC const CredAuthManager *GetCredAuthInstance(void);
522 
523 typedef struct {
524     uint8_t *data;
525     uint32_t length;
526 } DataBuff;
527 
528 typedef struct {
529     int32_t (*getClientSharedKey)(const char *peerPk, const char *serviceId, DataBuff *returnSharedKey,
530         DataBuff *returnRandom);
531     int32_t (*getServerSharedKey)(const char *peerPk, const char *serviceId, const DataBuff *random,
532         DataBuff *returnSharedKey);
533     void (*destroyDataBuff)(DataBuff *dataBuff);
534 } AccountVerifier;
535 
536 DEVICE_AUTH_API_PUBLIC const AccountVerifier *GetAccountVerifierInstance(void);
537 
538 #ifdef __cplusplus
539 }
540 #endif
541 #endif
542