Searched defs:ctx (Results 1 - 25 of 72) sorted by relevance

123

/bind-9.11.3/lib/dns/
H A Ddst_gost.h22 EVP_MD_CTX *ctx; member in struct:__anon104
40 isc_gost_init(isc_gost_t *ctx);
43 isc_gost_invalidate(isc_gost_t *ctx);
46 isc_gost_update(isc_gost_t *ctx, const unsigned char *data, unsigned int len);
49 isc_gost_final(isc_gost_t *ctx, unsigned char *digest);
/bind-9.11.3/lib/isc/include/isc/
H A Dhmacmd5.h35 HMAC_CTX *ctx; member in struct:__anon227
57 isc_hmacmd5_init(isc_hmacmd5_t *ctx, const unsigned char *key,
61 isc_hmacmd5_invalidate(isc_hmacmd5_t *ctx);
64 isc_hmacmd5_update(isc_hmacmd5_t *ctx, const unsigned char *buf,
68 isc_hmacmd5_sign(isc_hmacmd5_t *ctx, unsigned char *digest);
71 isc_hmacmd5_verify(isc_hmacmd5_t *ctx, unsigned char *digest);
74 isc_hmacmd5_verify2(isc_hmacmd5_t *ctx, unsigned char *digest, size_t len);
H A Dmd5.h53 EVP_MD_CTX *ctx; member in struct:__anon239
76 isc_md5_init(isc_md5_t *ctx);
79 isc_md5_invalidate(isc_md5_t *ctx);
82 isc_md5_update(isc_md5_t *ctx, const unsigned char *buf, unsigned int len);
85 isc_md5_final(isc_md5_t *ctx, unsigned char *digest);
H A Dsha1.h34 EVP_MD_CTX *ctx; member in struct:__anon244
57 isc_sha1_init(isc_sha1_t *ctx);
60 isc_sha1_invalidate(isc_sha1_t *ctx);
63 isc_sha1_update(isc_sha1_t *ctx, const unsigned char *data, unsigned int len);
66 isc_sha1_final(isc_sha1_t *ctx, unsigned char *digest);
H A Dhmacsha.h36 HMAC_CTX *ctx; member in struct:__anon229
88 isc_hmacsha1_init(isc_hmacsha1_t *ctx, const unsigned char *key,
92 isc_hmacsha1_invalidate(isc_hmacsha1_t *ctx);
95 isc_hmacsha1_update(isc_hmacsha1_t *ctx, const unsigned char *buf,
99 isc_hmacsha1_sign(isc_hmacsha1_t *ctx, unsigned char *digest, size_t len);
102 isc_hmacsha1_verify(isc_hmacsha1_t *ctx, unsigned char *digest, size_t len);
109 isc_hmacsha224_init(isc_hmacsha224_t *ctx, const unsigned char *key,
113 isc_hmacsha224_invalidate(isc_hmacsha224_t *ctx);
116 isc_hmacsha224_update(isc_hmacsha224_t *ctx, const unsigned char *buf,
120 isc_hmacsha224_sign(isc_hmacsha224_t *ctx, unsigne
[all...]
H A Dsha2.h82 EVP_MD_CTX *ctx; member in struct:__anon246
/bind-9.11.3/lib/isc/
H A Diterated_hash.c24 isc_sha1_t ctx; local
31 isc_sha1_init(&ctx);
32 isc_sha1_update(&ctx, in, inlength);
33 isc_sha1_update(&ctx, salt, saltlength);
34 isc_sha1_final(&ctx, out);
H A Daes.c178 pk11_context_t ctx; local
181 RUNTIME_CHECK(pk11_get_session(&ctx, OP_AES, ISC_TRUE, ISC_FALSE,
183 ctx.object = CK_INVALID_HANDLE;
185 (ctx.session, keyTemplate,
186 (CK_ULONG) 6, &ctx.object));
187 INSIST(ctx.object != CK_INVALID_HANDLE);
189 (ctx.session, &mech, ctx.object));
194 (ctx.session,
199 (void) pkcs_C_DestroyObject(ctx
[all...]
H A Dapp_api.c79 isc_app_ctxstart(isc_appctx_t *ctx) { argument
80 REQUIRE(ISCAPI_APPCTX_VALID(ctx));
83 return (isc__app_ctxstart(ctx));
85 return (ctx->methods->ctxstart(ctx));
89 isc_app_ctxrun(isc_appctx_t *ctx) { argument
90 REQUIRE(ISCAPI_APPCTX_VALID(ctx));
93 return (isc__app_ctxrun(ctx));
95 return (ctx->methods->ctxrun(ctx));
99 isc_app_ctxonrun(isc_appctx_t *ctx, isc_mem_t *mctx, isc_task_t *task, isc_taskaction_t action, void *arg) argument
112 isc_app_ctxsuspend(isc_appctx_t *ctx) argument
122 isc_app_ctxshutdown(isc_appctx_t *ctx) argument
132 isc_app_ctxfinish(isc_appctx_t *ctx) argument
142 isc_appctx_settaskmgr(isc_appctx_t *ctx, isc_taskmgr_t *taskmgr) argument
153 isc_appctx_setsocketmgr(isc_appctx_t *ctx, isc_socketmgr_t *socketmgr) argument
164 isc_appctx_settimermgr(isc_appctx_t *ctx, isc_timermgr_t *timermgr) argument
[all...]
H A Dbase64.c102 base64_decode_init(base64_decode_ctx_t *ctx, int length, isc_buffer_t *target) argument
104 ctx->digits = 0;
105 ctx->seen_end = ISC_FALSE;
106 ctx->length = length;
107 ctx->target = target;
111 base64_decode_char(base64_decode_ctx_t *ctx, int c) { argument
114 if (ctx->seen_end)
118 ctx->val[ctx->digits++] = (int)(s - base64);
119 if (ctx
162 base64_decode_finish(base64_decode_ctx_t *ctx) argument
172 base64_decode_ctx_t ctx; local
202 base64_decode_ctx_t ctx; local
[all...]
H A Dhex.c80 hex_decode_init(hex_decode_ctx_t *ctx, int length, isc_buffer_t *target) argument
82 ctx->digits = 0;
83 ctx->length = length;
84 ctx->target = target;
88 hex_decode_char(hex_decode_ctx_t *ctx, int c) { argument
93 ctx->val[ctx->digits++] = (int)(s - hex);
94 if (ctx->digits == 2) {
97 num = (ctx->val[0] << 4) + (ctx
111 hex_decode_finish(hex_decode_ctx_t *ctx) argument
121 hex_decode_ctx_t ctx; local
151 hex_decode_ctx_t ctx; local
[all...]
H A Dhmacmd5.c38 #define HMAC_CTX_new() &(ctx->_ctx), HMAC_CTX_init(&(ctx->_ctx))
43 isc_hmacmd5_init(isc_hmacmd5_t *ctx, const unsigned char *key, argument
46 ctx->ctx = HMAC_CTX_new();
47 RUNTIME_CHECK(ctx->ctx != NULL);
48 RUNTIME_CHECK(HMAC_Init_ex(ctx->ctx, (const void *) key,
53 isc_hmacmd5_invalidate(isc_hmacmd5_t *ctx) { argument
61 isc_hmacmd5_update(isc_hmacmd5_t *ctx, const unsigned char *buf, unsigned int len) argument
68 isc_hmacmd5_sign(isc_hmacmd5_t *ctx, unsigned char *digest) argument
82 isc_hmacmd5_init(isc_hmacmd5_t *ctx, const unsigned char *key, unsigned int len) argument
122 isc_hmacmd5_invalidate(isc_hmacmd5_t *ctx) argument
137 isc_hmacmd5_update(isc_hmacmd5_t *ctx, const unsigned char *buf, unsigned int len) argument
149 isc_hmacmd5_sign(isc_hmacmd5_t *ctx, unsigned char *digest) argument
168 isc_hmacmd5_init(isc_hmacmd5_t *ctx, const unsigned char *key, unsigned int len) argument
201 isc_hmacmd5_invalidate(isc_hmacmd5_t *ctx) argument
209 isc_hmacmd5_update(isc_hmacmd5_t *ctx, const unsigned char *buf, unsigned int len) argument
221 isc_hmacmd5_sign(isc_hmacmd5_t *ctx, unsigned char *digest) argument
259 isc_hmacmd5_init(isc_hmacmd5_t *ctx, const unsigned char *key, unsigned int len) argument
282 isc_hmacmd5_invalidate(isc_hmacmd5_t *ctx) argument
292 isc_hmacmd5_update(isc_hmacmd5_t *ctx, const unsigned char *buf, unsigned int len) argument
302 isc_hmacmd5_sign(isc_hmacmd5_t *ctx, unsigned char *digest) argument
326 isc_hmacmd5_verify(isc_hmacmd5_t *ctx, unsigned char *digest) argument
331 isc_hmacmd5_verify2(isc_hmacmd5_t *ctx, unsigned char *digest, size_t len) argument
350 isc_hmacmd5_t ctx; local
[all...]
H A Dmd5.c50 #define EVP_MD_CTX_new() &(ctx->_ctx)
55 isc_md5_init(isc_md5_t *ctx) { argument
56 ctx->ctx = EVP_MD_CTX_new();
57 RUNTIME_CHECK(ctx->ctx != NULL);
58 if (EVP_DigestInit(ctx->ctx, EVP_md5()) != 1) {
64 isc_md5_invalidate(isc_md5_t *ctx) { argument
65 EVP_MD_CTX_free(ctx
70 isc_md5_update(isc_md5_t *ctx, const unsigned char *buf, unsigned int len) argument
79 isc_md5_final(isc_md5_t *ctx, unsigned char *digest) argument
88 isc_md5_init(isc_md5_t *ctx) argument
98 isc_md5_invalidate(isc_md5_t *ctx) argument
110 isc_md5_update(isc_md5_t *ctx, const unsigned char *buf, unsigned int len) argument
120 isc_md5_final(isc_md5_t *ctx, unsigned char *digest) argument
148 isc_md5_init(isc_md5_t *ctx) argument
159 isc_md5_invalidate(isc_md5_t *ctx) argument
270 isc_md5_update(isc_md5_t *ctx, const unsigned char *buf, unsigned int len) argument
309 isc_md5_final(isc_md5_t *ctx, unsigned char *digest) argument
350 isc_md5_t ctx; local
[all...]
/bind-9.11.3/lib/lwres/tests/
H A Dconfig_test.c36 lwres_context_t *ctx = NULL; local
46 lwres_context_create(&ctx, NULL, NULL, NULL,
48 ATF_CHECK_EQ(ctx->confdata.nsnext, 0);
49 ATF_CHECK_EQ(ctx->confdata.nameservers[0].zone, 0);
51 result = lwres_conf_parse(ctx, "testdata/link-local.conf");
53 ATF_CHECK_EQ(ctx->confdata.nsnext, 1);
54 ATF_CHECK_EQ(ctx->confdata.nameservers[0].zone, 1);
55 ATF_CHECK_EQ(memcmp(ctx->confdata.nameservers[0].address, addr, 16), 0);
56 lwres_context_destroy(&ctx);
/bind-9.11.3/contrib/idn/idnkit-1.0-src/wsock/common/
H A Dconvert.c60 idnConvDone(idn_resconf_t ctx) argument
62 if (ctx != NULL) {
64 idn_resconf_destroy(ctx);
72 idn_resconf_t ctx; local
88 if ((r = idn_resconf_create(&ctx)) != idn_success) {
96 if ((r = idn_resconf_loadfile(ctx, NULL)) != idn_success) {
99 if ((r = idn_resconf_setdefaults(ctx)) != idn_success) {
103 idnConvDone(ctx);
113 r = idn_resconf_setlocalconvertername(ctx, encoding,
119 idnConvDone(ctx);
133 idnConvReq(idn_resconf_t ctx, const char FAR *from, char FAR *to, size_t tolen) argument
164 idnConvRsp(idn_resconf_t ctx, const char FAR *from, char FAR *to, size_t tolen) argument
[all...]
H A Dcheckdll.c108 static idn_resconf_t ctx = NULL; local
119 ctx = idnConvInit();
121 "Processing context: %08x\n", ctx);
125 ctx = NULL;
130 return (ctx);
/bind-9.11.3/lib/lwres/
H A Dlwres_noop.c50 * lwres_nooprequest_render() uses resolver context ctx to convert no-op
58 * lwres_nooprequest_parse() uses context ctx to convert the contents of
67 * memory in resolver context ctx that was allocated to the
105 /*% Uses resolver context ctx to convert no-op request structure req to canonical format. */
107 lwres_nooprequest_render(lwres_context_t *ctx, lwres_nooprequest_t *req, argument
115 REQUIRE(ctx != NULL);
160 lwres_noopresponse_render(lwres_context_t *ctx, lwres_noopresponse_t *req, argument
168 REQUIRE(ctx != NULL);
209 /*% Uses context ctx to convert the contents of packet pkt to a lwres_nooprequest_t structure. */
211 lwres_nooprequest_parse(lwres_context_t *ctx, lwres_buffer_ argument
259 lwres_noopresponse_parse(lwres_context_t *ctx, lwres_buffer_t *b, lwres_lwpacket_t *pkt, lwres_noopresponse_t **structp) argument
307 lwres_noopresponse_free(lwres_context_t *ctx, lwres_noopresponse_t **structp) argument
322 lwres_nooprequest_free(lwres_context_t *ctx, lwres_nooprequest_t **structp) argument
[all...]
H A Dlwres_gnba.c48 lwres_gnbarequest_render() uses resolver context ctx to convert
56 lwres_gnbarequest_parse() uses context ctx to convert the contents
65 memory in resolver context ctx that was allocated to the
106 /*% Uses resolver context ctx to convert getnamebyaddr request structure req to canonical format. */
108 lwres_gnbarequest_render(lwres_context_t *ctx, lwres_gnbarequest_t *req, argument
116 REQUIRE(ctx != NULL);
165 lwres_gnbaresponse_render(lwres_context_t *ctx, lwres_gnbaresponse_t *req, argument
175 REQUIRE(ctx != NULL);
235 /*% Uses context ctx to convert the contents of packet pkt to a lwres_gnbarequest_t structure. */
237 lwres_gnbarequest_parse(lwres_context_t *ctx, lwres_buffer_ argument
282 lwres_gnbaresponse_parse(lwres_context_t *ctx, lwres_buffer_t *b, lwres_lwpacket_t *pkt, lwres_gnbaresponse_t **structp) argument
373 lwres_gnbarequest_free(lwres_context_t *ctx, lwres_gnbarequest_t **structp) argument
388 lwres_gnbaresponse_free(lwres_context_t *ctx, lwres_gnbaresponse_t **structp) argument
[all...]
H A Dlwres_gabn.c54 lwres_gabnrequest_render() uses resolver context ctx to convert
62 lwres_gabnrequest_parse() uses context ctx to convert the contents of
71 memory in resolver context ctx that was allocated to the
110 /*% uses resolver context ctx to convert getaddrbyname request structure req to canonical format. */
112 lwres_gabnrequest_render(lwres_context_t *ctx, lwres_gabnrequest_t *req, argument
121 REQUIRE(ctx != NULL);
179 lwres_gabnresponse_render(lwres_context_t *ctx, lwres_gabnresponse_t *req, argument
190 REQUIRE(ctx != NULL);
274 /*% Uses context ctx to convert the contents of packet pkt to a lwres_gabnrequest_t structure. */
276 lwres_gabnrequest_parse(lwres_context_t *ctx, lwres_buffer_ argument
326 lwres_gabnresponse_parse(lwres_context_t *ctx, lwres_buffer_t *b, lwres_lwpacket_t *pkt, lwres_gabnresponse_t **structp) argument
456 lwres_gabnrequest_free(lwres_context_t *ctx, lwres_gabnrequest_t **structp) argument
471 lwres_gabnresponse_free(lwres_context_t *ctx, lwres_gabnresponse_t **structp) argument
[all...]
H A Dlwres_grbn.c31 lwres_grbnrequest_render(lwres_context_t *ctx, lwres_grbnrequest_t *req, argument
40 REQUIRE(ctx != NULL);
104 lwres_grbnresponse_render(lwres_context_t *ctx, lwres_grbnresponse_t *req, argument
114 REQUIRE(ctx != NULL);
192 lwres_grbnrequest_parse(lwres_context_t *ctx, lwres_buffer_t *b, argument
202 REQUIRE(ctx != NULL);
246 lwres_grbnresponse_parse(lwres_context_t *ctx, lwres_buffer_t *b, argument
257 REQUIRE(ctx != NULL);
380 lwres_grbnrequest_free(lwres_context_t *ctx, lwres_grbnrequest_t **structp) argument
384 REQUIRE(ctx !
395 lwres_grbnresponse_free(lwres_context_t *ctx, lwres_grbnresponse_t **structp) argument
[all...]
H A Dlwresutil.c54 * context ctx for memory allocation. addrtypes is a bitmask
61 * ctx is used for memory allocation. The address type is indicated by
232 lwres_getaddrsbyname(lwres_context_t *ctx, const char *name, argument
246 REQUIRE(ctx != NULL);
255 serial = lwres_context_nextserial(ctx);
281 ret = lwres_gabnrequest_render(ctx, &request, &pkt, &b_out);
285 ret = lwres_context_sendrecv(ctx, b_out.base, b_out.length, buffer,
323 ret = lwres_gabnresponse_parse(ctx, &b_in, &pkt, &response);
339 lwres_gabnresponse_free(ctx, &response);
347 lwres_getnamebyaddr(lwres_context_t *ctx, lwres_uint32_ argument
456 lwres_getrdatabyname(lwres_context_t *ctx, const char *name, lwres_uint16_t rdclass, lwres_uint16_t rdtype, lwres_uint32_t flags, lwres_grbnresponse_t **structp) argument
[all...]
/bind-9.11.3/lib/lwres/win32/
H A Dlwconfig.c39 get_win32_searchlist(lwres_context_t *ctx) { argument
47 REQUIRE(ctx != NULL);
48 confdata = &ctx->confdata;
73 confdata->search[confdata->searchnxt] = lwres_strdup(ctx, cp);
82 lwres_conf_parse(lwres_context_t *ctx, const char *filename) { argument
90 REQUIRE(ctx != NULL);
91 confdata = &ctx->confdata;
95 ret = generic_lwres_conf_parse(ctx, filename);
116 get_win32_searchlist(ctx);
120 confdata->domainname = lwres_strdup(ctx, FixedInf
[all...]
/bind-9.11.3/bin/tests/
H A Dlwresconf_test.c48 lwres_context_t *ctx; local
66 ctx = NULL;
68 ret = lwres_context_create(&ctx, mem, mem_alloc, mem_free, 0);
70 ret = lwres_context_create(&ctx, NULL, NULL, NULL, 0);
74 lwres_conf_init(ctx);
75 if (lwres_conf_parse(ctx, file) == 0) {
76 lwres_conf_print(ctx, stderr);
81 lwres_conf_clear(ctx);
82 lwres_context_destroy(&ctx);
/bind-9.11.3/lib/dns/tests/
H A Drsa_test.c187 dst_context_t *ctx = NULL; local
209 ISC_FALSE, &ctx);
214 ret = dst_context_adddata(ctx, &r);
219 ret = dst_context_verify(ctx, &r);
222 dst_context_destroy(&ctx);
230 ISC_FALSE, &ctx);
235 ret = dst_context_adddata(ctx, &r);
240 ret = dst_context_verify(ctx, &r);
243 dst_context_destroy(&ctx);
251 ISC_FALSE, &ctx);
[all...]
/bind-9.11.3/contrib/idn/idnkit-1.0-src/lib/
H A Ddelimitermap.c79 idn_delimitermap_t ctx = NULL; local
85 ctx = (idn_delimitermap_t) malloc(sizeof(struct idn_delimitermap));
86 if (ctx == NULL) {
92 ctx->delimiters = (unsigned long *) malloc(sizeof(unsigned long)
94 if (ctx->delimiters == NULL) {
98 ctx->ndelimiters = 0;
99 ctx->delimiter_size = DELIMITERMAP_INITIAL_DELIMITER_SIZE;
100 ctx->reference_count = 1;
101 *ctxp = ctx;
106 free(ctx);
112 idn_delimitermap_destroy(idn_delimitermap_t ctx) argument
130 idn_delimitermap_incrref(idn_delimitermap_t ctx) argument
141 idn_delimitermap_add(idn_delimitermap_t ctx, unsigned long delimiter) argument
176 idn_delimitermap_addall(idn_delimitermap_t ctx, unsigned long *delimiters, int ndelimiters) argument
199 idn_delimitermap_map(idn_delimitermap_t ctx, const unsigned long *from, unsigned long *to, size_t tolen) argument
[all...]

Completed in 74 milliseconds

123