Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Merge branch 'plugin-loader' | Tobias Brunner | 2013-06-11 | 47 | -669/+1794 | |
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Improves how plugin loader resolves dependencies between plugins. The old loader had problems if plugins had dependencies on features provided by plugins listed later in the plugin list. For instance, it was not possible to use the X.509 implementation provided by the x509 plugin while using all the crypto primitives provided by the openssl plugin. Because the x509 plugin has a dependency on SHA1, the old loader skipped that plugin until it loaded a SHA1 implementation. Because the loader also loaded all features with resolved dependencies provided by a specific plugin it would, while loading the openssl plugin's SHA1 implementation, also load its X.509 implementation. So to use the x509 plugin it was necessary to load the sha1 plugin before it so that its dependencies could be properly resolved. With the new implementation the plugins don't have to be in a specific order to resolve dependencies. But the order still matters if two plugins provide the same feature. Also, support for the get_features() interface was added to all plugins. | |||||
| * | Removed stray *_plugin_create() declarations from header files | Tobias Brunner | 2013-06-11 | 3 | -15/+0 | |
| | | ||||||
| * | eap-radius: Do initialization in a plugin feature callback | Tobias Brunner | 2013-06-11 | 1 | -28/+47 | |
| | | ||||||
| * | Refactored plugin-loader with improved dependency resolution | Tobias Brunner | 2013-06-11 | 3 | -238/+480 | |
| | | | | | | | | | | | | With the new implementation the plugins don't have to be listed in any special order, dependencies are properly resolved. The order only matters if two plugins provide the same feature. | |||||
| * | android-log: Use plugin features | Tobias Brunner | 2013-06-11 | 1 | -2/+12 | |
| | | ||||||
| * | android-dns: Use plugin features to register attribute handler | Tobias Brunner | 2013-06-11 | 1 | -5/+31 | |
| | | ||||||
| * | maemo: Use plugin features | Tobias Brunner | 2013-06-11 | 1 | -2/+12 | |
| | | ||||||
| * | medsrv: Use plugin features with dependency on database implementation | Tobias Brunner | 2013-06-11 | 1 | -31/+56 | |
| | | ||||||
| * | medcli: Use plugin features with dependency on database implementation | Tobias Brunner | 2013-06-11 | 1 | -35/+60 | |
| | | ||||||
| * | whitelist: Use plugin features to register listener | Tobias Brunner | 2013-06-11 | 1 | -4/+29 | |
| | | ||||||
| * | updown: Use plugin features to register listener and attribute handler | Tobias Brunner | 2013-06-11 | 1 | -20/+44 | |
| | | ||||||
| * | unity: Use plugin features to register listener and attribute handler/provider | Tobias Brunner | 2013-06-11 | 1 | -10/+39 | |
| | | ||||||
| * | unit-tester: Use plugin features | Tobias Brunner | 2013-06-11 | 1 | -4/+28 | |
| | | ||||||
| * | uci: Use plugin features to register backend and credential set | Tobias Brunner | 2013-06-11 | 1 | -7/+32 | |
| | | ||||||
| * | systime-fix: Use plugin features to register validator | Tobias Brunner | 2013-06-11 | 1 | -24/+51 | |
| | | ||||||
| * | smp: Use plugin features | Tobias Brunner | 2013-06-11 | 1 | -2/+12 | |
| | | ||||||
| * | radattr: Use plugin features to register listener | Tobias Brunner | 2013-06-11 | 1 | -4/+29 | |
| | | ||||||
| * | lookip: Use plugin features to register listener | Tobias Brunner | 2013-06-11 | 1 | -4/+29 | |
| | | ||||||
| * | led: Use plugin features to register listener | Tobias Brunner | 2013-06-11 | 1 | -4/+29 | |
| | | ||||||
| * | test-vectors: Use plugin features | Tobias Brunner | 2013-06-11 | 1 | -1/+12 | |
| | | ||||||
| * | revocation: Use plugin features with soft dependencies on fetcher and ↵ | Tobias Brunner | 2013-06-11 | 1 | -3/+35 | |
| | | | | | | | | en-/decoding | |||||
| * | padlock: Use plugin features to properly register algorithms | Tobias Brunner | 2013-06-11 | 1 | -39/+43 | |
| | | ||||||
| * | pkcs11: Use plugin_features_add() in get_features() | Tobias Brunner | 2013-06-11 | 1 | -21/+8 | |
| | | ||||||
| * | plugin-feature: Added helper function to extend arrays of plugin features | Tobias Brunner | 2013-06-11 | 1 | -0/+21 | |
| | | ||||||
| * | constraints: Use plugin features with soft dependency on X.509 decoding | Tobias Brunner | 2013-06-11 | 1 | -3/+31 | |
| | | ||||||
| * | blowfish: Use plugin features to properly register crypter | Tobias Brunner | 2013-06-11 | 1 | -8/+13 | |
| | | ||||||
| * | resolve: Use plugin features to register attribute handler | Tobias Brunner | 2013-06-11 | 2 | -4/+31 | |
| | | ||||||
| * | attr: Use plugin features to register attribute provider | Tobias Brunner | 2013-06-11 | 1 | -2/+31 | |
| | | ||||||
| * | ipseckey: Allow en-/disabling at runtime using plugin reload feature | Tobias Brunner | 2013-06-11 | 1 | -12/+26 | |
| | | ||||||
| * | ipseckey: Use plugin features and depend on RESOLVER | Tobias Brunner | 2013-06-11 | 2 | -28/+53 | |
| | | | | | | | | Also fixed a double-free of the resolver instance. | |||||
| * | unbound: Use plugin features and provide RESOLVER | Tobias Brunner | 2013-06-11 | 1 | -3/+12 | |
| | | ||||||
| * | plugin-feature: Add feature for DNSSEC-enabled resolvers | Tobias Brunner | 2013-06-11 | 2 | -0/+15 | |
| | | ||||||
| * | ha: Use plugin features to register listeners and attribute provider | Tobias Brunner | 2013-06-11 | 1 | -9/+37 | |
| | | ||||||
| * | farp: Use plugin features to register listener | Tobias Brunner | 2013-06-11 | 1 | -5/+29 | |
| | | ||||||
| * | error-notify: Use plugin features to register listener | Tobias Brunner | 2013-06-11 | 1 | -3/+29 | |
| | | ||||||
| * | duplicheck: Use plugin features to register listener | Tobias Brunner | 2013-06-11 | 1 | -3/+29 | |
| | | ||||||
| * | coupling: Use plugin features and soft depend on SHA1 | Tobias Brunner | 2013-06-11 | 1 | -12/+40 | |
| | | ||||||
| * | certexpire: Use plugin features to register listener | Tobias Brunner | 2013-06-11 | 1 | -4/+30 | |
| | | ||||||
| * | addrblock: Use plugin features with soft dependency on X.509 decoding | Tobias Brunner | 2013-06-11 | 1 | -5/+34 | |
| | | ||||||
| * | dhcp: Use plugin features with dependency to RNG implementation | Tobias Brunner | 2013-06-11 | 1 | -17/+45 | |
| | | ||||||
| * | sql: Use plugin features with dependency to database backend | Tobias Brunner | 2013-06-11 | 1 | -33/+62 | |
| | | ||||||
| * | attr-sql: Use plugin features with dependency to database backend | Tobias Brunner | 2013-06-11 | 1 | -24/+53 | |
| | | ||||||
| * | plugin-feature: Function added to exactly compare plugin features | Tobias Brunner | 2013-06-11 | 3 | -4/+66 | |
| | | ||||||
| * | Socket plugins soft depend on the kernel-ipsec plugin feature | Tobias Brunner | 2013-06-11 | 2 | -0/+2 | |
|/ | | | | | On most platforms calls to methods to bypass the IKE sockets and enabling UDP decapsulation are required. | |||||
* | Merge branch 'unit-tests' | Tobias Brunner | 2013-06-11 | 38 | -981/+5256 | |
|\ | | | | | | | | | | | | | | | | | Adds a test runner and several test suites for libstrongswan. Also adds an option to produce a test coverage report. Several bugs were fixed in the process and chunk_hash() was replaced with an improved implementation based on SipHash-2-4 (with a randomly allocated key to prevent hash flooding attacks). | |||||
| * | Suppress log messages during tests | Tobias Brunner | 2013-06-11 | 1 | -0/+2 | |
| | | ||||||
| * | Remove explicit leak detective checks as these are now done for all tests | Tobias Brunner | 2013-06-11 | 2 | -16/+0 | |
| | | ||||||
| * | Enable leak detective for all test cases | Tobias Brunner | 2013-06-11 | 14 | -22/+129 | |
| | | ||||||
| * | Added tests for bio_writer_t | Tobias Brunner | 2013-06-11 | 4 | -1/+397 | |
| | | ||||||
| * | Ensure buffer in bio_writer_t is properly increased | Tobias Brunner | 2013-06-11 | 1 | -49/+29 | |
| | | | | | | | | | | | | | | The previous code was problematic if bufsize/increase was smaller than 8 and an u_int64_t was written when the buffer was too small. Also, for large chunks and small bufsizes realloc() was called several times instead of just once. |