Added global variables in sitefiles to allow for https support

This commit is contained in:
Nate Choe
2022-01-29 13:21:35 -06:00
parent db645b0bf5
commit c46ed581c3
18 changed files with 430 additions and 58 deletions

View File

@@ -36,8 +36,11 @@ typedef struct {
typedef struct {
int size;
SiteCommand *content;
SocketType type;
char *key;
char *cert;
} Sitefile;
Sitefile *parseFile(char *path);
Sitefile *parseSitefile(char *path);
void freeSitefile(Sitefile *site);
#endif