Files
OpenBK7231T_App/src/httpserver/http_basic_auth.h
Lubomir Kaplan 95c30dd800 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>
2023-12-13 15:19:11 +01:00

12 lines
247 B
C

#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