]> git.ipfire.org Git - thirdparty/curl.git/commit
doh: improced both encoding and decoding
authorNiall <Niall.oReilly@ucd.ie>
Thu, 14 Nov 2019 19:21:09 +0000 (19:21 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 16 Nov 2019 15:15:03 +0000 (16:15 +0100)
commitb6a53fff6c1d07e8a9cb65ca1066d99490fb8132
tree8f8b8ee97d9de60d29c0235953b37f798523769b
parent7627a2dd9d4b7417672fdec3dc6e7f8d3de379de
doh: improced both encoding and decoding

Improved estimation of expected_len and updated related comments;
increased strictness of QNAME-encoding, adding error detection for empty
labels and names longer than the overall limit; avoided treating DNAME
as unexpected;

updated unit test 1655 with more thorough set of proofs and tests

Closes #4598
lib/doh.c
lib/doh.h
tests/unit/unit1655.c