Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | bus: Add new hooks for derived IKE_SA and CHILD_SA keys | Tobias Brunner | 2016-10-04 | 1 | -5/+33 |
| | |||||
* | Use standard unsigned integer types | Andreas Steffen | 2016-03-24 | 1 | -1/+1 |
| | |||||
* | charon: Add custom logger to daemon | Thomas Egerer | 2016-03-01 | 1 | -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 Brunner | 2015-11-09 | 2 | -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_SA | Tobias Brunner | 2015-05-21 | 1 | -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 change | Martin Willi | 2015-02-20 | 1 | -0/+11 |
| | |||||
* | bus: Add ike_reestablish_pre hook, called before DNS resolution | Tobias Brunner | 2014-07-22 | 1 | -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 attributes | Martin Willi | 2014-06-17 | 1 | -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 well | Martin Willi | 2014-06-16 | 1 | -3/+3 |
| | |||||
* | file-logger: Emulate setlinebuf() if not supported by using fflush() | Martin Willi | 2014-06-04 | 1 | -0/+12 |
| | |||||
* | filelog: Ignore flush_line option if setlinebuf() not supported | Martin Willi | 2014-06-04 | 1 | -0/+2 |
| | |||||
* | Fix various API doc issues and typos | Tobias Brunner | 2013-07-18 | 1 | -1/+1 |
| | | | | Partially based on an old patch by Adrian-Ken Rueegsegger. | ||||
* | syslog: setlogmask() to include LOG_INFO | Martin Willi | 2013-07-18 | 1 | -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 arguments | Martin Willi | 2013-05-06 | 1 | -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 VIPs | Andreas Steffen | 2013-04-06 | 1 | -4/+2 |
| | |||||
* | ifmap plugin subscribes to assing_vip bus signal | Andreas Steffen | 2013-04-06 | 1 | -0/+15 |
| | |||||
* | Make syslog and file loggers configurable at runtime | Tobias Brunner | 2012-10-18 | 4 | -21/+157 |
| | |||||
* | Add ike_reestablish() event that is triggered when an IKE_SA is reestablished | Tobias Brunner | 2012-09-06 | 1 | -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 reused | Martin Willi | 2012-07-13 | 3 | -21/+25 |
| | |||||
* | Loggers specify what log messages they want to receive during registration. | Tobias Brunner | 2012-05-02 | 3 | -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 Brunner | 2012-05-02 | 2 | -0/+20 |
| | |||||
* | Use a separate interface for loggers. | Tobias Brunner | 2012-05-02 | 6 | -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 Brunner | 2012-05-02 | 1 | -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 Willi | 2012-03-20 | 1 | -1/+5 |
| | | | | encrypted | ||||
* | Pass IKEv1 specific keymat to ike_keys hook | Martin Willi | 2012-03-20 | 1 | -2/+5 |
| | |||||
* | Fixed common misspellings. | Tobias Brunner | 2011-07-20 | 1 | -1/+1 |
| | | | | Mostly found by 'codespell'. | ||||
* | Cache group name in sys_logger_t to avoid problems with Vstr. | Tobias Brunner | 2011-05-03 | 1 | -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 Brunner | 2011-05-03 | 1 | -23/+20 |
| | |||||
* | Migrated file_logger_t to INIT/METHOD macros. | Tobias Brunner | 2011-05-03 | 1 | -25/+22 |
| | |||||
* | Added a ike_name logger option to prefix the IKE_SA name on each line | Martin Willi | 2010-08-25 | 4 | -12/+57 |
| | |||||
* | Pass the CREATE_CHILD_SA initiator flag to the child_keys parameter | Martin Willi | 2010-07-26 | 1 | -1/+3 |
| | |||||
* | Added a hook to narrow traffic selectors for CHILD_SAs | Martin Willi | 2010-07-13 | 1 | -0/+15 |
| | |||||
* | The file logger supports a time prefix using a strftime() format specifier | Martin Willi | 2010-07-08 | 2 | -7/+32 |
| | |||||
* | Moved syslog.h include. | Tobias Brunner | 2010-05-04 | 2 | -2/+1 |
| | |||||
* | Fixed some Doxygen warnings. | Tobias Brunner | 2010-03-24 | 1 | -2/+2 |
| | |||||
* | Moving charon to libcharon. | Tobias Brunner | 2010-03-19 | 5 | -0/+546 |