8.3.3 SecureDELTA_CommonErrors.h
8.3.3 SecureSDK Common Error Codes
SecureSDK Common Error Codes:
Here is the listing for the SecureSDK Common Error codes:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
#pragma once
#ifndef NO_ERROR
#define NO_ERROR (0x00)
#endif
#define SFX_PATCH_OPTIONS_STRUCTURE_MALLOC_ERROR (0x100)
#define SFX_PATCH_GET_MODULE_FILE_NAME_ERROR (0x101)
#define SFX_PATCH_OPTIONS_READ_WRITE_CHECK_ERROR1 (0x107)
#define SFX_PATCH_OPTIONS_READ_WRITE_CHECK_ERROR2 (0x107)
#define SFX_PATCH_OPTIONS_SIZE_MISMATCH_ERROR (0x108)
#define SFX_PATCH_PAYLOAD_MISSING_ERROR (0x109) // the buffer is cut short, no payload
#define SFX_PATCH_OPTIONS_ENGINE_SIZE_MISMATCH_ERROR (0x117)
#define SFX_PATCH_OPTIONS_ONLY_ADLER_MISMATCH_ERROR (0x118)
typedef enum SECURE_DELTA_SFX_ERROR_ID_TYPEs
{
SECURE_DELTA_SFX_NO_ERROR_ = 0x00,
SECURE_DELTA_SFX_SOURCE_FILE_NOT_FOUND_ERROR_ = 0x10,
SECURE_DELTA_SFX_PUBLIC_KEY_FILE_NOT_FOUND_ERROR_ = 0x11,
SECURE_DELTA_SFX_CMDLINE_PARAMS_GENERAL_ERROR_ = 0x12,
SECURE_DELTA_SFX_SOURCE_FILE_FAILED_VALIDATION_ERROR_ = 0x13,
SECURE_DELTA_SFX_PAYLOAD_FILE_FAILED_VALIDATION_ERROR_ = 0x14,
SECURE_DELTA_SFX_GENERAL_ERROR_6 = 0x15,
SECURE_DELTA_SFX_NO_CALLBACK_PTR_ = 0x16,
SECURE_DELTA_SFX_CALLBACK_NOT_USED_ = 0x17,
SECURE_DELTA_SFX_HEADER_DECRYPT_ERROR = 0x18,
SECURE_DELTA_SFX_OLD_HEADER_NOT_SUPPORTED_IN_V256 = 0x19,
SECURE_DELTA_SFX_NO_EXECUTABLE_NAME_ERROR = 0x21,
SECURE_DELTA_SFX_DECODE_ERROR_USER_CANCELED_ = 0x22,
SECURE_DELTA_SFX_DECODE_ERROR_UNSPECIFIED_ERROR_ = 0x23,
}
// SECURE_DELTA_ENCODE_ERRORS
#define SECURE_DELTA_ENCODE_ERROR_NO_ERROR_ (NO_ERROR)
#define SECURE_DELTA_ENCODE_ERROR_INITIALIZATION_ (100)
#define SECURE_DELTA_ENCODE_ERROR_USER_CANCELED_ (101)
#define SECURE_DELTA_ENCODE_ERROR_NO_CALLBACK_PTR_ (102)
#define SECURE_DELTA_ENCODE_ERROR_NO_USER_DEFINED_PTR_ (102)
#define SECURE_DELTA_ENCODE_ERROR_NOT_USING_CALLBACK_PTR_ (103)
#define SECURE_DELTA_ENCODE_ERROR_USER_CANCELLED_NAG_WND (104)
#define SECURE_DELTA_ENCODE_ERROR_NOT_ENOUGH_MEMORY (105)
// SECURE_DELTA_DECODE_ERRORS
#define SECURE_DELTA_DECODE_ERROR_NO_ERROR_ (NO_ERROR)
#define SECURE_DELTA_DECODE_ERROR_INITIALIZATION_ (200)
#define SECURE_DELTA_DECODE_ERROR_USER_CANCELED_ (201)
#define SECURE_DELTA_DECODE_ERROR_NO_CALLBACK_PTR_ (202)
#define SECURE_DELTA_DECODE_ERROR_NOT_USING_CALLBACK_PTR_ (203)
#define SECURE_DELTA_DECODE_ERROR_GENERAL_ERROR_ (204)
#define SECURE_DELTA_DECODE_ERROR_INITIAL_FILE_COULD_NOT_BE_OPENED (205)
#define SECURE_DELTA_DECODE_ERROR_TARGET_FILE_COULD_NOT_BE_CREATED (206)
#define SECURE_DELTA_DECODE_ERROR_DELTA_FILE_COULD_NOT_BE_OPENED (207)
#define SECURE_DELTA_DECODE_ERROR_INITIAL_FILE_SIZE_ERROR (208)
#define SECURE_DELTA_DECODE_ERROR_INITIAL_FILE_SIZE_MISMATCH (209)
#define SECURE_DELTA_DECODE_ERROR_INITIAL_FILE_ADLER32_MISMATCH (210)
#define SECURE_DELTA_DECODE_ERROR_INTERNAL_FLAGS_ERROR (211)
#define SECURE_DELTA_DECODE_ERROR_MEMORY_MAPPED_FILE_ALLOCATION_ERROR (212)
#define SECURE_DELTA_DECODE_ERROR_FSEEK_ERROR (213)
#define SECURE_DELTA_DECODE_ERROR_TARGET_FILE_FINAL_ADLER32_ERROR (214)
#define SECURE_DELTA_DECODE_ERROR_PRE_CHECKING_FAILED (215)
#define SECURE_DELTA_DECODE_ERROR_INITIAL_FILE_IS_NULL (216)
#define SECURE_DELTA_DECODE_ERROR_HEADER_READ_ERROR (217)
#define SECURE_DELTA_DECODE_ERROR_NEWER_VERSION_NEEDED_TO_DECODE (218)
// SECURE_DELTA_READ_HEADER_ERRORS
#define SECURE_DELTA_ERROR_READ_HEADER_DELTA_FILE_COULD_NOT_BE_OPENED (300)
#define SECURE_DELTA_ERROR_READ_HEADER_READ_MISMATCH (310)
#define SECURE_DELTA_ERROR_READ_HEADER_SIZE_MISMATCH (311)
#define SECURE_DELTA_ERROR_READ_HEADER_ENCRYPTION_TYPE_MISMATCH (312)
#define SECURE_DELTA_ERROR_READ_HEADER_MUTEX_ISSUE (313)
#define SECURE_DELTA_ERROR_READ_HEADER_PRE_ADLER32_MISMATCH_ (314)
#define SECURE_DELTA_ERROR_READ_HEADER_ADLER32_MISMATCH_ (315)
#define SECURE_DELTA_ERROR_READ_HEADER_SEEK_ERROR_ (316)
//SECURE_DELTA_SFX_DECODE_ERRORS
#define SECURE_DELTA_SFX_DECODE_ERROR_INITIAL_FILE_COULD_NOT_BE_OPENED (400)
#define SECURE_DELTA_SFX_DECODE_ERROR_SFX_EXE_FILE_COULD_NOT_BE_OPENED (401)
#define SECURE_DELTA_SFX_DECODE_ERROR_SFX_PAYLOAD_POSITION_ERROR (402)
#define SECURE_DELTA_SFX_NEWER_VERSION_NEEDED_FOR_DECODE (403)
#define SECURE_DELTA_SFX_UNSPECIFIED_VERSION_RELATED_ERROR (404)
#define SECURE_DELTA_SFX_VERIFICATION_ERROR_PUBLIC_KEY_FILE_NOT_FOUND (405)
#define SECURE_DELTA_SFX_VERIFICATION_ERROR_DIGITAL_SIGNATURE_VERIFICATION_FAILED (406)
// SECURE_DELTA_UPDATE_HEADER_ERRORS
#define SECURE_DELTA_ERROR_UPDATE_HEADER_DELTA_FILE_COULD_NOT_BE_OPENED (500)
#define SECURE_DELTA_ERROR_UPDATE_HEADER_READ_MISMATCH (501)
#define SECURE_DELTA_ERROR_UPDATE_HEADER_SIZE_MISMATCH (502)
#define SECURE_DELTA_ERROR_UPDATE_HEADER_ENCRYPTION_TYPE_MISMATCH (503)
#define SECURE_DELTA_ERROR_UPDATE_HEADER_MUTEX_ISSUE (504)
#define SECURE_DELTA_ERROR_UPDATE_HEADER_PRE_ADLER32_MISMATCH_ (505)
#define SECURE_DELTA_ERROR_UPDATE_HEADER_ADLER32_MISMATCH_ (506)
#define SECURE_DELTA_ERROR_UPDATE_HEADER_SEEK_ERROR_ (507)
// SECURE_DELTA_SIGNING_ERRORS
#define SECURE_DELTA_SIGNING_ERROR_INITIAL_FILE_COULD_NOT_BE_OPENED (600)
#define SECURE_DELTA_SIGNING_ERROR_INITIAL_FILE_SIZE_ERROR (601)
#define SECURE_DELTA_SIGNING_ERROR_INITIAL_FILE_SIZE_MISMATCH (602)
#define SECURE_DELTA_SIGNING_ERROR_INITIAL_FILE_ADLER32_MISMATCH (603)
#define SECURE_DELTA_SIGNING_ERROR_INTERNAL_FLAGS_ERROR (604)
#define SECURE_DELTA_SIGNING_ERROR_MEMORY_MAPPED_FILE_ALLOCATION_ERROR (605)
#define SECURE_DELTA_SIGNING_ERROR_FSEEK_ERROR (606)
#define SECURE_DELTA_SIGNING_ERROR_PRE_CHECKING_FAILED (607)
#define SECURE_DELTA_SIGNING_ERROR_DIGITAL_SIGNATURE_FAILED (608)
// SECURE_DELTA_VERIFICATION_ERRORS
#define SECURE_DELTA_VERIFICATION_ERROR_VERIFICATION_FAILED (700)
#define SECURE_DELTA_VERIFICATION_ERROR_PUBLIC_KEY_FILE_NOT_FOUND (701)
#define SECURE_DELTA_LICENSING_VERIFICATION_NAME_LENGTH_ERROR_ (702)
#define SECURE_DELTA_LICENSING_VERIFICATION_EMAIL_LENGTH_ERROR_ (703)
#define SECURE_DELTA_LICENSING_VERIFICATION_COMPANY_LENGTH_ERROR_ (704)
#define SECURE_DELTA_LICENSING_VERIFICATION_CHECK_NAME_ERROR_ (705)
#define SECURE_DELTA_LICENSING_VERIFICATION_CHECK_EMAIL_ERROR_ (706)
#define SECURE_DELTA_LICENSING_VERIFICATION_OPEN_LICENSE_FILE_ERROR_ (707)
#define SECURE_DELTA_LICENSING_VERIFICATION_READ_LICENSE_DATA_ERROR_ (708)
#define SECURE_DELTA_LICENSING_VERIFICATION_ADLER32_LICENSE_CHECK_ERROR_ (709)
#define SECURE_DELTA_LICENSING_VERIFICATION_ECC_LICENSE_CHECK_ERROR_ (700)
#define SECURE_DELTA_LICENSING_SIGNING_ECC_SIGN_ERROR_ (800)
#define SECURE_DELTA_LICENSING_SIGNING_WRITE_LICENSE_DATA_ERROR_ (801)
// 0x200