doh: Constify some input pointers

Closes #5306
This commit is contained in:
Rikard Falkeborn 2020-04-27 12:07:34 +02:00 committed by Daniel Stenberg
parent cad15b9f92
commit fc0e29dd57
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
3 changed files with 19 additions and 17 deletions

View file

@ -99,7 +99,7 @@ DOHcode doh_encode(const char *host,
unsigned char *dnsp, /* buffer */
size_t len, /* buffer size */
size_t *olen); /* output length */
DOHcode doh_decode(unsigned char *doh,
DOHcode doh_decode(const unsigned char *doh,
size_t dohlen,
DNStype dnstype,
struct dohentry *d);