mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 14:35:26 +00:00
further dns_tsigkey API tweaks
- remove the 'ring' parameter from dns_tsigkey_createfromkey(), and use dns_tsigkeyring_add() to add key objects to a keyring instead. - add a magic number to dns_tsigkeyring_t - change dns_tsigkeyring_dumpanddetach() to dns_tsigkeyring_dump(); we now call dns_tsigkeyring_detach() separately. - remove 'maxgenerated' from dns_tsigkeyring_t since it never changes.
This commit is contained in:
@@ -250,11 +250,8 @@ destroy(dns_view_t *view) {
|
||||
if (result == ISC_R_SUCCESS) {
|
||||
(void)isc_file_openuniqueprivate(template, &fp);
|
||||
}
|
||||
if (fp == NULL) {
|
||||
dns_tsigkeyring_detach(&view->dynamickeys);
|
||||
} else {
|
||||
result = dns_tsigkeyring_dumpanddetach(
|
||||
&view->dynamickeys, fp);
|
||||
if (fp != NULL) {
|
||||
result = dns_tsigkeyring_dump(view->dynamickeys, fp);
|
||||
if (result == ISC_R_SUCCESS) {
|
||||
if (fclose(fp) == 0) {
|
||||
result = isc_file_sanitize(
|
||||
@@ -273,6 +270,7 @@ destroy(dns_view_t *view) {
|
||||
(void)remove(template);
|
||||
}
|
||||
}
|
||||
dns_tsigkeyring_detach(&view->dynamickeys);
|
||||
}
|
||||
if (view->transports != NULL) {
|
||||
dns_transport_list_detach(&view->transports);
|
||||
|
Reference in New Issue
Block a user