1# Copyright (C) 2022-2023 Huawei Device Co., Ltd.
2# Licensed under the Apache License, Version 2.0 (the "License");
3# you may not use this file except in compliance with the License.
4# You may obtain a copy of the License at
5#
6#     http://www.apache.org/licenses/LICENSE-2.0
7#
8# Unless required by applicable law or agreed to in writing, software
9# distributed under the License is distributed on an "AS IS" BASIS,
10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11# See the License for the specific language governing permissions and
12# limitations under the License.
13
14import("//base/security/device_auth/deviceauth_env.gni")
15
16account_related_defines = [
17  "ENABLE_ACCOUNT_AUTH_ISO",
18  "ENABLE_ACCOUNT_AUTH_EC_SPEKE",
19]
20account_related_inc_path = []
21
22deviceauth_account_group_manager_path = "${services_path}/legacy/group_manager"
23deviceauth_account_group_auth_path = "${services_path}/legacy/group_auth"
24authenticators_path = "${services_path}/legacy/authenticators"
25group_manager_identical_account_files = [ "${deviceauth_account_group_manager_path}/src/group_operation/identical_account_group/identical_account_group.c" ]
26group_manager_across_account_files = [ "${deviceauth_account_group_manager_path}/src/group_operation/across_account_group/across_account_group.c" ]
27
28group_auth_account_related_files = [ "${deviceauth_account_group_auth_path}/src/group_auth_manager/account_related_group_auth/account_related_group_auth.c" ]
29identity_manager_path = "${services_path}/identity_manager"
30account_related_inc_path += [
31  "${authenticators_path}/inc",
32  "${authenticators_path}/inc/account_related",
33  "${authenticators_path}/inc/account_related/auth/iso_auth_task",
34  "${authenticators_path}/inc/account_related/auth/pake_v2_auth_task",
35  "${authenticators_path}/inc/account_related/creds_manager",
36]
37
38authenticators_account_related_files = [
39  "${authenticators_path}/src/account_related/account_module.c",
40  "${authenticators_path}/src/account_related/account_multi_task_manager.c",
41  "${authenticators_path}/src/account_related/account_task_main.c",
42  "${authenticators_path}/src/account_related/account_version_util.c",
43  "${authenticators_path}/src/account_related/creds_manager/asy_token_manager.c",
44  "${authenticators_path}/src/account_related/creds_manager/sym_token_manager.c",
45  "${authenticators_path}/src/account_related/auth/iso_auth_task/iso_auth_client_task.c",
46  "${authenticators_path}/src/account_related/auth/iso_auth_task/iso_auth_server_task.c",
47  "${authenticators_path}/src/account_related/auth/iso_auth_task/iso_auth_task_common.c",
48  "${authenticators_path}/src/account_related/auth/pake_v2_auth_task/pake_v2_auth_task_common.c",
49  "${authenticators_path}/src/account_related/auth/pake_v2_auth_task/pake_v2_auth_client_task.c",
50  "${authenticators_path}/src/account_related/auth/pake_v2_auth_task/pake_v2_auth_server_task.c",
51]
52
53account_related_cred_plugin_files = [ "${services_path}/cred_manager/src/account_related/account_related_cred_plugin.c" ]
54
55account_related_creds_manager_files =
56    [ "${identity_manager_path}/src/cert_operation.c" ]
57
58account_related_files =
59    group_auth_account_related_files + group_manager_identical_account_files +
60    group_manager_across_account_files + authenticators_account_related_files +
61    account_related_cred_plugin_files + account_related_creds_manager_files
62