Lines Matching refs:tsig
19 #include <dns/tsig.h>
31 dns_rdata_any_tsig_t tsig;
42 CHECK(dns_rdata_tostruct(&rdata, &tsig, NULL));
43 isc_buffer_putuint16(&databuf, tsig.siglen);
44 isc_buffer_putmem(&databuf, tsig.signature, tsig.siglen);
47 dns_rdata_freestruct(&tsig);
55 dns_rdata_any_tsig_t tsig;
70 memset(&tsig, 0, sizeof(tsig));
75 tsig.common.rdclass = dns_rdataclass_any;
76 tsig.common.rdtype = dns_rdatatype_tsig;
77 ISC_LINK_INIT(&tsig.common, link);
78 dns_name_init(&tsig.algorithm, NULL);
79 dns_name_clone(key->algorithm, &tsig.algorithm);
82 tsig.timesigned = now;
83 tsig.fudge = DNS_TSIG_FUDGE;
84 tsig.originalid = 50;
85 tsig.error = dns_rcode_noerror;
86 tsig.otherlen = 0;
87 tsig.other = NULL;
90 isc_buffer_putuint48(&databuf, tsig.timesigned);
91 isc_buffer_putuint16(&databuf, tsig.fudge);
96 tsig.signature = (unsigned char *) isc_mem_get(mctx, sigsize);
97 if (tsig.signature == NULL)
99 isc_buffer_init(&sigbuf, tsig.signature, sigsize);
101 tsig.siglen = isc_buffer_usedlength(&sigbuf);
102 ATF_CHECK_EQ(sigsize, tsig.siglen);
106 dns_rdatatype_tsig, &tsig, dynbuf));
123 if (tsig.signature != NULL)
124 isc_mem_put(mctx, tsig.signature, sigsize);
247 atf_tc_set_md_var(tc, "descr", "test tsig tcp-continuation validation");