|
iPXE
|
Hyper Text Transfer Protocol (HTTP) authentication. More...
Go to the source code of this file.
Functions | |
| FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
| static struct http_authentication * | http_authentication (const char *name) |
| Identify authentication scheme. More... | |
| static int | http_parse_www_authenticate (struct http_transaction *http, char *line) |
| Parse HTTP "WWW-Authenticate" header. More... | |
| static int | http_format_authorization (struct http_transaction *http, char *buf, size_t len) |
| Construct HTTP "Authorization" header. More... | |
Variables | |
| struct http_response_header http_response_www_authenticate | __http_response_header |
| HTTP "WWW-Authenticate" header. More... | |
| struct http_request_header http_request_authorization | __http_request_header |
| HTTP "Authorization" header. More... | |
Hyper Text Transfer Protocol (HTTP) authentication.
Definition in file httpauth.c.
| FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
|
static |
Identify authentication scheme.
| http | HTTP transaction |
| name | Scheme name |
| auth | Authentication scheme, or NULL |
Definition at line 45 of file httpauth.c.
References for_each_table_entry, HTTP_AUTHENTICATIONS, http_authentication::name, name, NULL, and strcasecmp().
Referenced by http_parse_www_authenticate().
|
static |
Parse HTTP "WWW-Authenticate" header.
| http | HTTP transaction |
| line | Remaining header line |
| rc | Return status code |
Definition at line 64 of file httpauth.c.
References http_response_auth::auth, http_response::auth, DBGC, EPROTO, http_authentication(), http_token(), name, NULL, http_authentication::parse, rc, http_transaction::response, and strerror().
|
static |
Construct HTTP "Authorization" header.
| http | HTTP transaction |
| buf | Buffer |
| len | Length of buffer |
| len | Length of header value, or negative error |
Definition at line 117 of file httpauth.c.
References http_request_auth::auth, http_request::auth, http_authentication::format, len, http_authentication::name, rc, http_transaction::request, and snprintf().
| struct http_response_header http_response_www_authenticate __http_response_header |
HTTP "WWW-Authenticate" header.
Definition at line 104 of file httpauth.c.
| struct http_request_header http_request_authorization __http_request_header |
HTTP "Authorization" header.
Definition at line 142 of file httpauth.c.
1.8.15