wget2: hsts.c File Reference

| wget2 2.0.0

- Main Page
- Modules
- Data Structures
- Files

- File List
- Globals

Data Structures | Functions
hsts.c File Reference

### (2021-09-05 15:34:56 -0600, (build 0f85ef3))

HTTP Strict Transport Security (RFC 6797) routines. More...

`#include <config.h>`
`#include <stdio.h>`
`#include <stdlib.h>`
`#include <string.h>`
`#include <ctype.h>`
`#include <time.h>`
`#include <errno.h>`
`#include <sys/stat.h>`
`#include <sys/file.h>`
`#include <wget.h>`
`#include "private.h"`
Include dependency graph for hsts.c:

## Data Structures
struct | wget_hsts_db_st
struct | hsts_entry

## Functions
void | wget_hsts_set_plugin (const wget_hsts_db_vtable *vtable)
int | wget_hsts_host_match (const wget_hsts_db *hsts_db, const char *host, uint16_t port)
void | wget_hsts_db_deinit (wget_hsts_db *hsts_db)
void | wget_hsts_db_free (wget_hsts_db **hsts_db)
void | wget_hsts_db_add (wget_hsts_db *hsts_db, const char *host, uint16_t port, int64_t maxage, bool include_subdomains)
int | wget_hsts_db_load (wget_hsts_db *hsts_db)
int | wget_hsts_db_save (wget_hsts_db *hsts_db)
wget_hsts_db * | wget_hsts_db_init (wget_hsts_db *hsts_db, const char *fname)
void | wget_hsts_db_set_fname (wget_hsts_db *hsts_db, const char *fname)

## Detailed Description

HTTP Strict Transport Security (RFC 6797) routines.