mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-10 08:46:58 +08:00
removed unused variables and structures
This commit is contained in:
@@ -6,7 +6,6 @@ message status_rep
|
||||
required uint32 sec_mod_pid = 3;
|
||||
required uint32 active_clients = 4;
|
||||
required uint32 start_time = 5;
|
||||
required uint32 stored_cookies = 6;
|
||||
required uint32 stored_tls_sessions = 7;
|
||||
required uint32 banned_ips = 8;
|
||||
}
|
||||
|
||||
@@ -167,7 +167,6 @@ static void method_status(method_ctx *ctx, int cfd, uint8_t * msg,
|
||||
rep.start_time = ctx->s->start_time;
|
||||
rep.sec_mod_pid = ctx->s->sec_mod_pid;
|
||||
rep.active_clients = ctx->s->active_clients;
|
||||
rep.stored_cookies = ctx->s->cookies.total;
|
||||
rep.stored_tls_sessions = ctx->s->tls_db.entries;
|
||||
rep.banned_ips = main_ban_db_elems(ctx->s);
|
||||
|
||||
|
||||
13
src/main.h
13
src/main.h
@@ -155,18 +155,6 @@ struct script_list_st {
|
||||
struct list_head head;
|
||||
};
|
||||
|
||||
struct banned_st {
|
||||
struct list_node list;
|
||||
time_t failed_time; /* The time authentication failed */
|
||||
struct sockaddr_storage addr; /* local socket address */
|
||||
socklen_t addr_len;
|
||||
};
|
||||
|
||||
struct cookie_entry_db_st {
|
||||
struct htable *db;
|
||||
unsigned total;
|
||||
};
|
||||
|
||||
struct proc_hash_db_st {
|
||||
struct htable *db_ip;
|
||||
struct htable *db_dtls_id;
|
||||
@@ -178,7 +166,6 @@ typedef struct main_server_st {
|
||||
struct cfg_st *config;
|
||||
|
||||
struct ip_lease_db_st ip_leases;
|
||||
struct cookie_entry_db_st cookies;
|
||||
|
||||
tls_sess_db_st tls_db;
|
||||
struct htable *ban_db;
|
||||
|
||||
@@ -243,7 +243,6 @@ int handle_status_cmd(struct unix_ctx *ctx, const char *arg)
|
||||
|
||||
printf(" Clients: %u\n", (unsigned)rep->active_clients);
|
||||
printf(" Banned IPs: %u\n", (unsigned)rep->banned_ips);
|
||||
printf(" Cookies: %u\n", (unsigned)rep->stored_cookies);
|
||||
printf(" TLS DB entries: %u\n", (unsigned)rep->stored_tls_sessions);
|
||||
printf("\n");
|
||||
printf(" Server PID: %u\n", (unsigned)rep->pid);
|
||||
|
||||
Reference in New Issue
Block a user