Branch Coverage

src/ldns/dane.c
Criterion Covered Total %
branch 0 146 0.0


line true false branch
62 0 0 if (s + ldns_rdf_size(name) > LDNS_MAX_DOMAINLEN) {
68 0 0 if (*tlsa_owner == NULL) {
103 0 0 if (! xpubkey) {
107 0 0 if (! epubkey) {
122 0 0 return *rdf ? LDNS_STATUS_OK : LDNS_STATUS_MEM_ERR;
128 0 0 if (digest == NULL) {
137 0 0 return *rdf ? LDNS_STATUS_OK : LDNS_STATUS_MEM_ERR;
143 0 0 if (digest == NULL) {
152 0 0 return *rdf ? LDNS_STATUS_OK : LDNS_STATUS_MEM_ERR;
172 0 0 if (! store) {
176 0 0 if (! vrfy_ctx) {
180 0 0 } else if (X509_STORE_CTX_init(vrfy_ctx, store,
184 0 0 } else if (X509_verify_cert(vrfy_ctx) == 1) {
209 0 0 if (! store) {
214 0 0 if (! vrfy_ctx) {
218 0 0 } else if (X509_STORE_CTX_init(vrfy_ctx, store,
222 0 0 } else if (X509_verify_cert(vrfy_ctx) == 1) {
230 0 0 if (! *chain) {
238 0 0 if (empty_store) {
260 0 0 if (! vrfy_ctx) {
264 0 0 } else if (X509_STORE_CTX_init(vrfy_ctx, empty_store,
270 0 0 if (! *chain) {
290 0 0 if (n >= sk_X509_num(chain) || n < 0) {
0 0 if (n >= sk_X509_num(chain) || n < 0) {
294 0 0 while (n-- > 0) {
298 0 0 if (ca && ! X509_check_ca(*cert)) {
0 0 if (ca && ! X509_check_ca(*cert)) {
321 0 0 if (! vrfy_ctx) {
324 0 0 } else if (X509_STORE_CTX_init(vrfy_ctx, empty_store,
330 0 0 if (vrfy_ctx->error == X509_V_ERR_SELF_SIGNED_CERT_IN_CHAIN ||
0 0 if (vrfy_ctx->error == X509_V_ERR_SELF_SIGNED_CERT_IN_CHAIN ||
364 0 0 if (pkix_validation_store == NULL) {
392 0 0 if (! pkix_validation_chain) {
395 0 0 if (s == LDNS_STATUS_OK) {
396 0 0 if (offset == -1) {
418 0 0 if (offset == -1) {
426 0 0 if (s == LDNS_STATUS_OK) {
431 0 0 } else if (! pkix_validation_chain) {
468 0 0 if (*tlsa == NULL) {
474 0 0 if (rdf == NULL) {
480 0 0 if (rdf == NULL) {
486 0 0 if (rdf == NULL) {
492 0 0 if (s == LDNS_STATUS_OK) {
517 0 0 if (! r) {
520 0 0 for (i = 0; i < ldns_rr_list_rr_count(tlsas); i++) {
523 0 0 ldns_rr_rd_count(tlsa_rr) == 4 &&
524 0 0 ldns_rdf2native_int8(ldns_rr_rdf(tlsa_rr, 0)) <= 3 &&
525 0 0 ldns_rdf2native_int8(ldns_rr_rdf(tlsa_rr, 1)) <= 1 &&
528 0 0 if (! ldns_rr_list_push_rr(r, tlsa_rr)) {
548 0 0 if (s == LDNS_STATUS_OK) {
549 0 0 if (ldns_rdf_compare(data, match_data) != 0) {
573 0 0 for (i = 0; i < n; i++) {
575 0 0 if (! cert) {
581 0 0 if (ca && s == LDNS_STATUS_OK && ! X509_check_ca(cert)) {
0 0 if (ca && s == LDNS_STATUS_OK && ! X509_check_ca(cert)) {
0 0 if (ca && s == LDNS_STATUS_OK && ! X509_check_ca(cert)) {
585 0 0 if (s != LDNS_STATUS_DANE_TLSA_DID_NOT_MATCH) {
610 0 0 if (! tlsa_rr) {
627 0 0 if (! pkix_validation_chain) {
630 0 0 if (s == LDNS_STATUS_DANE_PKIX_DID_NOT_VALIDATE) {
643 0 0 if (s == LDNS_STATUS_OK) {
651 0 0 } else if (s == LDNS_STATUS_OK) {
666 0 0 if (s == LDNS_STATUS_OK) {
677 0 0 if (s == LDNS_STATUS_OK) {
682 0 0 } else if (! pkix_validation_chain) {
712 0 0 if (tlsas && ldns_rr_list_rr_count(tlsas) > 0) {
0 0 if (tlsas && ldns_rr_list_rr_count(tlsas) > 0) {
714 0 0 if (! tlsas) {
718 0 0 if (! tlsas || ldns_rr_list_rr_count(tlsas) == 0) {
0 0 if (! tlsas || ldns_rr_list_rr_count(tlsas) == 0) {
724 0 0 for (i = 0; i < ldns_rr_list_rr_count(tlsas); i++) {
730 0 0 if (s != LDNS_STATUS_DANE_TLSA_DID_NOT_MATCH &&
0 0 if (s != LDNS_STATUS_DANE_TLSA_DID_NOT_MATCH &&