Lines Matching defs:tkey

33 #include <dns/tkey.h>
312 tkey_log("process_dhtkey: tkey-dhkey not defined");
474 * accept with tkey-gssapi-credential, or you have to
475 * configure a specific keytab (with tkey-gssapi-keytab) in
479 tkey_log("process_gsstkey(): no tkey-gssapi-credential "
480 "or tkey-gssapi-keytab configured");
756 tkey_log("dns_tkey_processquery: tkey-domain not set");
889 dns_rdata_tkey_t *tkey, isc_boolean_t win2k)
901 REQUIRE(tkey != NULL);
910 len = 16 + tkey->algorithm.length + tkey->keylen + tkey->otherlen;
917 dns_rdatatype_tkey, tkey, dynbuf));
975 dns_rdata_tkey_t tkey;
991 tkey.common.rdclass = dns_rdataclass_any;
992 tkey.common.rdtype = dns_rdatatype_tkey;
993 ISC_LINK_INIT(&tkey.common, link);
994 tkey.mctx = msg->mctx;
995 dns_name_init(&tkey.algorithm, NULL);
996 dns_name_clone(algorithm, &tkey.algorithm);
998 tkey.inception = now;
999 tkey.expire = now + lifetime;
1000 tkey.mode = DNS_TKEYMODE_DIFFIEHELLMAN;
1007 tkey.error = 0;
1008 tkey.key = r.base;
1009 tkey.keylen = r.length;
1010 tkey.other = NULL;
1011 tkey.otherlen = 0;
1013 RETERR(buildquery(msg, name, &tkey, ISC_FALSE));
1051 dns_rdata_tkey_t tkey;
1071 tkey.common.rdclass = dns_rdataclass_any;
1072 tkey.common.rdtype = dns_rdatatype_tkey;
1073 ISC_LINK_INIT(&tkey.common, link);
1074 tkey.mctx = NULL;
1075 dns_name_init(&tkey.algorithm, NULL);
1078 dns_name_clone(DNS_TSIG_GSSAPIMS_NAME, &tkey.algorithm);
1080 dns_name_clone(DNS_TSIG_GSSAPI_NAME, &tkey.algorithm);
1083 tkey.inception = now;
1084 tkey.expire = now + lifetime;
1085 tkey.mode = DNS_TKEYMODE_GSSAPI;
1086 tkey.error = 0;
1087 tkey.key = isc_buffer_base(&token);
1088 tkey.keylen = isc_buffer_usedlength(&token);
1089 tkey.other = NULL;
1090 tkey.otherlen = 0;
1092 return (buildquery(msg, name, &tkey, win2k));
1097 dns_rdata_tkey_t tkey;
1102 tkey.common.rdclass = dns_rdataclass_any;
1103 tkey.common.rdtype = dns_rdatatype_tkey;
1104 ISC_LINK_INIT(&tkey.common, link);
1105 tkey.mctx = msg->mctx;
1106 dns_name_init(&tkey.algorithm, NULL);
1107 dns_name_clone(key->algorithm, &tkey.algorithm);
1108 tkey.inception = tkey.expire = 0;
1109 tkey.mode = DNS_TKEYMODE_DELETE;
1110 tkey.error = 0;
1111 tkey.keylen = tkey.otherlen = 0;
1112 tkey.key = tkey.other = NULL;
1114 return (buildquery(msg, &key->name, &tkey, ISC_FALSE));
1186 tkey_log("dns_tkey_processdhresponse: tkey mode invalid "
1318 tkey_log("dns_tkey_processgssresponse: tkey mode invalid "
1379 tkey_log("dns_tkey_processdeleteresponse: tkey mode invalid "
1414 dns_rdata_tkey_t rtkey, qtkey, tkey;
1447 tkey_log("dns_tkey_processdhresponse: tkey mode invalid "
1468 tkey.common.rdclass = dns_rdataclass_any;
1469 tkey.common.rdtype = dns_rdatatype_tkey;
1470 ISC_LINK_INIT(&tkey.common, link);
1471 tkey.mctx = NULL;
1472 dns_name_init(&tkey.algorithm, NULL);
1475 dns_name_clone(DNS_TSIG_GSSAPIMS_NAME, &tkey.algorithm);
1477 dns_name_clone(DNS_TSIG_GSSAPI_NAME, &tkey.algorithm);
1479 tkey.inception = qtkey.inception;
1480 tkey.expire = qtkey.expire;
1481 tkey.mode = DNS_TKEYMODE_GSSAPI;
1482 tkey.error = 0;
1483 tkey.key = isc_buffer_base(&outtoken);
1484 tkey.keylen = isc_buffer_usedlength(&outtoken);
1485 tkey.other = NULL;
1486 tkey.otherlen = 0;
1489 RETERR(buildquery(qmsg, tkeyname, &tkey, win2k));