• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 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 /**
17  * @addtogroup Privacy
18  * @{
19  *
20  * @brief Provides sensitive permissions access management.
21  *
22  * @since 8.0
23  * @version 8.0
24  */
25 
26 /**
27  * @file sec_comp_enhance_data.h
28  *
29  * @brief Declares security component enhance deposit data struct.
30  *
31  * @since 10.0
32  * @version 10.0
33  */
34 
35 #ifndef INTERFACE_INNER_KITS_PRIVACY_SEC_COMP_ENHANCE_DATA_H
36 #define INTERFACE_INNER_KITS_PRIVACY_SEC_COMP_ENHANCE_DATA_H
37 
38 #include "iremote_object.h"
39 
40 namespace OHOS {
41 namespace Security {
42 namespace AccessToken {
43 /**
44  * @brief Declares security component enhance data struct only for security component service
45  */
46 struct SecCompEnhanceData {
47     /**
48      * callback remote object for checking security component valid.
49      */
50     sptr<IRemoteObject> callback;
51     /**
52      * pid for which used security component.
53      */
54     int32_t pid;
55     /**
56      * challenge for register.
57      */
58     uint64_t challenge;
59 };
60 
61 } // namespace AccessToken
62 } // namespace Security
63 } // namespace OHOS
64 #endif // INTERFACE_INNER_KITS_PRIVACY_SEC_COMP_ENHANCE_DATA_H
65 
66