Skip to content

Commit 3843d8e

Browse files
committed
[unitytls] Update of error code to newest version
1 parent 02aa179 commit 3843d8e

File tree

1 file changed

+14
-13
lines changed

1 file changed

+14
-13
lines changed

mcs/class/System/Mono.UnityTls/UnityTls.cs

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -35,21 +35,22 @@ unsafe internal static partial class UnityTls
3535
public enum unitytls_error_code : UInt32
3636
{
3737
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.
4546
UNITYTLS_ENTROPY_SOURCE_FAILED, // Failed to generate requested amount of entropy data.
4647

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.
5354
}
5455

5556
[StructLayout (LayoutKind.Sequential)]

0 commit comments

Comments
 (0)