DNSSEC key pre-publishing
Merge request reports
Activity
Note, that we have to keep removed keys in the
zone_keys
structure. Maybe we should increase the capacity until the key database is rewritten. The keys cannot be removed till we know for sure, that the DNSKEY record is removed from the zone. Otherwise we will deal with it as with unknown DNSKEY and therefore keep it in zone.ticket #220 (closed)
163 174 continue; 164 175 } 165 176 166 if (!is_current_key(¶ms)) { 167 dbg_dnssec_detail("skipping key, inactive period\n"); 177 knot_zone_key_t key; The first element of the structure is another structure and compiler complains:
libknot/dnssec/zone-keys.c:178:27: warning: suggest braces around initialization of subobject [-Wmissing-braces]
And I do not feel good about
{{ '\0' }}
. Anyway, I think the optimizer will produce the same code in the end.
41 typedef struct { 42 knot_dnssec_key_t dnssec_key; 43 knot_dnssec_sign_context_t *context; 44 bool is_ksk; //!< Is KSK key. 45 bool is_public; //!< Currently in zone. 46 bool is_active; //!< Currently used for signing. 47 } knot_zone_key_t; 48 41 49 /*! 42 50 * \brief Keys used for zone signing. 43 51 */ 44 52 typedef struct { 45 53 unsigned count; 46 knot_dnssec_key_t keys[KNOT_MAX_ZONE_KEYS]; 47 knot_dnssec_sign_context_t *contexts[KNOT_MAX_ZONE_KEYS]; 48 bool is_ksk[KNOT_MAX_ZONE_KEYS];