From cf6ba06cd445f1f4554701637d5bab581acfba98 Mon Sep 17 00:00:00 2001 From: dartraiden Date: Mon, 21 Apr 2025 09:33:29 +0300 Subject: libcurl: update to 8.13.0 --- libs/libcurl/src/httpsrr.h | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) (limited to 'libs/libcurl/src/httpsrr.h') diff --git a/libs/libcurl/src/httpsrr.h b/libs/libcurl/src/httpsrr.h index a734c9ed6d..ca5a5b3936 100644 --- a/libs/libcurl/src/httpsrr.h +++ b/libs/libcurl/src/httpsrr.h @@ -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. @@ -53,7 +55,15 @@ struct Curl_https_rrinfo { uint16_t priority; bool 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 @@ -68,9 +78,12 @@ struct Curl_https_rrinfo { CURLcode Curl_httpsrr_decode_alpn(const unsigned char *cp, size_t len, unsigned char *alpns); -#if defined(USE_ARES) && defined(USE_HTTPSRR) +#if defined(USE_ARES) void Curl_dnsrec_done_cb(void *arg, ares_status_t status, size_t timeouts, const ares_dns_record_t *dnsrec); -#endif + +#endif /* USE_ARES */ +#endif /* USE_HTTPSRR */ + #endif /* HEADER_CURL_HTTPSRR_H */ -- cgit v1.2.3