Lines Matching refs:id
66 struct val_qstate* vq, int id, int rcode, struct dns_msg* msg,
160 val_init(struct module_env* env, int id)
168 env->modinfo[id] = (void*)val_env;
182 val_deinit(struct module_env* env, int id)
185 if(!env || !env->modinfo[id])
187 val_env = (struct val_env*)env->modinfo[id];
196 env->modinfo[id] = NULL;
240 val_new(struct module_qstate* qstate, int id)
244 log_assert(!qstate->minfo[id]);
248 qstate->minfo[id] = vq;
257 * @param id: validator id.
261 val_error(struct module_qstate* qstate, int id)
263 qstate->ext_state[id] = module_error;
352 * @param id: module id.
361 generate_request(struct module_qstate* qstate, int id, uint8_t* name,
364 struct val_qstate* vq = (struct val_qstate*)qstate->minfo[id];
391 qstate->ext_state[id] = module_wait_subquery;
402 * @param id: module id.
408 int id, struct trust_anchor* toprime)
410 int ret = generate_request(qstate, id, toprime->name, toprime->namelen,
1305 * @param id: module id.
1311 struct val_env* ve, int id)
1321 return val_error(qstate, id);
1440 if(!prime_trust_anchor(qstate, vq, id, anchor)) {
1442 return val_error(qstate, id);
1493 * @param id: module id.
1498 processFindKey(struct module_qstate* qstate, struct val_qstate* vq, int id)
1513 if(!generate_request(qstate, id, vq->ds_rrset->rk.dname,
1517 return val_error(qstate, id);
1585 if(!generate_request(qstate, id, vq->ds_rrset->rk.dname,
1589 return val_error(qstate, id);
1610 process_ds_response(qstate, vq, id, LDNS_RCODE_NOERROR,
1614 if(!generate_request(qstate, id, target_key_name,
1618 return val_error(qstate, id);
1624 if(!generate_request(qstate, id, vq->ds_rrset->rk.dname,
1628 return val_error(qstate, id);
1645 * @param id: module id.
1651 struct val_env* ve, int id)
1658 return val_error(qstate, id);
1824 * @param id: module id.
1834 struct val_env* ve, int id)
1879 return val_error(qstate, id);
1903 return val_error(qstate, id);
1937 if(!generate_request(qstate, id, vq->dlv_lookup_name,
1940 return val_error(qstate, id);
1959 * @param id: module id.
1965 struct val_env* ve, int id)
1977 if(!val_dlv_init(qstate, vq, ve, id))
2056 qstate->ext_state[id] = module_restart_next;
2099 qstate->ext_state[id] = module_finished;
2109 * @param id: module id.
2115 struct val_env* ve, int id)
2131 return val_error(qstate, id);
2147 return val_error(qstate, id);
2160 return val_error(qstate, id);
2163 if(!generate_request(qstate, id, vq->ds_rrset->rk.dname,
2167 return val_error(qstate, id);
2202 return processDLVLookup(qstate, vq, ve, id);
2205 if(!generate_request(qstate, id, vq->dlv_lookup_name,
2208 return val_error(qstate, id);
2221 * @param id: module id.
2225 struct val_env* ve, int id)
2233 cont = processInit(qstate, vq, ve, id);
2236 cont = processFindKey(qstate, vq, id);
2239 cont = processValidate(qstate, vq, ve, id);
2242 cont = processFinished(qstate, vq, ve, id);
2245 cont = processDLVLookup(qstate, vq, ve, id);
2257 val_operate(struct module_qstate* qstate, enum module_ev event, int id,
2260 struct val_env* ve = (struct val_env*)qstate->env->modinfo[id];
2261 struct val_qstate* vq = (struct val_qstate*)qstate->minfo[id];
2263 "event:%s", id, strextstate(qstate->ext_state[id]),
2275 qstate->ext_state[id] = module_wait_module;
2287 qstate->ext_state[id] = module_finished;
2291 qstate->ext_state[id] = module_finished;
2301 qstate->ext_state[id] = module_finished;
2305 qstate->ext_state[id] = module_error; /* override this */
2307 vq = val_new(qstate, id);
2310 qstate->ext_state[id] = module_error;
2316 qstate->ext_state[id] = module_error;
2320 val_handle(qstate, vq, ve, id);
2324 qstate->ext_state[id] = module_error; /* override this */
2326 val_handle(qstate, vq, ve, id);
2330 qstate->ext_state[id] = module_error;
2341 * @param id: module id.
2349 struct trust_anchor* ta, struct module_qstate* qstate, int id)
2351 struct val_env* ve = (struct val_env*)qstate->env->modinfo[id];
2422 * @param id: module id.
2435 int id, int rcode, struct dns_msg* msg, struct query_info* qinfo,
2438 struct val_env* ve = (struct val_env*)qstate->env->modinfo[id];
2645 * @param id: module id.
2653 int id, int rcode, struct dns_msg* msg, struct query_info* qinfo,
2659 if(!ds_response_to_ke(qstate, vq, id, rcode, msg, qinfo, &dske)) {
2718 * @param id: module id.
2726 int id, int rcode, struct dns_msg* msg, struct query_info* qinfo,
2729 struct val_env* ve = (struct val_env*)qstate->env->modinfo[id];
2815 * @param id: module id.
2822 int id, int rcode, struct dns_msg* msg, struct sock_list* origin)
2824 struct val_env* ve = (struct val_env*)qstate->env->modinfo[id];
2852 vq->key_entry = primeResponseToKE(dnskey_rrset, ta, qstate, id);
2889 * @param id: module id.
2896 int id, int rcode, struct dns_msg* msg, struct query_info* qinfo)
2898 struct val_env* ve = (struct val_env*)qstate->env->modinfo[id];
2977 * @param id: module id.
2981 val_inform_super(struct module_qstate* qstate, int id,
2984 struct val_qstate* vq = (struct val_qstate*)super->minfo[id];
2994 process_prime_response(super, vq, id, qstate->return_rcode,
2999 process_ds_response(super, vq, id, qstate->return_rcode,
3004 process_dnskey_response(super, vq, id, qstate->return_rcode,
3009 process_dlv_response(super, vq, id, qstate->return_rcode,
3017 val_clear(struct module_qstate* qstate, int id)
3022 qstate->minfo[id] = NULL;
3026 val_get_mem(struct module_env* env, int id)
3028 struct val_env* ve = (struct val_env*)env->modinfo[id];