aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan
Commit message (Collapse)AuthorAgeFilesLines
...
* child-sa: Pass the number of total policies tied to an SA to the kernelMartin Willi2014-06-041-0/+2
| | | | | This will be useful if the kernel backend has to know how many policies follow an SA install, for example if it must install all policies concurrently.
* windows: Provide POSIX supplement errno values missing in MinGWMartin Willi2014-06-042-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 WindowsMartin Willi2014-06-041-0/+7
|
* x509: Check return value when signing attribute certificatesMartin Willi2014-06-041-9/+16
| | | | | | In addition that this lets AC generation fail properly if private key signing fails, it also fixes an issue when compiling on Windows with MinGW 4.8.1, where for some reason the attributeCertificateInfo got encoded incorrectly.
* unit-tests: Support testable functions on Windows, avoid weak GCC symbolsMartin Willi2014-06-043-61/+61
| | | | | | | 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 hashtablesMartin Willi2014-06-044-9/+14
| | | | | | | 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.
* openssl: Don't re-enter FIPS mode if we are already using itMartin Willi2014-06-041-2/+3
| | | | | | If FIPS mode has been enabled by other means, under some environments it can't be entered again. It fails with "FIPS mode already set". To avoid it, we first check the mode before changing it.
* unit-tests: Force a CET/CEST timezone Windows understandsMartin Willi2014-06-041-0/+4
| | | | | | As it is currently unclear what the "three-letter-timezone" for CEST is, we use the German timezone, which actually is CET/CEST. SetEnvironmentVariable() "TZ" does not seem to affect localtime(), so we use _putenv() instead.
* utils: Add a wait_sigint() function to wait for SIGINT or equivalentMartin Willi2014-06-042-0/+88
|
* chunk: On Windows, use binary mode in chunk_write()Martin Willi2014-06-041-1/+8
|
* openssl: Be less verbose about FIPS mode when not running as daemonMartin Willi2014-06-041-2/+2
| | | | | While this is valuable information, printing it for pki and other tools is annoying.
* unit-tests: Adapt settings tests for WindowsMartin Willi2014-06-041-2/+13
|
* parser-helper: Detect absolute pathnames and concatenate paths on WindowsMartin Willi2014-06-041-2/+3
|
* utils: Provide a path_absolute() function to check path for non-relativenessMartin Willi2014-06-043-38/+88
| | | | The usually used trivial '/' check won't work on Windows platforms.
* utils: Return plain drive letter as base/pathname for drive letters on WindowsMartin Willi2014-06-041-0/+9
|
* utils: Support Windows path separators in path_basename/dirnameMartin Willi2014-06-042-9/+28
|
* utils: Define a platform directory separator character used in pathsMartin Willi2014-06-041-0/+9
|
* windows: Provide a getpass() implementationMartin Willi2014-06-042-0/+65
|
* chunk: On Windows, chunk_map() opens files in binary modeMartin Willi2014-06-041-2/+7
|
* windows: Include for Vista instead of defining CondVar/SRWLock functions ourselfMartin Willi2014-06-045-33/+12
|
* windows: Don't redeclare inet_ntop/pton if already definedMartin Willi2014-06-041-0/+4
|
* windows: Check for existence of error codes before defining themMartin Willi2014-06-041-0/+4
|
* 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.
* 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.
* 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-0447-49/+48
|
* 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
|
* 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: 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
|