💾 Archived View for gemini.rmf-dev.com › repo › Vaati › Vgmi › files › efbc2ac94b4bc76b4ed966f1fe029… captured on 2023-05-24 at 18:10:38. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2023-04-19)
-=-=-=-=-=-=-
0 /* See LICENSE file for copyright and license details. */
1 #ifndef _CERT_H_
2 #define _CERT_H_
3
4 #include <unistd.h>
5 #include <time.h>
6 #include "gemini.h"
7
8 int cert_create(char* url, char* error, int errlen);
9 int cert_getpath(char* host, char* crt, int crt_len, char* key, int key_len);
10 int cert_verify(char* host, const char* hash,
11 unsigned long long start, unsigned long long end);
12 int cert_forget(char* host);
13 int cert_loadcert(const char* host, struct cert_cache* cert);
14 int cert_getcert(char* host, int reload);
15 int cert_ignore_expiration(const char *host);
16 int cert_should_ignore(const char *host);
17 int gethomefd();
18 int getconfigfd();
19 int getdownloadfd();
20 int getdownloadpath();
21 void cert_free();
22 int cert_load();
23 extern int config_fd;
24 extern int download_fd;
25 extern char download_path[1024];
26 extern char home_path[1024];
27
28 #endif
29