line |
true |
false |
branch |
36
|
0 |
0 |
if(ldns_dname_is_wildcard(ldns_rr_owner(ldns_rr_list_rr(rrset, 0)))) |
73
|
0 |
0 |
if (ldns_key_inception(current_key) != 0) { |
84
|
0 |
0 |
if (ldns_key_expiration(current_key) != 0) { |
208
|
0 |
0 |
if (!rrset || ldns_rr_list_rr_count(rrset) < 1 || !keys) { |
|
0 |
0 |
if (!rrset || ldns_rr_list_rr_count(rrset) < 1 || !keys) { |
|
0 |
0 |
if (!rrset || ldns_rr_list_rr_count(rrset) < 1 || !keys) { |
219
|
0 |
0 |
if (!rrset_clone) { |
224
|
0 |
0 |
for(i = 0; i < ldns_rr_list_rr_count(rrset_clone); i++) { |
232
|
0 |
0 |
for (key_count = 0; |
235
|
0 |
0 |
if (!ldns_key_use(ldns_key_list_key(keys, key_count))) { |
239
|
0 |
0 |
if (!sign_buf) { |
250
|
0 |
0 |
if (ldns_key_flags(current_key) & LDNS_KEY_ZONE_KEY) { |
258
|
0 |
0 |
if (ldns_rrsig2buffer_wire(sign_buf, current_sig) |
269
|
0 |
0 |
if (ldns_rr_list2buffer_wire(sign_buf, rrset_clone) |
280
|
0 |
0 |
if (!b64rdf) { |
320
|
0 |
0 |
if (!b64sig) { |
326
|
0 |
0 |
if (!sha1_hash) { |
332
|
0 |
0 |
if(!sig) { |
338
|
0 |
0 |
if(!data) { |
346
|
0 |
0 |
if (pad > 0) { |
352
|
0 |
0 |
if (pad > 0) { |
375
|
0 |
0 |
if(EVP_PKEY_type(pkey->type) != EVP_PKEY_EC) |
379
|
0 |
0 |
if(!g) { |
384
|
0 |
0 |
EC_GROUP_get_curve_name(g) == NID_X9_62_prime256v1 || |
410
|
0 |
0 |
if (!b64sig) { |
416
|
0 |
0 |
if(!md_type) { |
424
|
0 |
0 |
if(r == 1) { |
432
|
0 |
0 |
if(r == 1) { |
439
|
0 |
0 |
if(r != 1) { |
446
|
0 |
0 |
if (EVP_PKEY_type(key->type) == EVP_PKEY_DSA) { |
475
|
0 |
0 |
if (!b64sig) { |
481
|
0 |
0 |
if (!sha1_hash) { |
489
|
0 |
0 |
if (result != 1) { |
509
|
0 |
0 |
if (!b64sig) { |
515
|
0 |
0 |
if (!md5_hash) { |
540
|
0 |
0 |
while (cur_rrset) { |
541
|
0 |
0 |
if (cur_rrset->type == LDNS_RR_TYPE_A |
542
|
0 |
0 |
|| cur_rrset->type == LDNS_RR_TYPE_AAAA) { |
543
|
0 |
0 |
for (cur_rrs = cur_rrset->rrs; |
546
|
0 |
0 |
if (cur_rrs->rr) { |
547
|
0 |
0 |
if (!ldns_rr_list_push_rr(glue_list, |
592
|
0 |
0 |
if (!zone || !zone->names) { |
|
0 |
0 |
if (!zone || !zone->names) { |
595
|
0 |
0 |
for (node = ldns_rbtree_first(zone->names); |
601
|
0 |
0 |
if (cut) { |
617
|
0 |
0 |
if (below_delegation && glue_list) { |
|
0 |
0 |
if (below_delegation && glue_list) { |
620
|
0 |
0 |
if (s != LDNS_STATUS_OK) { |
635
|
0 |
0 |
if (ldns_dnssec_rrsets_contains_type( |
637
|
0 |
0 |
&& !ldns_dnssec_rrsets_contains_type( |
641
|
0 |
0 |
if (glue_list) { /* record glue on the zone cut */ |
644
|
0 |
0 |
if (s != LDNS_STATUS_OK) { |
648
|
0 |
0 |
} else if (ldns_dnssec_rrsets_contains_type( |
680
|
0 |
0 |
if (node == LDNS_RBTREE_NULL) { |
684
|
0 |
0 |
while (!done) { |
685
|
0 |
0 |
if (next_node == LDNS_RBTREE_NULL) { |
689
|
0 |
0 |
if (!next_name->is_glue) { |
718
|
0 |
0 |
if (soa && soa->rrs && soa->rrs->rr |
|
0 |
0 |
if (soa && soa->rrs && soa->rrs->rr |
|
0 |
0 |
if (soa && soa->rrs && soa->rrs->rr |
719
|
0 |
0 |
&& (ldns_rr_rdf(soa->rrs->rr, 6) != NULL)) { |
728
|
0 |
0 |
if (cur_node) { |
735
|
0 |
0 |
while (cur_node && next_node) { |
|
0 |
0 |
while (cur_node && next_node) { |
742
|
0 |
0 |
if(ldns_dnssec_name_add_rr(cur_name, nsec_rr)!=LDNS_STATUS_OK){ |
748
|
0 |
0 |
if (cur_node) { |
754
|
0 |
0 |
if (cur_node && !next_node) { |
|
0 |
0 |
if (cur_node && !next_node) { |
761
|
0 |
0 |
if(ldns_dnssec_name_add_rr(cur_name, nsec_rr)!=LDNS_STATUS_OK){ |
800
|
0 |
0 |
if (!zone || !new_rrs || !zone->names) { |
|
0 |
0 |
if (!zone || !new_rrs || !zone->names) { |
|
0 |
0 |
if (!zone || !new_rrs || !zone->names) { |
812
|
0 |
0 |
if (soa && soa->rrs && soa->rrs->rr |
|
0 |
0 |
if (soa && soa->rrs && soa->rrs->rr |
|
0 |
0 |
if (soa && soa->rrs && soa->rrs->rr |
813
|
0 |
0 |
&& ldns_rr_rdf(soa->rrs->rr, 6) != NULL) { |
819
|
0 |
0 |
if (zone->hashed_names) { |
825
|
0 |
0 |
if (zone->hashed_names && map) { |
|
0 |
0 |
if (zone->hashed_names && map) { |
834
|
0 |
0 |
while (current_name_node && current_name_node != LDNS_RBTREE_NULL && |
|
0 |
0 |
while (current_name_node && current_name_node != LDNS_RBTREE_NULL && |
|
0 |
0 |
while (current_name_node && current_name_node != LDNS_RBTREE_NULL && |
848
|
0 |
0 |
if (!current_name->rrsets) { |
854
|
0 |
0 |
if (ldns_rr_owner(nsec_rr)) { |
856
|
0 |
0 |
if (hashmap_node == NULL) { |
862
|
0 |
0 |
if (current_name->hashed_name == NULL) { |
869
|
0 |
0 |
if (! ldns_rbtree_insert(zone->hashed_names |
877
|
0 |
0 |
if (result != LDNS_STATUS_OK) { |
884
|
0 |
0 |
if (nsec3_list == NULL) { |
887
|
0 |
0 |
for ( hashmap_node = ldns_rbtree_first(zone->hashed_names) |
893
|
0 |
0 |
if (nsec_rr) { |
933
|
0 |
0 |
if (!cur_rr) { |
952
|
0 |
0 |
while (cur_rr) { |
962
|
0 |
0 |
for (i = 0; i < ldns_key_list_key_count(key_list); i++) { |
963
|
0 |
0 |
if (ldns_key_keytag(ldns_key_list_key(key_list, i)) == |
974
|
0 |
0 |
for (i = 0; i < ldns_key_list_key_count(key_list); i++) { |
975
|
0 |
0 |
if (ldns_key_keytag(ldns_key_list_key(key_list, i)) |
981
|
0 |
0 |
if (prev_rr) { |
989
|
0 |
0 |
if (prev_rr) { |
1026
|
0 |
0 |
for(i=0; i
|
1027
|
0 |
0 |
if((ldns_key_flags(ldns_key_list_key(key_list, i))&LDNS_KEY_SEP_KEY)) { |
1031
|
0 |
0 |
if(!saw_ksk) |
1033
|
0 |
0 |
for(i=0; i
|
1034
|
0 |
0 |
if(!(ldns_key_flags(ldns_key_list_key(key_list, i))&LDNS_KEY_SEP_KEY)) |
1044
|
0 |
0 |
for(i=0; i
|
1045
|
0 |
0 |
if(!(ldns_key_flags(ldns_key_list_key(key_list, i))&LDNS_KEY_SEP_KEY)) { |
1049
|
0 |
0 |
if(!saw_zsk) |
1052
|
0 |
0 |
for(i=0; i
|
1053
|
0 |
0 |
if((ldns_key_flags(ldns_key_list_key(key_list, i))&LDNS_KEY_SEP_KEY)) |
1082
|
0 |
0 |
for (i = 0; i
|
1091
|
0 |
0 |
while (cur_node != LDNS_RBTREE_NULL) { |
1094
|
0 |
0 |
if (!cur_name->is_glue) { |
1097
|
0 |
0 |
&& !ldns_dnssec_rrsets_contains_type( |
|
0 |
0 |
&& !ldns_dnssec_rrsets_contains_type( |
1100
|
0 |
0 |
while (cur_rrset) { |
1111
|
0 |
0 |
if(!(flags&LDNS_SIGN_DNSKEY_WITH_ZSK) && |
|
0 |
0 |
if(!(flags&LDNS_SIGN_DNSKEY_WITH_ZSK) && |
1115
|
0 |
0 |
if(cur_rrset->type != LDNS_RR_TYPE_DNSKEY) |
1122
|
0 |
0 |
while (cur_rr) { |
1132
|
0 |
0 |
== LDNS_RR_TYPE_DS || |
1134
|
0 |
0 |
== LDNS_RR_TYPE_NSEC || |
1138
|
0 |
0 |
for (i = 0; i < ldns_rr_list_rr_count(siglist); i++) { |
1139
|
0 |
0 |
if (cur_rrset->signatures) { |
1148
|
0 |
0 |
if (new_rrs) { |
1175
|
0 |
0 |
for (i = 0; i < ldns_rr_list_rr_count(siglist); i++) { |
1176
|
0 |
0 |
if (cur_name->nsec_signatures) { |
1184
|
0 |
0 |
if (new_rrs) { |
1220
|
0 |
0 |
if (!zone || !new_rrs || !key_list) { |
|
0 |
0 |
if (!zone || !new_rrs || !key_list) { |
|
0 |
0 |
if (!zone || !new_rrs || !key_list) { |
1226
|
0 |
0 |
if (result != LDNS_STATUS_OK) { |
1231
|
0 |
0 |
if (zone->names && !((ldns_dnssec_name *)zone->names->root->data)->nsec) { |
|
0 |
0 |
if (zone->names && !((ldns_dnssec_name *)zone->names->root->data)->nsec) { |
1233
|
0 |
0 |
if (result != LDNS_STATUS_OK) { |
1284
|
0 |
0 |
if (result != LDNS_STATUS_OK) { |
1291
|
0 |
0 |
if (zone->names) { |
1294
|
0 |
0 |
if (result != LDNS_STATUS_OK) { |
1299
|
0 |
0 |
if (nsec3 && ldns_rr_get_type(nsec3) == LDNS_RR_TYPE_NSEC3) { |
|
0 |
0 |
if (nsec3 && ldns_rr_get_type(nsec3) == LDNS_RR_TYPE_NSEC3) { |
1302
|
0 |
0 |
if (!ldns_dnssec_zone_find_rrset(zone, |
1321
|
0 |
0 |
if (result != LDNS_STATUS_OK) { |
1334
|
0 |
0 |
if (result != LDNS_STATUS_OK) { |
1382
|
0 |
0 |
for (i = 0; i < ldns_rr_list_rr_count(ldns_zone_rrs(zone)); i++) { |
1398
|
0 |
0 |
for (i = 0; i < ldns_rr_list_rr_count(new_rrs); i++) { |
1423
|
0 |
0 |
for (i = 0; i < ldns_rr_list_rr_count(ldns_zone_rrs(zone)); i++) { |
1444
|
0 |
0 |
for (i = 0; i < ldns_rr_list_rr_count(new_rrs); i++) { |