💾 Archived View for gemini.rmf-dev.com › repo › Vaati › Vgmi › files › 8c3b6c4b11e8cfcd701a9f209fc51… captured on 2023-01-29 at 03:06:04. Gemini links have been rewritten to link to archived content
-=-=-=-=-=-=-
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 gethomefd();
16 int getconfigfd();
17 int getdownloadfd();
18 int getdownloadpath();
19 void cert_free();
20 int cert_load();
21 extern int config_fd;
22 extern int download_fd;
23 extern char download_path[1024];
24 extern char home_path[1024];
25
26 #endif
27