NetSurf
Typedefs | Functions
strict-transport-security.h File Reference
#include <libwapcaplet/libwapcaplet.h>
Include dependency graph for strict-transport-security.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef struct http_strict_transport_security http_strict_transport_security
 

Functions

nserror http_parse_strict_transport_security (const char *header_value, http_strict_transport_security **result)
 Parse an HTTP Strict-Transport-Security header value. More...
 
void http_strict_transport_security_destroy (http_strict_transport_security *victim)
 Destroy a strict transport security object. More...
 
uint32_t http_strict_transport_security_max_age (http_strict_transport_security *sts)
 Get the value of a strict transport security's max-age. More...
 
bool http_strict_transport_security_include_subdomains (http_strict_transport_security *sts)
 Get the value of a strict transport security's includeSubDomains flag. More...
 

Typedef Documentation

◆ http_strict_transport_security

Definition at line 24 of file strict-transport-security.h.

Function Documentation

◆ http_parse_strict_transport_security()

nserror http_parse_strict_transport_security ( const char *  header_value,
http_strict_transport_security **  result 
)

Parse an HTTP Strict-Transport-Security header value.

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

Definition at line 233 of file strict-transport-security.c.

References check_duplicates(), http__item_list_parse, http__parse_directive(), http__skip_LWS(), http_directive_list_destroy(), http_directive_list_find_item(), http_strict_transport_security::include_sub_domains, http_strict_transport_security::max_age, NSERROR_NOMEM, NSERROR_NOT_FOUND, NSERROR_OK, parse_max_age(), and result.

Referenced by urldb_set_hsts_policy().

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

◆ http_strict_transport_security_destroy()

void http_strict_transport_security_destroy ( http_strict_transport_security victim)

Destroy a strict transport security object.

Parameters
victimObject to destroy

Definition at line 322 of file strict-transport-security.c.

Referenced by urldb_set_hsts_policy().

Here is the caller graph for this function:

◆ http_strict_transport_security_include_subdomains()

bool http_strict_transport_security_include_subdomains ( http_strict_transport_security sts)

Get the value of a strict transport security's includeSubDomains flag.

Parameters
stsObject to inspect
Returns
Whether subdomains should be included

Definition at line 336 of file strict-transport-security.c.

References http_strict_transport_security::include_sub_domains.

Referenced by urldb_set_hsts_policy().

Here is the caller graph for this function:

◆ http_strict_transport_security_max_age()

uint32_t http_strict_transport_security_max_age ( http_strict_transport_security sts)

Get the value of a strict transport security's max-age.

Parameters
stsObject to inspect
Returns
Max age, in delta-seconds

Definition at line 329 of file strict-transport-security.c.

References http_strict_transport_security::max_age.

Referenced by urldb_set_hsts_policy().

Here is the caller graph for this function: