Rename "uri" to "pkcs11-uri"

The name "uri" was considered to be too generic and could potentially
clash with a future URI configuration option. Renamed to "pkcs11-uri".

Note that this option name was also preferred over "pkcs11uri", the
dash is considered to be the more clearer form.
This commit is contained in:
Matthijs Mekking
2023-11-17 16:28:01 +01:00
parent 624034125f
commit cb12b42839
8 changed files with 16 additions and 14 deletions

View File

@@ -780,7 +780,8 @@ cfg_keystore_fromconfig(const cfg_obj_t *config, isc_mem_t *mctx,
maps[i] = NULL;
dns_keystore_setdirectory(keystore,
get_string(maps, "directory"));
dns_keystore_setpkcs11uri(keystore, get_string(maps, "uri"));
dns_keystore_setpkcs11uri(keystore,
get_string(maps, "pkcs11-uri"));
}
/* Append it to the list for future lookups. */

View File

@@ -2601,10 +2601,11 @@ static cfg_type_t cfg_type_key = { "key", cfg_parse_named_map,
/*%
* A key-store statement.
*/
static cfg_clausedef_t keystore_clauses[] = { { "directory", &cfg_type_astring,
0 },
{ "uri", &cfg_type_qstring, 0 },
{ NULL, NULL, 0 } };
static cfg_clausedef_t keystore_clauses[] = {
{ "directory", &cfg_type_astring, 0 },
{ "pkcs11-uri", &cfg_type_qstring, 0 },
{ NULL, NULL, 0 }
};
static cfg_clausedef_t *keystore_clausesets[] = { keystore_clauses, NULL };
static cfg_type_t cfg_type_keystoreopts = {