+2283. [bug] TSIG keys were not attaching to the memory
+ context. TSIG keys should use the rings
+ memory context rather than the clients memory
+ context. [RT #17377]
+
2282. [bug] Acl code fixups. [RT #17346] [RT #17374]
2281. [bug] Attempts to use undefined acls were not being logged.
*/
/*
- * $Id: tkey.c,v 1.86 2007/06/19 23:47:16 tbox Exp $
+ * $Id: tkey.c,v 1.87 2008/01/02 04:24:59 marka Exp $
*/
/*! \file */
#include <config.h>
isc_buffer_base(&secret),
isc_buffer_usedlength(&secret),
ISC_TRUE, signer, tkeyin->inception,
- tkeyin->expire, msg->mctx, ring, NULL));
+ tkeyin->expire, ring->mctx, ring, NULL));
/* This key is good for a long time */
tkeyout->inception = tkeyin->inception;
dns_fixedname_name(&principal),
tkeyin->inception,
tkeyin->expire,
- msg->mctx, ring, NULL));
+ ring->mctx, ring, NULL));
}
isc_stdtime_get(&now);
RETERR(dns_tsigkey_createfromkey(tkeyname, DNS_TSIG_GSSAPI_NAME,
dstkey, ISC_FALSE, NULL,
rtkey.inception, rtkey.expire,
- rmsg->mctx, ring, outkey));
+ ring->mctx, ring, outkey));
dns_rdata_freestruct(&rtkey);
return (result);
: DNS_TSIG_GSSAPI_NAME),
dstkey, ISC_TRUE, NULL,
rtkey.inception, rtkey.expire,
- rmsg->mctx, ring, outkey));
+ ring->mctx, ring, outkey));
dns_rdata_freestruct(&rtkey);
return (result);
*/
/*
- * $Id: tsig.c,v 1.130 2007/09/24 17:18:25 each Exp $
+ * $Id: tsig.c,v 1.131 2008/01/02 04:24:59 marka Exp $
*/
/*! \file */
#include <config.h>
tkey->generated = generated;
tkey->inception = inception;
tkey->expire = expire;
- tkey->mctx = mctx;
+ tkey->mctx = NULL;
+ isc_mem_attach(mctx, &tkey->mctx);
tkey->magic = TSIG_MAGIC;
isc_mem_put(key->mctx, key->creator, sizeof(dns_name_t));
}
isc_refcount_destroy(&key->refs);
- isc_mem_put(key->mctx, key, sizeof(dns_tsigkey_t));
+ isc_mem_putanddetach(&key->mctx, key, sizeof(dns_tsigkey_t));
}
void
return (result);
}
- ring->mctx = mctx;
ring->writecount = 0;
+ ring->mctx = NULL;
+ isc_mem_attach(mctx, &ring->mctx);
*ringp = ring;
return (ISC_R_SUCCESS);
dns_rbt_destroy(&ring->keys);
isc_rwlock_destroy(&ring->lock);
- isc_mem_put(ring->mctx, ring, sizeof(dns_tsig_keyring_t));
+ isc_mem_putanddetach(&ring->mctx, ring, sizeof(dns_tsig_keyring_t));
}