NetSurf
|
#include <libwapcaplet/libwapcaplet.h>
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 struct http_strict_transport_security http_strict_transport_security |
Definition at line 24 of file strict-transport-security.h.
nserror http_parse_strict_transport_security | ( | const char * | header_value, |
http_strict_transport_security ** | result | ||
) |
Parse an HTTP Strict-Transport-Security header value.
header_value | Header value to parse |
result | Pointer to location to receive result |
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().
void http_strict_transport_security_destroy | ( | http_strict_transport_security * | victim | ) |
Destroy a strict transport security object.
victim | Object to destroy |
Definition at line 322 of file strict-transport-security.c.
Referenced by urldb_set_hsts_policy().
bool http_strict_transport_security_include_subdomains | ( | http_strict_transport_security * | sts | ) |
Get the value of a strict transport security's includeSubDomains flag.
sts | Object to inspect |
Definition at line 336 of file strict-transport-security.c.
References http_strict_transport_security::include_sub_domains.
Referenced by urldb_set_hsts_policy().
uint32_t http_strict_transport_security_max_age | ( | http_strict_transport_security * | sts | ) |
Get the value of a strict transport security's max-age.
sts | Object to inspect |
Definition at line 329 of file strict-transport-security.c.
References http_strict_transport_security::max_age.
Referenced by urldb_set_hsts_policy().