Lines Matching refs:tctx
88 dns_tkeyctx_t *tctx;
94 tctx = isc_mem_get(mctx, sizeof(dns_tkeyctx_t));
95 if (tctx == NULL)
97 tctx->mctx = NULL;
98 isc_mem_attach(mctx, &tctx->mctx);
99 tctx->ectx = NULL;
100 isc_entropy_attach(ectx, &tctx->ectx);
101 tctx->dhkey = NULL;
102 tctx->domain = NULL;
103 tctx->gsscred = NULL;
105 *tctxp = tctx;
112 dns_tkeyctx_t *tctx;
116 tctx = *tctxp;
117 mctx = tctx->mctx;
119 if (tctx->dhkey != NULL)
120 dst_key_free(&tctx->dhkey);
121 if (tctx->domain != NULL) {
122 if (dns_name_dynamic(tctx->domain))
123 dns_name_free(tctx->domain, mctx);
124 isc_mem_put(mctx, tctx->domain, sizeof(dns_name_t));
126 if (tctx->gsscred != NULL)
127 dst_gssapi_releasecred(&tctx->gsscred);
128 isc_entropy_detach(&tctx->ectx);
129 isc_mem_put(mctx, tctx, sizeof(dns_tkeyctx_t));
267 dns_rdata_tkey_t *tkeyin, dns_tkeyctx_t *tctx,
285 if (tctx->dhkey == NULL) {
324 if (dst_key_paramcompare(pubkey, tctx->dhkey))
351 RETERR(dst_key_todns(tctx->dhkey, &ourkeybuf));
357 dns_name_clone(dst_key_name(tctx->dhkey), &ourname);
364 RETERR(dst_key_secretsize(tctx->dhkey, &sharedsize));
367 result = dst_key_computesecret(pubkey, tctx->dhkey, shared);
381 result = isc_entropy_getdata(tctx->ectx, randomdata,
425 dns_tkeyctx_t *tctx, dns_rdata_tkey_t *tkeyout,
437 if (tctx->gsscred == NULL)
461 result = dst_gssapi_acceptctx(tctx->gsscred, &intoken,
464 tctx->mctx);
593 dns_tkey_processquery(dns_message_t *msg, dns_tkeyctx_t *tctx,
608 REQUIRE(tctx != NULL);
704 if (tctx->domain == NULL && tkeyin.mode != DNS_TKEYMODE_GSSAPI) {
727 result = isc_entropy_getdata(tctx->ectx,
754 result = dns_name_concatenate(keyname, tctx->domain,
775 tctx, &tkeyout, ring,
780 RETERR(process_gsstkey(keyname, &tkeyin, tctx,