1
6
7
8
9
10
11
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/* ... */
#ifndef _HTTP_BASIC_AUTH_H_
#define _HTTP_BASIC_AUTH_H_
/* ... */
typedef struct {
char *method;
char *algorithm;
char *uri;
char *realm;
char *nonce;
char *qop;
char *opaque;
uint64_t cnonce;
int nc;
}{ ... } esp_http_auth_data_t;
/* ... */
char *http_auth_digest(const char *username, const char *password, esp_http_auth_data_t *auth_data);
/* ... */
char *http_auth_basic(const char *username, const char *password);/* ... */
#endif