aboutsummaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
* windows: Check for clock_gettime() function itself as wellMartin Willi2014-06-041-1/+1
| | | | | CLOCK_THREAD_CPUTIME_ID seems to be defined sometimes even if clock_gettime() is missing.
* windows: Overload sleep() cancellable when it is defined in <unistd.h>Martin Willi2014-06-041-1/+3
|
* sqlite: Avoid name clash when building on WindowsMartin Willi2014-06-041-2/+2
|
* mysql: Add Windows supportMartin Willi2014-06-042-5/+8
| | | | | | As the mysql_config script is not available for Windows, we use a hardcoded library name and no additional CFLAGS. This builds fine against the binary MySQL Connector/C distribution.
* charon-svc: Implement a Windows IKE service using libcharonMartin Willi2014-06-043-0/+284
| | | | | The resulting binary can be either run as Windows service or directly as console application.
* libcharon: Link against Winsock2 on WindowsMartin Willi2014-06-041-0/+1
|
* filelog: Ignore flush_line option if setlinebuf() not supportedMartin Willi2014-06-041-0/+2
|
* windows: Provide a close(2) that can close both file handles and socketsMartin Willi2014-06-042-0/+22
|
* chunk: Fallback to recv() on Windows chunk_from_fd() when operating on socketMartin Willi2014-06-041-0/+6
|
* windows: Don't use function macros to overload send/recv() and friendsMartin Willi2014-06-041-4/+4
| | | | | While the macro versions would not catch non-function invocations, we actually have to use catch all to support the sender_t.send() function.
* controller: Remove unused <dlfcn.h> includeMartin Willi2014-06-041-1/+0
|
* charon: Don't use syslog() if not supportedMartin Willi2014-06-042-6/+29
|
* encoding: Don't explicitly include <arpa/inet.h>Martin Willi2014-06-042-2/+0
|
* payload: Use common prefixes for all payload type identifiersMartin Willi2014-06-04104-903/+903
| | | | | The old identifiers did not use a proper namespace and often clashed with other defines.
* openssl: Fix includes to prevent <winsock2.h> to complain about include orderMartin Willi2014-06-042-6/+8
|
* openssl: Undef OpenSSLs X509_NAME defined by <wincrypt.h>Martin Willi2014-06-041-0/+6
|
* openssl: Check and link against libeay32 instead of libcrypto on WindowsMartin Willi2014-06-041-1/+1
| | | | Most Windows OpenSSL builds come with the crypto library named libeay32.
* windows: Provide a strndup(3) replacementMartin Willi2014-06-042-0/+20
|
* sha1: Include <library.h> instead of directly including <arpa/inet.h>Martin Willi2014-06-042-4/+3
| | | | On Windows we don't have <arpa/inet.h>
* x509: Undef OCSP_RESPONSE from <wincrypt.h> before using itMartin Willi2014-06-041-0/+5
|
* plugins: Don't link with -rdynamic on WindowsMartin Willi2014-06-04131-133/+132
|
* unit-tests: Uninline dlopen() and friends, make more dynamic, fix dlerror()Martin Willi2014-06-042-58/+136
| | | | | As the error string contains a newline, we have to remove that before returning the string.
* thread-value: Immediately cleanup all Windows TLS values on destroyMartin Willi2014-06-043-14/+46
|
* windows: Prevent queueing of multiple thread cancel APCsMartin Willi2014-06-041-4/+13
| | | | | This avoids any races during cleanup invocation if multiple cancel() requests come in.
* windows: Provide a complete native Windows threading backendMartin Willi2014-06-048-4/+1509
|
* windows: Provide a cancellable usleep(), but with ms resolution onlyMartin Willi2014-06-042-0/+18
|
* windows: Add a sleep function acting as cancellation pointMartin Willi2014-06-041-0/+9
|
* windows: Provide a sched_yield() implementationMartin Willi2014-06-045-3/+10
|
* libipsec: Avoid name clash with sched.h clone()Martin Willi2014-06-042-4/+4
|
* windows: Provide a time_monotonic() based on GetTickCount64()Martin Willi2014-06-041-0/+21
|
* library: Change init/deinit order to allow utils to depend on threadingMartin Willi2014-06-042-4/+8
|
* chunk: Don't depend on pthread directlyMartin Willi2014-06-043-13/+22
|
* utils: Don't directly depend on pthreadMartin Willi2014-06-041-40/+53
|
* strerror: Don't directly depend on pthreadMartin Willi2014-06-043-36/+98
|
* windows: Link libhydra against Winsock2Martin Willi2014-06-041-0/+4
|
* windows: Provide a strdup variant safe when passing zero-length stringsMartin Willi2014-06-041-0/+15
|
* unit-tests: Don't test Unix socket stream/services on WindowsMartin Willi2014-06-041-1/+2
|
* unit-tests: Use send/recv on socket in watcher testsMartin Willi2014-06-041-4/+4
| | | | Windows does not support read/write on sockets.
* stream: Separate TCP/Unix stream helpers from stream/service implementationsMartin Willi2014-06-0416-304/+524
| | | | | | This allows us to disable Unix sockets cleanly on Windows. Replaces some read/write calls with recv/send counterparts, as Winsock does not like read/writes.
* watcher: Add Windows supportMartin Willi2014-06-041-16/+80
| | | | | | | | | | Instead of a pipe we use a TCP socketpair (can't select() a _pipe()), and Windsock2 send/recv functions instead of read/write. Currently supported (and required) are file descriptors provided by Winsock only; we might use a separate mechanism for traditional file handles if required (or switch to Windows events and WaitForMultipleObjects) for a future version.
* windows: Map WSAGetLastError() to errno failures in wrapped send/recv/from/toMartin Willi2014-06-041-12/+80
|
* windows: Add send/recv and sendto/recvfrom wrappers supporting MSG_DONTWAITMartin Willi2014-06-042-0/+135
|
* windows: Implement socketpair() using TCP socketsMartin Willi2014-06-042-0/+69
|
* windows: Add utils_init/deinit functions to initialize Winsock2Martin Willi2014-06-046-0/+79
|
* windows: Provide a setenv() wrapperMartin Willi2014-06-041-0/+12
|
* unit-tests: Use Windows path for chunk tests, and socket functions if requiredMartin Willi2014-06-041-2/+10
|
* unit-tests: Don't depend on sockaddr_un to test invalid host_t familyMartin Willi2014-06-041-2/+2
|
* unit-tests: Add support for Windows buildMartin Willi2014-06-042-27/+198
| | | | | Instead of signals we catch Windows exceptions. Currently not supported are timers, which is more a convenience thing anyway.
* windows: Fix up PRI* printf formatters when building against own backendMartin Willi2014-06-041-0/+71
|
* windows: Use localtime/gmtime to implement _r variantsMartin Willi2014-06-041-26/+18
| | | | The _s variants and friends do not seem to work on Windows 7 and always fail.