• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10.1/mDNSResponder-561.1.1/mDNSCore/

Lines Matching refs:ic

3641     InsecureContext *ic = (InsecureContext *)context;
3642 ic->dv->DVCallback(m, ic->dv, ic->status);
3643 if (ic->q.ThisQInterval != -1)
3645 LogMsg("DeliverInsecureProofResultAsync: ERROR!! Question %##s (%s) not stopped already", ic->q.qname.c, DNSTypeName(ic->q.qtype));
3646 mDNS_StopQuery(m, &ic->q);
3648 mDNSPlatformMemFree(ic);
3651 mDNSlocal void DeliverInsecureProofResult(mDNS *const m, InsecureContext *ic, DNSSECStatus status)
3658 if (ic->dv->ac)
3660 FreeDNSSECAuthChainInfo(ic->dv->ac);
3662 ResetAuthChain(ic->dv);
3663 ic->dv->ac = ic->dv->saveac;
3664 if (ic->dv->ac)
3666 AuthChain *tmp = ic->dv->ac;
3673 ic->dv->actail = tail;
3675 ic->dv->saveac = mDNSNULL;
3677 else if (ic->dv->saveac)
3679 FreeDNSSECAuthChainInfo(ic->dv->saveac);
3680 ic->dv->saveac = mDNSNULL;
3682 ic->status = status;
3684 // callbacks again. Once the block runs, it will free the "ic" and you can't
3687 if (ic->q.ThisQInterval != -1)
3688 mDNS_StopQuery(m, &ic->q);
3689 mDNSPlatformDispatchAsync(m, ic, DeliverInsecureProofResultAsync);
3724 InsecureContext *ic = (InsecureContext *)question->QuestionContext;
3725 DNSSECVerifier *pdv = ic->dv;
3738 DeliverInsecureProofResult(m, ic, DNSSEC_Bogus);
3752 LogDNSSEC("ProveInsecureCallback: ic %p Question %##s (%s), DNSSEC status %s", ic, question->qname.c, DNSTypeName(question->qtype),
3790 DeliverInsecureProofResult(m, ic, DNSSEC_Insecure);
3802 DeliverInsecureProofResult(m, ic, DNSSEC_Bogus);
3807 ProveInsecure(m, pdv, ic, mDNSNULL);
3821 DeliverInsecureProofResult(m, ic, DNSSEC_Insecure);
3828 ProveInsecure(m, pdv, ic, mDNSNULL);
3839 DeliverInsecureProofResult(m, ic, DNSSEC_Bogus);
3844 DeliverInsecureProofResult(m, ic, DNSSEC_Bogus);
3851 mDNSexport void ProveInsecure(mDNS *const m, DNSSECVerifier *dv, InsecureContext *ic, domainname *trigger)
3856 if (ic == mDNSNULL)
3858 ic = (InsecureContext *)mDNSPlatformMemAllocate(sizeof(InsecureContext));
3859 if (!ic)
3861 LogMsg("mDNSPlatformMemAllocate: ERROR!! memory alloc failed for ic");
3883 ic->dv = dv;
3884 ic->q.ThisQInterval = -1;
3889 ic->triggerLabelCount = CountLabels(trigger);
3894 ic->triggerLabelCount = CountLabels(&dv->origName);
3901 DeliverInsecureProofResult(m, ic, DNSSEC_Insecure);
3906 ic->skip = CountLabels(&dv->origName) - CountLabels(&ta->zone);
3907 if (!ic->skip)
3910 DeliverInsecureProofResult(m, ic, DNSSEC_Bogus);
3922 sname = (domainname *)SkipLeadingLabels(&dv->origName, (ic->skip ? ic->skip - 1 : 0));
3925 LogDNSSEC("ProveInsecure: sname NULL, origName %##s, skip %d", dv->origName.c, ic->skip);
3926 DeliverInsecureProofResult(m, ic, DNSSEC_Bogus);
3942 if (CountLabels(sname) > ic->triggerLabelCount)
3945 DeliverInsecureProofResult(m, ic, DNSSEC_Bogus);
3950 ic->skip--;
3951 InitializeQuestion(m, &ic->q, dv->InterfaceID, sname, kDNSType_DS, ProveInsecureCallback, ic);
3952 ic->q.ValidationRequired = DNSSEC_VALIDATION_INSECURE;
3953 ic->q.ValidatingResponse = 0;
3954 ic->q.DNSSECAuthInfo = mDNSNULL;
3955 mDNS_StartQuery(m, &ic->q);