aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcharon/daemon.c
Commit message (Collapse)AuthorAgeFilesLines
* daemon: Create global redirect manager instanceTobias Brunner2016-03-041-0/+2
|
* libhydra: Move kernel interface to libcharonTobias Brunner2016-03-031-0/+2
| | | | This moves hydra->kernel_interface to charon->kernel.
* charon: Add custom logger to daemonThomas Egerer2016-03-011-41/+233
| | | | | | | | | | | This logger can be used to easily register custom logging instances using __attribute__((constructor)) benefiting from the global reload mechanism (with reset of log levels). Note that this is not intended to be used from plugins, which are loaded after loggers have already been initialized. Signed-off-by: Thomas Egerer <thomas.egerer@secunet.com>
* libcharon: Publish IKE_SA/CHILD_SA managers as custom plugin featureTobias Brunner2015-11-111-11/+29
|
* file-logger: Add option to print milliseconds within the current second ↵Tobias Brunner2015-11-091-2/+4
| | | | | | | | after timestamp For this to look right time_format should end with %S or %T. Closes strongswan/strongswan#18.
* daemon: Flush shunts before unloading pluginsTobias Brunner2015-07-271-0/+4
|
* daemon: Remove scheduled jobs before unloading pluginsTobias Brunner2015-03-091-1/+2
| | | | | | | Especially callback jobs might refer to memory that gets invalid after the plugins got unlaoded, so make sure we destroy these jobs before. References #840.
* attributes: Move the configuration attributes framework to libcharonMartin Willi2015-02-201-0/+2
|
* child-sa-manager: Add a global manager storing CHILD_SA relationsMartin Willi2015-02-201-0/+2
| | | | | | To quickly check out IKE_SAs and find associated CHILD_SAs, the child_sa_manager stores relations between CHILD_SAs and IKE_SAs. It provides CHILD_SA specific IKE_SA checkout functions wrapping the ike_sa_manager.
* plugin-loader: Support a reload() callback for static featuresMartin Willi2014-09-221-1/+1
|
* charon: Don't use syslog() if not supportedMartin Willi2014-06-041-5/+23
|
* libcharon: Execute scripts defined in strongswan.conf during startup/shutdownMartin Willi2014-05-071-0/+52
|
* libcharon: Remove unused charon->nameTobias Brunner2014-02-121-5/+3
|
* libcharon: Use lib->ns instead of charon->nameTobias Brunner2014-02-121-14/+14
|
* plugin-loader: Removed unused path argument of load() methodTobias Brunner2013-06-281-1/+1
| | | | | Multiple additional search paths can be added with the add_path() method.
* capabilities: Only plugins that require CAP_NET_ADMIN demand itTobias Brunner2013-06-251-10/+0
| | | | The daemon as such does not require this capability.
* capabilities: Move global capabilities_t instance to libstrongswanTobias Brunner2013-06-251-3/+1
|
* capabilities: Ensure required capabilities are actually held by the process/userTobias Brunner2013-06-251-2/+6
|
* plugin-loader: Add method to print loaded plugins on a given log levelTobias Brunner2013-06-211-2/+0
|
* libcharon can be initialized more than onceMartin Willi2012-11-141-5/+31
|
* Reload logger configuration on SIGHUPTobias Brunner2012-10-181-7/+349
| | | | | | Besides changing the configuration this allows to easily rotate log files. Also moved logger initialization back to daemon_t.
* Resolve hosts by DNS name in separate threads so we can cancel themTobias Brunner2012-10-181-1/+2
| | | | | | | | | | getaddrinfo(3) may block a long time so proper termination of the daemon may block if DNS servers are not reachable. getaddrinfo(3) is an optional cancellation point in posix threads so it might still block a shutdown but at least on Android (with the signal based pthread_cancel implementation) it works, on Linux starter will kill charon anyway after a while.
* Use a CALLBACK feature to create charon's sender and receiverTobias Brunner2012-08-081-12/+31
|
* Proper fallback if capability dropping is not availableTobias Brunner2012-07-271-0/+4
|
* Refactored heavily #ifdefd capability code to its own libstrongswan classMartin Willi2012-07-041-85/+3
|
* libcharon also requires kernel interfaces and a socket implementationTobias Brunner2012-06-271-0/+3
|
* Use static plugin features in libcharon to define essential dependenciesTobias Brunner2012-06-271-1/+10
|
* Centralized thread cancellation in processor_tTobias Brunner2012-06-251-1/+4
| | | | | | | | | | This ensures that no threads are active when plugins and the rest of the daemon are unloaded. callback_job_t was simplified a lot in the process as its main functionality is now contained in processor_t. The parent-child relationships were abandoned as these were only needed to simplify job cancellation.
* Free name of application using libcharon.Tobias Brunner2012-05-151-0/+1
|
* Use name from initialization to access settings in libcharon.Tobias Brunner2012-05-031-2/+2
| | | | Also fixes several whitespace errors.
* Store the name of the binary using libcharon to enable specific settings.Tobias Brunner2012-05-031-3/+4
|
* Provide plugin list from charon, not internally in libcharon.Tobias Brunner2012-05-031-15/+3
|
* Merge branch 'ikev1'Martin Willi2012-05-021-0/+2
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: configure.in man/ipsec.conf.5.in src/libcharon/encoding/generator.c src/libcharon/encoding/payloads/notify_payload.c src/libcharon/encoding/payloads/notify_payload.h src/libcharon/encoding/payloads/payload.c src/libcharon/network/receiver.c src/libcharon/sa/authenticator.c src/libcharon/sa/authenticator.h src/libcharon/sa/ikev2/tasks/ike_init.c src/libcharon/sa/task_manager.c src/libstrongswan/credentials/auth_cfg.c
| * Merge branch 'ikev1-clean' into ikev1-masterMartin Willi2012-03-201-0/+2
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: configure.in man/ipsec.conf.5.in src/libcharon/daemon.c src/libcharon/plugins/eap_ttls/eap_ttls_peer.c src/libcharon/plugins/eap_radius/eap_radius_accounting.c src/libcharon/plugins/eap_radius/eap_radius_forward.c src/libcharon/plugins/farp/farp_listener.c src/libcharon/sa/ike_sa.c src/libcharon/sa/keymat.c src/libcharon/sa/task_manager.c src/libcharon/sa/trap_manager.c src/libstrongswan/plugins/x509/x509_cert.c src/libstrongswan/utils.h Applied lost changes of moved files keymat.c and task_manager.c. Updated listener_t.message hook signature in new plugins.
| | * IKEv1 XAuth: Added plugin support for XAuth, which allows us to have plugins ↵Clavister OpenSource2012-03-201-0/+2
| | | | | | | | | | | | to talk to servers with different quirks for XAuth authentication.
* | | Added a dedicated sender flush method, delay sender destruction until users goneMartin Willi2012-05-021-1/+5
|/ /
* | Cache list of plugin names to further simplify its usage.Tobias Brunner2012-01-191-14/+2
| | | | | | | | Also helpful for ipsec statusall to avoid having to enumerate plugins.
* | Simplified logging of list of loaded plugins.Tobias Brunner2012-01-191-14/+5
| |
* | Make sure the certificate cache is flushed when plugins are unloaded.Tobias Brunner2011-12-151-0/+2
| | | | | | | | | | This avoids segmentation faults when plugins implementing cert_t are already unloaded when the cache is flushed during destruction.
* | Destroy mediation managers before unloading plugins.Tobias Brunner2011-12-141-4/+4
|/
* refactored TNC frameworkAndreas Steffen2011-10-251-4/+0
|
* Plugin enumerator enumerates over loaded features, tooMartin Willi2011-10-141-1/+1
|
* Include library.h in plugin.hMartin Willi2011-10-141-0/+1
|
* Clear traps during shutdown before unloading kernel pluginsMartin Willi2011-09-121-0/+4
|
* Migrated all SIM/AKA code to libsimaka, use SIM and AKA backend managers ↵Martin Willi2011-08-081-2/+0
| | | | registered by name
* implemented PASS and DROP shunt policiesAndreas Steffen2011-06-281-0/+2
|
* explicitly activate use of TNC headersAndreas Steffen2011-06-071-0/+2
|
* Fix some warnings triggered by gcc 4.6 -Wunused-but-set-variableMartin Willi2011-05-191-3/+1
|
* Added a get_name() function to plugin_t, create_plugin_enumerator enumerates ↵Martin Willi2011-04-151-2/+4
| | | | over plugin_t
* Fall back to _LINUX_CAPABILITY_VERSION if no explicit version is defined.Tobias Brunner2011-03-221-1/+3
| | | | This is the case on Android.