Lines Matching refs:tsig

516  *   tsig:        pointer to DNS TSIG RDATA structure
523 const char *key_name, const dyndns_tsig_rdata_t *tsig,
533 if (tsig == NULL) {
534 syslog(LOG_DEBUG, "dyndns: build_tsig: tsig == NULL");
537 if (tsig->ts_alg_name == NULL) {
548 if (ns_name_pton(tsig->ts_alg_name, alg_buf, sizeof (alg_buf)) == -1) {
557 tsig_rdlen = alg_len + tsig->ts_other_size +
558 tsig->ts_mac_size + 16;
562 tsig_rdlen = alg_len + tsig->ts_other_size + 12;
577 if (tsig->ts_mac_size > 0 && tsig->ts_mac_data == NULL) {
582 if (tsig->ts_other_size > 0 && tsig->ts_other_data == NULL) {
588 sign = tsig->ts_sign_time >> 16;
589 fudge = (tsig->ts_sign_time << 16) | tsig->ts_fudge_time;
616 DYNDNS_PUT16(tsig->ts_mac_size, buf);
617 if (tsig->ts_mac_size > 0) {
618 (void) memcpy(buf, tsig->ts_mac_data,
619 tsig->ts_mac_size);
620 buf += tsig->ts_mac_size;
622 DYNDNS_PUT16(tsig->ts_orig_id, buf);
624 DYNDNS_PUT16(tsig->ts_error, buf);
625 DYNDNS_PUT16(tsig->ts_other_size, buf);
626 if (tsig->ts_other_size > 0)
627 (void) memcpy(buf, tsig->ts_other_data, tsig->ts_other_size);
1504 dyndns_tsig_rdata_t tsig;
1514 tsig.ts_alg_name = DYNDNS_MSAD_GSS_ALG;
1515 tsig.ts_fudge_time = NS_TSIG_FUDGE;
1516 tsig.ts_error = ns_r_noerror;
1517 tsig.ts_mac_size = 0;
1518 tsig.ts_mac_data = NULL;
1519 tsig.ts_other_size = 0;
1520 tsig.ts_other_data = NULL;
1540 tsig.ts_orig_id = statp->id;
1543 tsig.ts_sign_time = tv.tv_sec;
1545 key_name, &tsig, DYNDNS_DIGEST_UNSIGNED)) <= 0) {
1558 tsig.ts_sign_time = tv.tv_sec;
1569 tsig.ts_mac_size = out_mic.length;
1570 tsig.ts_mac_data = out_mic.value;
1573 key_name, &tsig, DYNDNS_DIGEST_SIGNED)) == -1) {