💾 Archived View for gemini.rmf-dev.com › repo › Vaati › Vgmi › files › 3e541df14c8bda863f6fabac08906… captured on 2023-12-28 at 15:42:50. Gemini links have been rewritten to link to archived content

View Raw

More Information

-=-=-=-=-=-=-

Go Back

0 /*

1 * ISC License

2 * Copyright (c) 2023 RMF <rawmonk@firemail.cc>

3 */

4 enum {

5 ERROR_NONE,

6 ERROR_ERRNO,

7 ERROR_MEMORY_FAILURE,

8 ERROR_UNSUPPORTED_PROTOCOL,

9 ERROR_UNKNOWN_PROTOCOL,

10 ERROR_UNKNOWN_HOST,

11 ERROR_INVALID_DATA,

12 ERROR_INVALID_ARGUMENT,

13 ERROR_INVALID_COMMAND_NAME,

14 ERROR_TERMBOX_FAILURE,

15 ERROR_NULL_ARGUMENT,

16 ERROR_URL_TOO_LONG,

17 ERROR_INVALID_URL,

18 ERROR_INVALID_PORT,

19 ERROR_GETADDRINFO, /* gai_strerror */

20 ERROR_INVALID_ADDRESS,

21 ERROR_BUFFER_OVERFLOW,

22 ERROR_SOCKET_CREATION,

23 ERROR_SOCKET_CONNECTION,

24 ERROR_TOO_MANY_REDIRECT,

25 ERROR_TLS_FAILURE,

26 ERROR_INVALID_STATUS,

27 ERROR_INVALID_METADATA,

28 ERROR_STORAGE_ACCESS,

29 ERROR_CERTIFICATE_MISMATCH,

30 ERROR_CERTIFICATE_EXPIRED,

31 ERROR_CERTIFICATE_AHEAD,

32 ERROR_PTHREAD,

33 ERROR_SANDBOX_FAILURE,

34 ERROR_RESPONSE_TOO_LARGE,

35 ERROR_XDG,

36 ERROR_NO_CRLN

37 };

38

39 int error_string(int error, char *out, size_t len);

40 extern char error_tls[1024];

41