summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
6 hoursUpdate NEWS for release1.3.3Gravatar Nikias Bassen1-0/+10
6 hoursUpdate soversion for releaseGravatar Nikias Bassen1-1/+1
30 hoursutils: Correct ctype(3) usageGravatar Masatake Daimon1-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.
30 hourssocket: Improve portability by replacing OS-specific macros with ↵Gravatar Masatake Daimon2-15/+20
AC_CHECK_HEADERS The primary purpose of this change is to support NetBSD. No functional changes intended.
2025-11-24endianness.h: Default to little endianGravatar Nikias Bassen1-0/+7
2025-11-22Add atexit call to (empty) deinit function to prevent stripping off ↵Gravatar Nikias Bassen1-0/+8
initializer code
2025-09-08Add FUNDINGGravatar Nikias Bassen1-0/+3
2025-07-11[github-actions] Update build workflow to use windows-latestGravatar Nikias Bassen1-1/+2
2025-06-29socket: Use const void* instead of void* in signature of socket_send()Gravatar Nikias Bassen2-2/+2
2025-06-04Updated NEWS for release1.3.2Gravatar Nikias Bassen1-0/+15
2025-06-04Update soversion for releaseGravatar Nikias Bassen1-1/+1
2025-06-04configure: [Windows] Add --with-winver option to specify minimum Windows versionGravatar Nikias Bassen1-1/+18
This effectively defines WINVER and _WIN32_WINNT to the specified value which will compile the code with that minimum supported Windows version instead of the compiler/SDK default. The passed value is expected to be in hex (like 0x0600) or decimal, so passing --with-winver=0x0600 is a valid accepted input. See https://learn.microsoft.com/cpp/porting/modifying-winver-and-win32-winnt for the values of different Windows versions.
2025-06-04Change order of includes to prevent compiler warningGravatar Nikias Bassen1-2/+2
Otherwise _WIN32_WINNT redefined warning may occur.
2025-06-02socket: [Windows] Use inet_ntop for >= VistaGravatar Nikias Bassen1-1/+1
2025-05-17configure: Make sure the check for newer libplist works as expectedGravatar Nikias Bassen1-3/+2
2025-05-17utils: Remove 'plist helper' from header commentGravatar Nikias Bassen2-2/+2
2025-05-17socket: [Windows] Use WSAAddressToStringAGravatar Nikias Bassen1-1/+1
This makes sure to always use the ANSI version of that function.
2025-05-16Use plist_new_unix_date API when availableGravatar Nikias Bassen2-2/+29
2025-03-01socket: Use a backwards-compatible way to deal with , before __VA_ARGS__Gravatar Nikias Bassen1-1/+1
2025-02-13socket: Fix error outputGravatar Nikias Bassen1-1/+1
2025-02-13socket: Allow setting debug level via environment variableGravatar Nikias Bassen1-0/+4
The value of SOCKET_DEBUG is read once during initialization (library constructor) and is expected to be a numerical value.
2025-02-13socket: WIN32: Make sure errno is set in error conditionsGravatar Nikias Bassen1-0/+9
2025-02-13socket: Update inline attributes for gcc/clangGravatar Nikias Bassen1-1/+1
2025-02-13Fix compiler warningGravatar Nikias Bassen2-1/+2
2025-02-13socket: WIN32: call WSAInit from library constructorGravatar Nikias Bassen2-35/+13
2025-02-13socket: Improve error message output/verbose loggingGravatar Nikias Bassen1-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-12-27Add extern "C" guards to public headersGravatar Nikias Bassen11-0/+88
2024-12-02[github-actions] Bump dawidd6/action-download-artifact from 3 to 6Gravatar Nikias Bassen1-3/+3
2024-12-02configure: Remove unused checkGravatar Nikias Bassen1-18/+0
2024-11-29[github-actions] Run build workflow on pull_requestGravatar Nikias Bassen1-0/+1
2024-11-28Fix unrecognized \e escape sequenceGravatar Duncan Ogilvie1-1/+1
2024-11-28Fix compilation on MSVCGravatar Duncan Ogilvie9-81/+20
2024-11-26Switch to better initializer strategyGravatar Duncan Ogilvie1-43/+27
2024-11-26Change WIN32 to _WIN32 to check if running on WindowsGravatar Duncan Ogilvie6-54/+54
2024-10-29socket.c: define AI_NUMERICSERV if undefinedGravatar Sergey Fedorov1-0/+4
2024-10-21socket/win32: Use calloc where applicable in getifaddrs implementationGravatar Nikias Bassen1-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-21sha1: Remove old commented-out codeGravatar Nikias Bassen1-301/+0
2024-10-09Updated NEWS for release1.3.1Gravatar Nikias Bassen1-0/+6
2024-10-09Updated READMEGravatar Nikias Bassen1-3/+3
2024-10-09Update soversion for releaseGravatar Nikias Bassen1-1/+1
2024-10-09socket: Remove greater-than check for scope_id since they might not be in orderGravatar Nikias Bassen1-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-16Update soversion for release1.3.0Gravatar Nikias Bassen1-1/+1
2024-06-16Updated NEWS for releaseGravatar Nikias Bassen1-0/+8
2024-06-15Add SHA-1, SHA-224, SHA-256, SHA-384, and SHA-512 functions to interfaceGravatar Nikias Bassen7-1/+1261
2024-05-13socket: Create an IPv4 compatible IPv6 socket when NULL is passed to ↵Gravatar Nikias Bassen1-1/+2
socket_create
2024-05-13Revert "Use updated libplist 2.5.0 API"Gravatar Nikias Bassen2-3/+3
This reverts commit e61817ae57aac7252499268a9276692a32dc3e01.
2024-05-04socket: Haiku compilation fixesGravatar Jerome Duval2-3/+7
- link against libnetwork - get_primary_mac_address similar to FreeBSD
2024-05-04Use updated libplist 2.5.0 APIGravatar Nikias Bassen2-3/+3
2024-04-15automake: Prevent `dist` or `distcheck` when uncommitted changes are presentGravatar Nikias Bassen1-0/+1
2024-03-23Update NEWS for release1.2.0Gravatar Nikias Bassen1-0/+9