diff options
author | Federico Lucifredi <flucifredi@acm.org> | 2008-01-13 00:25:45 +0000 |
---|---|---|
committer | Federico Lucifredi <flucifredi@acm.org> | 2008-01-13 00:25:45 +0000 |
commit | b0efd52f0322605c198c403e8e98af0a4323c787 (patch) | |
tree | 9b2e116a8abca64f3478adaa6fbd72dc72b39546 /avahi-core/wide-area.c | |
parent | 53a8c75d30ae26483d907bb680120e0aded60668 (diff) |
correcting byte order in keyed hash generation.
git-svn-id: file:///home/lennart/svn/public/avahi/branches/federico@1695 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
Diffstat (limited to 'avahi-core/wide-area.c')
-rw-r--r-- | avahi-core/wide-area.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/avahi-core/wide-area.c b/avahi-core/wide-area.c index 996da94..1a4fa38 100644 --- a/avahi-core/wide-area.c +++ b/avahi-core/wide-area.c @@ -773,27 +773,27 @@ AvahiRecord* avahi_tsig_sign_packet(const unsigned char* keyname, const unsigned printf("---mark--- (3b)\n"); - canonic = c_to_canonical_string(keyname); /* key name in canonical wire format (DNS labels) */ + canonic = avahi_c_to_canonical_string(keyname); /* key name in canonical wire format (DNS labels) */ HMAC_Update(&ctx, canonic, strlen(canonic) +1); printf("---mark--- (3c)\n"); - HMAC_Update(&ctx, uint16_to_canonical_string(AVAHI_DNS_CLASS_ANY), 2); /* class - always ANY for TSIG*/ + HMAC_Update(&ctx, avahi_uint16_to_canonical_string(AVAHI_DNS_CLASS_ANY), 2); /* class - always ANY for TSIG*/ - HMAC_Update(&ctx, uint32_to_canonical_string(0), 4); /* TTL - always 0 for TSIG */ + HMAC_Update(&ctx, avahi_uint32_to_canonical_string(0), 4); /* TTL - always 0 for TSIG */ - canonic = c_to_canonical_string(r->data.tsig.algorithm_name); /* IANA algorithm name in canonical wire format (DNS labels)*/ + canonic = avahi_c_to_canonical_string(r->data.tsig.algorithm_name); /* IANA algorithm name in canonical wire format (DNS labels)*/ HMAC_Update(&ctx, canonic, strlen(canonic) +1); printf("---mark--- (3d)\n"); - HMAC_Update(&ctx, time_t_to_canonical_string(r->data.tsig.time_signed), 6); /*uint48 representation of unix time */ + HMAC_Update(&ctx, avahi_time_t_to_canonical_string(r->data.tsig.time_signed), 6); /*uint48 representation of unix time */ - HMAC_Update(&ctx, uint16_to_canonical_string(r->data.tsig.fudge), 2); + HMAC_Update(&ctx, avahi_uint16_to_canonical_string(r->data.tsig.fudge), 2); - HMAC_Update(&ctx, uint16_to_canonical_string(r->data.tsig.error), 2); + HMAC_Update(&ctx, avahi_uint16_to_canonical_string(r->data.tsig.error), 2); - HMAC_Update(&ctx, uint16_to_canonical_string(r->data.tsig.other_len), 2); + HMAC_Update(&ctx, avahi_uint16_to_canonical_string(r->data.tsig.other_len), 2); HMAC_Update(&ctx, r->data.tsig.other_data, r->data.tsig.other_len); /* should still work if other_len =0 can be passed to the HMAC */ /* but no standard cypher uses this to date */ |