summaryrefslogtreecommitdiffstats
path: root/avahi-core/wide-area.c
diff options
context:
space:
mode:
Diffstat (limited to 'avahi-core/wide-area.c')
-rw-r--r--avahi-core/wide-area.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/avahi-core/wide-area.c b/avahi-core/wide-area.c
index bf3f60d..2811408 100644
--- a/avahi-core/wide-area.c
+++ b/avahi-core/wide-area.c
@@ -721,5 +721,18 @@ int avahi_wide_area_has_servers(AvahiWideAreaLookupEngine *e) {
return e->n_dns_servers > 0;
}
+/* TODO: should this be located in this file? */
+AvahiRecord* tsig_sign_packet(AvahiDnsPacket *p, unsigned a) {
+ AvahiRecord *r;
+
+ r = avahi_record_new_full("TSIG", AVAHI_DNS_CLASS_IN, AVAHI_DNS_TYPE_TSIG, 0);
+
+ if (!r) {
+ avahi_log_error("avahi_record_new_full() failed.");
+ return NULL;
+ }
+
+ return r;
+}