2 * Copyright (c) 2000 - 2014 Samsung Electronics Co., Ltd All Rights Reserved
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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
17 * @file ckmc-type-converter.h
18 * @author Dongsun Lee(ds73.lee@samsung.com)
20 * @brief new and free methods for the struct of CAPI
23 #ifndef CKMC_TYPE_CONVERTER_H_
24 #define CKMC_TYPE_CONVERTER_H_
26 #include <ckm/ckm-error.h>
27 #include <ckmc/ckmc-error.h>
28 #include <ckmc/ckmc-type.h>
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);
43 #endif /* CKMC_TYPE_CONVERTER_H_ */