Dillo v3.1.1-99-gf3103cc4
Loading...
Searching...
No Matches
hsts.h File Reference
#include "d_size.h"
#include "url.h"
Include dependency graph for hsts.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void a_Hsts_init (FILE *fp)
 
void a_Hsts_set (const char *header, const DilloUrl *url)
 The reponse for this url had an HSTS header, so let's take action.
 
bool_t a_Hsts_require_https (const char *host)
 
void a_Hsts_freeall (void)
 

Function Documentation

◆ a_Hsts_freeall()

void a_Hsts_freeall ( void  )

◆ a_Hsts_init()

void a_Hsts_init ( FILE *  fp)

◆ a_Hsts_require_https()

bool_t a_Hsts_require_https ( const char *  host)

Definition at line 271 of file hsts.c.

References _MSG, FALSE, Hsts_expired(), Hsts_get_policy(), Hsts_remove_policy(), and TRUE.

Referenced by a_Url_new().

◆ a_Hsts_set()

void a_Hsts_set ( const char *  header,
const DilloUrl url 
)

The reponse for this url had an HSTS header, so let's take action.

Definition at line 201 of file hsts.c.

References _MSG, a_Tls_certificate_is_clean(), dFree(), dStrAsciiCasecmp(), FALSE, Hsts_eat_value(), Hsts_get_policy(), Hsts_parse_attr(), Hsts_parse_value(), Hsts_remove_policy(), Hsts_set_policy(), MSG, TRUE, and URL_HOST.

Referenced by Cache_parse_header().