Lines Matching refs:tkeyout

268 	       dns_rdata_tkey_t *tkeyout,
287 tkeyout->error = dns_tsigerror_badalg;
294 tkeyout->error = dns_tsigerror_badalg;
340 tkeyout->error = dns_tsigerror_badkey;
377 randomdata = isc_mem_get(tkeyout->mctx, TKEY_RANDOM_AMOUNT);
403 tkeyout->inception = tkeyin->inception;
404 tkeyout->expire = tkeyin->expire;
406 tkeyout->key = randomdata;
407 tkeyout->keylen = TKEY_RANDOM_AMOUNT;
419 isc_mem_put(tkeyout->mctx, randomdata, TKEY_RANDOM_AMOUNT);
425 dns_tkeyctx_t *tctx, dns_rdata_tkey_t *tkeyout,
442 tkeyout->error = dns_tsigerror_badalg;
468 tkeyout->error = dns_tsigerror_badkey;
503 tkeyout->inception = now;
504 tkeyout->expire = expire;
506 tkeyout->inception = tsigkey->inception;
507 tkeyout->expire = tsigkey->expire;
512 tkeyout->key = isc_mem_get(tkeyout->mctx,
514 if (tkeyout->key == NULL) {
518 tkeyout->keylen = isc_buffer_usedlength(outtoken);
519 memmove(tkeyout->key, isc_buffer_base(outtoken),
523 tkeyout->key = isc_mem_get(tkeyout->mctx, tkeyin->keylen);
524 if (tkeyout->key == NULL) {
528 tkeyout->keylen = tkeyin->keylen;
529 memmove(tkeyout->key, tkeyin->key, tkeyin->keylen);
532 tkeyout->error = dns_rcode_noerror;
556 dns_rdata_tkey_t *tkeyin, dns_rdata_tkey_t *tkeyout,
565 tkeyout->error = dns_tsigerror_badname;
597 dns_rdata_tkey_t tkeyin, tkeyout;
679 tkeyout.common.rdclass = tkeyin.common.rdclass;
680 tkeyout.common.rdtype = tkeyin.common.rdtype;
681 ISC_LINK_INIT(&tkeyout.common, link);
682 tkeyout.mctx = msg->mctx;
684 dns_name_init(&tkeyout.algorithm, NULL);
685 dns_name_clone(&tkeyin.algorithm, &tkeyout.algorithm);
687 tkeyout.inception = tkeyout.expire = 0;
688 tkeyout.mode = tkeyin.mode;
689 tkeyout.error = 0;
690 tkeyout.keylen = tkeyout.otherlen = 0;
691 tkeyout.key = tkeyout.other = NULL;
763 tkeyout.error = dns_tsigerror_badname;
773 tkeyout.error = dns_rcode_noerror;
775 tctx, &tkeyout, ring,
779 tkeyout.error = dns_rcode_noerror;
781 &tkeyout, ring));
784 tkeyout.error = dns_rcode_noerror;
786 &tkeyout, ring));
793 tkeyout.error = dns_tsigerror_badmode;
799 result = dns_rdata_fromstruct(&rdata, tkeyout.common.rdclass,
800 tkeyout.common.rdtype, &tkeyout,
808 if (tkeyout.key != NULL)
809 isc_mem_put(tkeyout.mctx, tkeyout.key, tkeyout.keylen);
810 if (tkeyout.other != NULL)
811 isc_mem_put(tkeyout.mctx, tkeyout.other, tkeyout.otherlen);