summaryrefslogtreecommitdiff
path: root/minires
diff options
context:
space:
mode:
authorDamien Neil <source@isc.org>2000-08-03 21:00:41 +0000
committerDamien Neil <source@isc.org>2000-08-03 21:00:41 +0000
commit49146f3c1512a5a18445237ad3edfb91b6434545 (patch)
tree54c43f2be43c9bfafd0be51c1a4e246e40bd148e /minires
parentc62871ba64e76992da8518f4d1ff717d9cdf67e4 (diff)
downloadisc-dhcp-49146f3c1512a5a18445237ad3edfb91b6434545.tar.gz
Added authentication support. The tsig_key structure has been renamed
to auth_key and moved into libomapi. libomapi now depends on libres, which contains the data signing routines.
Diffstat (limited to 'minires')
-rw-r--r--minires/dst_api.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/minires/dst_api.c b/minires/dst_api.c
index 15e3ab55..69e68815 100644
--- a/minires/dst_api.c
+++ b/minires/dst_api.c
@@ -1,5 +1,5 @@
#ifndef LINT
-static const char rcsid[] = "$Header: /tmp/cvstest/DHCP/minires/Attic/dst_api.c,v 1.2 2000/02/02 19:59:15 mellon Exp $";
+static const char rcsid[] = "$Header: /tmp/cvstest/DHCP/minires/Attic/dst_api.c,v 1.3 2000/08/03 21:00:05 neild Exp $";
#endif
/*
@@ -722,7 +722,8 @@ dst_key_to_dnskey(const DST_KEY *key, u_char *out_storage,
}
memset(out_storage, 0, out_len);
val = (u_int16_t)(key->dk_flags & 0xffff);
- putUShort(out_storage, val);
+ out_storage[0] = (val >> 8) & 0xff;
+ out_storage[1] = val & 0xff;
loc += 2;
out_storage[loc++] = (u_char) key->dk_proto;
@@ -730,7 +731,8 @@ dst_key_to_dnskey(const DST_KEY *key, u_char *out_storage,
if (key->dk_flags > 0xffff) { /* Extended flags */
val = (u_int16_t)((key->dk_flags >> 16) & 0xffff);
- putUShort(&out_storage[loc], val);
+ out_storage[loc] = (val >> 8) & 0xff;
+ out_storage[loc+1] = val & 0xff;
loc += 2;
}
if (key->dk_KEY_struct == NULL)