Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | bliss: Fix compile error of unit tests due to uninitialized variable | Tobias Brunner | 2017-09-18 | 1 | -1/+1 |
| | |||||
* | Define MODP_CUSTOM constructors as variadic functions | Tobias Brunner | 2017-09-18 | 8 | -22/+28 |
| | | | | | | They now match the dh_constructor_t signature. This is a follow up for the changes merged with b668bf3f9ec1 and should fix use of MODP_CUSTOM on Apple's ARM64 platform. | ||||
* | plugin-loader: Correctly read dlopen_use_rtld_now option | Tobias Brunner | 2017-09-18 | 1 | -1/+1 |
| | | | | Fixes: 305c4aa82cb0 ("plugin-loader: Optionally use RTLD_NOW with dlopen()") | ||||
* | openssl: Add support for delta CRLs | Tobias Brunner | 2017-09-18 | 2 | -19/+74 |
| | |||||
* | certificates: Use shared destructor for x509_cdp_t | Tobias Brunner | 2017-09-18 | 3 | -33/+6 |
| | |||||
* | plugin-loader: Move indent variables into !USE_FUZZING block | Tobias Brunner | 2017-08-15 | 1 | -2/+2 |
| | | | | This avoids compile errors on Travis. | ||||
* | gmp: Fix RSA signature verification for m >= n | Tobias Brunner | 2017-08-14 | 1 | -3/+9 |
| | | | | | | | | By definition, m must be <= n-1, we didn't enforce that and because mpz_export() returns NULL if the passed value is zero a crash could have been triggered with m == n. Fixes CVE-2017-11185. | ||||
* | sha2: Write final hash directly to output buffer | Tobias Brunner | 2017-08-07 | 1 | -56/+26 |
| | | | | | | This avoids having the last output in internal memory that's not wiped. References #2388. | ||||
* | curl: Enable following redirects | Tobias Brunner | 2017-07-27 | 1 | -0/+9 |
| | | | | | | | The maximum number of redirects can be limited. The functionality can also be disabled. Fixes #2366. | ||||
* | imv-swima: Implemented SW event processing | Andreas Steffen | 2017-07-08 | 1 | -2/+12 |
| | |||||
* | x509: Correctly encode nonce in OCSP request | Tobias Brunner | 2017-07-07 | 1 | -1/+2 |
| | | | | | The nonce value is encoded as OCTET STRING, however, the extension values themselves must also be encoded as OCTET STRING. | ||||
* | configure: Enable coverage for all plugins via PLUGIN_CFLAGS | Tobias Brunner | 2017-06-20 | 3 | -6/+3 |
| | |||||
* | openssl: Properly handle flags in key usage extension | Tobias Brunner | 2017-06-14 | 1 | -8/+6 |
| | |||||
* | x509: nameConstraints sequence does not require a loop | Andreas Steffen | 2017-05-29 | 1 | -2/+1 |
| | | | | Fixes: CVE-2017-9023 | ||||
* | asn1-parser: Fix CHOICE parsing | Andreas Steffen | 2017-05-29 | 1 | -53/+59 |
| | | | | Fixes: CVE-2017-9023 | ||||
* | gmp: Make sure the modulus is odd and the exponent not zero | Tobias Brunner | 2017-05-29 | 1 | -1/+6 |
| | | | | | | | | | Unlike mpz_powm() its secure replacement mpz_powm_sec() has the additional requirement that the exponent must be > 0 and the modulus has to be odd. Otherwise, it will crash with a floating-point exception. Fixes: CVE-2017-9022 Fixes: 3e35a6e7a1b0 ("Use side-channel secured mpz_powm_sec of libgmp 5, if available") | ||||
* | linked-list: Change return value of find_first() and signature of its callback | Tobias Brunner | 2017-05-26 | 1 | -18/+20 |
| | | | | This avoids the unportable five pointer hack. | ||||
* | Change interface for enumerator_create_filter() callback | Tobias Brunner | 2017-05-26 | 5 | -102/+145 |
| | | | | | This avoids the unportable 5 pointer hack, but requires enumerating in the callback. | ||||
* | Migrate all enumerators to venumerate() interface change | Tobias Brunner | 2017-05-26 | 7 | -50/+74 |
| | |||||
* | x509: Fix leak when parsing CDPs if an invalid one follows valid ones | Tobias Brunner | 2017-05-23 | 1 | -2/+2 |
| | |||||
* | pem: Ensure a value before checking Proc-Type in PEM header | Tobias Brunner | 2017-05-23 | 1 | -1/+1 |
| | |||||
* | plugin-loader: Disable some logging output when building fuzz targets | Tobias Brunner | 2017-05-23 | 1 | -4/+19 |
| | | | | | This avoids evaluating %N. An alternative would be to define a printf-hook for plugin features. | ||||
* | x509: Manually print CRL/OCSP URIs when fuzzing | Tobias Brunner | 2017-05-23 | 1 | -8/+25 |
| | | | | This avoids a warning about the custom %Y printf specifier. | ||||
* | plugin-constructors: Add script to generate constructor registration | Tobias Brunner | 2017-05-23 | 1 | -0/+60 |
| | | | | Using a Python script so this works in cross-compilation situations. | ||||
* | plugin-loader: Add facility to register plugin constructors | Tobias Brunner | 2017-05-23 | 2 | -3/+69 |
| | | | | | | | | | | | | | | Enabled when building monolithically and statically. This should allow us to work around the -whole-archive issue with libtool. If the libraries register the plugin constructors they provide they reference the constructors and will therefore prevent the linker from removing these seemingly unused symbols from the final executable. For use cases where dlsym() can be used, e.g. because the static libraries are manually linked with -whole-archive (Linux) or -force-load (Apple), this can be disabled by passing ss_cv_static_plugin_constructors=no to the configure script. | ||||
* | pem: Don't read beyond line ends | Tobias Brunner | 2017-05-23 | 1 | -2/+2 |
| | |||||
* | x509: Fix leak if there is an empty CDP | Tobias Brunner | 2017-05-23 | 1 | -1/+7 |
| | |||||
* | x509: Fix leak if a certificate contains multiple authorityKeyIdentifiers | Tobias Brunner | 2017-05-23 | 1 | -0/+1 |
| | |||||
* | af-alg: Fix crypt() definition conflict | Baruch Siach | 2017-05-15 | 1 | -2/+2 |
| | | | | | | | | | | | | | | | | | | | | | | Rename the crypt() method to avoid conflict with POSIX crypt(). Fixes the following build failure with musl libc: In file included from ../../../../src/libstrongswan/utils/utils.h:53:0, from ../../../../src/libstrongswan/library.h:101, from af_alg_ops.h:24, from af_alg_ops.c:16: af_alg_ops.c:110:22: error: conflicting types for 'crypt' METHOD(af_alg_ops_t, crypt, bool, ^ ../../../../src/libstrongswan/utils/utils/object.h:99:13: note: in definition of macro 'METHOD' static ret name(union {iface *_public; this;} \ ^ In file included from af_alg_ops.c:18:0: .../host/usr/x86_64-buildroot-linux-musl/sysroot/usr/include/unistd.h:144:7: note: previous declaration of 'crypt' was here char *crypt(const char *, const char *); ^ Closes strongswan/strongswan#72. | ||||
* | x509: Evaluate return codes of parsing functions | Andreas Steffen | 2017-05-08 | 4 | -52/+149 |
| | |||||
* | Fixed some typos, courtesy of codespell | Tobias Brunner | 2017-03-23 | 1 | -1/+1 |
| | |||||
* | x509: Do not mark generated addrblock extension as critical | Martin Willi | 2017-02-27 | 1 | -2/+1 |
| | | | | | | | | | | | | | | While RFC 3779 says we SHOULD mark it is critical, this has severe side effects in practice. The addrblock extension is not widely used nor implemented, and only a few applications can handle this extension. By marking it critical, none of these applications can make use of such certificates where included addrblocks do not matter, such as TLS/HTTPS. If an application wants to make use of addrblocks, that is usually an explicit decision. Then the very same application obviously can handle addrblocks, and there is no need for the extension to be critical. In other words, for local policy checks it is a local matter to handle the extension, hence making it critical is usually not of much help. | ||||
* | x509: Support encoding the RFC 3779 addrblock extension | Martin Willi | 2017-02-27 | 1 | -3/+134 |
| | |||||
* | plugin-loader: Fix hashing of registered plugin features | Tobias Brunner | 2017-02-24 | 1 | -1/+1 |
| | | | | | | | This strangely never caused any noticeable issues, but was the reason for build failures in certain test cases (mostly BLISS) due to missing plugin features when built with specific options on Travis (was not reproducible locally). | ||||
* | revocation: More accurately describe the flags to disable OCSP/CRL validation | Tobias Brunner | 2017-02-15 | 1 | -8/+7 |
| | | | | | | These options disable validation as such, e.g. even from cached CRLs, not only the fetching. Also made the plugin's validate() implementation a no-op if both options are disabled. | ||||
* | bliss: Increase timeout for sampler unit test | Tobias Brunner | 2017-01-16 | 1 | -2/+2 |
| | | | | Fixes #2204. | ||||
* | revocation: OCSP and/or CRL fetching can be disabled | Andreas Steffen | 2016-12-30 | 1 | -38/+71 |
| | |||||
* | Moved Ed25519 tests to libstrongswan | Andreas Steffen | 2016-12-14 | 6 | -646/+6 |
| | |||||
* | Implemented EdDSA for IKEv2 using a pro forma Identity hash function | Andreas Steffen | 2016-12-14 | 4 | -0/+77 |
| | |||||
* | Added Ed25519 ref10 implementation from libsodium | Andreas Steffen | 2016-12-14 | 12 | -16/+5785 |
| | |||||
* | Added support of EdDSA signatures | Andreas Steffen | 2016-12-14 | 14 | -14/+769 |
| | |||||
* | openssl: BoringSSL doesn't provide curve data for ECC Brainpool curves | Tobias Brunner | 2016-12-10 | 1 | -1/+4 |
| | |||||
* | plugin-loader: Strip '!' from critical plugin names when setting paths | Tobias Brunner | 2016-11-18 | 1 | -1/+1 |
| | |||||
* | curve22519: Add a portable backend implemented in plain C | Martin Willi | 2016-11-14 | 4 | -0/+647 |
| | |||||
* | curve25519: Add a plugin providing Curve25519 DH using backend drivers | Martin Willi | 2016-11-14 | 7 | -0/+462 |
| | |||||
* | test-vectors: Add a Curve25519 DH test vector | Martin Willi | 2016-11-14 | 3 | -0/+36 |
| | |||||
* | added XOF dependencies of bliss and ntru plugins | Andreas Steffen | 2016-10-18 | 2 | -4/+26 |
| | |||||
* | newhope: Fix Doxygen group name | Tobias Brunner | 2016-10-14 | 1 | -1/+1 |
| | |||||
* | Fixed some typos, courtesy of codespell | Tobias Brunner | 2016-10-14 | 1 | -2/+2 |
| | |||||
* | newhope: Properly release allocated arrays if RNG can't be created | Tobias Brunner | 2016-10-14 | 1 | -8/+8 |
| |