mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-02-18 18:25:10 -05:00
- xfr-tsig, const for dname compare and fix warnings in compile.
This commit is contained in:
parent
4fd0d84e66
commit
eefb417c09
3 changed files with 2 additions and 3 deletions
|
|
@ -97,7 +97,7 @@ dname_valid(uint8_t* dname, size_t maxlen)
|
|||
|
||||
/** compare uncompressed, noncanonical, registers are hints for speed */
|
||||
int
|
||||
query_dname_compare(register uint8_t* d1, register uint8_t* d2)
|
||||
query_dname_compare(const register uint8_t* d1, const register uint8_t* d2)
|
||||
{
|
||||
register uint8_t lab1, lab2;
|
||||
log_assert(d1 && d2);
|
||||
|
|
|
|||
|
|
@ -96,7 +96,7 @@ void pkt_dname_tolower(struct sldns_buffer* pkt, uint8_t* dname);
|
|||
* @return: -1, 0, or +1 depending on comparison results.
|
||||
* Sort order is first difference found. not the canonical ordering.
|
||||
*/
|
||||
int query_dname_compare(uint8_t* d1, uint8_t* d2);
|
||||
int query_dname_compare(const uint8_t* d1, const uint8_t* d2);
|
||||
|
||||
/**
|
||||
* Determine correct, compressed, dname present in packet.
|
||||
|
|
|
|||
|
|
@ -61,7 +61,6 @@ tsig_verify(sldns_buffer* pkt, const uint8_t* name, const uint8_t* alg,
|
|||
{
|
||||
size_t n_rrs;
|
||||
size_t end_of_message;
|
||||
uint16_t rdlength;
|
||||
uint8_t mac[1024];
|
||||
uint16_t mac_sz;
|
||||
uint8_t hmac_result[1024];
|
||||
|
|
|
|||
Loading…
Reference in a new issue