enforcer.h File Reference
`#include "db/zone_db.h"`
`#include "db/policy.h"`
`#include "daemon/engine.h"`

Go to the source code of this file.

## Functions

time_t | update (engine_type *engine, db_connection_t *dbconn, zone_db_t *zone, policy_t const *policy, time_t now, int *zone_updated)

## Function Documentation

## update()

time_t update | ( | engine_type * | engine,
|  | db_connection_t * | dbconn,
|  | zone_db_t * | zone,
|  | policy_t const * | policy,
|  | time_t | now,
|  | int * | zone_updated
| ) |  |

Does any required work for a zone and its policy.

Does any required work for a zone and its policy. insert new keys, check state of current keys and trashes old ones. Returns the earliest time at which this zone needs attention. When no further attention is needed return -1; Another date in the past simply means ASAP. The function MAY be called again for this zone sooner than indicated. This is however pointless unless some external event happened that influenced this zone/policy/keys.

Parameters

  [in] | zone |
  [in] | now |
  [in] | keyfactory |

Returns
  time_t Time the function wishes to be called again.

Definition at line 2672 of file enforcer.c.

References future_key::key.