IOS: Correct ES return code names about signatures

-1027 is used when ES cannot find the issuer of a certificate.

-1012 is used when the signature type is invalid.
This commit is contained in:
Léo Lam 2017-06-10 18:32:15 +02:00
parent 13b1fa2c65
commit 34c9bf391e
1 changed files with 27 additions and 26 deletions

View File

@ -19,38 +19,39 @@ namespace HLE
{ {
enum ReturnCode : s32 enum ReturnCode : s32
{ {
IPC_SUCCESS = 0, // Success IPC_SUCCESS = 0, // Success
IPC_EACCES = -1, // Permission denied IPC_EACCES = -1, // Permission denied
IPC_EEXIST = -2, // File exists IPC_EEXIST = -2, // File exists
IPC_EINVAL = -4, // Invalid argument or fd IPC_EINVAL = -4, // Invalid argument or fd
IPC_EMAX = -5, // Too many file descriptors open IPC_EMAX = -5, // Too many file descriptors open
IPC_ENOENT = -6, // File not found IPC_ENOENT = -6, // File not found
IPC_EQUEUEFULL = -8, // Queue full IPC_EQUEUEFULL = -8, // Queue full
IPC_EIO = -12, // ECC error IPC_EIO = -12, // ECC error
IPC_ENOMEM = -22, // Alloc failed during request IPC_ENOMEM = -22, // Alloc failed during request
FS_EINVAL = -101, // Invalid path FS_EINVAL = -101, // Invalid path
FS_EACCESS = -102, // Permission denied FS_EACCESS = -102, // Permission denied
FS_ECORRUPT = -103, // Corrupted NAND FS_ECORRUPT = -103, // Corrupted NAND
FS_EEXIST = -105, // File exists FS_EEXIST = -105, // File exists
FS_ENOENT = -106, // No such file or directory FS_ENOENT = -106, // No such file or directory
FS_ENFILE = -107, // Too many fds open FS_ENFILE = -107, // Too many fds open
FS_EFBIG = -108, // Max block count reached? FS_EFBIG = -108, // Max block count reached?
FS_EFDEXHAUSTED = -109, // Too many fds open FS_EFDEXHAUSTED = -109, // Too many fds open
FS_ENAMELEN = -110, // Pathname is too long FS_ENAMELEN = -110, // Pathname is too long
FS_EFDOPEN = -111, // FD is already open FS_EFDOPEN = -111, // FD is already open
FS_EIO = -114, // ECC error FS_EIO = -114, // ECC error
FS_ENOTEMPTY = -115, // Directory not empty FS_ENOTEMPTY = -115, // Directory not empty
FS_EDIRDEPTH = -116, // Max directory depth exceeded FS_EDIRDEPTH = -116, // Max directory depth exceeded
FS_EBUSY = -118, // Resource busy FS_EBUSY = -118, // Resource busy
ES_SHORT_READ = -1009, // Short read ES_SHORT_READ = -1009, // Short read
ES_EIO = -1010, // Write failure ES_EIO = -1010, // Write failure
ES_INVALID_SIGNATURE_TYPE = -1012,
ES_FD_EXHAUSTED = -1016, // Max of 3 ES handles exceeded ES_FD_EXHAUSTED = -1016, // Max of 3 ES handles exceeded
ES_EINVAL = -1017, // Invalid argument ES_EINVAL = -1017, // Invalid argument
ES_DEVICE_ID_MISMATCH = -1018, ES_DEVICE_ID_MISMATCH = -1018,
ES_HASH_MISMATCH = -1022, // Decrypted content hash doesn't match with the hash from the TMD ES_HASH_MISMATCH = -1022, // Decrypted content hash doesn't match with the hash from the TMD
ES_ENOMEM = -1024, // Alloc failed during request ES_ENOMEM = -1024, // Alloc failed during request
ES_EACCES = -1026, // Incorrect access rights (according to TMD) ES_EACCES = -1026, // Incorrect access rights (according to TMD)
ES_INVALID_TMD_SIGNATURE_TYPE = -1027, ES_UNKNOWN_ISSUER = -1027,
ES_NO_TICKET = -1028, ES_NO_TICKET = -1028,
ES_INVALID_TICKET = -1029, ES_INVALID_TICKET = -1029,
IOSC_EACCES = -2000, IOSC_EACCES = -2000,