summaryrefslogtreecommitdiffstats
path: root/avahi-core/wide-area.c
diff options
context:
space:
mode:
authorFederico Lucifredi <flucifredi@acm.org>2007-12-27 09:30:38 +0000
committerFederico Lucifredi <flucifredi@acm.org>2007-12-27 09:30:38 +0000
commit47df83d8e885562571eefe8f12316a1096567ba9 (patch)
treee89f6054f961126160f7f65baf92aa078779be16 /avahi-core/wide-area.c
parent8c5b1002bbbef38a1ef0a92630bc67dadd1e34c6 (diff)
uint32_to_canonical_string()added
git-svn-id: file:///home/lennart/svn/public/avahi/branches/federico@1659 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
Diffstat (limited to 'avahi-core/wide-area.c')
-rw-r--r--avahi-core/wide-area.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/avahi-core/wide-area.c b/avahi-core/wide-area.c
index b884dca..2373333 100644
--- a/avahi-core/wide-area.c
+++ b/avahi-core/wide-area.c
@@ -34,6 +34,7 @@
#include <avahi-common/error.h>
#include <avahi-common/timeval.h>
#include <avahi-common/domain.h>
+#include <avahi-common/domain-util.h>
#include <openssl/hmac.h>
@@ -805,10 +806,10 @@ AvahiRecord* tsig_sign_packet(const char* keyname, const char* key, unsigned key
/*feed all the data to be hashed in */
/*HMAC_Update(&ctx, <data/>, <length/>);*/
- HMAC_Update(&ctx, p->data, p->size); /*packet in wire format*/
+ HMAC_Update(&ctx, (unsigned char *)p->data, (unsigned int)p->size); /*packet in wire format*/
canonic = c_to_canonical_string(keyname);
- HMAC_Update(&ctx, canonic, strlen(canonic) +1); /* key name in canonical wire format */
+ HMAC_Update(&ctx, &canonic, strlen(canonic) +1); /* key name in canonical wire format */
HMAC_Update(&ctx, uint16_to_canonical_string(AVAHI_DNS_CLASS_ANY), 2); /* class */
/* HMAC_Update(&ctx,