mirror of
https://github.com/curl/curl.git
synced 2026-04-15 03:11:41 +03:00
test1658: add unit test for the HTTPS RR decoder
Made the HTTPS-RR parser a little stricter while at it. Drop the ALPN escape handling, that was not needed. Make the hode handle (and ignore) duplicate ALPN entries. Closes #16972
This commit is contained in:
parent
023cc8d595
commit
badfb951ec
9 changed files with 645 additions and 77 deletions
|
|
@ -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,9 +76,6 @@ 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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue