main/sec-mod: handle sec-mod reload via synchronous communication

This eliminates race-conditions related to signal handling and potential
main/sec-mod desynchronizations related to cert/key pairs.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
This commit is contained in:
Nikos Mavrogiannopoulos
2018-04-15 09:13:54 +02:00
parent a40ac19c49
commit 03bccbcaef
6 changed files with 71 additions and 18 deletions

View File

@@ -96,6 +96,8 @@ typedef enum {
CMD_SECM_LIST_COOKIES,
CMD_SECM_LIST_COOKIES_REPLY,
CMD_SECM_STATS, /* sent periodically */
CMD_SECM_RELOAD,
CMD_SECM_RELOAD_REPLY,
MAX_SECM_CMD,
} cmd_request_t;