Martin Willi
4aaf0320d0
unit-tests: Add support for Windows build
...
Instead of signals we catch Windows exceptions. Currently not supported are
timers, which is more a convenience thing anyway.
2014-06-04 15:52:58 +02:00
Martin Willi
a2216a2868
windows: Fix up PRI* printf formatters when building against own backend
2014-06-04 15:52:58 +02:00
Martin Willi
95a8d53dbe
windows: Use localtime/gmtime to implement _r variants
...
The _s variants and friends do not seem to work on Windows 7 and always fail.
2014-06-04 15:52:58 +02:00
Martin Willi
a4719c5767
asn1: Return a zeroed ASN1 time if gmtime_r() conversion fails
2014-06-04 15:52:58 +02:00
Martin Willi
8f129319ff
utils: Printf() defined time output should gmtime/localtime_r() fail
2014-06-04 15:52:58 +02:00
Martin Willi
087e02e47e
backtrace: Inline esc() helper, making it available to all build variants
2014-06-04 15:52:58 +02:00
Martin Willi
2127831cda
backtrace: Support backtraces on Windows without DbgHelp
...
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
2014-06-04 15:52:58 +02:00
Martin Willi
a7e943a640
backtrace: Add DbgHelp based Windows support for creating/printing backtraces
2014-06-04 15:52:57 +02:00
Martin Willi
1f2b8c8c80
printf-hook-builtin: Support Windows console colors using TTY escape codes
2014-06-04 15:52:57 +02:00
Martin Willi
71bf82d474
windows: Link libstrongswan against ws2_32.dll
2014-06-04 15:52:57 +02:00
Martin Willi
e7f3ceb7c8
capabilities: Add build support for Windows
...
We might extend it in the future using some Windows rights management.
2014-06-04 15:52:57 +02:00
Martin Willi
d3c30b356c
windows: Use _getmaxstdio as replacement for syscall(_SC_OPEN_MAX)
2014-06-03 12:24:35 +02:00
Martin Willi
a3f7dfc1ca
windows: replace mkdir() with Windows _mkdir() variant
2014-06-03 12:24:35 +02:00
Martin Willi
c6b588bf06
thread: Add a Windows pthread variant to print thread identifiers
2014-06-03 12:24:34 +02:00
Martin Willi
2e6c203bad
windows: Provide wrappers for dlopen() function family
2014-06-03 12:24:34 +02:00
Martin Willi
40a924090e
crl: Undefine <wincrypt.h>'s CRL_REASON_* and use our enum values instead
2014-06-03 12:24:34 +02:00
Martin Willi
43c5388470
tun-device: Rearrange headers to build properly when tun devices not supported
2014-06-03 12:24:34 +02:00
Martin Willi
922ee2c529
windows: Add a common Windows header for platform specific wrappers
...
Include some more basic system headers in utils.h, so we can use that common
header on the different platforms.
2014-06-03 12:24:34 +02:00
Martin Willi
b4c51061c3
imv-swid: Cast json object strings when using it as chunk pointer
...
While the string is actually const, we don't have a const chunk to handle such
strings properly in chunks. Fixes compiler warnings.
2014-06-03 12:23:57 +02:00
Andreas Steffen
7a6d2f2bce
Allow large lines output by swid_generator to be processed
2014-05-31 21:25:47 +02:00
Andreas Steffen
3d4818bf18
Make REST POST request timeout configurable
2014-05-31 21:25:47 +02:00
Andreas Steffen
59db666094
Detect RADIUS packet retransmissions
2014-05-31 20:37:57 +02:00
Andreas Steffen
9635a92187
Fixed swid_generator interface
2014-05-31 20:37:57 +02:00
Andreas Steffen
a5ce2f0b23
Detect oversize SWID tags
2014-05-31 20:37:57 +02:00
Andreas Steffen
ed27e0e7c7
max_attr_size is an uint32_t value
2014-05-31 20:37:57 +02:00
Andreas Steffen
13a87236c2
Update of Ubuntu 14.04 kernel
2014-05-31 20:37:57 +02:00
Andreas Steffen
543447cb6b
Wait for the arrival of the TCPG_PTS_DH_NONCE_PARAMS_RESP
2014-05-31 20:37:57 +02:00
Andreas Steffen
3a726816a2
Increased maximum PT-TLS message size to 2MB
2014-05-31 20:37:56 +02:00
Andreas Steffen
096c726b5b
log SWID tags and tag IDs on debug level 3
2014-05-31 20:37:56 +02:00
Andreas Steffen
4dda2984e3
Automatic determination of maximum PB-TNC batch and PA-TNC message size
2014-05-31 20:37:56 +02:00
Andreas Steffen
75498e6b33
Completed the command line options of the pt-tls-client
2014-05-31 20:37:56 +02:00
Andreas Steffen
34cd3e102e
Split TCG SWID Request attribute into chunks if needed
2014-05-31 20:37:56 +02:00
Andreas Steffen
32cb700cd0
Added Debian 7.5 product and all Debian armv6l products
2014-05-31 20:37:56 +02:00
Andreas Steffen
7b05b0bc28
Fixed typo in tables.sql
2014-05-31 20:37:56 +02:00
Andreas Steffen
a123f470f0
Additional index to improve performance
2014-05-31 20:37:56 +02:00
Andreas Steffen
b7679e90e3
Support targeted retrieval of SWID tags
2014-05-31 20:37:56 +02:00
Tobias Brunner
e14507cb71
curl: Don't set CURLOPT_FAILONERROR
...
With the strongTNC REST API some errors will actually be accompanied by
a response we want to receive completely.
2014-05-31 20:37:55 +02:00
Andreas Steffen
344c9f91f3
Implemented SWID REST API
2014-05-31 20:37:55 +02:00
Andreas Steffen
8c26db8c62
Set entity_name to strongSwan Project
2014-05-31 20:37:55 +02:00
Andreas Steffen
6b6b857cb6
Updated strongSwan SWID Tag from ISO 2009 to 2014 format
2014-05-31 20:37:55 +02:00
Tobias Brunner
b2b54bd71d
Make sure getpass() is available
...
It's not on Android for example.
2014-05-29 12:28:53 +02:00
Tobias Brunner
95d13fcc3f
starter: Fix build on Android
...
While the (default) ipsec script does not work on Android starter still
passes the script's name to charon if leftfirewall is configured.
2014-05-28 18:20:42 +02:00
Andreas Steffen
58c639e584
Some more files to measure
2014-05-21 14:00:31 +02:00
Andreas Steffen
ba6c27f063
Added all SWID tables and example regids
2014-05-21 14:00:31 +02:00
Martin Willi
b9dd46d8a9
peer-cfg: Add missing UNIQUE_NEVER to unique_policy_names
2014-05-19 18:05:51 +02:00
Tobias Brunner
b9dfeb5de4
unit-tests: Sync threads with main thread in test_cleanup_cancel()
...
Without synchronization threads could get canceled before they could
disable their cancelability.
2014-05-19 16:06:52 +02:00
Tobias Brunner
403ad5dd85
pfkey: Always include stdint.h
...
On some systems (e.g. on Debian/kFreeBSD) that header is required when
including ipsec.h, on Linux we require it too when including pfkeyv2.h,
so to simplify things we just always include it.
2014-05-19 14:53:24 +02:00
Tobias Brunner
271c2dd24e
soup: Add support to retrieve the response code
2014-05-19 14:29:48 +02:00
Tobias Brunner
350c1dead9
unit-tests: Allow some HTTP write operations to fail
...
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.
2014-05-19 14:28:45 +02:00
Tobias Brunner
703a0b4c3e
curl: Add support to return the response code
2014-05-19 14:28:40 +02:00