Searched defs:dctx (Results 1 - 25 of 30) sorted by relevance

12

/bind-9.11.3/bin/tests/system/dyndb/driver/
H A Ddriver.c63 const dns_dyndbctx_t *dctx, void **instp)
72 REQUIRE(dctx != NULL);
79 if (dctx->refvar != &isc_bind9) {
81 isc_log_setcontext(dctx->lctx);
82 dns_log_setcontext(dctx->lctx);
85 isc_hash_set_initializer(dctx->hashinit);
102 CHECK(new_sample_instance(mctx, name, argc, argv, dctx, &sample_inst));
61 dyndb_init(isc_mem_t *mctx, const char *name, const char *parameters, const char *file, unsigned long line, const dns_dyndbctx_t *dctx, void **instp) argument
H A Dinstance.c75 int argc, char **argv, const dns_dyndbctx_t *dctx,
102 dns_view_attach(dctx->view, &inst->view);
103 dns_zonemgr_attach(dctx->zmgr, &inst->zmgr);
104 isc_task_attach(dctx->task, &inst->task);
74 new_sample_instance(isc_mem_t *mctx, const char *db_name, int argc, char **argv, const dns_dyndbctx_t *dctx, sample_instance_t **sample_instp) argument
/bind-9.11.3/bin/tools/
H A Ddnstap-read.c240 dns_decompress_t dctx; local
248 dns_decompress_init(&dctx, -1, DNS_DECOMPRESS_NONE);
249 result = dns_name_fromwire(name, &b, &dctx, 0, NULL);
/bind-9.11.3/lib/dns/
H A Dopenssleddsa_link.c198 openssleddsa_createctx(dst_key_t *key, dst_context_t *dctx) { argument
203 REQUIRE(dctx->key->key_alg == DST_ALG_ED25519 ||
204 dctx->key->key_alg == DST_ALG_ED448);
206 result = isc_buffer_allocate(dctx->mctx, &buf, 64);
207 dctx->ctxdata.generic = buf;
213 openssleddsa_destroyctx(dst_context_t *dctx) { argument
214 isc_buffer_t *buf = (isc_buffer_t *) dctx->ctxdata.generic;
216 REQUIRE(dctx->key->key_alg == DST_ALG_ED25519 ||
217 dctx->key->key_alg == DST_ALG_ED448);
220 dctx
224 openssleddsa_adddata(dst_context_t *dctx, const isc_region_t *data) argument
252 openssleddsa_sign(dst_context_t *dctx, isc_buffer_t *sig) argument
301 openssleddsa_verify(dst_context_t *dctx, const isc_region_t *sig) argument
[all...]
H A Dcompress.c334 dns_decompress_init(dns_decompress_t *dctx, int edns, argument
337 REQUIRE(dctx != NULL);
340 dctx->allowed = DNS_COMPRESS_NONE;
341 dctx->edns = edns;
342 dctx->type = type;
343 dctx->magic = DCTX_MAGIC;
347 dns_decompress_invalidate(dns_decompress_t *dctx) { argument
349 REQUIRE(VALID_DCTX(dctx));
351 dctx->magic = 0;
355 dns_decompress_setmethods(dns_decompress_t *dctx, unsigne argument
373 dns_decompress_getmethods(dns_decompress_t *dctx) argument
381 dns_decompress_edns(dns_decompress_t *dctx) argument
389 dns_decompress_type(dns_decompress_t *dctx) argument
[all...]
H A Ddyndb.c352 const dns_dyndbctx_t *dctx)
357 REQUIRE(DNS_DYNDBCTX_VALID(dctx));
370 dctx, &implementation->inst));
415 dns_dyndbctx_t *dctx; local
419 dctx = isc_mem_get(mctx, sizeof(*dctx));
420 if (dctx == NULL)
423 memset(dctx, 0, sizeof(*dctx));
425 dns_view_attach(view, &dctx
350 dns_dyndb_load(const char *libname, const char *name, const char *parameters, const char *file, unsigned long line, isc_mem_t *mctx, const dns_dyndbctx_t *dctx) argument
445 dns_dyndbctx_t *dctx; local
[all...]
H A Dgssapi_link.c56 gssapi_create_signverify_ctx(dst_key_t *key, dst_context_t *dctx) { argument
62 ctx = isc_mem_get(dctx->mctx, sizeof(dst_gssapi_signverifyctx_t));
66 result = isc_buffer_allocate(dctx->mctx, &ctx->buffer,
69 isc_mem_put(dctx->mctx, ctx, sizeof(dst_gssapi_signverifyctx_t));
73 dctx->ctxdata.gssctx = ctx;
82 gssapi_destroy_signverify_ctx(dst_context_t *dctx) { argument
83 dst_gssapi_signverifyctx_t *ctx = dctx->ctxdata.gssctx;
88 isc_mem_put(dctx->mctx, ctx, sizeof(dst_gssapi_signverifyctx_t));
89 dctx->ctxdata.gssctx = NULL;
100 gssapi_adddata(dst_context_t *dctx, cons argument
131 gssapi_sign(dst_context_t *dctx, isc_buffer_t *sig) argument
186 gssapi_verify(dst_context_t *dctx, const isc_region_t *sig) argument
[all...]
H A Dopensslecdsa_link.c73 opensslecdsa_createctx(dst_key_t *key, dst_context_t *dctx) { argument
78 REQUIRE(dctx->key->key_alg == DST_ALG_ECDSA256 ||
79 dctx->key->key_alg == DST_ALG_ECDSA384);
84 if (dctx->key->key_alg == DST_ALG_ECDSA256)
91 return (dst__openssl_toresult3(dctx->category,
96 dctx->ctxdata.evp_md_ctx = evp_md_ctx;
102 opensslecdsa_destroyctx(dst_context_t *dctx) { argument
103 EVP_MD_CTX *evp_md_ctx = dctx->ctxdata.evp_md_ctx;
105 REQUIRE(dctx->key->key_alg == DST_ALG_ECDSA256 ||
106 dctx
115 opensslecdsa_adddata(dst_context_t *dctx, const isc_region_t *data) argument
140 opensslecdsa_sign(dst_context_t *dctx, isc_buffer_t *sig) argument
193 opensslecdsa_verify(dst_context_t *dctx, const isc_region_t *sig) argument
[all...]
H A Dopensslgost_link.c111 opensslgost_createctx(dst_key_t *key, dst_context_t *dctx) { argument
128 dctx->ctxdata.evp_md_ctx = evp_md_ctx;
134 opensslgost_destroyctx(dst_context_t *dctx) { argument
135 EVP_MD_CTX *evp_md_ctx = dctx->ctxdata.evp_md_ctx;
139 dctx->ctxdata.evp_md_ctx = NULL;
144 opensslgost_adddata(dst_context_t *dctx, const isc_region_t *data) { argument
145 EVP_MD_CTX *evp_md_ctx = dctx->ctxdata.evp_md_ctx;
154 opensslgost_sign(dst_context_t *dctx, isc_buffer_t *sig) { argument
155 dst_key_t *key = dctx->key;
158 EVP_MD_CTX *evp_md_ctx = dctx
175 opensslgost_verify(dst_context_t *dctx, const isc_region_t *sig) argument
[all...]
H A Dpkcs11dsa_link.c74 pkcs11dsa_createctx_sign(dst_key_t *key, dst_context_t *dctx) { argument
102 pk11_ctx = (pk11_context_t *) isc_mem_get(dctx->mctx,
124 keyTemplate[6].pValue = isc_mem_get(dctx->mctx,
134 keyTemplate[7].pValue = isc_mem_get(dctx->mctx,
144 keyTemplate[8].pValue = isc_mem_get(dctx->mctx,
154 keyTemplate[9].pValue = isc_mem_get(dctx->mctx,
177 dctx->ctxdata.pk11_ctx = pk11_ctx;
183 isc_mem_put(dctx->mctx,
197 isc_mem_put(dctx->mctx,
203 isc_mem_put(dctx
209 pkcs11dsa_createctx_verify(dst_key_t *key, dst_context_t *dctx) argument
341 pkcs11dsa_createctx(dst_key_t *key, dst_context_t *dctx) argument
349 pkcs11dsa_destroyctx(dst_context_t *dctx) argument
365 pkcs11dsa_adddata(dst_context_t *dctx, const isc_region_t *data) argument
386 pkcs11dsa_sign(dst_context_t *dctx, isc_buffer_t *sig) argument
415 pkcs11dsa_verify(dst_context_t *dctx, const isc_region_t *sig) argument
[all...]
H A Dpkcs11ecdsa_link.c69 pkcs11ecdsa_createctx(dst_key_t *key, dst_context_t *dctx) { argument
77 REQUIRE(dctx->key->key_alg == DST_ALG_ECDSA256 ||
78 dctx->key->key_alg == DST_ALG_ECDSA384);
81 if (dctx->key->key_alg == DST_ALG_ECDSA256)
86 pk11_ctx = (pk11_context_t *) isc_mem_get(dctx->mctx,
91 if (ec->ontoken && (dctx->use == DO_SIGN))
101 dctx->ctxdata.pk11_ctx = pk11_ctx;
107 isc_mem_put(dctx->mctx, pk11_ctx, sizeof(*pk11_ctx));
113 pkcs11ecdsa_destroyctx(dst_context_t *dctx) { argument
116 pk11_context_t *pk11_ctx = dctx
132 pkcs11ecdsa_adddata(dst_context_t *dctx, const isc_region_t *data) argument
150 pkcs11ecdsa_sign(dst_context_t *dctx, isc_buffer_t *sig) argument
272 pkcs11ecdsa_verify(dst_context_t *dctx, const isc_region_t *sig) argument
[all...]
H A Dpkcs11eddsa_link.c67 pkcs11eddsa_createctx(dst_key_t *key, dst_context_t *dctx) { argument
72 REQUIRE(dctx->key->key_alg == DST_ALG_ED25519 ||
73 dctx->key->key_alg == DST_ALG_ED448);
75 result = isc_buffer_allocate(dctx->mctx, &buf, 16);
77 dctx->ctxdata.generic = buf;
83 pkcs11eddsa_destroyctx(dst_context_t *dctx) { argument
84 isc_buffer_t *buf = (isc_buffer_t *) dctx->ctxdata.generic;
86 REQUIRE(dctx->key->key_alg == DST_ALG_ED25519 ||
87 dctx->key->key_alg == DST_ALG_ED448);
90 dctx
94 pkcs11eddsa_adddata(dst_context_t *dctx, const isc_region_t *data) argument
122 pkcs11eddsa_sign(dst_context_t *dctx, isc_buffer_t *sig) argument
255 pkcs11eddsa_verify(dst_context_t *dctx, const isc_region_t *sig) argument
[all...]
H A Dpkcs11gost_link.c134 pkcs11gost_createctx_sign(dst_key_t *key, dst_context_t *dctx) { argument
163 pk11_ctx = (pk11_context_t *) isc_mem_get(dctx->mctx,
185 keyTemplate[6].pValue = isc_mem_get(dctx->mctx,
208 dctx->ctxdata.pk11_ctx = pk11_ctx;
214 isc_mem_put(dctx->mctx,
228 isc_mem_put(dctx->mctx,
234 isc_mem_put(dctx->mctx, pk11_ctx, sizeof(*pk11_ctx));
240 pkcs11gost_createctx_verify(dst_key_t *key, dst_context_t *dctx) { argument
268 pk11_ctx = (pk11_context_t *) isc_mem_get(dctx->mctx,
290 keyTemplate[5].pValue = isc_mem_get(dctx
345 pkcs11gost_createctx(dst_key_t *key, dst_context_t *dctx) argument
353 pkcs11gost_destroyctx(dst_context_t *dctx) argument
369 pkcs11gost_adddata(dst_context_t *dctx, const isc_region_t *data) argument
390 pkcs11gost_sign(dst_context_t *dctx, isc_buffer_t *sig) argument
414 pkcs11gost_verify(dst_context_t *dctx, const isc_region_t *sig) argument
[all...]
H A Dopenssldsa_link.c126 openssldsa_createctx(dst_key_t *key, dst_context_t *dctx) { argument
141 dctx->ctxdata.evp_md_ctx = evp_md_ctx;
149 sha1ctx = isc_mem_get(dctx->mctx, sizeof(isc_sha1_t));
153 dctx->ctxdata.sha1ctx = sha1ctx;
159 openssldsa_destroyctx(dst_context_t *dctx) { argument
161 EVP_MD_CTX *evp_md_ctx = dctx->ctxdata.evp_md_ctx;
165 dctx->ctxdata.evp_md_ctx = NULL;
168 isc_sha1_t *sha1ctx = dctx->ctxdata.sha1ctx;
172 isc_mem_put(dctx->mctx, sha1ctx, sizeof(isc_sha1_t));
173 dctx
179 openssldsa_adddata(dst_context_t *dctx, const isc_region_t *data) argument
204 openssldsa_sign(dst_context_t *dctx, isc_buffer_t *sig) argument
303 openssldsa_verify(dst_context_t *dctx, const isc_region_t *sig) argument
[all...]
H A Dopensslrsa_link.c243 opensslrsa_createctx(dst_key_t *key, dst_context_t *dctx) { argument
251 REQUIRE(dctx->key->key_alg == DST_ALG_RSAMD5 ||
252 dctx->key->key_alg == DST_ALG_RSASHA1 ||
253 dctx->key->key_alg == DST_ALG_NSEC3RSASHA1 ||
254 dctx->key->key_alg == DST_ALG_RSASHA256 ||
255 dctx->key->key_alg == DST_ALG_RSASHA512);
257 REQUIRE(dctx->key->key_alg == DST_ALG_RSASHA1 ||
258 dctx->key->key_alg == DST_ALG_NSEC3RSASHA1 ||
259 dctx->key->key_alg == DST_ALG_RSASHA256 ||
260 dctx
386 opensslrsa_destroyctx(dst_context_t *dctx) argument
469 opensslrsa_adddata(dst_context_t *dctx, const isc_region_t *data) argument
549 opensslrsa_sign(dst_context_t *dctx, isc_buffer_t *sig) argument
699 opensslrsa_verify2(dst_context_t *dctx, int maxbits, const isc_region_t *sig) argument
877 opensslrsa_verify(dst_context_t *dctx, const isc_region_t *sig) argument
[all...]
H A Dpkcs11rsa_link.c51 pkcs11rsa_createctx_sign(dst_key_t *key, dst_context_t *dctx) { argument
96 switch (dctx->key->key_alg) {
101 if (dctx->key->key_size > 4096)
106 if ((dctx->key->key_size < 512) ||
107 (dctx->key->key_size > 4096))
112 if ((dctx->key->key_size < 1024) ||
113 (dctx->key->key_size > 4096))
122 pk11_ctx = (pk11_context_t *) isc_mem_get(dctx->mctx,
148 keyTemplate[6].pValue = isc_mem_get(dctx->mctx,
158 keyTemplate[7].pValue = isc_mem_get(dctx
294 pkcs11rsa_createctx_verify(dst_key_t *key, unsigned int maxbits, dst_context_t *dctx) argument
462 pkcs11rsa_createctx(dst_key_t *key, dst_context_t *dctx) argument
470 pkcs11rsa_createctx2(dst_key_t *key, int maxbits, dst_context_t *dctx) argument
479 pkcs11rsa_destroyctx(dst_context_t *dctx) argument
495 pkcs11rsa_adddata(dst_context_t *dctx, const isc_region_t *data) argument
516 pkcs11rsa_sign(dst_context_t *dctx, isc_buffer_t *sig) argument
543 pkcs11rsa_verify(dst_context_t *dctx, const isc_region_t *sig) argument
582 pkcs11rsa_createctx(dst_key_t *key, dst_context_t *dctx) argument
678 pkcs11rsa_destroyctx(dst_context_t *dctx) argument
694 pkcs11rsa_adddata(dst_context_t *dctx, const isc_region_t *data) argument
709 pkcs11rsa_sign(dst_context_t *dctx, isc_buffer_t *sig) argument
969 pkcs11rsa_verify(dst_context_t *dctx, const isc_region_t *sig) argument
[all...]
H A Dnsec3.c923 dns_decompress_t dctx; local
939 dns_decompress_init(&dctx, -1, DNS_DECOMPRESS_NONE);
942 &buf1, &dctx, 0, &buf2);
943 dns_decompress_invalidate(&dctx);
H A Dhmac_link.c70 hmacmd5_createctx(dst_key_t *key, dst_context_t *dctx) { argument
74 hmacmd5ctx = isc_mem_get(dctx->mctx, sizeof(isc_hmacmd5_t));
78 dctx->ctxdata.hmacmd5ctx = hmacmd5ctx;
83 hmacmd5_destroyctx(dst_context_t *dctx) { argument
84 isc_hmacmd5_t *hmacmd5ctx = dctx->ctxdata.hmacmd5ctx;
88 isc_mem_put(dctx->mctx, hmacmd5ctx, sizeof(isc_hmacmd5_t));
89 dctx->ctxdata.hmacmd5ctx = NULL;
94 hmacmd5_adddata(dst_context_t *dctx, const isc_region_t *data) { argument
95 isc_hmacmd5_t *hmacmd5ctx = dctx->ctxdata.hmacmd5ctx;
102 hmacmd5_sign(dst_context_t *dctx, isc_buffer_ argument
116 hmacmd5_verify(dst_context_t *dctx, const isc_region_t *sig) argument
378 hmacsha1_createctx(dst_key_t *key, dst_context_t *dctx) argument
391 hmacsha1_destroyctx(dst_context_t *dctx) argument
402 hmacsha1_adddata(dst_context_t *dctx, const isc_region_t *data) argument
410 hmacsha1_sign(dst_context_t *dctx, isc_buffer_t *sig) argument
424 hmacsha1_verify(dst_context_t *dctx, const isc_region_t *sig) argument
669 hmacsha224_createctx(dst_key_t *key, dst_context_t *dctx) argument
682 hmacsha224_destroyctx(dst_context_t *dctx) argument
693 hmacsha224_adddata(dst_context_t *dctx, const isc_region_t *data) argument
701 hmacsha224_sign(dst_context_t *dctx, isc_buffer_t *sig) argument
715 hmacsha224_verify(dst_context_t *dctx, const isc_region_t *sig) argument
956 hmacsha256_createctx(dst_key_t *key, dst_context_t *dctx) argument
969 hmacsha256_destroyctx(dst_context_t *dctx) argument
980 hmacsha256_adddata(dst_context_t *dctx, const isc_region_t *data) argument
988 hmacsha256_sign(dst_context_t *dctx, isc_buffer_t *sig) argument
1002 hmacsha256_verify(dst_context_t *dctx, const isc_region_t *sig) argument
1243 hmacsha384_createctx(dst_key_t *key, dst_context_t *dctx) argument
1256 hmacsha384_destroyctx(dst_context_t *dctx) argument
1267 hmacsha384_adddata(dst_context_t *dctx, const isc_region_t *data) argument
1275 hmacsha384_sign(dst_context_t *dctx, isc_buffer_t *sig) argument
1289 hmacsha384_verify(dst_context_t *dctx, const isc_region_t *sig) argument
1530 hmacsha512_createctx(dst_key_t *key, dst_context_t *dctx) argument
1543 hmacsha512_destroyctx(dst_context_t *dctx) argument
1554 hmacsha512_adddata(dst_context_t *dctx, const isc_region_t *data) argument
1562 hmacsha512_sign(dst_context_t *dctx, isc_buffer_t *sig) argument
1576 hmacsha512_verify(dst_context_t *dctx, const isc_region_t *sig) argument
[all...]
H A Djournal.c328 dns_decompress_t dctx; /*%< Dummy decompression ctx */ member in struct:dns_journal::__anon165
666 dns_decompress_init(&j->it.dctx, -1, DNS_DECOMPRESS_NONE);
1237 dns_decompress_invalidate(&j->it.dctx);
1724 &j->it.dctx, 0, &j->it.target));
1745 rdtype, &j->it.source, &j->it.dctx,
H A Dmaster.c2302 dns_decompress_t dctx; local
2305 dns_decompress_init(&dctx, -1, DNS_DECOMPRESS_NONE);
2440 result = dns_name_fromwire(name, &target, &dctx, 0, NULL);
2520 * decompression is disabled (see dctx above) and we
2528 &dctx, 0, &buf);
H A Dmasterdump.c1249 dumptostreaminc(dns_dumpctx_t *dctx);
1252 dumpctx_destroy(dns_dumpctx_t *dctx) { argument
1254 dctx->magic = 0;
1255 DESTROYLOCK(&dctx->lock);
1256 dns_dbiterator_destroy(&dctx->dbiter);
1257 if (dctx->version != NULL)
1258 dns_db_closeversion(dctx->db, &dctx->version, ISC_FALSE);
1259 dns_db_detach(&dctx->db);
1260 if (dctx
1286 dns_dumpctx_t *dctx; local
1306 dns_dumpctx_version(dns_dumpctx_t *dctx) argument
1312 dns_dumpctx_db(dns_dumpctx_t *dctx) argument
1318 dns_dumpctx_cancel(dns_dumpctx_t *dctx) argument
1400 dns_dumpctx_t *dctx; local
1428 task_send(dns_dumpctx_t *dctx) argument
1444 dns_dumpctx_t *dctx; local
1531 writeheader(dns_dumpctx_t *dctx) argument
1618 dumptostreaminc(dns_dumpctx_t *dctx) argument
1752 dns_dumpctx_t *dctx = NULL; local
1808 dns_dumpctx_t *dctx = NULL; local
1893 dns_dumpctx_t *dctx = NULL; local
1961 dns_dumpctx_t *dctx = NULL; local
[all...]
H A Dname.c1798 dns_decompress_t *dctx, unsigned int options,
1830 REQUIRE(dctx != NULL);
1907 if ((dctx->allowed & DNS_COMPRESS_GLOBAL14) ==
1797 dns_name_fromwire(dns_name_t *name, isc_buffer_t *source, dns_decompress_t *dctx, unsigned int options, isc_buffer_t *target) argument
H A Drdata.c85 isc_buffer_t *source, dns_decompress_t *dctx, \
739 dns_decompress_t *dctx, unsigned int options,
750 REQUIRE(dctx != NULL);
856 dns_decompress_t dctx; local
859 dns_decompress_init(&dctx, -1, DNS_DECOMPRESS_NONE);
861 result = dns_rdata_fromwire(NULL, rdclass, type, src, &dctx, 0, dest);
862 dns_decompress_invalidate(&dctx);
737 dns_rdata_fromwire(dns_rdata_t *rdata, dns_rdataclass_t rdclass, dns_rdatatype_t type, isc_buffer_t *source, dns_decompress_t *dctx, unsigned int options, isc_buffer_t *target) argument
/bind-9.11.3/lib/dns/tests/
H A Dname_test.c127 dns_compress_t *cctx, dns_decompress_t *dctx)
147 RUNTIME_CHECK(dns_name_fromwire(&name, &source, dctx, ISC_FALSE,
149 RUNTIME_CHECK(dns_name_fromwire(&name, &source, dctx, ISC_FALSE,
151 RUNTIME_CHECK(dns_name_fromwire(&name, &source, dctx, ISC_FALSE,
153 RUNTIME_CHECK(dns_name_fromwire(&name, &source, dctx, ISC_FALSE,
155 dns_decompress_invalidate(dctx);
168 dns_decompress_t dctx; local
200 dns_decompress_init(&dctx, -1, DNS_DECOMPRESS_STRICT);
201 dns_decompress_setmethods(&dctx, allowed);
204 &cctx, &dctx);
125 compress_test(dns_name_t *name1, dns_name_t *name2, dns_name_t *name3, unsigned char *expected, unsigned int length, dns_compress_t *cctx, dns_decompress_t *dctx) argument
354 dns_decompress_t dctx; local
[all...]
H A Drdata_test.c209 dns_decompress_t dctx; local
228 dns_decompress_init(&dctx, -1, DNS_DECOMPRESS_ANY);
229 result = dns_rdata_fromwire(&rdata, rdclass, type, &source, &dctx, 0,
231 dns_decompress_invalidate(&dctx);
875 dns_decompress_t dctx; local
897 dns_decompress_init(&dctx, -1, DNS_DECOMPRESS_ANY);
899 dns_rdatatype_hip, &source, &dctx,
901 dns_decompress_invalidate(&dctx);

Completed in 82 milliseconds

12