Commit 3e89268f authored by Brian Wellington's avatar Brian Wellington
Browse files

isc_buffer_region -> isc_buffer_usedregion

parent e5fb13fb
......@@ -16,7 +16,7 @@
*/
/*
* $Id: tkey.c,v 1.58 2001/01/09 21:51:38 bwelling Exp $
* $Id: tkey.c,v 1.59 2001/01/11 04:00:17 bwelling Exp $
*/
#include <config.h>
......@@ -881,7 +881,7 @@ dns_tkey_builddhquery(dns_message_t *msg, dst_key_t *key, dns_name_t *name,
tkey.expire = now + lifetime;
tkey.mode = DNS_TKEYMODE_DIFFIEHELLMAN;
if (nonce != NULL)
isc_buffer_region(nonce, &r);
isc_buffer_usedregion(nonce, &r);
else {
r.base = isc_mem_get(msg->mctx, 0);
r.length = 0;
......@@ -1119,7 +1119,7 @@ dns_tkey_processdhresponse(dns_message_t *qmsg, dns_message_t *rmsg,
r.base = rtkey.key;
r.length = rtkey.keylen;
if (nonce != NULL)
isc_buffer_region(nonce, &r2);
isc_buffer_usedregion(nonce, &r2);
else {
r2.base = isc_mem_get(rmsg->mctx, 0);
r2.length = 0;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment