0 /*
1 * ISC License
2 * Copyright (c) 2023 RMF <rawmonk@firemail.cc>
3 */
4
5 #ifdef KNOWN_HOSTS_INTERNAL
6 struct known_host {
7 char host[MAX_HOST];
8 char hash[128];
9 time_t start;
10 time_t end;
11 struct known_host *next;
12 };
13 #define HT_SIZE 4096
14 extern struct known_host *known_hosts[HT_SIZE];
15 #endif
16
17 int known_hosts_verify(const char *, const char *, time_t, time_t);
18 int known_hosts_load();
19 int known_hosts_rewrite();
20 int known_hosts_expired(const char *host);
21 int known_hosts_forget(const char *host);
22 void known_hosts_free();
23