iPXE
Data Fields
http_authentication Struct Reference

An HTTP authentication scheme. More...

#include <http.h>

Data Fields

const char * name
 Name (e.g.
int(* parse )(struct http_transaction *http, char *line)
 Parse remaining "WWW-Authenticate" header line.
int(* authenticate )(struct http_transaction *http)
 Perform authentication.
int(* format )(struct http_transaction *http, char *buf, size_t len)
 Construct remaining "Authorization" header line.

Detailed Description

An HTTP authentication scheme.

Definition at line 518 of file http.h.


Field Documentation

Name (e.g.

"Digest")

Definition at line 520 of file http.h.

Referenced by http_authentication(), http_format_authorization(), and http_transfer_complete().

int( * http_authentication::parse)(struct http_transaction *http, char *line)

Parse remaining "WWW-Authenticate" header line.

Parameters:
httpHTTP transaction
lineRemaining header line
Return values:
rcReturn status code

Definition at line 527 of file http.h.

Referenced by http_parse_www_authenticate().

Perform authentication.

Parameters:
httpHTTP transaction
Return values:
rcReturn status code

Definition at line 533 of file http.h.

Referenced by http_transfer_complete().

int( * http_authentication::format)(struct http_transaction *http, char *buf, size_t len)

Construct remaining "Authorization" header line.

Parameters:
httpHTTP transaction
bufBuffer
lenLength of buffer
Return values:
lenHeader length if present, or negative error

Definition at line 541 of file http.h.

Referenced by http_format_authorization().


The documentation for this struct was generated from the following file: