contrib/ldns/dnssec_sign.c
static ldns_status
ldns_dnssec_addresses_on_glue_list(
		ldns_dnssec_rrsets *cur_rrset,
		ldns_rr_list *glue_list)
{
	ldns_dnssec_rrs *cur_rrs;
	while (cur_rrset) {
		if (cur_rrset->type == LDNS_RR_TYPE_A 
				|| cur_rrset->type == LDNS_RR_TYPE_AAAA) {
			for (cur_rrs = cur_rrset->rrs; 
					cur_rrs; 
					cur_rrs = cur_rrs->next) {
				if (cur_rrs->rr) {
					if (!ldns_rr_list_push_rr(glue_list, 
							cur_rrs->rr)) {
						return LDNS_STATUS_MEM_ERR; 
						/* ldns_rr_list_push_rr()
						 * returns false when unable
						 * to increase the capacity
						 * of the ldsn_rr_list
						 */
					}
				}
			}
		}
		cur_rrset = cur_rrset->next;
	}
	return LDNS_STATUS_OK;
}
/**
 * Pushes all rrs from the rrsets of type A and AAAA on gluelist.
 */
Pushes all rrs from the rrsets of type A and AAAA on gluelist.
Pushes all rrs from the rrsets of type A and AAAA on gluelist .
static ldns_status
ldns_dnssec_addresses_on_glue_list(
		ldns_dnssec_rrsets *cur_rrset,
		ldns_rr_list *glue_list)
{
	ldns_dnssec_rrs *cur_rrs;
	while (cur_rrset) {
		if (cur_rrset->type == LDNS_RR_TYPE_A 
				|| cur_rrset->type == LDNS_RR_TYPE_AAAA) {
			for (cur_rrs = cur_rrset->rrs; 
					cur_rrs; 
					cur_rrs = cur_rrs->next) {
				if (cur_rrs->rr) {
					if (!ldns_rr_list_push_rr(glue_list, 
							cur_rrs->rr)) {
						return LDNS_STATUS_MEM_ERR; 
					}
				}
			}
		}
		cur_rrset = cur_rrset->next;
	}
	return LDNS_STATUS_OK;
}
static ldns_status ldns_dnssec_addresses_on_glue_list ( ldns_dnssec_rrsets * cur_rrset , ldns_rr_list * glue_list ) { ldns_dnssec_rrs * cur_rrs ; while ( cur_rrset ) { if ( cur_rrset -> type == LDNS_RR_TYPE_A || cur_rrset -> type == LDNS_RR_TYPE_AAAA ) { for ( cur_rrs = cur_rrset -> rrs ; cur_rrs ; cur_rrs = cur_rrs -> next ) { if ( cur_rrs -> rr ) { if ( ! ldns_rr_list_push_rr ( glue_list , cur_rrs -> rr ) ) { return LDNS_STATUS_MEM_ERR ; } } } } cur_rrset = cur_rrset -> next ; } return LDNS_STATUS_OK ; }
Pushes all rrs from the rrsets of type A and AAAA on gluelist.
Pushes all rrs from the rrsets of type A and AAAA on gluelist .
/* ldns_rr_list_push_rr()
						 * returns false when unable
						 * to increase the capacity
						 * of the ldsn_rr_list
						 */