1*5ffb0c9bSToomas Soome /* -*- Mode: C; tab-width: 4 -*- 2*5ffb0c9bSToomas Soome * 3*5ffb0c9bSToomas Soome * Copyright (c) 2012 Apple Computer, Inc. All rights reserved. 4*5ffb0c9bSToomas Soome * 5*5ffb0c9bSToomas Soome * Licensed under the Apache License, Version 2.0 (the "License"); 6*5ffb0c9bSToomas Soome * you may not use this file except in compliance with the License. 7*5ffb0c9bSToomas Soome * You may obtain a copy of the License at 8*5ffb0c9bSToomas Soome * 9*5ffb0c9bSToomas Soome * http://www.apache.org/licenses/LICENSE-2.0 10*5ffb0c9bSToomas Soome * 11*5ffb0c9bSToomas Soome * Unless required by applicable law or agreed to in writing, software 12*5ffb0c9bSToomas Soome * distributed under the License is distributed on an "AS IS" BASIS, 13*5ffb0c9bSToomas Soome * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14*5ffb0c9bSToomas Soome * See the License for the specific language governing permissions and 15*5ffb0c9bSToomas Soome * limitations under the License. 16*5ffb0c9bSToomas Soome */ 17*5ffb0c9bSToomas Soome 18*5ffb0c9bSToomas Soome #ifndef __ANONYMOUS_H_ 19*5ffb0c9bSToomas Soome #define __ANONYMOUS_H_ 20*5ffb0c9bSToomas Soome 21*5ffb0c9bSToomas Soome extern void ReInitAnonInfo(AnonymousInfo **si, const domainname *name); 22*5ffb0c9bSToomas Soome extern AnonymousInfo *AllocateAnonInfo(const domainname *service, const mDNSu8 *AnonData, int len, const ResourceRecord *rr); 23*5ffb0c9bSToomas Soome extern void FreeAnonInfo(AnonymousInfo *ai); 24*5ffb0c9bSToomas Soome extern void SetAnonData(DNSQuestion *q, ResourceRecord *rr, mDNSBool ForQuestion); 25*5ffb0c9bSToomas Soome extern int AnonInfoAnswersQuestion(const ResourceRecord *const rr, const DNSQuestion *const q); 26*5ffb0c9bSToomas Soome extern void InitializeAnonInfoForCR(mDNS *const m, CacheRecord **McastNSEC3Records, CacheRecord *cr); 27*5ffb0c9bSToomas Soome extern void InitializeAnonInfoForQuestion(mDNS *const m, CacheRecord **McastNSEC3Records, DNSQuestion *q); 28*5ffb0c9bSToomas Soome extern void CopyAnonInfoForCR(mDNS *const m, CacheRecord *crto, CacheRecord *crfrom); 29*5ffb0c9bSToomas Soome extern mDNSBool IdenticalAnonInfo(AnonymousInfo *a1, AnonymousInfo *a2); 30*5ffb0c9bSToomas Soome 31*5ffb0c9bSToomas Soome #endif 32