summaryrefslogtreecommitdiffstats
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2024-03-23Add helper code to deal with NSKeyedArchiver plist dataGravatar Nikias Bassen2-0/+1229
2024-03-06socket: Make sure errno is always set on error, and always return a ↵Gravatar Nikias Bassen1-5/+97
meaningful error code
2024-02-16Add version function to interfaceGravatar Nikias Bassen1-0/+8
2024-02-16socket: Allow NULL as address for socket_create() and socket_connect()Gravatar Nikias Bassen1-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-30Move LIMD_GLUE_API definitions to public headersGravatar Nikias Bassen9-71/+75
2023-12-26socket: Conditionally compile using poll or select based on availabilityGravatar Nikias Bassen1-27/+85
2023-12-26socket: Fix select failing when the process has many file descriptors by ↵Gravatar messi1-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-11opack: Fix parsing of 32 and 64 bit packed valuesGravatar Nikias Bassen1-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-11win32: Remove windows.h from public headersGravatar Nikias Bassen1-5/+8
2023-11-10opack: Fixed 32bit buffer overflowGravatar Nikias Bassen1-1/+1
Thanks to @cornejo for spotting this!
2023-04-19Remove plist-related code in favor of new libplist APIGravatar Nikias Bassen1-239/+1
2023-01-09Fix compilation on cygwinGravatar Josef Micka1-0/+6
2022-04-22[clang-tidy] Do not use else after return/break/continueGravatar Rosen Penev1-2/+1
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-04-22[clang-tidy] utils: Fix too small loop variableGravatar Rosen Penev1-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 literalsGravatar Rosen Penev1-4/+4
Found with readability-uppercase-literal-suffix Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-04-04utils: Close file if buffer allocation fails in buffer_read_from_filename()Gravatar Nikias Bassen1-0/+1
Thanks @demhademha for pointing this out.
2022-03-29socket: Add socket_get_socket_port functionGravatar Nikias Bassen1-0/+21
2022-02-09utils: Use libplist's plist_from_memory instead of duplicating format detectionGravatar Nikias Bassen1-5/+1
2022-02-04Add support for Apple's OPACK encoding and TLV formatGravatar Nikias Bassen3-0/+674
2022-02-04Add a simple char buffer implementationGravatar Nikias Bassen2-0/+68
2021-11-24socket: Add FreeBSD supprt to get_primary_mac_addressGravatar Cameron Katri1-2/+6
2021-10-19utils: Fix bad malloc result check in buffer_read_from_filename and test ↵Gravatar Nikias Bassen1-1/+5
arguments for NULL
2021-09-13Check availability of constructor attribute and use it on Windows in favor ↵Gravatar Nikias Bassen1-10/+18
of DllMain
2021-08-30thread: Make sure cond_* API is publicly exportedGravatar Nikias Bassen1-5/+5
2021-08-30utils: Make MAC_EPOCH define publicGravatar Nikias Bassen1-2/+0
2021-06-21utils: Make sure to add MAC_EPOCH when printing PLIST_DATE nodesGravatar Nikias Bassen1-1/+3
2021-06-21utils: Add plist_print_to_stream_with_indentation()Gravatar Nikias Bassen1-3/+7
2021-06-11termcolors: Cast to correct type for format string specifierGravatar Nikias Bassen1-2/+2
2021-06-11utils: Suppress compiler warningGravatar Nikias Bassen1-0/+3
2021-06-11thread(win32): Make sure cond_wait and cond_wait_timeout return a valueGravatar Nikias Bassen1-2/+15
2021-06-11Add helper for handling colored terminal outputGravatar Nikias Bassen3-4/+397
2021-06-07socket: Add get_primary_mac_address()Gravatar Nikias Bassen1-0/+62
2021-06-07Initial check-in of sourcesGravatar Nikias Bassen7-0/+2096