NetSurf
Functions
www-authenticate.c File Reference
#include <stdlib.h>
#include "utils/http/challenge_internal.h"
#include "utils/http/generics.h"
#include "utils/http/parameter_internal.h"
#include "utils/http/primitives.h"
#include "utils/http/www-authenticate.h"
Include dependency graph for www-authenticate.c:

Go to the source code of this file.

Functions

nserror http_parse_www_authenticate (const char *header_value, http_www_authenticate **result)
 Parse an HTTP WWW-Authenticate header value. More...
 
void http_www_authenticate_destroy (http_www_authenticate *victim)
 Destroy a www authenticate object. More...
 

Function Documentation

◆ http_parse_www_authenticate()

nserror http_parse_www_authenticate ( const char *  header_value,
http_www_authenticate **  result 
)

Parse an HTTP WWW-Authenticate header value.

Parameters
header_valueHeader value to parse
resultPointer to location to receive result
Returns
NSERROR_OK on success, NSERROR_NOMEM on memory exhaustion

Definition at line 28 of file www-authenticate.c.

References http_www_authenticate::challenges, http__item_list_parse, http__parse_challenge(), http__skip_LWS(), http_challenge_list_destroy(), NSERROR_NOMEM, NSERROR_NOT_FOUND, NSERROR_OK, and result.

Here is the call graph for this function:

◆ http_www_authenticate_destroy()

void http_www_authenticate_destroy ( http_www_authenticate victim)

Destroy a www authenticate object.

Parameters
victimObject to destroy

Definition at line 70 of file www-authenticate.c.

References http_www_authenticate::challenges, and http_challenge_list_destroy().

Here is the call graph for this function: