diff options
Diffstat (limited to 'Source/charon/sa/child_sa.h')
-rw-r--r-- | Source/charon/sa/child_sa.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Source/charon/sa/child_sa.h b/Source/charon/sa/child_sa.h index 96978dae3..c49d85de9 100644 --- a/Source/charon/sa/child_sa.h +++ b/Source/charon/sa/child_sa.h @@ -27,6 +27,7 @@ #include <types.h> #include <crypto/prf_plus.h> #include <encoding/payloads/proposal_substructure.h> +#include <utils/logger.h> typedef struct child_sa_t child_sa_t; @@ -112,6 +113,19 @@ struct child_sa_t { status_t (*add_policies) (child_sa_t *this, linked_list_t *my_ts_list, linked_list_t *other_ts_list); /** + * @brief Log the status of a child_sa to a logger. + * + * The status of ESP/AH SAs is logged with the supplied logger in + * a human readable form. + * Supplying NULL as logger uses the internal child_sa logger + * to do the logging. + * + * @param this calling object + * @param logger logger to use for logging + */ + void (*log_status) (child_sa_t *this, logger_t *logger); + + /** * @brief Destroys a child_sa. * * @param this calling object |