mikroSDK Reference Manual
http_server_auth.h
Go to the documentation of this file.
1
31#ifndef _HTTP_SERVER_AUTH_H
32#define _HTTP_SERVER_AUTH_H
33
34//Dependencies
35#include "http/http_server.h"
36
37//C++ guard
38#ifdef __cplusplus
39extern "C" {
40#endif
41
42//HTTP authentication related functions
43bool_t httpCheckPassword(HttpConnection *connection,
44 const char_t *password, HttpAuthMode mode);
45
46void httpParseAuthorizationField(HttpConnection *connection, char_t *value);
47size_t httpAddAuthenticateField(HttpConnection *connection, char_t *output);
48
49error_t httpGenerateNonce(HttpServerContext *context,
50 char_t *output, size_t *length);
51
52error_t httpVerifyNonce(HttpServerContext *context,
53 const char_t *nonce, const char_t *nc);
54
55//C++ guard
56#ifdef __cplusplus
57}
58#endif
59
60#endif
error_t
Error codes.
Definition error.h:43
HttpAuthMode
HTTP authentication schemes.
Definition http_common.h:72
HTTP server (HyperText Transfer Protocol)