secmod sends periodically stats to main

That ensures that statistics will reach main even if no
users are logged in/logged out.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
This commit is contained in:
Nikos Mavrogiannopoulos
2017-03-11 22:57:39 +01:00
parent 538d1bca21
commit d6ff620487
5 changed files with 68 additions and 39 deletions

View File

@@ -92,6 +92,7 @@ typedef enum {
CMD_SECM_CLI_STATS,
CMD_SECM_LIST_COOKIES,
CMD_SECM_LIST_COOKIES_REPLY,
CMD_SECM_STATS, /* sent periodically */
MAX_SECM_CMD,
} cmd_request_t;