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, unsigned long long start, unsigned long long end);
11 int cert_forget(char* host);
12 int cert_getcert(char* host);
13 int gethomefd();
14 int getconfigfd();
15 int getdownloadfd();
16 int getdownloadpath();
17 void cert_free();
18 int cert_load();
19 extern int config_fd;
20 extern char download_path[1024];
21
22 #endif
23