2 * Copyright (c) 2015 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.
18 * @author Bartlomiej Grzelewski (b.grzelewski@samsung.com)
20 * @brief This is part of C api for ValidationCore.
23 #ifndef _CERTSVC_CERROR_H_
24 #define _CERTSVC_CERROR_H_
30 #define CERTSVC_TRUE (1)
31 #define CERTSVC_FALSE (0)
33 #define CERTSVC_SUCCESS (1)
34 #define CERTSVC_FAIL (0) /* Openssl internal error. */
35 #define CERTSVC_BAD_ALLOC (-2) /* Memmory allcation error. */
36 #define CERTSVC_WRONG_ARGUMENT (-4) /* Function argumnet is wrong. */
37 #define CERTSVC_INVALID_ALGORITHM (-5) /* Algorithm is not supported. */
38 #define CERTSVC_INVALID_SIGNATURE (-6) /* Signature and message does not match. */
39 #define CERTSVC_IO_ERROR (-7) /* Certificate file IO error. */
40 #define CERTSVC_INVALID_PASSWORD (-8) /* Certificate container password mismatch. */
41 #define CERTSVC_DUPLICATED_ALIAS (-9) /* User-provided alias is aleady taken. */
42 #define CERTSVC_ALIAS_DOES_NOT_EXIST (-10) /* Alias no exist in store. */
43 #define CERTSVC_INVALID_STORE_TYPE (-11) /* User-provided invalid import type for storing in system/email/wifi/vpn store. */
44 #define CERTSVC_INVALID_STATUS (-12) /* User-provided invalid status while stetting the status for the store system/email/wifi/vpn store. */
50 #endif // _CERTSVC_CERROR_H_