]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
Const string for tsig lookups
authorWillem Toorop <willem@nlnetlabs.nl>
Fri, 31 Oct 2025 14:45:34 +0000 (15:45 +0100)
committerWillem Toorop <willem@nlnetlabs.nl>
Fri, 31 Oct 2025 14:45:34 +0000 (15:45 +0100)
util/tsig.c
util/tsig.h

index d5f2ff29a1eeb7100b740b51680aab0e1f96ab1b..facc4c72dbf248f9ae64e8b6fceed719d863d1ed 100644 (file)
@@ -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);
index 2b5fbab6efba4bd931b02d8a4c8abfb8ef9a8fcb..b3090ac0d3f2c4ace18efede9f8f1c2146ecaf3b 100644 (file)
@@ -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.