From: Willem Toorop Date: Fri, 31 Oct 2025 14:45:34 +0000 (+0100) Subject: Const string for tsig lookups X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3d6a4c7d6e7830f9319455d1cb8c6db376e5c4f9;p=thirdparty%2Funbound.git Const string for tsig lookups --- diff --git a/util/tsig.c b/util/tsig.c index d5f2ff29a..facc4c72d 100644 --- a/util/tsig.c +++ b/util/tsig.c @@ -260,7 +260,7 @@ tsig_key_table_search(struct tsig_key_table* key_table, uint8_t* name, } struct tsig_key* -tsig_key_table_search_fromstr(struct tsig_key_table* key_table, char* name) +tsig_key_table_search_fromstr(struct tsig_key_table* key_table, const char* name) { uint8_t buf[LDNS_MAX_DOMAINLEN+1]; size_t len = sizeof(buf); diff --git a/util/tsig.h b/util/tsig.h index 2b5fbab6e..b3090ac0d 100644 --- a/util/tsig.h +++ b/util/tsig.h @@ -238,7 +238,7 @@ struct tsig_key* tsig_key_table_search(struct tsig_key_table* key_table, * key name as a domain name. The item is locked by the key_table lock. */ struct tsig_key* tsig_key_table_search_fromstr( - struct tsig_key_table* key_table, char* name); + struct tsig_key_table* key_table, const char* name); /** * Get memory usage of tsig key table.