From 587021b1077f2738497ec015b3da8fff0ad85c72 Mon Sep 17 00:00:00 2001 From: Federico Lucifredi Date: Sun, 13 Jan 2008 01:48:15 +0000 Subject: look at MAC ordering. git-svn-id: file:///home/lennart/svn/public/avahi/branches/federico@1701 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe --- avahi-core/wide-area.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'avahi-core') diff --git a/avahi-core/wide-area.c b/avahi-core/wide-area.c index 1a4fa38..e6cc770 100644 --- a/avahi-core/wide-area.c +++ b/avahi-core/wide-area.c @@ -801,6 +801,7 @@ AvahiRecord* avahi_tsig_sign_packet(const unsigned char* keyname, const unsigned HMAC_cleanup(&ctx); r->data.tsig.mac = avahi_strndup(keyed_hash, hash_length); + printf("MAC: %s\n", r->data.tsig.mac); return r; } @@ -817,8 +818,8 @@ void avahi_wide_area_publish(AvahiRecord *r, const char *zone, uint16_t id, int AvahiRecord *tsig; /* TODO: in merged version into upstream, key needs to be an external configurable pulled from /etc */ - static const char key[16] = { 0x12, 0xa6, 0x05, 0xcc, 0x38, 0xf9, 0x1f, 0x1e, - 0x24, 0x21, 0x6c, 0xa4, 0xd0, 0x1e, 0x88, 0x38 }; + static const char key[16] = { 0x12, 0xA6, 0x05, 0xCC, 0x38, 0xF9, 0x1F, 0x1E, + 0x24, 0x21, 0x6C, 0xA4, 0xD0, 0x1E, 0x88, 0x38 }; /* TODO: in merged version into upstream, address needs to be an external configurable pulled from /etc */ -- cgit