mirror of
https://github.com/openshwprojects/OpenBK7231T_App.git
synced 2026-03-08 00:07:42 +01:00
Add HTTP basic authentication (#996)
* add http basic auth * add feature check for basic auth process * fix http basic auth build for unsupported platforms (W800, W600) * fix includes in http_basic_auth * fix basic auth invocations when unavailable * add http basic auth allow checks to http_fns * remove unnecessary checks * add my_strnicmp export * silence warning * update web password config ui * update submodules * add base64 lib to boufallo.mk for BL602 * add safe mode http basic auth bypass flag * fix bl602 build with http auth bypass flag * disable shared led driver --------- Co-authored-by: Tester23 <openshwprojects@gmail.com>
This commit is contained in:
12
src/httpserver/http_basic_auth.h
Normal file
12
src/httpserver/http_basic_auth.h
Normal file
@@ -0,0 +1,12 @@
|
||||
#ifndef _HTTP_BASIC_AUTH_H
|
||||
#define _HTTP_BASIC_AUTH_H
|
||||
|
||||
#include "new_http.h"
|
||||
|
||||
#define HTTP_BASIC_AUTH_FAIL 0
|
||||
#define HTTP_BASIC_AUTH_OK 1
|
||||
|
||||
int http_basic_auth_eval(http_request_t *request);
|
||||
int http_basic_auth_run(http_request_t *request);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user