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

12

/bind-9.6-ESV-R11/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);
H A Dhook.c66 idn_resconf_t ctx; member in struct:_HOOK
95 hookListAppend(HWND hWnd, u_int wMsg, char FAR *buf, idn_resconf_t ctx) { argument
104 hp->ctx = ctx;
191 if (idnConvRsp(pHook->ctx, pHost->h_name,
210 idnHook(HWND hWnd, u_int wMsg, char FAR *buf, idn_resconf_t ctx) argument
220 if (hookListAppend(hWnd, wMsg, buf, ctx) != TRUE) {
/bind-9.6-ESV-R11/lib/isc/
H A Diterated_hash.c32 isc_sha1_t ctx; local
39 isc_sha1_init(&ctx);
40 isc_sha1_update(&ctx, in, inlength);
41 isc_sha1_update(&ctx, salt, saltlength);
42 isc_sha1_final(&ctx, out);
H A Dhmacmd5.c43 isc_hmacmd5_init(isc_hmacmd5_t *ctx, const unsigned char *key, argument
49 memset(ctx->key, 0, sizeof(ctx->key));
50 if (len > sizeof(ctx->key)) {
54 isc_md5_final(&md5ctx, ctx->key);
56 memmove(ctx->key, key, len);
58 isc_md5_init(&ctx->md5ctx);
61 ipad[i] ^= ctx->key[i];
62 isc_md5_update(&ctx->md5ctx, ipad, sizeof(ipad));
66 isc_hmacmd5_invalidate(isc_hmacmd5_t *ctx) { argument
76 isc_hmacmd5_update(isc_hmacmd5_t *ctx, const unsigned char *buf, unsigned int len) argument
86 isc_hmacmd5_sign(isc_hmacmd5_t *ctx, unsigned char *digest) argument
108 isc_hmacmd5_verify(isc_hmacmd5_t *ctx, unsigned char *digest) argument
113 isc_hmacmd5_verify2(isc_hmacmd5_t *ctx, unsigned char *digest, size_t len) argument
[all...]
H A Dmd5.c62 isc_md5_init(isc_md5_t *ctx) { argument
63 ctx->buf[0] = 0x67452301;
64 ctx->buf[1] = 0xefcdab89;
65 ctx->buf[2] = 0x98badcfe;
66 ctx->buf[3] = 0x10325476;
68 ctx->bytes[0] = 0;
69 ctx->bytes[1] = 0;
73 isc_md5_invalidate(isc_md5_t *ctx) { argument
74 memset(ctx, 0, sizeof(isc_md5_t));
184 isc_md5_update(isc_md5_t *ctx, cons argument
223 isc_md5_final(isc_md5_t *ctx, unsigned char *digest) argument
[all...]
H A Dbase64.c111 base64_decode_init(base64_decode_ctx_t *ctx, int length, isc_buffer_t *target) argument
113 ctx->digits = 0;
114 ctx->seen_end = ISC_FALSE;
115 ctx->length = length;
116 ctx->target = target;
120 base64_decode_char(base64_decode_ctx_t *ctx, int c) { argument
123 if (ctx->seen_end)
127 ctx->val[ctx->digits++] = s - base64;
128 if (ctx
171 base64_decode_finish(base64_decode_ctx_t *ctx) argument
181 base64_decode_ctx_t ctx; local
211 base64_decode_ctx_t ctx; local
[all...]
H A Dhex.c89 hex_decode_init(hex_decode_ctx_t *ctx, int length, isc_buffer_t *target) argument
91 ctx->digits = 0;
92 ctx->length = length;
93 ctx->target = target;
97 hex_decode_char(hex_decode_ctx_t *ctx, int c) { argument
102 ctx->val[ctx->digits++] = s - hex;
103 if (ctx->digits == 2) {
106 num = (ctx->val[0] << 4) + (ctx
120 hex_decode_finish(hex_decode_ctx_t *ctx) argument
130 hex_decode_ctx_t ctx; local
160 hex_decode_ctx_t ctx; local
[all...]
/bind-9.6-ESV-R11/bin/tests/
H A Dlwresconf_test.c56 lwres_context_t *ctx; local
74 ctx = NULL;
76 ret = lwres_context_create(&ctx, mem, mem_alloc, mem_free, 0);
78 ret = lwres_context_create(&ctx, NULL, NULL, NULL, 0);
82 lwres_conf_init(ctx);
83 if (lwres_conf_parse(ctx, file) == 0) {
84 lwres_conf_print(ctx, stderr);
89 lwres_conf_clear(ctx);
90 lwres_context_destroy(&ctx);
H A Dlwres_test.c69 static lwres_context_t *ctx; variable
87 ret = lwres_nooprequest_render(ctx, &nooprequest, &pkt, &b);
102 ret = lwres_nooprequest_parse(ctx, &b, &pkt2, &nooprequest2);
109 lwres_nooprequest_free(ctx, &nooprequest2);
111 lwres_context_freemem(ctx, b.base, b.length);
123 ret = lwres_noopresponse_render(ctx, &noopresponse, &pkt, &b);
138 ret = lwres_noopresponse_parse(ctx, &b, &pkt2, &noopresponse2);
145 lwres_noopresponse_free(ctx, &noopresponse2);
147 lwres_context_freemem(ctx, b.base, b.length);
161 ret = lwres_getaddrsbyname(ctx, targe
[all...]
/bind-9.6-ESV-R11/lib/lwres/
H A Dlwres_noop.c59 * lwres_nooprequest_render() uses resolver context ctx to convert no-op
67 * lwres_nooprequest_parse() uses context ctx to convert the contents of
76 * memory in resolver context ctx that was allocated to the
114 /*% Uses resolver context ctx to convert no-op request structure req to canonical format. */
116 lwres_nooprequest_render(lwres_context_t *ctx, lwres_nooprequest_t *req, argument
124 REQUIRE(ctx != NULL);
169 lwres_noopresponse_render(lwres_context_t *ctx, lwres_noopresponse_t *req, argument
177 REQUIRE(ctx != NULL);
218 /*% Uses context ctx to convert the contents of packet pkt to a lwres_nooprequest_t structure. */
220 lwres_nooprequest_parse(lwres_context_t *ctx, lwres_buffer_ argument
268 lwres_noopresponse_parse(lwres_context_t *ctx, lwres_buffer_t *b, lwres_lwpacket_t *pkt, lwres_noopresponse_t **structp) argument
316 lwres_noopresponse_free(lwres_context_t *ctx, lwres_noopresponse_t **structp) argument
331 lwres_nooprequest_free(lwres_context_t *ctx, lwres_nooprequest_t **structp) argument
[all...]
H A Dlwres_gnba.c57 lwres_gnbarequest_render() uses resolver context ctx to convert
65 lwres_gnbarequest_parse() uses context ctx to convert the contents
74 memory in resolver context ctx that was allocated to the
115 /*% Uses resolver context ctx to convert getnamebyaddr request structure req to canonical format. */
117 lwres_gnbarequest_render(lwres_context_t *ctx, lwres_gnbarequest_t *req, argument
125 REQUIRE(ctx != NULL);
174 lwres_gnbaresponse_render(lwres_context_t *ctx, lwres_gnbaresponse_t *req, argument
184 REQUIRE(ctx != NULL);
244 /*% Uses context ctx to convert the contents of packet pkt to a lwres_gnbarequest_t structure. */
246 lwres_gnbarequest_parse(lwres_context_t *ctx, lwres_buffer_ argument
291 lwres_gnbaresponse_parse(lwres_context_t *ctx, lwres_buffer_t *b, lwres_lwpacket_t *pkt, lwres_gnbaresponse_t **structp) argument
382 lwres_gnbarequest_free(lwres_context_t *ctx, lwres_gnbarequest_t **structp) argument
397 lwres_gnbaresponse_free(lwres_context_t *ctx, lwres_gnbaresponse_t **structp) argument
[all...]
H A Dlwres_gabn.c63 lwres_gabnrequest_render() uses resolver context ctx to convert
71 lwres_gabnrequest_parse() uses context ctx to convert the contents of
80 memory in resolver context ctx that was allocated to the
119 /*% uses resolver context ctx to convert getaddrbyname request structure req to canonical format. */
121 lwres_gabnrequest_render(lwres_context_t *ctx, lwres_gabnrequest_t *req, argument
130 REQUIRE(ctx != NULL);
188 lwres_gabnresponse_render(lwres_context_t *ctx, lwres_gabnresponse_t *req, argument
199 REQUIRE(ctx != NULL);
283 /*% Uses context ctx to convert the contents of packet pkt to a lwres_gabnrequest_t structure. */
285 lwres_gabnrequest_parse(lwres_context_t *ctx, lwres_buffer_ argument
335 lwres_gabnresponse_parse(lwres_context_t *ctx, lwres_buffer_t *b, lwres_lwpacket_t *pkt, lwres_gabnresponse_t **structp) argument
465 lwres_gabnrequest_free(lwres_context_t *ctx, lwres_gabnrequest_t **structp) argument
480 lwres_gabnresponse_free(lwres_context_t *ctx, lwres_gabnresponse_t **structp) argument
[all...]
H A Dlwres_grbn.c40 lwres_grbnrequest_render(lwres_context_t *ctx, lwres_grbnrequest_t *req, argument
49 REQUIRE(ctx != NULL);
113 lwres_grbnresponse_render(lwres_context_t *ctx, lwres_grbnresponse_t *req, argument
123 REQUIRE(ctx != NULL);
201 lwres_grbnrequest_parse(lwres_context_t *ctx, lwres_buffer_t *b, argument
211 REQUIRE(ctx != NULL);
255 lwres_grbnresponse_parse(lwres_context_t *ctx, lwres_buffer_t *b, argument
266 REQUIRE(ctx != NULL);
389 lwres_grbnrequest_free(lwres_context_t *ctx, lwres_grbnrequest_t **structp) argument
393 REQUIRE(ctx !
404 lwres_grbnresponse_free(lwres_context_t *ctx, lwres_grbnresponse_t **structp) argument
[all...]
H A Dlwresutil.c63 * context ctx for memory allocation. addrtypes is a bitmask
70 * ctx is used for memory allocation. The address type is indicated by
241 lwres_getaddrsbyname(lwres_context_t *ctx, const char *name, argument
255 REQUIRE(ctx != NULL);
264 serial = lwres_context_nextserial(ctx);
290 ret = lwres_gabnrequest_render(ctx, &request, &pkt, &b_out);
294 ret = lwres_context_sendrecv(ctx, b_out.base, b_out.length, buffer,
332 ret = lwres_gabnresponse_parse(ctx, &b_in, &pkt, &response);
348 lwres_gabnresponse_free(ctx, &response);
356 lwres_getnamebyaddr(lwres_context_t *ctx, lwres_uint32_ argument
465 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.6-ESV-R11/lib/lwres/win32/
H A Dlwconfig.c48 get_win32_searchlist(lwres_context_t *ctx) { argument
56 REQUIRE(ctx != NULL);
57 confdata = &ctx->confdata;
82 confdata->search[confdata->searchnxt] = lwres_strdup(ctx, cp);
91 lwres_conf_parse(lwres_context_t *ctx, const char *filename) { argument
99 REQUIRE(ctx != NULL);
100 confdata = &ctx->confdata;
104 ret = generic_lwres_conf_parse(ctx, filename);
125 get_win32_searchlist(ctx);
129 confdata->domainname = lwres_strdup(ctx, FixedInf
[all...]
/bind-9.6-ESV-R11/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...]
H A Dfilechecker.c79 idn__filechecker_t ctx; local
92 if ((ctx = malloc(sizeof(struct idn__filechecker))) == NULL)
95 if ((r = idn_ucsset_create(&ctx->set)) != idn_success) {
96 free(ctx);
100 r = read_file(file, fp, ctx->set);
104 idn_ucsset_fix(ctx->set);
105 *ctxp = ctx;
107 idn_ucsset_destroy(ctx->set);
108 free(ctx);
114 idn__filechecker_destroy(idn__filechecker_t ctx) { argument
124 idn__filechecker_lookup(idn__filechecker_t ctx, const unsigned long *str, const unsigned long **found) argument
258 idn__filechecker_lookupproc(void *ctx, const unsigned long *str, const unsigned long **found) argument
[all...]
H A Dmapselector.c102 idn_mapselector_t ctx = NULL; local
108 ctx = (idn_mapselector_t)malloc(sizeof(struct idn_mapselector));
109 if (ctx == NULL) {
114 ctx->maphash = NULL;
115 ctx->reference_count = 1;
117 r = idn__strhash_create(&(ctx->maphash));
121 *ctxp = ctx;
126 if (ctx != NULL)
127 free(ctx->maphash);
128 free(ctx);
135 idn_mapselector_destroy(idn_mapselector_t ctx) argument
155 idn_mapselector_incrref(idn_mapselector_t ctx) argument
166 idn_mapselector_add(idn_mapselector_t ctx, const char *tld, const char *name) argument
212 idn_mapselector_addall(idn_mapselector_t ctx, const char *tld, const char **scheme_names, int nschemes) argument
236 idn_mapselector_mapper(idn_mapselector_t ctx, const char *tld) argument
267 idn_mapselector_map(idn_mapselector_t ctx, const unsigned long *from, const char *tld, unsigned long *to, size_t tolen) argument
336 idn_mapselector_map2(idn_mapselector_t ctx, const unsigned long *from, const unsigned long *tld, unsigned long *to, size_t tolen) argument
[all...]
H A Dchecker.c185 idn_checker_t ctx = NULL; local
193 ctx = (idn_checker_t) malloc(sizeof(struct idn_checker));
194 if (ctx == NULL) {
199 ctx->schemes = (check_scheme_t *) malloc(sizeof(check_scheme_t)
201 if (ctx->schemes == NULL) {
206 ctx->nschemes = 0;
207 ctx->scheme_size = MAPPER_INITIAL_SCHEME_SIZE;
208 ctx->reference_count = 1;
209 *ctxp = ctx;
213 if (ctx !
222 idn_checker_destroy(idn_checker_t ctx) argument
245 idn_checker_incrref(idn_checker_t ctx) argument
256 idn_checker_add(idn_checker_t ctx, const char *scheme_name) argument
341 idn_checker_addall(idn_checker_t ctx, const char **scheme_names, int nschemes) argument
365 idn_checker_lookup(idn_checker_t ctx, const unsigned long *ucs4, const unsigned long **found) argument
[all...]
H A Dfilemapper.c92 idn__filemapper_t ctx; local
104 if ((ctx = malloc(sizeof(struct idn__filemapper))) == NULL)
107 if ((r = idn_ucsmap_create(&ctx->map)) != idn_success) {
108 free(ctx);
112 r = read_file(file, fp, ctx->map);
116 idn_ucsmap_fix(ctx->map);
117 *ctxp = ctx;
119 idn_ucsmap_destroy(ctx->map);
120 free(ctx);
126 idn__filemapper_destroy(idn__filemapper_t ctx) { argument
137 idn__filemapper_map(idn__filemapper_t ctx, const unsigned long *from, unsigned long *to, size_t tolen) argument
344 idn__filemapper_mapproc(void *ctx, const unsigned long *from, unsigned long *to, size_t tolen) argument
[all...]
H A Dmapper.c154 idn_mapper_t ctx = NULL; local
162 ctx = (idn_mapper_t) malloc(sizeof(struct idn_mapper));
163 if (ctx == NULL) {
168 ctx->schemes = (map_scheme_t *) malloc(sizeof(map_scheme_t)
170 if (ctx->schemes == NULL) {
175 ctx->nschemes = 0;
176 ctx->scheme_size = MAPPER_INITIAL_SCHEME_SIZE;
177 ctx->reference_count = 1;
178 *ctxp = ctx;
183 if (ctx !
192 idn_mapper_destroy(idn_mapper_t ctx) argument
215 idn_mapper_incrref(idn_mapper_t ctx) argument
226 idn_mapper_add(idn_mapper_t ctx, const char *scheme_name) argument
317 idn_mapper_addall(idn_mapper_t ctx, const char **scheme_names, int nschemes) argument
340 idn_mapper_map(idn_mapper_t ctx, const unsigned long *from, unsigned long *to, size_t tolen) argument
[all...]
/bind-9.6-ESV-R11/lib/dns/
H A Dgssapi_link.c58 dst_gssapi_signverifyctx_t *ctx; local
63 ctx = isc_mem_get(dctx->mctx, sizeof(dst_gssapi_signverifyctx_t));
64 if (ctx == NULL)
66 ctx->buffer = NULL;
67 result = isc_buffer_allocate(dctx->mctx, &ctx->buffer,
70 isc_mem_put(dctx->mctx, ctx, sizeof(dst_gssapi_signverifyctx_t));
74 dctx->ctxdata.gssctx = ctx;
84 dst_gssapi_signverifyctx_t *ctx = dctx->ctxdata.gssctx; local
86 if (ctx != NULL) {
87 if (ctx
102 dst_gssapi_signverifyctx_t *ctx = dctx->ctxdata.gssctx; local
133 dst_gssapi_signverifyctx_t *ctx = dctx->ctxdata.gssctx; local
188 dst_gssapi_signverifyctx_t *ctx = dctx->ctxdata.gssctx; local
[all...]
/bind-9.6-ESV-R11/bin/tests/dst/
H A Ddst_test.c49 dst_context_t *ctx = NULL; local
61 ret = dst_context_create(key, mctx, &ctx);
67 ret = dst_context_adddata(ctx, &datareg);
71 dst_context_destroy(&ctx);
74 ret = dst_context_sign(ctx, &sigbuf);
77 dst_context_destroy(&ctx);
81 ret = dst_context_create(key, mctx, &ctx);
87 ret = dst_context_adddata(ctx, &datareg);
91 dst_context_destroy(&ctx);
94 ret = dst_context_verify(ctx,
[all...]
/bind-9.6-ESV-R11/bin/tests/system/lwresd/
H A Dlwtest.c56 static lwres_context_t *ctx; variable
73 ret = lwres_nooprequest_render(ctx, &nooprequest, &pkt, &b);
84 ret = lwres_nooprequest_parse(ctx, &b, &pkt2, &nooprequest2);
91 lwres_nooprequest_free(ctx, &nooprequest2);
93 lwres_context_freemem(ctx, b.base, b.length);
104 ret = lwres_noopresponse_render(ctx, &noopresponse, &pkt, &b);
115 ret = lwres_noopresponse_parse(ctx, &b, &pkt2, &noopresponse2);
122 lwres_noopresponse_free(ctx, &noopresponse2);
124 lwres_context_freemem(ctx, b.base, b.length);
141 ret = lwres_getaddrsbyname(ctx, targe
[all...]

Completed in 62 milliseconds

12