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

@@ -17,6 +17,11 @@
*/
#ifndef _HAVE_UTIL
#define _HAVE_UTIL
typedef enum {
TCP,
TLS,
} SocketType;
typedef enum {
GET,
POST,
@@ -30,6 +35,8 @@ typedef enum {
//INVALID in HTTP/1.1.
} RequestType;
int initLogging(char *path);
int createLog(char *msg);
int istrcmp(char *s1, char *s2);
//case insensitive strcmp
RequestType getType(char *str);