Migrate to openssl3
[platform/core/security/drm-service-core-tizen.git] / include / drm-tizen-error.h
1 /*
2  * Copyright (c) 2000-2015 Samsung Electronics Co., Ltd.
3  *
4  * Licensed under the Flora License, Version 1.1 (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://floralicense.org/license/
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 #ifndef __DRM_TIZEN_ERROR_H__
17 #define __DRM_TIZEN_ERROR_H__
18
19 #ifdef __cplusplus
20 extern "C" {
21 #endif
22
23 #define TADC_SUCCESS                    1      // SUCCESS
24 // TADC Error Message Define
25 #define TADC_GETDUID_ERROR              0x0611 // Get IMEI Error
26 #define TADC_GETMCC_ERROR               0x0612 // Get MCC Error
27 #define TADC_GETMNC_ERROR               0x0613 // Get MNC Error
28
29 #define TADC_REQMAKEHMAC_ERROR          0x0620 // Make Signature Fail in Reauest Message
30 #define TADC_RESPONSEMESSAGE_ERROR      0x0621 // Response Message structure Error
31 #define TADC_RESPONSESIGNATURE_ERROR    0x0622 // Response Message Signature Error
32
33 #define TADC_GETDHKEY_ERROR             0x0630 // Get DH Key Error
34 #define TADC_GETRESPONSLICENSE_ERROR    0x0631 // Get License information Error
35 #define TADC_LICENSEXMLPARSING_ERROR    0x0632 // License XML parsing Error
36
37 #define TADC_NOTTADCFILE_ERROR          0x0640 // This is not TADC Contents
38 #define TADC_CONTENTSVERSION_ERROR      0x0641 // TADC Contents Version Error
39 #define TADC_CONTENTSHMAC_ERROR         0x0642 // Contents Signature Error
40 #define TADC_CONTENTSXML_ERROR          0x0643 // Contents XML Error in Header
41 #define TADC_CONTENTSSTRUCT_ERROR       0X0644 // Contents Header Struct Error
42
43 #define TADC_RULE_DUID_ERROR            0x0651 // IMEI Rule check Error
44 #define TADC_RULE_MIN_ERROR             0x0652 // MIN Rule check Error
45 #define TADC_RULE_NOINFOMATION          0X0653 // NO Information in DB
46
47 #define TADC_PARAMETER_ERROR            0X0660 // Input Parameter Error
48 #define TADC_XMLPARSER_ERROR            0X0661 // XML Parser Error
49 #define TADC_MEMAlOC_ERROR              0x0662 // Memory Alocation Error
50
51 #define TADC_CID_NULL_ERROR             0X0670 // CID Null Error
52 #define TADC_SID_NULL_ERROR             0X0671 // CID Null Error
53
54 #define TADC_RO_SIGNATURE_ERROR         0X0680 // RO Signature Fail
55 #define TADC_RO_CERTIFICATE_ERROR       0X0681 // RO Certificate Fail
56
57 #define TADC_DHINFO_MAX_ERROR           0x0690 // DHINFO Max error
58 #define TADC_GET_ROACQ_INFO_ERROR       0x0691 // TADC_GetROAcqInfo Fail
59 #define TADC_MAKE_LICENSEREQ_ERROR      0x0692 // SACD_MakeRequestRO Fail
60 #define TADC_GET_HASHREQID_ERROR        0x0693 // TADC_GetHashReqID Fail
61 #define TADC_GET_RORES_INFO_ERROR       0x0694 // TADC_GetROAcqInfo Fail
62
63 #define TADC_PARSE_TIMECONSTRAINTS_ERROR 0x0695 // DTappsDtTmStr2StrucTm Fail
64 #define TADC_LICENSE_INVALID_ERROR       0x0696 // DSaapsValidateConstraints Fail
65
66 #define TADC_GET_DEVICEKEY_ERROR         0x0697 // DTappsGetDeviceKey Fail
67 #define TADC_GET_BASE64ENCODE_ERROR      0x0698 // DTappsB64Encode Fail
68 #define TADC_SET_AES_ENCRYPTKEY_ERROR    0x0699 // DTAPPS_AES_SET_ENCR_KEY Fail
69 #define TADC_SET_AES_WRAPKEY_ERROR       0x0700 // DTAPPS_AES_WRAP_KEY Fail
70 #define TADC_DB_INSTALL_ERROR            0x0702 // DTapps_DB_Install Fail
71 #define TADC_DB_READ_ERROR               0x0703 // DTapps_DB_Install Fail
72
73 #define TADC_FILE_OPEN_ERROR             0x0704
74 #define TADC_FILE_READ_ERROR             0x0705
75 #define TADC_GET_FILEHEADER_ERROR        0x0706 // DrmTdcGetFileHeader Fail
76 #define TADC_GET_CEK_ERROR               0x0707 // DSaapsGetCek Fail
77 #define TADC_GET_FILE_HANDLER_ERROR      0x0708
78 #define TADC_DECRYPT_PACKAGE_ERROR       0x0709 // DrmTdcDecryptPackage2 Fail
79
80 #define TADC_LICENSE_VALID               1
81 #define TADC_LICENSE_DB_ERROR            0x802
82 #define TADC_LICENSE_NO_LICENSE          0x805
83 #define TADC_LICENSE_DUID_MISMATCH       0x806
84 #define TADC_LICENSE_UNKNOWN_ERROR       0x807
85
86 #ifdef __cplusplus
87 }
88 #endif
89
90 #endif // __DRM_TIZEN_ERROR_H__