Lines Matching refs:validator
46 #include <dns/validator.h>
1160 validator_logcreate(val, name, type, caller, "validator");
1519 * Caller must be holding the validator lock.
1865 * Caller must be holding the validator lock.
3540 val = vevent->validator;
3542 /* If the validator has been canceled, val->event == NULL */
3674 event->validator = val;
3739 dns_validator_send(dns_validator_t *validator) {
3741 REQUIRE(VALID_VALIDATOR(validator));
3743 LOCK(&validator->lock);
3745 INSIST((validator->options & DNS_VALIDATOR_DEFER) != 0);
3746 event = (isc_event_t *)validator->event;
3747 validator->options &= ~DNS_VALIDATOR_DEFER;
3748 UNLOCK(&validator->lock);
3750 isc_task_send(validator->task, ISC_EVENT_PTR(&event));
3754 dns_validator_cancel(dns_validator_t *validator) {
3757 REQUIRE(VALID_VALIDATOR(validator));
3759 LOCK(&validator->lock);
3761 validator_log(validator, ISC_LOG_DEBUG(3), "dns_validator_cancel");
3763 if ((validator->attributes & VALATTR_CANCELED) == 0) {
3764 validator->attributes |= VALATTR_CANCELED;
3765 if (validator->event != NULL) {
3766 fetch = validator->fetch;
3767 validator->fetch = NULL;
3769 if (validator->subvalidator != NULL)
3770 dns_validator_cancel(validator->subvalidator);
3771 if ((validator->options & DNS_VALIDATOR_DEFER) != 0) {
3772 validator->options &= ~DNS_VALIDATOR_DEFER;
3773 validator_done(validator, ISC_R_CANCELED);
3777 UNLOCK(&validator->lock);
3779 /* Need to cancel and destroy the fetch outside validator lock */