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:
Lubomir Kaplan
2023-12-13 15:19:11 +01:00
committed by GitHub
parent 8b7594e3de
commit 95c30dd800
18 changed files with 320 additions and 23 deletions

View 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