7e461260c128e1d9ce91ab4c3f258af3ed9b4df4
[platform/core/security/cynara.git] / src / include / cynara-creds-commons.h
1 /*
2  *  Copyright (c) 2014 Samsung Electronics Co., Ltd All Rights Reserved
3  *
4  *  Licensed under the Apache License, Version 2.0 (the "License");
5  *  you may not use this file except in compliance with the License.
6  *  You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  *  Unless required by applicable law or agreed to in writing, software
11  *  distributed under the License is distributed on an "AS IS" BASIS,
12  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  *  See the License for the specific language governing permissions and
14  *  limitations under the License
15  */
16 /*
17  * @file        cynara-creds-commons.h
18  * @author      Lukasz Wojciechowski <l.wojciechow@partner.samsung.com>
19  * @author      Radoslaw Bartosiak <r.bartosiak@samsung.com>
20  * @author      Aleksander Zdyb <a.zdyb@partner.samsung.com>
21  * @version     1.0
22  * @brief       This file contains common APIs for Cynara credentials helper.
23  */
24
25
26 #ifndef CYNARA_CREDS_COMMONS_H
27 #define CYNARA_CREDS_COMMONS_H
28
29 enum cynara_client_creds {
30     CLIENT_METHOD_SMACK,
31     CLIENT_METHOD_PID
32 };
33
34 enum cynara_user_creds {
35     USER_METHOD_UID,
36     USER_METHOD_GID
37 };
38
39 #ifdef __cplusplus
40 extern "C" {
41 #endif
42
43 int cynara_creds_get_default_client_method(enum cynara_client_creds *method);
44
45 int cynara_creds_get_default_user_method(enum cynara_user_creds *method);
46
47 #ifdef __cplusplus
48 }
49 #endif
50
51 #endif /* CYNARA_CREDS_COMMONS_H */