Lines Matching defs:AuthInfo
377 *p = info->next; // Cut DomainAuthInfo from list *before* scanning our question list updating AuthInfo pointers
379 if (q->AuthInfo == info)
381 q->AuthInfo = GetAuthInfoForName_direct(m, &q->qname);
382 debugf("GetAuthInfoForName_internal updated q->AuthInfo from %##s to %##s for %##s (%s)",
383 info->domain.c, q->AuthInfo ? q->AuthInfo->domain.c : mDNSNULL, q->qname.c, DNSTypeName(q->qtype));
460 if (q->AuthInfo != newinfo)
462 debugf("mDNS_SetSecretForDomain updating q->AuthInfo from %##s to %##s for %##s (%s)",
463 q->AuthInfo ? q->AuthInfo->domain.c : mDNSNULL,
465 q->AuthInfo = newinfo;
1278 DomainAuthInfo *AuthInfo;
1287 AuthInfo = tcpInfo->rr ? GetAuthInfoForName(m, tcpInfo->rr->resrec.name) : mDNSNULL;
1311 AuthInfo = q->AuthInfo; // Need to add TSIG to this message
1327 AuthInfo = q->AuthInfo; // Need to add TSIG to this message
1330 err = mDNSSendDNSMessage(m, &tcpInfo->request, end, mDNSInterface_Any, mDNSNULL, &tcpInfo->Addr, tcpInfo->Port, sock, AuthInfo, mDNSfalse);
1719 DomainAuthInfo *AuthInfo = GetAuthInfoForName_internal(m, rr->resrec.name);
1720 if (AuthInfo && AuthInfo->AutoTunnel)
1722 StartServerTunnel(m, AuthInfo);
1723 if (AuthInfo->AutoTunnelHostRecord.namestorage.c[0] == 0) return(mDNSNULL);
1724 debugf("GetServiceTarget: Returning %##s", AuthInfo->AutoTunnelHostRecord.namestorage.c);
1725 return(&AuthInfo->AutoTunnelHostRecord.namestorage);
1794 DomainAuthInfo *AuthInfo = GetAuthInfoForName(m, zd->CurrentSOA);
1795 if (AuthInfo && AuthInfo->AutoTunnel)
1822 // If the AuthInfo has the AutoTunnel field set, then we want private or nothing
1926 DomainAuthInfo *AuthInfo = GetAuthInfoForName_internal(m, name);
1927 int initialskip = (AuthInfo && AuthInfo->AutoTunnel) ? DomainNameLength(name) - DomainNameLength(&AuthInfo->domain) : 0;
1939 zd->ZonePrivate = AuthInfo && AuthInfo->AutoTunnel ? mDNStrue : mDNSfalse;
1946 if (AuthInfo && AuthInfo->AutoTunnel && !mDNSIPPortIsZero(AuthInfo->port))
1948 LogInfo("StartGetZoneData: Bypassing SOA, SRV query for %##s", AuthInfo->domain.c);
1952 // 1. Zone name is the same as the AuthInfo domain
1958 AssignDomainName(&zd->ZoneName, &AuthInfo->domain);
1960 AssignDomainName(&zd->Host, &AuthInfo->hostname);
1961 zd->Port = AuthInfo->port;
1967 if (AuthInfo && AuthInfo->AutoTunnel) LogInfo("StartGetZoneData: Not Bypassing SOA, SRV query for %##s", AuthInfo->domain.c);
2863 // which is a function of AuthInfo and AutoTunnel properties
2864 mDNSlocal mDNSu32 RRAdditionalSize(mDNS *const m, DomainAuthInfo *AuthInfo)
2875 if (AuthInfo && AuthInfo->AutoTunnel)
2876 hinfoSize = (m->hostlabel.c[0] + 1) + DomainNameLength(&AuthInfo->domain) +
2891 if (AuthInfo) tsigSize = DomainNameLength(&AuthInfo->keyname) + rr_base_size + 58;
2968 DomainAuthInfo *AuthInfo;
2974 AuthInfo = GetAuthInfoForName_internal(m, rr->resrec.name);
2975 limit -= RRAdditionalSize(m, AuthInfo);
3248 DomainAuthInfo *AuthInfo = mDNSNULL;
3268 AuthInfo = mDNSNULL;
3280 AuthInfo = GetAuthInfoForName_internal(m, rr->zone);
3285 if (AuthInfo && AuthInfo->AutoTunnel) spaceleft = AbsoluteMaxDNSMessageData;
3289 spaceleft -= RRAdditionalSize(m, AuthInfo);
3344 SendGroupRRMessage(m, anchorRR, next, AuthInfo);
3381 SendGroupRRMessage(m, anchorRR, next, AuthInfo);
3922 if (q->AuthInfo) return(mDNStrue); // Don't need a test query for private queries sent directly to authoritative server over TLS/TCP
4108 // so we may not be able to reference it (most importantly it's AuthInfo) when we actually send the message
4109 end = putHINFO(m, &m->omsg, end, q->AuthInfo, limit);
4114 DNSDigest_SignMessageHostByteOrder(&m->omsg, &end, q->AuthInfo);
4140 // if AuthInfo and AuthInfo->AutoTunnel is set, we use the TCP socket but don't need to pass the AuthInfo as
4235 q->AuthInfo = mDNSNULL; // Clear AuthInfo so we try again non-private
4249 LogMsg("PrivateQueryGotZoneData: ERROR!! Not a private query %##s (%s) AuthInfo %p", q->qname.c, DNSTypeName(q->qtype), q->AuthInfo);
4390 DomainAuthInfo *AuthInfo;
4391 AuthInfo = GetAuthInfoForName(m, newRR->resrec.name);
4392 if (AuthInfo && AuthInfo->AutoTunnel)
4439 DomainAuthInfo *AuthInfo;
4450 AuthInfo = GetAuthInfoForName_internal(m, rr->resrec.name);
4451 limit -= RRAdditionalSize(m, AuthInfo);