aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcharon/bus/listeners
Commit message (Collapse)AuthorAgeFilesLines
* bus: Add new hooks for derived IKE_SA and CHILD_SA keysTobias Brunner2016-10-041-5/+33
|
* Use standard unsigned integer typesAndreas Steffen2016-03-241-1/+1
|
* charon: Add custom logger to daemonThomas Egerer2016-03-011-0/+65
| | | | | | | | | | | 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>
* file-logger: Add option to print milliseconds within the current second ↵Tobias Brunner2015-11-092-9/+30
| | | | | | | | after timestamp For this to look right time_format should end with %S or %T. Closes strongswan/strongswan#18.
* bus: Add new hook called when IKEv1 CHILD_SAs are migrated to a new IKE_SATobias Brunner2015-05-211-1/+16
| | | | | | The interface is currently not very nice, but if we ever were able to safely checkout multiple SAs concurrently we could add something similar to ike_rekey() and call that when we detect a reauthentication.
* bus: Add an ike_update() hook invoked when peer endpoints changeMartin Willi2015-02-201-0/+11
|
* bus: Add ike_reestablish_pre hook, called before DNS resolutionTobias Brunner2014-07-221-1/+17
| | | | | The old hook is renamed to ike_reestablish_post and is now also called when the initiation of the new IKE_SA failed.
* bus: Add a handle_vips() hook invoked after handling configuration attributesMartin Willi2014-06-171-0/+12
| | | | | | | | | Similar to assign_vips() used by a peer assigning virtual IPs to the other peer, the handle_vips() hook gets invoked on a peers after receiving attributes. On release of the same attributes the hook gets invoked again. This is useful to inspect handled attributes, as the ike_updown() hook is invoked after authentication, when attributes have not been handled yet.
* ikev1: Invoke the assign_vips() bus hook for IKEv1 as wellMartin Willi2014-06-161-3/+3
|
* file-logger: Emulate setlinebuf() if not supported by using fflush()Martin Willi2014-06-041-0/+12
|
* filelog: Ignore flush_line option if setlinebuf() not supportedMartin Willi2014-06-041-0/+2
|
* Fix various API doc issues and typosTobias Brunner2013-07-181-1/+1
| | | | Partially based on an old patch by Adrian-Ken Rueegsegger.
* syslog: setlogmask() to include LOG_INFOMartin Willi2013-07-181-0/+1
| | | | LOG_INFO seems to be excluded by default on some systems (OS X).
* Introduce an optional logger_t.vlog() method with format string and argumentsMartin Willi2013-05-061-3/+25
| | | | | | | To have more flexibility in the logging backend, receiving the original format string and do printf() substitution in the logger may be preferable. An additional but optional logger method does not touch the behavior of existing loggers.
* emit a single assig_vips bus message for all VIPsAndreas Steffen2013-04-061-4/+2
|
* ifmap plugin subscribes to assing_vip bus signalAndreas Steffen2013-04-061-0/+15
|
* Make syslog and file loggers configurable at runtimeTobias Brunner2012-10-184-21/+157
|
* Add ike_reestablish() event that is triggered when an IKE_SA is reestablishedTobias Brunner2012-09-061-0/+12
| | | | | This is particularly useful during reauthentication to get the new IKE_SA.
* Don't modify the message string passed to logger, as it gets reusedMartin Willi2012-07-133-21/+25
|
* Loggers specify what log messages they want to receive during registration.Tobias Brunner2012-05-023-87/+100
| | | | | | | This also allows us to generate the log message only once for all loggers that need it (avoids calls to custom printf specifier callbacks). To update the log levels loggers can simply be registered again.
* Ensure that multi-line log messages are not torn apart.Tobias Brunner2012-05-022-0/+20
|
* Use a separate interface for loggers.Tobias Brunner2012-05-026-51/+75
| | | | | | | | The new interface does not allow loggers to unregister themselves from the bus. This allows us to use a rwlock_t for them. The latter also means that loggers can now be called concurrently by multiple threads.
* Use a separate list and mutex for loggers.Tobias Brunner2012-05-021-2/+10
| | | | | | | | | | | This avoids deadlocks caused by extensive listener_t implementations which might want to acquire a lock which is currently held by another thread wanting to log messages. Since the latter requires that thread to acquire the same lock the initial thread currently holds this previously resulted in a deadlock. With this change logging messages does not require threads to acquire the main lock in bus_t and thus avoids the deadlock.
* Invoke bus_t.message hook twice, once plain and parsed, once encoded and ↵Martin Willi2012-03-201-1/+5
| | | | encrypted
* Pass IKEv1 specific keymat to ike_keys hookMartin Willi2012-03-201-2/+5
|
* Fixed common misspellings.Tobias Brunner2011-07-201-1/+1
| | | | Mostly found by 'codespell'.
* Cache group name in sys_logger_t to avoid problems with Vstr.Tobias Brunner2011-05-031-3/+5
| | | | | Because syslog(3) is not replaced when using the Vstr wrapper, %N can not be resolved properly.
* Migrated sys_logger_t to INIT/METHOD macros.Tobias Brunner2011-05-031-23/+20
|
* Migrated file_logger_t to INIT/METHOD macros.Tobias Brunner2011-05-031-25/+22
|
* Added a ike_name logger option to prefix the IKE_SA name on each lineMartin Willi2010-08-254-12/+57
|
* Pass the CREATE_CHILD_SA initiator flag to the child_keys parameterMartin Willi2010-07-261-1/+3
|
* Added a hook to narrow traffic selectors for CHILD_SAsMartin Willi2010-07-131-0/+15
|
* The file logger supports a time prefix using a strftime() format specifierMartin Willi2010-07-082-7/+32
|
* Moved syslog.h include.Tobias Brunner2010-05-042-2/+1
|
* Fixed some Doxygen warnings.Tobias Brunner2010-03-241-2/+2
|
* Moving charon to libcharon.Tobias Brunner2010-03-195-0/+546