Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | openssl: Properly log FIPS mode when enabled via openssl.conf | Tobias Brunner | 2013-09-27 | 1 | -5/+13 |
| | | | | | | | | | Enabling FIPS mode twice will fail, so if it is enabled in openssl.conf it should be disabled in strongswan.conf (or the other way around). Either way, we should log whether FIPS mode is enabled or not. References #412. | ||||
* | printf-hook: Write to output stream instead of the FD directly when using Vstr | Tobias Brunner | 2013-09-24 | 1 | -12/+12 |
| | | | | | This avoids problems when other stdio functions are used (fputs, fwrite) as writes via Vstr/FD were always unbuffered. | ||||
* | sshkey: Add support for parsing keys from files | Tobias Brunner | 2013-09-13 | 1 | -1/+92 |
| | |||||
* | sshkey: Add encoding for ECDSA keys | Tobias Brunner | 2013-09-13 | 1 | -0/+72 |
| | |||||
* | openssl: Add support for generic encoding of EC public keys | Tobias Brunner | 2013-09-13 | 1 | -23/+13 |
| | |||||
* | sshkey: Add encoder for RSA keys | Tobias Brunner | 2013-09-13 | 6 | -2/+93 |
| | |||||
* | openssl: Add generic RSA public key encoding | Tobias Brunner | 2013-09-13 | 1 | -3/+17 |
| | |||||
* | openssl: Add helper function to convert BIGNUMs to chunks | Tobias Brunner | 2013-09-13 | 2 | -0/+27 |
| | |||||
* | Build all shared libraries with -no-undefined and link them properly | Tobias Brunner | 2013-09-12 | 1 | -0/+3 |
| | | | | | | | | | | The flag is required to convince libtool on Cygwin to build DLLs. But on Windows these shared libraries can not have undefined symbols, so we have to link them explicitly to the libraries they reference. For plugins this is currently not done, so only the monolithic build is supported. The plugin loader wouldn't be able to load DLLs anyway, as it tries to load files that don't exist on Cygwin. | ||||
* | tun_device: Add warning if TUN devices are not supported by platform | Tobias Brunner | 2013-09-12 | 1 | -2/+16 |
| | |||||
* | Added tzset memory leak to whitelist | Andreas Steffen | 2013-08-28 | 1 | -0/+1 |
| | |||||
* | chunk: Print chunks without separator if + modifier is used | Tobias Brunner | 2013-08-24 | 3 | -6/+20 |
| | |||||
* | utils: Add case-insensitive version of strpfx() | Tobias Brunner | 2013-08-24 | 2 | -0/+44 |
| | |||||
* | backtrace: rename clone() method clashing with system call | Martin Willi | 2013-08-09 | 1 | -2/+2 |
| | | | | Fixes #376. | ||||
* | host: Properly initialize struct sockaddr_in[6] when parsing strings | Tobias Brunner | 2013-07-31 | 1 | -0/+2 |
| | | | | | Otherwise struct members like sin6_flowinfo or sin6_scope_id might be set to bogus values. | ||||
* | asn1: Fix handling of invalid ASN.1 length in is_asn1() | Tobias Brunner | 2013-07-31 | 1 | -0/+5 |
| | | | | Fixes CVE-2013-5018. | ||||
* | keychain: be less verbose when loading certificates | Martin Willi | 2013-07-31 | 1 | -2/+5 |
| | |||||
* | utils: add round_up/down() helper functions | Martin Willi | 2013-07-29 | 2 | -0/+49 |
| | |||||
* | watcher: Made notify array initialization compatible with older GCC versions | Tobias Brunner | 2013-07-25 | 1 | -2/+1 |
| | |||||
* | unit-tests: Add additional tests for host_t | Tobias Brunner | 2013-07-25 | 1 | -3/+551 |
| | |||||
* | array: Number of items in get_size() is unsigned | Tobias Brunner | 2013-07-25 | 1 | -1/+1 |
| | | | | | | Otherwise, array->esize is promoted to int and if array->esize * num results in a value > 0x7fffffff the return value would be incorrect due the implicit sign extension when getting cast to size_t. | ||||
* | stream: Ensure UNIX socket path is null terminated | Tobias Brunner | 2013-07-24 | 1 | -0/+1 |
| | |||||
* | pkcs5: Add missing break statements when checking crypto primitives | Tobias Brunner | 2013-07-24 | 1 | -0/+2 |
| | |||||
* | unit-tests: Add test for host_create_netmask() | Tobias Brunner | 2013-07-24 | 4 | -1/+100 |
| | |||||
* | host: Prevent overflow in host_create_netmask() if mask is 0 or 32/128 | Tobias Brunner | 2013-07-24 | 1 | -5/+7 |
| | |||||
* | capabilities: Proper error handling when reading groups | Tobias Brunner | 2013-07-24 | 1 | -1/+8 |
| | |||||
* | processor: force synchronous execute_job() if set_threads(0) has been called | Martin Willi | 2013-07-19 | 1 | -1/+1 |
| | | | | | | During daemon shutdown, some idle threads might be lingering around even if set_threads(0) already has been called. To avoid any races, we enforce synchronous execution of the job. | ||||
* | keychain: Use AM_CPPFLAGS instead of INCLUDES | Tobias Brunner | 2013-07-19 | 1 | -1/+1 |
| | |||||
* | Fix various API doc issues and typos | Tobias Brunner | 2013-07-18 | 6 | -9/+10 |
| | | | | Partially based on an old patch by Adrian-Ken Rueegsegger. | ||||
* | identification: parse identities having a "@@" prefix as ID_RFC822_ADDR | Martin Willi | 2013-07-18 | 1 | -11/+10 |
| | | | | Original patch by Gerald Richter. | ||||
* | stream-service: move CAP_CHOWN check from plugins to service constructor | Martin Willi | 2013-07-18 | 1 | -0/+5 |
| | | | | | A plugin service can be a TCP socket now, so it does not make much sense to strictly check for CAP_CHOWN. | ||||
* | processor: remove the now unused get_threads() method again | Martin Willi | 2013-07-18 | 2 | -17/+0 |
| | |||||
* | watcher: use processors new execute_job() to notify FDs | Martin Willi | 2013-07-18 | 1 | -9/+1 |
| | | | | | Just queueing is problematic, as all threads might be busy waiting for events that the queued (but never executed) job delivers. | ||||
* | processor: add an execute_job() method to directly execute an important job | Martin Willi | 2013-07-18 | 2 | -0/+36 |
| | | | | | | | If all worker threads are busy and waiting for an event, we must ensure that a job delivering that event gets executed. This new method has this property for CRITICAL jobs, using a worker if we have one, but executing the job directly if not. | ||||
* | watcher: properly support multiple watch callback types for the same FD | Martin Willi | 2013-07-18 | 2 | -36/+45 |
| | |||||
* | watcher: read multiple notifications if available | Martin Willi | 2013-07-18 | 1 | -2/+15 |
| | | | | | Use non-blocking I/O on the read end of the notify pipe. This also makes sure the read does not block should select() signal data while there is none. | ||||
* | credmgr: introduce a hook function to catch trust chain validation errors | Martin Willi | 2013-07-18 | 5 | -6/+110 |
| | |||||
* | stream: allow async read/write callback to destroy the stream explicitly | Martin Willi | 2013-07-18 | 2 | -10/+15 |
| | |||||
* | stream: don't close underlying socket when creating a stream from it | Martin Willi | 2013-07-18 | 1 | -1/+6 |
| | |||||
* | watcher: add some debugging statements | Martin Willi | 2013-07-18 | 1 | -0/+12 |
| | |||||
* | watcher: if the processor has no threads, execute the job with watcher thread | Martin Willi | 2013-07-18 | 1 | -11/+19 |
| | | | | | This is important during shutdown, where we might need to signal some FDs while all idle threads are gone already. | ||||
* | processor: add a getter for the threads passed to set_threads() | Martin Willi | 2013-07-18 | 2 | -1/+17 |
| | |||||
* | watcher: unregister a watcher FD if its thread gets cancelled | Martin Willi | 2013-07-18 | 1 | -0/+13 |
| | |||||
* | watcher: release threads waiting in remove() when watcher thread gets cancelled | Martin Willi | 2013-07-18 | 1 | -0/+24 |
| | | | | | | | During daemon shutdown, users might call remove() after processor.set_threads(0) has been called. This gets problematic, as a watch event might be unable to signal completion when no threads are available anymore. Work around this issue by cancelling waiters once processor.cancel() has been called. | ||||
* | stream: support keeping the service alive outside of service callback | Martin Willi | 2013-07-18 | 2 | -4/+5 |
| | |||||
* | stream: add read/write_all() methods to stream | Martin Willi | 2013-07-18 | 2 | -2/+73 |
| | |||||
* | stream: support cancellation of stream service callback | Martin Willi | 2013-07-18 | 1 | -2/+3 |
| | |||||
* | stream: use a service constructor to create services | Martin Willi | 2013-07-18 | 2 | -77/+8 |
| | | | | | | It does not make much sense to reference running services in the manager, especially as unregistration would need the URI (which a user would have to store instead of the service reference). | ||||
* | stream: replace print/vprint() convenience functions by a FILE* getter | Martin Willi | 2013-07-18 | 2 | -51/+20 |
| | | | | | While this will complicate the implementation of streams not based on a fd, it allows us to unleash the full power of FILE based convenience functions. | ||||
* | stream: add a concurrency option to services, limiting parallel callbacks | Martin Willi | 2013-07-18 | 4 | -7/+71 |
| |