Fix typos

Signed-off-by: Dimitri Papadopoulos <3350651-DimitriPapadopoulos@users.noreply.gitlab.com>
This commit is contained in:
Dimitri Papadopoulos
2026-04-09 21:49:54 +02:00
parent ab23290899
commit 21eed65a60
3 changed files with 15 additions and 15 deletions
+1 -1
View File
@@ -50,7 +50,7 @@ extern int saved_argc;
extern char **saved_argv; extern char **saved_argv;
extern struct ev_loop *main_loop; extern struct ev_loop *main_loop;
extern ev_timer maintainance_watcher; extern ev_timer maintenance_watcher;
#include "log.h" #include "log.h"
+7 -7
View File
@@ -49,9 +49,9 @@
#include <gnutls/abstract.h> #include <gnutls/abstract.h>
#include "log.h" #include "log.h"
#define MAINTAINANCE_TIME 310 #define MAINTENANCE_TIME 310
static int need_maintainance; static int need_maintenance;
static int need_reload; static int need_reload;
static int need_exit; static int need_exit;
@@ -626,7 +626,7 @@ static int process_packet_from_main(void *pool, int fd, sec_mod_st *sec,
static void handle_alarm(int signo) static void handle_alarm(int signo)
{ {
need_maintainance = 1; need_maintenance = 1;
} }
static void handle_sigterm(int signo) static void handle_sigterm(int signo)
@@ -713,15 +713,15 @@ static void check_other_work(sec_mod_st *sec)
reload_server(sec); reload_server(sec);
} }
if (need_maintainance) { if (need_maintenance) {
seclog(sec, LOG_DEBUG, "performing maintenance"); seclog(sec, LOG_DEBUG, "performing maintenance");
cleanup_client_entries(sec); cleanup_client_entries(sec);
expire_tls_sessions(sec); expire_tls_sessions(sec);
send_stats_to_main(sec); send_stats_to_main(sec);
seclog(sec, LOG_DEBUG, "active sessions %d", seclog(sec, LOG_DEBUG, "active sessions %d",
sec_mod_client_db_elems(sec)); sec_mod_client_db_elems(sec));
alarm(MAINTAINANCE_TIME); alarm(MAINTENANCE_TIME);
need_maintainance = 0; need_maintenance = 0;
} }
} }
@@ -1096,7 +1096,7 @@ void sec_mod_server(void *main_pool, void *config_pool,
} }
sigprocmask(SIG_BLOCK, &blockset, &sig_default_set); sigprocmask(SIG_BLOCK, &blockset, &sig_default_set);
alarm(MAINTAINANCE_TIME); alarm(MAINTENANCE_TIME);
seclog(sec, LOG_INFO, "sec-mod initialized (socket: %s)", SOCKET_FILE); seclog(sec, LOG_INFO, "sec-mod initialized (socket: %s)", SOCKET_FILE);
for (;;) { for (;;) {
+7 -7
View File
@@ -195,10 +195,10 @@ static const dtls_ciphersuite_st ciphersuites12[] = {
}; };
#define STR_ST(x) { .data = (uint8_t *)x, .length = sizeof(x) - 1 } #define STR_ST(x) { .data = (uint8_t *)x, .length = sizeof(x) - 1 }
static const str_st sensitve_http_headers[] = { STR_ST("Cookie"), static const str_st sensitive_http_headers[] = { STR_ST("Cookie"),
STR_ST("X-DTLS-Master-Secret"), STR_ST("X-DTLS-Master-Secret"),
STR_ST("Authorization"), STR_ST("Authorization"),
{ NULL, 0 } }; { NULL, 0 } };
#ifdef HAVE_LZ4 #ifdef HAVE_LZ4
/* Wrappers over LZ4 functions */ /* Wrappers over LZ4 functions */
@@ -279,10 +279,10 @@ static bool header_is_sensitive(str_st *header)
{ {
size_t i; size_t i;
for (i = 0; sensitve_http_headers[i].length != 0; i++) { for (i = 0; sensitive_http_headers[i].length != 0; i++) {
if ((header->length == sensitve_http_headers[i].length) && if ((header->length == sensitive_http_headers[i].length) &&
(strncasecmp((char *)header->data, (strncasecmp((char *)header->data,
(char *)sensitve_http_headers[i].data, (char *)sensitive_http_headers[i].data,
header->length) == 0)) header->length) == 0))
return true; return true;
} }