@@ -35,21 +35,22 @@ unsafe internal static partial class UnityTls
35
35
public enum unitytls_error_code : UInt32
36
36
{
37
37
UNITYTLS_SUCCESS = 0 ,
38
- UNITYTLS_INVALID_ARGUMENT , // One of the arguments has an invalid value (e.g. null where not allowed)
39
- UNITYTLS_INVALID_FORMAT , // The passed data does not have a valid format.
40
- UNITYTLS_INVALID_STATE , // The object operating being operated on is not in a state that allows this function call.
41
- UNITYTLS_BUFFER_OVERFLOW , // A passed buffer was not large enough.
42
- UNITYTLS_OUT_OF_MEMORY , // Out of memory error
43
- UNITYTLS_INTERNAL_ERROR , // public implementation error.
44
- UNITYTLS_NOT_SUPPORTED , // The requested action is not supported on the current platform/implementation.
38
+ UNITYTLS_INVALID_ARGUMENT , // One of the arguments has an invalid value (e.g. null where not allowed)
39
+ UNITYTLS_INVALID_FORMAT , // The passed data does not have a valid format.
40
+ UNITYTLS_INVALID_PASSWORD , // Invalid password
41
+ UNITYTLS_INVALID_STATE , // The object operating being operated on is not in a state that allows this function call.
42
+ UNITYTLS_BUFFER_OVERFLOW , // A passed buffer was not large enough.
43
+ UNITYTLS_OUT_OF_MEMORY , // Out of memory error
44
+ UNITYTLS_INTERNAL_ERROR , // Internal implementation error.
45
+ UNITYTLS_NOT_SUPPORTED , // The requested action is not supported on the current platform/implementation.
45
46
UNITYTLS_ENTROPY_SOURCE_FAILED , // Failed to generate requested amount of entropy data.
46
47
47
- UNITYTLS_USER_WOULD_BLOCK , // Can be set by the user to signal that a call (e.g. read/write callback) would block and needs to be called again.
48
- // Some implementations may set this if not all bytes have been read/written.
49
- UNITYTLS_USER_STREAM_CLOSED , // Can be set by the user to cancel a read/write operation.
50
- UNITYTLS_USER_READ_FAILED , // Can be set by the user to indicate a failed read operation.
51
- UNITYTLS_USER_WRITE_FAILED , // Can be set by the user to indicate a failed write operation.
52
- UNITYTLS_USER_UNKNOWN_ERROR , // Can be set by the user to indicate a generic error.
48
+ UNITYTLS_USER_WOULD_BLOCK , // Can be set by the user to signal that a call (e.g. read/write callback) would block and needs to be called again.
49
+ // Some implementations may set this if not all bytes have been read/written.
50
+ UNITYTLS_USER_STREAM_CLOSED , // Can be set by the user to cancel a read/write operation.
51
+ UNITYTLS_USER_READ_FAILED , // Can be set by the user to indicate a failed read operation.
52
+ UNITYTLS_USER_WRITE_FAILED , // Can be set by the user to indicate a failed write operation.
53
+ UNITYTLS_USER_UNKNOWN_ERROR , // Can be set by the user to indicate a generic error.
53
54
}
54
55
55
56
[ StructLayout ( LayoutKind . Sequential ) ]
0 commit comments