💾 Archived View for gemini.rmf-dev.com › repo › Vaati › Vgmi › files › 42acb0f0e957fdb2db9dc1b168921… captured on 2022-07-16 at 17:12:14. Gemini links have been rewritten to link to archived content

View Raw

More Information

-=-=-=-=-=-=-

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