MeterLogger
auth.h
Go to the documentation of this file.
1 #ifndef AUTH_H
2 #define AUTH_H
3 
4 #include "httpdconfig.h"
5 
6 #ifndef HTTP_AUTH_REALM
7 #define HTTP_AUTH_REALM "Protected"
8 #endif
9 
10 #define HTTPD_AUTH_SINGLE 0
11 #define HTTPD_AUTH_CALLBACK 1
12 
13 #define AUTH_MAX_USER_LEN 32
14 #define AUTH_MAX_PASS_LEN 32
15 
16 //Parameter given to authWhatever functions. This callback returns the usernames/passwords the device
17 //has.
18 typedef int (* AuthGetUserPw)(HttpdConnData *connData, int no, char *user, int userLen, char *pass, int passLen);
19 
21 
22 #endif
#define ICACHE_FLASH_ATTR
Definition: c_types.h:99
int ICACHE_FLASH_ATTR authBasic(HttpdConnData *connData)
Definition: auth.c:20
int(* AuthGetUserPw)(HttpdConnData *connData, int no, char *user, int userLen, char *pass, int passLen)
Definition: auth.h:18
static HttpdConnData connData[MAX_CONN]
Definition: httpd.c:63