NetSurf
Functions
challenge_internal.h File Reference
#include "utils/errors.h"
#include "utils/http/challenge.h"
Include dependency graph for challenge_internal.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

nserror http__parse_challenge (const char **input, http_challenge **parameter)
 Parse an HTTP challenge. More...
 

Function Documentation

◆ http__parse_challenge()

nserror http__parse_challenge ( const char **  input,
http_challenge **  challenge 
)

Parse an HTTP challenge.

Parameters
inputPointer to current input byte. Updated on exit.
challengePointer to location to receive challenge
Returns
NSERROR_OK on success, NSERROR_NOMEM on memory exhaustion, NSERROR_NOT_FOUND if no parameter could be parsed

The returned challenge is owned by the caller.

Definition at line 61 of file challenge.c.

References HTTP__ITEM_INIT, http__item_list_parse, http__parse_parameter(), http__parse_token(), http__skip_LWS(), http_destroy_challenge(), http_parameter_list_destroy(), NSERROR_NOMEM, NSERROR_NOT_FOUND, NSERROR_OK, and result.

Referenced by http_parse_www_authenticate().

Here is the call graph for this function:
Here is the caller graph for this function: