| Age | Commit message (Collapse) | Author | Files | Lines | |
|---|---|---|---|---|---|
| 32 hours | utils: Correct ctype(3) usage | 1 | -1/+1 | ||
| According to POSIX.1 the argument of ctype(3) functions, including toupper(3), has to either be EOF or a value representable as an unsigned char. If the argument has any other value, the behavior is undefined. This means values of signed char must first be cast to unsigned char, otherwise they will be outside the range of allowed values. glibc attempts to avoid the undefined behavior by defining the functions to work for all integer inputs representable by either an unsigned char or a signed char. NetBSD libc does not, and causes a segfault if the value is invalid. | |||||
| 32 hours | socket: Improve portability by replacing OS-specific macros with ↵ | 1 | -15/+19 | ||
| AC_CHECK_HEADERS The primary purpose of this change is to support NetBSD. No functional changes intended. | |||||
| 2025-11-22 | Add atexit call to (empty) deinit function to prevent stripping off ↵ | 1 | -0/+8 | ||
| initializer code | |||||
| 2025-06-29 | socket: Use const void* instead of void* in signature of socket_send() | 1 | -1/+1 | ||
| 2025-06-04 | Change order of includes to prevent compiler warning | 1 | -2/+2 | ||
| Otherwise _WIN32_WINNT redefined warning may occur. | |||||
| 2025-06-02 | socket: [Windows] Use inet_ntop for >= Vista | 1 | -1/+1 | ||
| 2025-05-17 | utils: Remove 'plist helper' from header comment | 1 | -1/+1 | ||
| 2025-05-17 | socket: [Windows] Use WSAAddressToStringA | 1 | -1/+1 | ||
| This makes sure to always use the ANSI version of that function. | |||||
| 2025-05-16 | Use plist_new_unix_date API when available | 1 | -2/+12 | ||
| 2025-03-01 | socket: Use a backwards-compatible way to deal with , before __VA_ARGS__ | 1 | -1/+1 | ||
| 2025-02-13 | socket: Fix error output | 1 | -1/+1 | ||
| 2025-02-13 | socket: Allow setting debug level via environment variable | 1 | -0/+4 | ||
| The value of SOCKET_DEBUG is read once during initialization (library constructor) and is expected to be a numerical value. | |||||
| 2025-02-13 | socket: WIN32: Make sure errno is set in error conditions | 1 | -0/+9 | ||
| 2025-02-13 | socket: Update inline attributes for gcc/clang | 1 | -1/+1 | ||
| 2025-02-13 | Fix compiler warning | 2 | -1/+2 | ||
| 2025-02-13 | socket: WIN32: call WSAInit from library constructor | 2 | -35/+13 | ||
| 2025-02-13 | socket: Improve error message output/verbose logging | 1 | -73/+112 | ||
| This will make sure to not print anything by default. Verbosity needs to be at least 1 and can be set using socket_set_verbose(). | |||||
| 2024-11-28 | Fix unrecognized \e escape sequence | 1 | -1/+1 | ||
| 2024-11-28 | Fix compilation on MSVC | 8 | -79/+18 | ||
| 2024-11-26 | Switch to better initializer strategy | 1 | -43/+27 | ||
| 2024-11-26 | Change WIN32 to _WIN32 to check if running on Windows | 4 | -50/+50 | ||
| 2024-10-29 | socket.c: define AI_NUMERICSERV if undefined | 1 | -0/+4 | ||
| 2024-10-21 | socket/win32: Use calloc where applicable in getifaddrs implementation | 1 | -4/+3 | ||
| This should prevent crashes like the one mentioned in #12 which are caused by releasing an invalid pointer (due to uninitialized memory). | |||||
| 2024-10-21 | sha1: Remove old commented-out code | 1 | -301/+0 | ||
| 2024-10-09 | socket: Remove greater-than check for scope_id since they might not be in order | 1 | -10/+0 | ||
| Otherwise the scope_id matching might exit the loop before reaching the interface with the actual corresponding scope_id. This only affected socket_connect_addr(). | |||||
| 2024-06-15 | Add SHA-1, SHA-224, SHA-256, SHA-384, and SHA-512 functions to interface | 5 | -0/+1173 | ||
| 2024-05-13 | socket: Create an IPv4 compatible IPv6 socket when NULL is passed to ↵ | 1 | -1/+2 | ||
| socket_create | |||||
| 2024-05-13 | Revert "Use updated libplist 2.5.0 API" | 1 | -2/+2 | ||
| This reverts commit e61817ae57aac7252499268a9276692a32dc3e01. | |||||
| 2024-05-04 | socket: Haiku compilation fixes | 1 | -3/+5 | ||
| - link against libnetwork - get_primary_mac_address similar to FreeBSD | |||||
| 2024-05-04 | Use updated libplist 2.5.0 API | 1 | -2/+2 | ||
| 2024-03-23 | Add helper code to deal with NSKeyedArchiver plist data | 2 | -0/+1229 | ||
| 2024-03-06 | socket: Make sure errno is always set on error, and always return a ↵ | 1 | -5/+97 | ||
| meaningful error code | |||||
| 2024-02-16 | Add version function to interface | 1 | -0/+8 | ||
| 2024-02-16 | socket: Allow NULL as address for socket_create() and socket_connect() | 1 | -8/+0 | ||
| This will connect to localhost without the need to specify localhost or 127.0.0.1 or ::1 and also makes this invulnerable to DNS rebind attacks. | |||||
| 2024-01-30 | Move LIMD_GLUE_API definitions to public headers | 9 | -71/+75 | ||
| 2023-12-26 | socket: Conditionally compile using poll or select based on availability | 1 | -27/+85 | ||
| 2023-12-26 | socket: Fix select failing when the process has many file descriptors by ↵ | 1 | -79/+100 | ||
| using poll instead This happens, for example, when a process links with libusbmuxd, and the process is file descriptor heavy. Note: 'poll' means the syscall poll, not a polling approach. This patch does not add a busy wait and is not a performance regression. | |||||
| 2023-12-11 | opack: Fix parsing of 32 and 64 bit packed values | 1 | -2/+2 | ||
| 32 and 64 bit packed values were not parsed correctly due to bad pointer manipulation. Thanks to @cornejo for spotting this! | |||||
| 2023-12-11 | win32: Remove windows.h from public headers | 1 | -5/+8 | ||
| 2023-11-10 | opack: Fixed 32bit buffer overflow | 1 | -1/+1 | ||
| Thanks to @cornejo for spotting this! | |||||
| 2023-04-19 | Remove plist-related code in favor of new libplist API | 1 | -239/+1 | ||
| 2023-01-09 | Fix compilation on cygwin | 1 | -0/+6 | ||
| 2022-04-22 | [clang-tidy] Do not use else after return/break/continue | 1 | -2/+1 | ||
| Signed-off-by: Rosen Penev <rosenp@gmail.com> | |||||
| 2022-04-22 | [clang-tidy] utils: Fix too small loop variable | 1 | -1/+1 | ||
| Found with bugprone-too-small-loop-variable Signed-off-by: Rosen Penev <rosenp@gmail.com> | |||||
| 2022-04-22 | [clang-tidy] use uppercase numeric literals | 1 | -4/+4 | ||
| Found with readability-uppercase-literal-suffix Signed-off-by: Rosen Penev <rosenp@gmail.com> | |||||
| 2022-04-04 | utils: Close file if buffer allocation fails in buffer_read_from_filename() | 1 | -0/+1 | ||
| Thanks @demhademha for pointing this out. | |||||
| 2022-03-29 | socket: Add socket_get_socket_port function | 1 | -0/+21 | ||
| 2022-02-09 | utils: Use libplist's plist_from_memory instead of duplicating format detection | 1 | -5/+1 | ||
| 2022-02-04 | Add support for Apple's OPACK encoding and TLV format | 3 | -0/+674 | ||
| 2022-02-04 | Add a simple char buffer implementation | 2 | -0/+68 | ||
