Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | utils: Fix enum_flags_to_string parameter name to match Doxygen description | Martin Willi | 2015-03-19 | 1 | -1/+1 |
| | |||||
* | enum: Extend printf hook to print flags | Thomas Egerer | 2015-03-03 | 2 | -6/+122 |
| | | | | Signed-off-by: Thomas Egerer <thomas.egerer@secunet.com> | ||||
* | apple: Redefine some additional clashing Mach types | Martin Willi | 2014-12-16 | 1 | -0/+6 |
| | | | | | | While they usually are not included in a normal strongSwan build, the XPC header indirectly defines these Mach types. To build charon-xpc, which uses both XPC and strongSwan includes, we have to redefine these types. | ||||
* | apple: Use precancelable poll() to wrap accept/recvmsg calls | Martin Willi | 2014-12-12 | 1 | -1/+5 |
| | | | | | | To make accept/recvmsg cancelable, we wrap them with poll. As poll itself does not honor pending cancellations when entering the function, we use our variant that checks for pending cancellation requests before entering poll(). | ||||
* | windows: Properly set errno for read/write functions using Winsock | Martin Willi | 2014-11-28 | 1 | -4/+4 |
| | |||||
* | windows: Move the compatibility header to the compat subfolder | Martin Willi | 2014-11-21 | 3 | -3/+3 |
| | |||||
* | apple: Wrap accept() and recvfrom() with poll(2) instead of select | Martin Willi | 2014-11-21 | 1 | -5/+11 |
| | |||||
* | apple: Introduce a central compatibility header with all __APPLE__ quirks | Martin Willi | 2014-11-21 | 2 | -0/+106 |
| | |||||
* | windows: Provide a write(2) wrapper that uses send(2) on sockets | Martin Willi | 2014-11-21 | 2 | -0/+22 |
| | |||||
* | windows: Provide a read(2) wrapper that uses recv(2) on sockets | Martin Willi | 2014-11-21 | 2 | -0/+25 |
| | |||||
* | windows: Provide a poll(2) wrapper calling WSAPoll() | Martin Willi | 2014-11-21 | 3 | -0/+40 |
| | |||||
* | identification: Support custom types in string constructor prefixes | Martin Willi | 2014-10-30 | 2 | -0/+42 |
| | |||||
* | identification: Support prefixes in string constructors for an explicit type | Martin Willi | 2014-10-30 | 2 | -0/+54 |
| | |||||
* | chunk: Fix internet checksum calculation on big-endian systems | Tobias Brunner | 2014-10-23 | 1 | -1/+1 |
| | | | | | | | ntohs() might be defined as noop (#define ntohs(x) (x)) so we have to manually shorten the negated value (gets promoted to an int). Fixes #747. | ||||
* | backtrace: Fix symbol lookup in dynamic symtab via libbfd | Tobias Brunner | 2014-10-14 | 1 | -0/+1 |
| | |||||
* | process: Include missing <signal.h> for raise(3) | Martin Willi | 2014-10-14 | 1 | -0/+1 |
| | | | | Fixes OS X build. | ||||
* | process: Add a wrapper to invoke a command under the system default shell | Martin Willi | 2014-10-06 | 2 | -0/+94 |
| | |||||
* | process: Port child process spawning to the Windows platform | Martin Willi | 2014-10-06 | 1 | -1/+283 |
| | |||||
* | process: Provide an abstraction to spawn child processes with redirected I/O | Martin Willi | 2014-10-06 | 2 | -0/+312 |
| | |||||
* | leak-detective: Whitelist libssl SSL_COMP_get_compression_methods() | Martin Willi | 2014-09-24 | 1 | -0/+2 |
| | | | | | This function is called by libcurl initialization with SSL, and uses a static allocation of compression algorithms not freed. | ||||
* | chunk: Fix Doxygen comments for chunk_internet_checksum[_inc] | Tobias Brunner | 2014-09-11 | 1 | -2/+2 |
| | |||||
* | utils: Check if the parameter passed to countof() is actually an array type | Martin Willi | 2014-08-25 | 1 | -1/+2 |
| | | | | This should avoid errors such as the one fixed with 118b2879. | ||||
* | utils: Add some initial build time assertion macros | Martin Willi | 2014-08-25 | 1 | -0/+14 |
| | | | | | These are useful to assert constants during build time. We evaluate the expression to 0 when valid, so we can safely use the evaluated value. | ||||
* | chunk: Add function to calculate Internet Checksums according to RFC 1071 | Tobias Brunner | 2014-07-22 | 2 | -0/+56 |
| | |||||
* | utils: Undefine mem{cpy,move,set} if set before defining them | Martin Willi | 2014-07-07 | 1 | -0/+9 |
| | | | | | Some platforms, such as OS X, use macros for these functions. Undefine them to avoid compiler warnings. | ||||
* | optionsfrom: Properly handle errors when determining file size | Tobias Brunner | 2014-07-02 | 1 | -2/+7 |
| | |||||
* | windows: Fix off-by-one error in strerror_s_extended() | Tobias Brunner | 2014-07-02 | 1 | -1/+1 |
| | |||||
* | windows: accept() socket handle could theoretically be 0 | Tobias Brunner | 2014-07-02 | 1 | -1/+1 |
| | |||||
* | windows: Close correct socket when opening second socket fails in socketpair() | Tobias Brunner | 2014-07-02 | 1 | -1/+1 |
| | |||||
* | windows: Make sure the string returned from ReadConsole() is null terminated | Tobias Brunner | 2014-07-02 | 1 | -0/+2 |
| | |||||
* | backtrace: Remove name checks after SymFromAddr() calls | Tobias Brunner | 2014-07-02 | 1 | -9/+5 |
| | | | | The Name member is an array whose address is always defined. | ||||
* | parser-helper: Ensure file_next() does not remove the sentinel item | Tobias Brunner | 2014-07-01 | 1 | -1/+1 |
| | |||||
* | utils: Helper macros to define overloaded macros based on number of arguments | Tobias Brunner | 2014-06-30 | 1 | -0/+26 |
| | |||||
* | enum: Replace รพ with p in Doxygen comments | Tobias Brunner | 2014-06-30 | 1 | -2/+2 |
| | |||||
* | Fixed some typos | Tobias Brunner | 2014-06-30 | 1 | -1/+1 |
| | |||||
* | windows: Include <sys/stat.h> explicitly before overloading memset()/memcpy() | Martin Willi | 2014-06-25 | 1 | -0/+1 |
| | | | | | | fstat() in newer MinGWs is defined as non-static inline. With our new static inline memset()/memcpy() overloads, this raises a warning. To avoid it, explicitly include <sys/stat.h> once before defining these overloads. | ||||
* | utils: Add wrappers for memcpy(3), memmove(3) and memset(3) | Tobias Brunner | 2014-06-24 | 1 | -1/+33 |
| | | | | | | | | These wrappers guarantee that calls to these functions are noops if the number of bytes is 0, as calling them with NULL pointers is undefined according to the C standard, even if the number of bytes is 0 (most implementations probably ignore the pointers anyway in this case, but lets make sure). | ||||
* | identification: Only use either , or / to separate RDNs | Tobias Brunner | 2014-06-18 | 1 | -3/+13 |
| | | | | | If a DN starts with a slash (or whitespace and a slash) slashes will be used, otherwise commas. | ||||
* | windows: Declare strerror_s() | Martin Willi | 2014-06-17 | 1 | -0/+5 |
| | | | | | Older MinGW versions seem to miss this function declaration. Fixes build on Travis using Ubuntu 12.04. | ||||
* | windows: Extend strerror_r/s by extended POSIX errno strings | Martin Willi | 2014-06-17 | 2 | -0/+66 |
| | |||||
* | windows: Implement strerror_r using strerror_s | Martin Willi | 2014-06-17 | 1 | -0/+9 |
| | |||||
* | windows: Wrap most Winsock2 Posix functions to set errno | Martin Willi | 2014-06-17 | 2 | -65/+198 |
| | | | | | | While Winsock provides many Posix compatibility functions, they do not set errno, but use WSAGetLastError() for error reporting. The wrapped functions derive an errno from WSAGetLastError() on failure. | ||||
* | backtrace: Use GetModuleInformation/GetModuleFileNameEx directly on Win32 | Martin Willi | 2014-06-06 | 1 | -2/+10 |
| | | | | The K32 variants are actually needed on 64-bit only. | ||||
* | windows: Use WINAPI call convention for Windows API callbacks | Martin Willi | 2014-06-06 | 2 | -3/+3 |
| | | | | | For x86_64 it does not actually matter, but for i686 builds the call convention is different with WINAPI. | ||||
* | windows: Provide POSIX supplement errno values missing in MinGW | Martin Willi | 2014-06-04 | 2 | -23/+147 |
| | | | | | MinGW headers do not define these values, but Windows system headers do. Windows defines them for POSIX compatibility, we do the same locally. | ||||
* | windows: Provide shutdown(2) operation aliases mapping to those on Windows | Martin Willi | 2014-06-04 | 1 | -0/+7 |
| | |||||
* | unit-tests: Support testable functions on Windows, avoid weak GCC symbols | Martin Willi | 2014-06-04 | 2 | -33/+56 |
| | | | | | | | Instead of using weak symbols, we use dlsym() on Windows to find an arbitrary symbol in libtest to detect its linkage. Instead of creating the associated hashtable in the test runner, we maintain it in libstrongswan, making it significantly simpler. | ||||
* | unit-tests: Seed chunk_hash() only once, but before creating any hashtables | Martin Willi | 2014-06-04 | 2 | -1/+10 |
| | | | | | | | Due to the removal of pthread_once, we manually create the seed for chunk_hash(). With the new testable functions interface, this won't work for the hashtable initiated using __attribute__((constructor)). Enforce seeding before creating that hashtable. | ||||
* | utils: Add a wait_sigint() function to wait for SIGINT or equivalent | Martin Willi | 2014-06-04 | 2 | -0/+88 |
| | |||||
* | chunk: On Windows, use binary mode in chunk_write() | Martin Willi | 2014-06-04 | 1 | -1/+8 |
| |