mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-07 04:02:23 +03:00
curl 2025-06-04 (fdb8a789)
Code extracted from:
https://github.com/curl/curl.git
at commit fdb8a789d2b446b77bd7cdd2eff95f6cbc814cf4 (curl-8_14_1).
This commit is contained in:
1 parent
1865f86e28
commit
3207de53f4
318 files changed
+26667
-20679
No files matched your search
+19
-9
@@ -35,6 +35,8 @@
|
||||
#define CURL_MAXLEN_host_name 253
|
||||
#define MAX_HTTPSRR_ALPNS 4
|
||||
|
||||
struct Curl_easy;
|
||||
|
||||
struct Curl_https_rrinfo {
|
||||
/*
|
||||
* Fields from HTTPS RR. The only mandatory fields are priority and target.
|
||||
@@ -51,13 +53,22 @@ struct Curl_https_rrinfo {
|
||||
/* store parsed alpnid entries in the array, end with ALPN_none */
|
||||
int port; /* -1 means not set */
|
||||
uint16_t priority;
|
||||
bool no_def_alpn; /* keytag = 2 */
|
||||
BIT(no_def_alpn); /* keytag = 2 */
|
||||
};
|
||||
#endif
|
||||
|
||||
CURLcode Curl_httpsrr_set(struct Curl_easy *data,
|
||||
struct Curl_https_rrinfo *hi,
|
||||
uint16_t rrkey, const uint8_t *val, size_t vlen);
|
||||
|
||||
struct Curl_https_rrinfo *
|
||||
Curl_httpsrr_dup_move(struct Curl_https_rrinfo *rrinfo);
|
||||
|
||||
void Curl_httpsrr_cleanup(struct Curl_https_rrinfo *rrinfo);
|
||||
|
||||
/*
|
||||
* Code points for DNS wire format SvcParams as per RFC 9460
|
||||
*/
|
||||
#define HTTPS_RR_CODE_MANDATORY 0x00
|
||||
#define HTTPS_RR_CODE_ALPN 0x01
|
||||
#define HTTPS_RR_CODE_NO_DEF_ALPN 0x02
|
||||
#define HTTPS_RR_CODE_PORT 0x03
|
||||
@@ -65,12 +76,11 @@ struct Curl_https_rrinfo {
|
||||
#define HTTPS_RR_CODE_ECH 0x05
|
||||
#define HTTPS_RR_CODE_IPV6 0x06
|
||||
|
||||
CURLcode Curl_httpsrr_decode_alpn(const unsigned char *cp, size_t len,
|
||||
unsigned char *alpns);
|
||||
#if defined(USE_ARES)
|
||||
CURLcode Curl_httpsrr_from_ares(struct Curl_easy *data,
|
||||
const ares_dns_record_t *dnsrec,
|
||||
struct Curl_https_rrinfo *hinfo);
|
||||
#endif /* USE_ARES */
|
||||
#endif /* USE_HTTPSRR */
|
||||
|
||||
#if defined(USE_ARES) && defined(USE_HTTPSRR)
|
||||
void Curl_dnsrec_done_cb(void *arg, ares_status_t status,
|
||||
size_t timeouts,
|
||||
const ares_dns_record_t *dnsrec);
|
||||
#endif
|
||||
#endif /* HEADER_CURL_HTTPSRR_H */
|
||||
Reference in new issue
Block a user