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