Lines Matching defs:tkeyout

294 	       dns_rdata_tkey_t *tkeyout,
313 tkeyout->error = dns_tsigerror_badalg;
321 tkeyout->error = dns_tsigerror_badalg;
326 tkeyout->error = dns_tsigerror_badalg;
374 tkeyout->error = dns_tsigerror_badkey;
411 randomdata = isc_mem_get(tkeyout->mctx, TKEY_RANDOM_AMOUNT);
437 tkeyout->inception = tkeyin->inception;
438 tkeyout->expire = tkeyin->expire;
440 tkeyout->key = randomdata;
441 tkeyout->keylen = TKEY_RANDOM_AMOUNT;
453 isc_mem_put(tkeyout->mctx, randomdata, TKEY_RANDOM_AMOUNT);
459 dns_tkeyctx_t *tctx, dns_rdata_tkey_t *tkeyout,
486 tkeyout->error = dns_tsigerror_badalg;
515 tkeyout->error = dns_tsigerror_badkey;
553 tkeyout->inception = now;
554 tkeyout->expire = expire;
556 tkeyout->inception = tsigkey->inception;
557 tkeyout->expire = tsigkey->expire;
562 tkeyout->key = isc_mem_get(tkeyout->mctx,
564 if (tkeyout->key == NULL) {
568 tkeyout->keylen = isc_buffer_usedlength(outtoken);
569 memmove(tkeyout->key, isc_buffer_base(outtoken),
573 tkeyout->key = isc_mem_get(tkeyout->mctx, tkeyin->keylen);
574 if (tkeyout->key == NULL) {
578 tkeyout->keylen = tkeyin->keylen;
579 memmove(tkeyout->key, tkeyin->key, tkeyin->keylen);
582 tkeyout->error = dns_rcode_noerror;
606 dns_rdata_tkey_t *tkeyin, dns_rdata_tkey_t *tkeyout,
615 tkeyout->error = dns_tsigerror_badname;
647 dns_rdata_tkey_t tkeyin, tkeyout;
730 tkeyout.common.rdclass = tkeyin.common.rdclass;
731 tkeyout.common.rdtype = tkeyin.common.rdtype;
732 ISC_LINK_INIT(&tkeyout.common, link);
733 tkeyout.mctx = msg->mctx;
735 dns_name_init(&tkeyout.algorithm, NULL);
736 dns_name_clone(&tkeyin.algorithm, &tkeyout.algorithm);
738 tkeyout.inception = tkeyout.expire = 0;
739 tkeyout.mode = tkeyin.mode;
740 tkeyout.error = 0;
741 tkeyout.keylen = tkeyout.otherlen = 0;
742 tkeyout.key = tkeyout.other = NULL;
813 tkeyout.error = dns_tsigerror_badname;
823 tkeyout.error = dns_rcode_noerror;
825 tctx, &tkeyout, ring,
829 tkeyout.error = dns_rcode_noerror;
831 &tkeyout, ring));
834 tkeyout.error = dns_rcode_noerror;
836 &tkeyout, ring));
843 tkeyout.error = dns_tsigerror_badmode;
849 result = dns_rdata_fromstruct(&rdata, tkeyout.common.rdclass,
850 tkeyout.common.rdtype, &tkeyout,
858 if (tkeyout.key != NULL)
859 isc_mem_put(tkeyout.mctx, tkeyout.key, tkeyout.keylen);
860 if (tkeyout.other != NULL)
861 isc_mem_put(tkeyout.mctx, tkeyout.other, tkeyout.otherlen);