Lines Matching defs:tkeyout
352 dns_rdata_tkey_t *tkeyout, dns_tsig_keyring_t *ring,
370 tkeyout->error = dns_tsigerror_badalg;
377 tkeyout->error = dns_tsigerror_badalg;
426 tkeyout->error = dns_tsigerror_badkey;
463 randomdata = isc_mem_get(tkeyout->mctx, TKEY_RANDOM_AMOUNT);
480 tkeyout->inception = tkeyin->inception;
481 tkeyout->expire = tkeyin->expire;
483 tkeyout->key = randomdata;
484 tkeyout->keylen = TKEY_RANDOM_AMOUNT;
499 isc_mem_put(tkeyout->mctx, randomdata, TKEY_RANDOM_AMOUNT);
506 dns_tkeyctx_t *tctx, dns_rdata_tkey_t *tkeyout,
533 tkeyout->error = dns_tsigerror_badalg;
564 tkeyout->error = dns_tsigerror_badkey;
605 tkeyout->inception = now;
606 tkeyout->expire = expire;
608 tkeyout->inception = tsigkey->inception;
609 tkeyout->expire = tsigkey->expire;
613 tkeyout->key = isc_mem_get(tkeyout->mctx,
615 tkeyout->keylen = isc_buffer_usedlength(outtoken);
616 memmove(tkeyout->key, isc_buffer_base(outtoken),
620 tkeyout->key = isc_mem_get(tkeyout->mctx, tkeyin->keylen);
621 tkeyout->keylen = tkeyin->keylen;
622 memmove(tkeyout->key, tkeyin->key, tkeyin->keylen);
625 tkeyout->error = dns_rcode_noerror;
664 dns_rdata_tkey_t *tkeyin, dns_rdata_tkey_t *tkeyout,
672 tkeyout->error = dns_tsigerror_badname;
703 dns_rdata_tkey_t tkeyin, tkeyout;
790 tkeyout.common.rdclass = tkeyin.common.rdclass;
791 tkeyout.common.rdtype = tkeyin.common.rdtype;
792 ISC_LINK_INIT(&tkeyout.common, link);
793 tkeyout.mctx = msg->mctx;
795 dns_name_init(&tkeyout.algorithm, NULL);
796 dns_name_clone(&tkeyin.algorithm, &tkeyout.algorithm);
798 tkeyout.inception = tkeyout.expire = 0;
799 tkeyout.mode = tkeyin.mode;
800 tkeyout.error = 0;
801 tkeyout.keylen = tkeyout.otherlen = 0;
802 tkeyout.key = tkeyout.other = NULL;
871 tkeyout.error = dns_tsigerror_badname;
883 tkeyout.error = dns_rcode_noerror;
885 &tkeyout, ring, &namelist));
888 tkeyout.error = dns_rcode_noerror;
889 RETERR(process_gsstkey(msg, keyname, &tkeyin, tctx, &tkeyout,
893 tkeyout.error = dns_rcode_noerror;
894 RETERR(process_deletetkey(signer, keyname, &tkeyin, &tkeyout,
902 tkeyout.error = dns_tsigerror_badmode;
909 result = dns_rdata_fromstruct(&rdata, tkeyout.common.rdclass,
910 tkeyout.common.rdtype, &tkeyout,
918 if (tkeyout.key != NULL) {
919 isc_mem_put(tkeyout.mctx, tkeyout.key, tkeyout.keylen);
921 if (tkeyout.other != NULL) {
922 isc_mem_put(tkeyout.mctx, tkeyout.other, tkeyout.otherlen);