Lines Matching +defs:c +defs:file +defs:style

1 /*	$NetBSD: zone.c,v 1.23 2025/01/27 15:40:36 christos Exp $	*/
10 * file, you can obtain one at https://mozilla.org/MPL/2.0/.
12 * See the COPYRIGHT file distributed with this work for additional
16 /*! \file */
24 #include <isc/file.h>
237 * Hold key file IO locks.
570 DNS_ZONEFLG_HASINCLUDE = 0x00000010U, /*%< $INCLUDE in zone file */
579 DNS_ZONEFLG_FIXJOURNAL = 0x00000800U, /*%< journal file had
857 * Reference to an include file encountered during loading
1067 #define DNS_ZONE_JITTER_ADD(a, b, c) \
1073 if (isc_time_add((a), &_i, (c)) != ISC_R_SUCCESS) { \
1079 (void)isc_time_add((a), &_i, (c)); \
1083 #define DNS_ZONE_TIME_ADD(a, b, c) \
1087 if (isc_time_add((a), &_i, (c)) != ISC_R_SUCCESS) { \
1093 (void)isc_time_add((a), &_i, (c)); \
1782 dns_zone_setfile(dns_zone_t *zone, const char *file, dns_masterformat_t format,
1783 const dns_master_style_t *style) {
1790 result = dns_zone_setstring(zone, &zone->masterfile, file);
1794 zone->masterstyle = style;
1812 dns_masterformat_t format, const dns_master_style_t *style) {
1823 zone->masterstyle = style;
1900 * master file (if any) is written by the server, rather than being
2138 * Assuming the raw zone file is readable, there are two
2143 * subsequent attempt to load the signed zone file will
2185 * The zone has no master file configured.
2208 * file changes between the time of the load and the time that
2209 * zone->loadtime is set, then the file will still be reloaded
2215 * Don't do the load if the file that stores the zone is older
2223 * The file is already loaded. If we are just doing a
2238 "skipping load: master file "
2245 * If the file modification time is in the past
2345 "no master file");
2379 "no master file configured");
2385 "no master file configured: continuing");
3429 * broken prior OpenSSL 0.9.8c/0.9.7k. Look for such keys and warn
4399 * Write all transactions in 'diff' to the zone journal file.
4654 * If any DS-style initial keys are found, refresh the key
4666 /* Write changes to journal file. */
4820 "no master file");
4824 "loading from master file %s "
4834 "no master file, requesting db");
4844 "loading from master file %s failed: %s",
4866 * If there's no master file for a key zone, then the zone is new:
4868 * if there happens to be a journal file, we can roll forward from
4916 * journal file if it isn't, as we wouldn't be able to apply
4941 "journal file is out of date: "
4942 "removing journal file");
6252 /* Corrupted .key file? */
6260 * If the key was revoked and the private file
6285 sizeof("key file for //65535")];
6305 "key file for %s/%s/%d", namebuf,
6650 * See also update.c:del_keysigs().
7284 /* Write changes to journal file. */
9023 /* Write changes to journal file. */
9819 * Write changes to journal file.
10804 /* Write changes to journal file. */
11129 * (e.g. because of a syntax failure in the config file)?
11564 "no journal file, but that's OK ");
11767 * Adjust modification time of zone file to preserve expire timing.
12035 dumptostream(dns_zone_t *zone, FILE *fd, const dns_master_style_t *style,
12063 result = dns_master_dumptostream(zone->mctx, db, version, style, format,
12072 const dns_master_style_t *style,
12074 return dumptostream(zone, fd, style, format, rawversion);
13091 * SOA received from primary, sync database to file, restart
13856 * Set the file modification time zone->expire seconds before expiretime.
13884 * Someone removed the file from underneath us!
13891 "file modification time of '%s': %s",
16467 "corrupt journal file: '%s'\n",
17725 "removing journal file");
17988 "transfer: could not set file "
19072 /* Key file I/O locks. */
19491 "renaming file to '%s' for failure analysis and "
22391 "import new skr file");
23544 /* Write changes to journal file. */
23901 * If we changed anything in the zone, write changes to journal file
24416 /* Write changes to journal file. */
24641 dns_zone_import_skr(dns_zone_t *zone, const char *file) {
24647 REQUIRE(file != NULL);
24649 dns_skr_create(zone->mctx, file, &zone->origin, zone->rdclass, &skr);
24651 CHECK(dns_skr_read(zone->mctx, file, &zone->origin, zone->rdclass,
24655 dnssec_log(zone, ISC_LOG_DEBUG(1), "imported skr file %s", file);