• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2025 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 AUTH_APPLY_KEY_MANAGER_H
17 #define AUTH_APPLY_KEY_MANAGER_H
18 
19 #include <stdlib.h>
20 
21 #include "auth_apply_key_process.h"
22 #include "auth_apply_key_struct.h"
23 #include "softbus_def.h"
24 
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28 
29 int32_t InitApplyKeyManager(void);
30 void DeInitApplyKeyManager(void);
31 int32_t AuthInsertApplyKey(
32     const RequestBusinessInfo *info, const uint8_t *uk, uint32_t ukLen, uint64_t time, char *accountHash);
33 int32_t GetApplyKeyByBusinessInfo(
34     const RequestBusinessInfo *info, uint8_t *uk, uint32_t ukLen, char *accountHash, uint32_t accountHashLen);
35 int32_t AuthDeleteApplyKey(const RequestBusinessInfo *info);
36 void AuthRecoveryApplyKey(void);
37 void AuthClearAccountApplyKey(void);
38 
39 #ifdef __cplusplus
40 }
41 #endif
42 #endif /* AUTH_APPLY_KEY_MANAGER_H */