diff options
Diffstat (limited to 'libs/libcurl/src/httpsrr.h')
-rw-r--r-- | libs/libcurl/src/httpsrr.h | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/libs/libcurl/src/httpsrr.h b/libs/libcurl/src/httpsrr.h index ca5a5b3936..fdcfdacf07 100644 --- a/libs/libcurl/src/httpsrr.h +++ b/libs/libcurl/src/httpsrr.h @@ -53,7 +53,7 @@ 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 */
};
CURLcode Curl_httpsrr_set(struct Curl_easy *data,
@@ -68,6 +68,7 @@ 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
@@ -75,14 +76,10 @@ void Curl_httpsrr_cleanup(struct Curl_https_rrinfo *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)
-void Curl_dnsrec_done_cb(void *arg, ares_status_t status,
- size_t timeouts,
- const ares_dns_record_t *dnsrec);
-
+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 */
|