mirror of
https://github.com/curl/curl.git
synced 2025-01-18 14:04:30 +08:00
CURLOPT_HSTS*FUNCTION.3: document the involved structs as well
Reviewed-By: Daniel Gustafsson Closes #8788
This commit is contained in:
parent
45c578f662
commit
55e137bdf5
@ -5,7 +5,7 @@
|
||||
.\" * | (__| |_| | _ <| |___
|
||||
.\" * \___|\___/|_| \_\_____|
|
||||
.\" *
|
||||
.\" * Copyright (C) 1998 - 2021, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||
.\" * Copyright (C) 1998 - 2022, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||
.\" *
|
||||
.\" * This software is licensed as described in the file COPYING, which
|
||||
.\" * you should have received as part of this distribution. The terms
|
||||
@ -27,6 +27,13 @@ CURLOPT_HSTSREADFUNCTION \- read callback for HSTS hosts
|
||||
.nf
|
||||
#include <curl/curl.h>
|
||||
|
||||
struct curl_hstsentry {
|
||||
char *name;
|
||||
size_t namelen;
|
||||
unsigned int includeSubDomains:1;
|
||||
char expire[18]; /* YYYYMMDD HH:MM:SS [null-terminated] */
|
||||
};
|
||||
|
||||
CURLSTScode hstsread(CURL *easy, struct curl_hstsentry *sts, void *userp);
|
||||
|
||||
CURLcode curl_easy_setopt(CURL *handle, CURLOPT_HSTSREADFUNCTION, hstsread);
|
||||
|
@ -5,7 +5,7 @@
|
||||
.\" * | (__| |_| | _ <| |___
|
||||
.\" * \___|\___/|_| \_\_____|
|
||||
.\" *
|
||||
.\" * Copyright (C) 1998 - 2021, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||
.\" * Copyright (C) 1998 - 2022, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||
.\" *
|
||||
.\" * This software is licensed as described in the file COPYING, which
|
||||
.\" * you should have received as part of this distribution. The terms
|
||||
@ -27,6 +27,18 @@ CURLOPT_HSTSWRITEFUNCTION \- write callback for HSTS hosts
|
||||
.nf
|
||||
#include <curl/curl.h>
|
||||
|
||||
struct curl_hstsentry {
|
||||
char *name;
|
||||
size_t namelen;
|
||||
unsigned int includeSubDomains:1;
|
||||
char expire[18]; /* YYYYMMDD HH:MM:SS [null-terminated] */
|
||||
};
|
||||
|
||||
struct curl_index {
|
||||
size_t index; /* the provided entry's "index" or count */
|
||||
size_t total; /* total number of entries to save */
|
||||
};
|
||||
|
||||
CURLSTScode hstswrite(CURL *easy, struct curl_hstsentry *sts,
|
||||
struct curl_index *count, void *userp);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user