Add to retry to read DUID.
[platform/framework/native/appfw.git] / inc / FSecCertTypes.h
1 //
2 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
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 /**
18  * @file                        FSecCertTypes.h
19  * @brief               This is the header file for the %CertTypes definitions.
20  *
21  * This header file contains the %CertTypes definitions.
22  */
23 #ifndef _FSEC_CERT_TYPES_H_
24 #define _FSEC_CERT_TYPES_H_
25
26 namespace Tizen { namespace Security { namespace Cert
27 {
28
29 /**
30  * @enum ValidationResult
31  *
32  * Defines the validation result.
33  *
34  * @since               2.0
35  */
36 enum ValidationResult
37 {
38         VALIDATION_SUCCESS = 0,                         /**<    Success */
39         VALIDATION_ERROR_INVALID_PATH,          /**<    The certificate path does not validate */
40         VALIDATION_ERROR_NO_ROOT,                   /**<        The root certificate is not found */
41         VALIDATION_ERROR_CERT_EXPIRED,          /**<    The certificate date falls outside the validity period */
42         VALIDATION_ERROR_CERT_REVOKED,          /**<    The certificate has been revoked */
43         VALIDATION_ERROR_INVALID_SIGNATURE, /**<        The signature is not valid */
44
45 }; //ValidationResult
46
47 } } } //Tizen::Security::Cert
48
49 #endif // _FSEC_CERT_TYPES_H_