aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan
Commit message (Collapse)AuthorAgeFilesLines
...
* 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.
* asn1: Return a zeroed ASN1 time if gmtime_r() conversion failsMartin Willi2014-06-041-1/+1
|
* utils: Printf() defined time output should gmtime/localtime_r() failMartin Willi2014-06-041-10/+13
|
* backtrace: Inline esc() helper, making it available to all build variantsMartin Willi2014-06-041-12/+12
|
* backtrace: Support backtraces on Windows without DbgHelpMartin Willi2014-06-041-27/+61
| | | | | | | | | | | | | | | | | | | | | | | | | | | While DbgHelp provides a convenient API to create backtraces, any executable linking against DbgHelp gets a more than a significant slow down. Further, it can only lookup global symbols, as it expects PDB files we can't produce with a MinGW build. With some core Kernel32.dll functionality, we can capture stack traces much faster. Together with the optional libbfd, we can print very fine backtraces. When --enable-bfd-backtraces is used on Windows, a libbfd.dll is required for the build. Such a DLL can be created from the binutils sources using: # build binutils with mingw... # extract archive members from binutils libraries x86_64-w64-mingw32-ar x $BINUTILS/bfd/.libs/libbfd.a x86_64-w64-mingw32-ar x $BINUTILS/intl/libintl.a x86_64-w64-mingw32-ar x $BINUTILS/libiberty/libiberty.a # create self-contained libbfd.a, with index x86_64-w64-mingw32-ar qs libbfd.a *.o # create DLL from static library x86_64-w64-mingw32-dlltool -e libbfd.o -l libbfd.lib libbfd.a x86_64-w64-mingw32-gcc -shared libbfd.a libbfd.o -o libbfd.dll
* backtrace: Add DbgHelp based Windows support for creating/printing backtracesMartin Willi2014-06-042-12/+200
|
* printf-hook-builtin: Support Windows console colors using TTY escape codesMartin Willi2014-06-042-1/+128
|
* windows: Link libstrongswan against ws2_32.dllMartin Willi2014-06-041-0/+4
|
* capabilities: Add build support for WindowsMartin Willi2014-06-041-3/+37
| | | | We might extend it in the future using some Windows rights management.
* windows: Use _getmaxstdio as replacement for syscall(_SC_OPEN_MAX)Martin Willi2014-06-031-0/+4
|
* windows: replace mkdir() with Windows _mkdir() variantMartin Willi2014-06-031-0/+4
|
* thread: Add a Windows pthread variant to print thread identifiersMartin Willi2014-06-031-0/+3
|
* windows: Provide wrappers for dlopen() function familyMartin Willi2014-06-032-0/+83
|
* crl: Undefine <wincrypt.h>'s CRL_REASON_* and use our enum values insteadMartin Willi2014-06-031-8/+20
|
* tun-device: Rearrange headers to build properly when tun devices not supportedMartin Willi2014-06-031-19/+13
|
* windows: Add a common Windows header for platform specific wrappersMartin Willi2014-06-0311-24/+180
| | | | | Include some more basic system headers in utils.h, so we can use that common header on the different platforms.
* curl: Don't set CURLOPT_FAILONERRORTobias Brunner2014-05-311-14/+5
| | | | | With the strongTNC REST API some errors will actually be accompanied by a response we want to receive completely.
* unit-tests: Sync threads with main thread in test_cleanup_cancel()Tobias Brunner2014-05-191-0/+5
| | | | | Without synchronization threads could get canceled before they could disable their cancelability.
* soup: Add support to retrieve the response codeTobias Brunner2014-05-191-2/+14
|
* unit-tests: Allow some HTTP write operations to failTobias Brunner2014-05-191-7/+12
| | | | | | Because CURLOPT_FAILONERROR is enabled in the curl plugin an error code will often (not always) cause the client to close the TCP connection before the server has written the complete response.
* curl: Add support to return the response codeTobias Brunner2014-05-191-1/+27
|
* unit-tests: Add a test case for HTTP response codesTobias Brunner2014-05-191-8/+57
|
* fetcher: Add option to retrieve response code from a fetcherTobias Brunner2014-05-192-0/+10
|
* unit-tests: Defer failures by worker threadsTobias Brunner2014-05-192-5/+36
| | | | | | | | | | | In some cases the main thread is not ready to immediately call siglongjmp(), e.g. if it currently holds a mutex that is later required during shutdown. Therefore, we delay handling errors in worker threads until the main thread performs the next check itself (or the test function ends). The same issue remains with SIGALRM.
* unit-tests: Make sure plugins in the builddir are loadedTobias Brunner2014-05-191-1/+1
| | | | | | When running the tests in GDB the working directory apparently is different. With the relative path used previously the plugins would not be found and those installed on the system would get used.
* unit-tests: Don't assert failures for unreadable settings files as rootTobias Brunner2014-05-161-5/+8
| | | | The file can still be read by root even if nobody has read privileges.
* enum: Return boolean result for enum_from_name() lookupMartin Willi2014-05-163-26/+57
| | | | | | | | | | | Handling the result for enum_from_name() is difficult, as checking for negative return values requires a cast if the enum type is unsigned. The new signature clearly differentiates lookup result from lookup value. Further, this actually allows to convert real -1 enum values, which could not be distinguished from "not-found" and the -1 return value. This also fixes several clang warnings where enums are unsigned.
* enum: Don't directly include enum.hMartin Willi2014-05-167-9/+8
| | | | | To allow enum.h to depend on utils.h definitions, avoid its direct inclusion. Instead include utils.h, which includes enum.h as well.
* auth-cfg: Cast literal default value to pointer typeMartin Willi2014-05-161-1/+1
| | | | Fixes a clang warning.
* unbound: Explicitly cast from ldns RR type/class to our typesMartin Willi2014-05-161-2/+2
| | | | | | These definitions are directly derived from the RFC, so it should be safe to cast them. clang complains about the different types, so cast them explicitly.
* x509: Remove some unused ASN1 OID constantsMartin Willi2014-05-162-25/+0
|
* aes: Remove unused build variantsMartin Willi2014-05-161-622/+65
| | | | | | The AES code historically has different build options for various size/speed trade-offs. We never made use of them, so just drop the obsolete code. The code now has four hard-coded fixed tables, both inverse and original.
* settings: Properly match } and # in include statementsTobias Brunner2014-05-151-6/+16
| | | | | | Found due to %option nodefault. A match for } was actually missing and # was not properly matched if it was part of an include statement on the last line of a file that did not end with a newline.
* settings: Eliminate performance warningTobias Brunner2014-05-151-2/+0
| | | | | This was useful during development, but we accept that matching \n together with %option yylineno impacts performance.
* parser-helper: Define debug macros depending on DEBUG_LEVELTobias Brunner2014-05-151-3/+20
|
* parser-helper: Make parser_helper_file_t privateTobias Brunner2014-05-153-58/+40
|
* parser-helper: Make parser_helper_log a functionTobias Brunner2014-05-152-9/+28
|
* settings: strongswan.conf must be loaded explicitlyTobias Brunner2014-05-153-7/+12
|
* settings: Replace deprecated YYLEX_PARAM with %lex-paramTobias Brunner2014-05-151-3/+7
| | | | | | | | With Bison 3.x support for YYLEX_PARAM has been removed and %lex-param should be used. Unfortunately, that option does not take expressions. Instead we use a wrapper function that calls the lexer with the proper scanner object, which should also be backward compatible to older Bison versions.
* settings: Include generated header after othersTobias Brunner2014-05-152-4/+4
| | | | | Newer Bison versions declare the parser function in the header, which requires custom types.
* settings: Reduce log verbosity if files can't be openedTobias Brunner2014-05-152-2/+11
| | | | Basically reintroducing 2a38b4556e9fd8102bd6c6c61f2893599a5e8e51.
* settings: Adopt the new order of sections and settings when replacing configsTobias Brunner2014-05-152-7/+119
|
* settings: Only purge sections if necessaryTobias Brunner2014-05-154-55/+115
| | | | | Instead of removing and caching all values of a previous config, we only do this for actually removed sections/settings.
* settings: Maintain order of sections and settings while enumeratingTobias Brunner2014-05-154-66/+59
|