aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.HLE/HOS/Services/Ssl/ResultCode.cs
blob: e23621d0a6f6ae9760b534b6b20db83ba351850d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
namespace Ryujinx.HLE.HOS.Services.Ssl
{
    public enum ResultCode
    {
        OsModuleId = 123,
        ErrorCodeShift = 9,

        Success = 0,
        NoSocket = (103 << ErrorCodeShift) | OsModuleId,
        InvalidSocket = (106 << ErrorCodeShift) | OsModuleId,
        InvalidCertBufSize = (112 << ErrorCodeShift) | OsModuleId,
        InvalidOption = (126 << ErrorCodeShift) | OsModuleId,
        CertBufferTooSmall = (202 << ErrorCodeShift) | OsModuleId,
        AlreadyInUse = (203 << ErrorCodeShift) | OsModuleId,
        WouldBlock = (204 << ErrorCodeShift) | OsModuleId,
        Timeout = (205 << ErrorCodeShift) | OsModuleId,
        ConnectionReset = (209 << ErrorCodeShift) | OsModuleId,
        ConnectionAbort = (210 << ErrorCodeShift) | OsModuleId,
    }
}