tizen 2.4 release
[framework/security/key-manager.git] / src / manager / client-capi / ckmc-type-converter.h
1 /*
2  *  Copyright (c) 2000 - 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        ckmc-type-converter.h
18  * @author      Dongsun Lee(ds73.lee@samsung.com)
19  * @version     1.0
20  * @brief       new and free methods for the struct of CAPI
21  */
22
23 #ifndef CKMC_TYPE_CONVERTER_H_
24 #define CKMC_TYPE_CONVERTER_H_
25
26 #include <ckm/ckm-error.h>
27 #include <ckmc/ckmc-error.h>
28 #include <ckmc/ckmc-type.h>
29
30 #ifdef __cplusplus
31 extern "C" {
32 #endif
33
34 int to_ckmc_error(int ckm_error);
35 int to_ckm_error(int ckmc_error);
36 ckmc_ocsp_status_e to_ckmc_ocsp_status(int ckm_ocsp_status);
37 int access_to_permission_mask(ckmc_access_right_e ar, int & permissionMask);
38
39 #ifdef __cplusplus
40 }
41 #endif
42
43 #endif /* CKMC_TYPE_CONVERTER_H_ */