|
unbound 0.1
|
Per query state for the validator module. More...
#include <validator.h>
Data Fields | |
| enum val_state | state |
| State of the validator module. | |
| struct dns_msg * | orig_msg |
| The original message we have been given to validate. | |
| int | restart_count |
| The query restart count. | |
| struct sock_list * | chain_blacklist |
| The blacklist saved for chain of trust elements. | |
| struct query_info | qchase |
| The query name we have chased to; qname after following CNAMEs. | |
| struct reply_info * | chase_reply |
| The chased reply, extract from original message. | |
| size_t | rrset_skip |
| The cname skip value; the number of rrsets that have been skipped due to chasing cnames. | |
| uint8_t * | trust_anchor_name |
| trust anchor name | |
| int | trust_anchor_labs |
| trust anchor labels | |
| size_t | trust_anchor_len |
| trust anchor length | |
| struct ub_packed_rrset_key * | ds_rrset |
| the DS rrset | |
| uint8_t * | empty_DS_name |
| domain name for empty nonterminal detection | |
| size_t | empty_DS_len |
| length of empty_DS_name | |
| struct key_entry_key * | key_entry |
| the current key entry | |
| enum val_classification | subtype |
| subtype | |
| uint8_t * | signer_name |
| signer name | |
| size_t | signer_len |
| length of signer_name | |
| int | wait_prime_ta |
| true if this state is waiting to prime a trust anchor | |
| int | msg_signatures_state |
| State to continue with RRSIG validation in a message later. | |
| size_t | msg_signatures_index |
| The rrset index for the msg signatures to continue from. | |
| struct nsec3_cache_table | nsec3_cache_table |
| Cache table for NSEC3 hashes. | |
| struct dns_msg * | sub_ds_msg |
| DS message from sub if it got suspended from NSEC3 calculations. | |
| struct comm_timer * | suspend_timer |
| The timer to resume processing msg signatures. | |
| int | suspend_count |
| Number of suspends. | |
| int | num_validation_attempts |
| Number of DNSKEY RRSIG validation attempts. | |
| int | num_hash_attempts |
| Number of DS hash verification attempts. | |
| int | num_nsec_attempts |
| Number of NSEC validations. | |
| int | num_nsec_attempts_exceeded |
| The nsec attempts have been exceeded. | |
| int | parent_denial_must_be_secure |
| if validation must be secure, (else bogus) for NXDOMAIN from signed parent to (removed) trust anchor subdomain. | |
Per query state for the validator module.
| enum val_state val_qstate::state |
State of the validator module.
Referenced by process_dnskey_response(), process_ds_response(), process_prime_response(), processFindKey(), processFinished(), processInit(), processValidate(), val_handle(), val_new(), val_restart(), and validate_suspend_setup_timer().
| struct dns_msg* val_qstate::orig_msg |
The original message we have been given to validate.
Referenced by processFinished(), processInit(), processValidate(), val_new_getmsg(), and val_operate().
| int val_qstate::restart_count |
The query restart count.
Referenced by process_dnskey_response(), process_ds_response(), process_prime_response(), processInit(), val_can_restart(), and val_restart().
| struct sock_list* val_qstate::chain_blacklist |
The blacklist saved for chain of trust elements.
Referenced by generate_request(), process_dnskey_response(), process_ds_response(), process_prime_response(), and processFindKey().
| struct query_info val_qstate::qchase |
The query name we have chased to; qname after following CNAMEs.
Referenced by process_prime_response(), processFindKey(), processFinished(), processInit(), processValidate(), val_new_getmsg(), and val_operate().
| struct reply_info* val_qstate::chase_reply |
The chased reply, extract from original message.
Can be: o CNAME o DNAME + CNAME o answer plus authority, additional (nsecs) that have same signature.
Referenced by process_dnskey_response(), process_ds_response(), processFindKey(), processFinished(), processInit(), processValidate(), and val_new_getmsg().
| size_t val_qstate::rrset_skip |
The cname skip value; the number of rrsets that have been skipped due to chasing cnames.
This is the offset into the orig_msg->rep->rrsets array, into the answer section. starts at 0 - for the full original message. if it is >0 - qchase followed the cname, chase_reply setup to be that message and relevant authority rrsets.
The skip is also used for referral messages, where it will range from 0, over the answer, authority and additional sections.
Referenced by processFinished(), processInit(), processValidate(), and val_new_getmsg().
| uint8_t* val_qstate::trust_anchor_name |
trust anchor name
Referenced by prime_trust_anchor(), and process_prime_response().
| int val_qstate::trust_anchor_labs |
trust anchor labels
Referenced by prime_trust_anchor(), and process_prime_response().
| size_t val_qstate::trust_anchor_len |
trust anchor length
Referenced by prime_trust_anchor(), and process_prime_response().
| struct ub_packed_rrset_key* val_qstate::ds_rrset |
the DS rrset
Referenced by process_dnskey_response(), process_ds_response(), processFindKey(), and processInit().
| uint8_t* val_qstate::empty_DS_name |
domain name for empty nonterminal detection
Referenced by process_ds_response(), processFindKey(), and processInit().
| size_t val_qstate::empty_DS_len |
length of empty_DS_name
Referenced by process_ds_response().
| struct key_entry_key* val_qstate::key_entry |
the current key entry
Referenced by ds_response_to_ke(), process_dnskey_response(), process_ds_response(), process_prime_response(), processFindKey(), processInit(), and processValidate().
| uint8_t* val_qstate::signer_name |
signer name
Referenced by processFindKey(), processInit(), and processValidate().
| size_t val_qstate::signer_len |
length of signer_name
Referenced by processFindKey(), and processInit().
| int val_qstate::wait_prime_ta |
true if this state is waiting to prime a trust anchor
Referenced by prime_trust_anchor(), and val_inform_super().
| int val_qstate::msg_signatures_state |
State to continue with RRSIG validation in a message later.
Referenced by validate_msg_signatures().
| size_t val_qstate::msg_signatures_index |
The rrset index for the msg signatures to continue from.
Referenced by validate_msg_signatures().
| struct nsec3_cache_table val_qstate::nsec3_cache_table |
Cache table for NSEC3 hashes.
Referenced by ds_response_to_ke(), val_inform_super(), validate_any_response(), validate_cname_noanswer_response(), validate_cname_response(), validate_nameerror_response(), validate_nodata_response(), and validate_positive_response().
| struct dns_msg* val_qstate::sub_ds_msg |
DS message from sub if it got suspended from NSEC3 calculations.
Referenced by processFindKey(), and val_inform_super().
| struct comm_timer* val_qstate::suspend_timer |
The timer to resume processing msg signatures.
Referenced by val_clear(), val_restart(), and validate_suspend_setup_timer().
| int val_qstate::suspend_count |
Number of suspends.
Referenced by validate_suspend_setup_timer().
| int val_qstate::num_validation_attempts |
Number of DNSKEY RRSIG validation attempts.
This is the number of cryptographic operations done for the mesh state.
Referenced by dnskey_verify_rrset(), dnskeyset_verify_rrset_sig(), val_can_restart(), and val_restart().
| int val_qstate::num_hash_attempts |
Number of DS hash verification attempts.
This is the number of hash operations done for the mesh state. It does not count NSEC3 hashes.
Referenced by val_can_restart(), val_restart(), and verify_dnskeys_with_ds_rr().
| int val_qstate::num_nsec_attempts |
Number of NSEC validations.
And NSEC3 too. This is reset per answer.
Referenced by dnskeyset_verify_rrset_sig(), process_dnskey_response(), process_ds_response(), and process_prime_response().
| int val_qstate::num_nsec_attempts_exceeded |
The nsec attempts have been exceeded.
Referenced by dnskeyset_verify_rrset_sig(), and val_can_restart().
| int val_qstate::parent_denial_must_be_secure |
if validation must be secure, (else bogus) for NXDOMAIN from signed parent to (removed) trust anchor subdomain.
Referenced by processFinished(), and processInit().