Home
last modified time | relevance | path

Searched refs:ctx (Results 1 – 25 of 584) sorted by relevance

12345678910>>...24

/illumos-gate/usr/src/common/smbsrv/
H A Dsmb_door_legacy.c52 if (ctx) { in smb_dr_decode_start()
53 ctx->start_ptr = ctx->ptr = ptr; in smb_dr_decode_start()
64 if (status == 0 && ctx->ptr != ctx->end_ptr) in smb_dr_decode_finish()
76 ctx->start_ptr = ctx->ptr = ptr; in smb_dr_encode_start()
88 if (ctx->ptr < ctx->end_ptr) { in smb_dr_encode_finish()
90 *used = ctx->ptr - ctx->start_ptr; in smb_dr_encode_finish()
105 if (ctx->ptr + sizeof (DWORD) <= ctx->end_ptr) { in smb_dr_get_dword()
146 if (ctx->ptr + len <= ctx->end_ptr) { in smb_dr_get_string()
217 if (ctx->ptr + len <= ctx->end_ptr) { in smb_dr_put_string()
359 if (ctx->ptr + len <= ctx->end_ptr) { in smb_dr_put_buf()
[all …]
/illumos-gate/usr/src/lib/auditd_plugins/syslog/
H A Dsystoken.c129 adrm_u_int32(&(ctx->adr), &(ctx->out.sf_reclen), 1); in common_header()
131 adrm_u_short(&(ctx->adr), &(ctx->out.sf_eventid), 1); in common_header()
319 adrm_int32(&(ctx->adr), &(ctx->out.sf_sequence), 1); in sequence_token()
344 ctx->out.sf_text = realloc(ctx->out.sf_text, in text_token()
741 get_bytes_to_string(ctx, &(ctx->out.sf_pathlen), &(ctx->out.sf_path), in path_token()
752 ctx->out.sf_pathlen = collapse_path(ctx->out.sf_path, in path_token()
787 ctx->out.sf_atpath = realloc(ctx->out.sf_atpath, ctx->out.sf_atpathlen); in path_attr_token()
790 (void) memcpy(ctx->out.sf_atpath, ctx->adr.adr_now, in path_attr_token()
1077 adrm_u_int32(&(ctx->adr), &(ctx->out.sf_tid.at_type), 1); in subject32_ex_token()
1135 adrm_u_int32(&(ctx->adr), &(ctx->out.sf_tid.at_type), 1); in subject64_ex_token()
[all …]
/illumos-gate/usr/src/lib/libndmp/common/
H A Dlibndmp_door_data.c53 if (ctx) { in ndmp_door_decode_start()
54 ctx->start_ptr = ctx->ptr = ptr; in ndmp_door_decode_start()
65 if ((status == 0) && (ctx->ptr != ctx->end_ptr)) { in ndmp_door_decode_finish()
68 free(ctx); in ndmp_door_decode_finish()
77 ctx->start_ptr = ctx->ptr = ptr; in ndmp_door_encode_start()
89 if (ctx->ptr < ctx->end_ptr) { in ndmp_door_encode_finish()
91 *used = ctx->ptr - ctx->start_ptr; in ndmp_door_encode_finish()
131 if (ctx->ptr + len <= ctx->end_ptr) { in ndmp_door_get_string()
185 if (ctx->ptr + len <= ctx->end_ptr) { in ndmp_door_put_string()
286 if (ctx->ptr + len <= ctx->end_ptr) { in ndmp_door_put_buf()
[all …]
/illumos-gate/usr/src/lib/libresolv2/common/isc/
H A Dctl_clnt.c153 ctx = memget(sizeof *ctx); in ctl_client()
172 if (ctx->sock > evHighestFD(ctx->ev)) { in ctl_client()
203 memput(ctx, sizeof *ctx); in ctl_client()
220 memput(ctx, sizeof *ctx); in ctl_endclient()
274 new->ctx = ctx; in new_tran()
324 if (evTimeRW(ctx->ev, ctx->wrID, ctx->tiID) < 0) { in start_write()
420 tran = new_tran(ctx, ctx->donefunc, ctx->uap, 0); in conn_done()
439 struct ctl_cctx *ctx = tran->ctx; in write_done() local
461 if (evSelectFD(ctx->ev, ctx->sock, EV_READ, readable, ctx, in start_read()
501 n = read(ctx->sock, ctx->inbuf.text + ctx->inbuf.used, in readable()
[all …]
H A Dheap.c108 ctx->heap[i] = ctx->heap[p]; in float_up()
110 (ctx->index)(ctx->heap[i], i); in float_up()
114 (ctx->index)(ctx->heap[i], i); in float_up()
131 ctx->heap[i] = ctx->heap[j]; in sink_down()
133 (ctx->index)(ctx->heap[i], i); in sink_down()
138 (ctx->index)(ctx->heap[i], i); in sink_down()
151 if (ctx->heap_size >= ctx->array_size && heap_resize(ctx) < 0) in heap_insert()
176 float_up(ctx, i, ctx->heap[i]); in heap_delete()
178 sink_down(ctx, i, ctx->heap[i]); in heap_delete()
191 float_up(ctx, i, ctx->heap[i]); in heap_increased()
[all …]
H A Deventlib.c125 ctx->timers = evCreateTimers(ctx); in evCreate()
308 ctx->rdLast = ctx->rdNext; in evGetNext()
309 ctx->wrLast = ctx->wrNext; in evGetNext()
310 ctx->exLast = ctx->exNext; in evGetNext()
326 &ctx->rdLast, &ctx->wrLast, &ctx->exLast, in evGetNext()
424 ctx->fdNext = ctx->files; in evGetNext()
769 ctx = ((__evEmulMask *)rfds)->ctx; in pselect()
771 ctx = ((__evEmulMask *)wfds)->ctx; in pselect()
887 evContext_p *ctx = maskp->ctx; in __fd_clr() local
903 if (ctx->firstfd > ctx->fdMax) { in __fd_clr()
[all …]
H A Dctl_srvr.c187 ctx = memget(sizeof *ctx); in ctl_server()
212 memput(ctx, sizeof *ctx); in ctl_server()
220 memput(ctx, sizeof *ctx); in ctl_server()
240 memput(ctx, sizeof *ctx); in ctl_server()
254 memput(ctx, sizeof *ctx); in ctl_server()
259 me, ctx, ctx->sock); in ctl_server()
275 me, ctx, ctx->sock, ctx->acID.opaque, ctx->sess); in ctl_endserver()
288 memput(ctx, sizeof *ctx); in ctl_endserver()
436 sess->ctx = ctx; in ctl_accept()
458 (*ctx->connverb->func)(ctx, sess, ctx->connverb, "", 0, in ctl_accept()
[all …]
/illumos-gate/usr/src/common/crypto/skein/
H A Dskein.c70 bzero(ctx->X, sizeof (ctx->X)); in Skein_256_Init()
104 bzero(ctx->X, sizeof (ctx->X)); in Skein_256_InitExt()
114 bzero(ctx->X, sizeof (ctx->X)); in Skein_256_InitExt()
222 bzero(&ctx->b[ctx->h.bCnt], in Skein_256_Final()
226 Skein_256_Process_Block(ctx, ctx->b, 1, ctx->h.bCnt); in Skein_256_Final()
458 bzero(&ctx->b[ctx->h.bCnt], in Skein_512_Final()
462 Skein_512_Process_Block(ctx, ctx->b, 1, ctx->h.bCnt); in Skein_512_Final()
695 Skein1024_Process_Block(ctx, ctx->b, 1, ctx->h.bCnt); in Skein1024_Final()
743 Skein_256_Process_Block(ctx, ctx->b, 1, ctx->h.bCnt); in Skein_256_Final_Pad()
764 Skein_512_Process_Block(ctx, ctx->b, 1, ctx->h.bCnt); in Skein_512_Final_Pad()
[all …]
/illumos-gate/usr/src/cmd/smbsrv/smbd/
H A Dsmbd_authsvc.c320 ctx = malloc(sizeof (*ctx)); in smbd_authctx_create()
323 bzero(ctx, sizeof (*ctx)); in smbd_authctx_create()
326 ctx->ctx_irawbuf = malloc(ctx->ctx_irawlen); in smbd_authctx_create()
461 (ctx->ctx_mh_fini)(ctx); in smbd_authsvc_work()
611 ctx->ctx_irawlen, &ctx->ctx_itoken); in smbd_authsvc_esfirst()
714 ctx->ctx_irawlen, &ctx->ctx_itoken); in smbd_authsvc_esnext()
774 rc = ctx->ctx_mh_work(ctx); in smbd_authsvc_escmn()
869 ctx->ctx_ibodylen = ctx->ctx_irawlen; in smbd_raw_ntlmssp_esnext()
871 ctx->ctx_irawbuf, ctx->ctx_irawlen); in smbd_raw_ntlmssp_esnext()
873 rc = ctx->ctx_mh_work(ctx); in smbd_raw_ntlmssp_esnext()
[all …]
/illumos-gate/usr/src/lib/libsmbfs/smb/
H A Dctx.c214 ctx->ct_origshare ? ctx->ct_origshare : "", in dump_ctx()
224 smb_ctx_t *ctx; in smb_ctx_alloc() local
227 ctx = malloc(sizeof (*ctx)); in smb_ctx_alloc()
228 if (ctx == NULL) in smb_ctx_alloc()
232 free(ctx); in smb_ctx_alloc()
235 *ctx_pp = ctx; in smb_ctx_alloc()
247 bzero(ctx, sizeof (*ctx)); in smb_ctx_init()
394 free(ctx); in smb_ctx_free()
763 memset(ctx->ct_password, 0, sizeof (ctx->ct_password)); in smb_ctx_setpassword()
1166 ctx->ct_authflags &= ctx->ct_minauth; in smb_ctx_resolve()
[all …]
/illumos-gate/usr/src/lib/libvmmapi/common/
H A Dvmmapi.h143 int vm_get_device_fd(struct vmctx *ctx);
146 void vm_close(struct vmctx *ctx);
148 void vm_destroy(struct vmctx *ctx);
161 int vm_get_memflags(struct vmctx *ctx);
162 size_t vm_get_lowmem_size(struct vmctx *ctx);
180 int vm_reinit(struct vmctx *ctx, uint64_t);
182 int vm_reinit(struct vmctx *ctx);
192 vm_inject_gp(struct vmctx *ctx, int vcpuid) in vm_inject_gp() argument
194 vm_inject_fault(ctx, vcpuid, IDT_GP, 1, 0); in vm_inject_gp()
305 int vcpu_reset(struct vmctx *ctx, int vcpu);
[all …]
/illumos-gate/usr/src/lib/libsasl/lib/
H A Dauxprop.c139 ctx->mem_cur = ctx->mem_base; in prop_init()
146 ctx->data_end = ctx->mem_base->data + ctx->mem_base->size; in prop_init()
240 if(!ctx || !*ctx) return; in prop_dispose()
314 ctx->allocated_values = ctx->used_values = 0; in prop_request()
326 memset(&(ctx->values[ctx->used_values]), 0, in prop_request()
449 ctx->allocated_values = ctx->used_values+1; in prop_clear()
458 ctx->mem_base = ctx->mem_cur = new_pool; in prop_clear()
463 ctx->data_end = (char *)ctx->mem_base->data + ctx->mem_base->size; in prop_clear()
620 ctx->mem_cur = ctx->mem_cur->next; in prop_set()
667 ctx->mem_cur = ctx->mem_cur->next; in prop_set()
[all …]
/illumos-gate/usr/src/common/crypto/modes/
H A Dccm.c70 (uint8_t *)ctx->ccm_remainder + ctx->ccm_remainder_len, in ccm_mode_encrypt_contiguous_blocks()
109 encrypt_block(ctx->ccm_keysched, (uint8_t *)ctx->ccm_cb, in ccm_mode_encrypt_contiguous_blocks()
118 counter = ntohll(ctx->ccm_cb[1] & ctx->ccm_counter_mask); in ccm_mode_encrypt_contiguous_blocks()
122 (ctx->ccm_cb[1] & ~(ctx->ccm_counter_mask)) | counter; in ccm_mode_encrypt_contiguous_blocks()
194 ctx->ccm_cb[1] = (ctx->ccm_cb[1] & ~(ctx->ccm_counter_mask)) | counter; in calculate_ccm_mac()
229 if ((ctx->ccm_processed_data_len + ctx->ccm_remainder_len) in ccm_encrypt_final()
243 bcopy(ctx->ccm_remainder, macp, ctx->ccm_remainder_len); in ccm_encrypt_final()
257 ctx->ccm_processed_data_len += ctx->ccm_remainder_len; in ccm_encrypt_final()
267 ctx->ccm_remainder_len + ctx->ccm_mac_len); in ccm_encrypt_final()
402 (ctx->ccm_data_len + ctx->ccm_mac_len)) { in ccm_mode_decrypt_contiguous_blocks()
[all …]
H A Dgcm.c224 GHASH(ctx, ctx->gcm_tmp, ctx->gcm_ghash); in gcm_mode_encrypt_contiguous_blocks()
262 (ctx->gcm_remainder_len + ctx->gcm_tag_len)) { in gcm_encrypt_final()
300 ctx->gcm_processed_data_len += ctx->gcm_remainder_len; in gcm_encrypt_final()
305 GHASH(ctx, ctx->gcm_len_a_len_c, ghash); in gcm_encrypt_final()
357 GHASH(ctx, ctx->gcm_tmp, ctx->gcm_ghash); in gcm_decrypt_incomplete_block()
387 bcopy(ctx->gcm_pt_buf, new, ctx->gcm_pt_buf_len); in gcm_mode_decrypt_contiguous_blocks()
388 kmem_free(ctx->gcm_pt_buf, ctx->gcm_pt_buf_len); in gcm_mode_decrypt_contiguous_blocks()
391 bcopy(ctx->gcm_pt_buf, new, ctx->gcm_pt_buf_len); in gcm_mode_decrypt_contiguous_blocks()
466 GHASH(ctx, ctx->gcm_len_a_len_c, ghash); in gcm_decrypt_final()
552 GHASH(ctx, len_a_len_c, ctx->gcm_J0); in gcm_format_initial_blocks()
[all …]
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/krb5/krb/
H A Dinit_ctx.c413 if (!ctx) in init_common()
443 ctx->conf_tgs_ktypes = MALLOC(ctx->tgs_ktype_count * in init_common()
448 (void) memcpy(ctx->conf_tgs_ktypes, ctx->tgs_ktypes, in init_common()
452 ctx->conf_tgs_ktypes_count = ctx->tgs_ktype_count; in init_common()
527 *context = ctx; in init_common()
565 FREE(ctx->default_realm, strlen(ctx->default_realm) + 1); in krb5_free_context()
569 if (ctx->ser_ctx_count && ctx->ser_ctx) { in krb5_free_context()
570 FREE(ctx->ser_ctx,sizeof(krb5_ser_entry) * (ctx->ser_ctx_count) ); in krb5_free_context()
571 ctx->ser_ctx = 0; in krb5_free_context()
576 ctx->magic = 0; in krb5_free_context()
[all …]
/illumos-gate/usr/src/lib/libadutils/common/
H A Daddisc.c930 if (ctx != NULL) in ad_disc_init()
945 return (ctx); in ad_disc_init()
951 if (ctx == NULL) in ad_disc_fini()
994 free(ctx); in ad_disc_fini()
1004 (void) memset(&ctx->res_state, 0, sizeof (ctx->res_state)); in ad_disc_refresh()
1005 DO_RES_NINIT(ctx); in ad_disc_refresh()
1135 DO_RES_NINIT(ctx); in validate_DomainName()
1284 ctx, in validate_DomainController()
1295 log_ds(ctx, dc); in validate_DomainController()
1336 ctx, in validate_DomainController()
[all …]
/illumos-gate/usr/src/cmd/vscan/vscand/
H A Dvs_icap.c239 vs_scan_ctx_t ctx; in vs_icap_scan_file() local
260 (void) strlcpy(ctx.vsc_host, eng->vse_host, sizeof (ctx.vsc_host)); in vs_icap_scan_file()
263 ctx.vsc_fd = fd; in vs_icap_scan_file()
271 ctx.vsc_repair = 0; in vs_icap_scan_file()
277 if (vs_icap_compare_se(ctx.vsc_idx, ctx.vsc_host, ctx.vsc_port) == 0) { in vs_icap_scan_file()
367 ctx->vsc_host, ctx->vsc_port, VS_SERVICE_NAME, VS_ICAP_VER); in vs_icap_send_option_req()
512 if (ctx->vsc_fsize < (uint64_t)ctx->vsc_options.vso_preview_len) in vs_icap_may_preview()
658 ctx->vsc_host, ctx->vsc_port, VS_SERVICE_NAME, VS_ICAP_VER); in vs_icap_create_respmod_hdr()
1045 if ((ctx->vsc_repair_fd = open(ctx->vsc_repair_fname, in vs_icap_create_repair_file()
1511 ctx->vsc_host, ctx->vsc_port) == 0) { in vs_icap_resp_istag()
[all …]
/illumos-gate/usr/src/lib/pkcs11/pkcs11_tpm/common/
H A Ddig_mgr.c301 DIGEST_CONTEXT *ctx, in digest_mgr_init() argument
342 ctx->multi = FALSE; in digest_mgr_init()
343 ctx->active = TRUE; in digest_mgr_init()
351 if (!ctx) { in digest_mgr_cleanup()
364 ctx->multi = FALSE; in digest_mgr_cleanup()
365 ctx->active = FALSE; in digest_mgr_cleanup()
366 ctx->context_len = 0; in digest_mgr_cleanup()
426 ctx->multi = TRUE; in digest_mgr_digest_update()
443 DIGEST_CONTEXT *ctx, in digest_mgr_digest_key() argument
451 if (!sess || !ctx) { in digest_mgr_digest_key()
[all …]
H A Dverify_mgr.c45 if (! sess || ! ctx) { in verify_mgr_init()
97 ctx->context = NULL; in verify_mgr_init()
196 ctx->key = key; in verify_mgr_init()
200 ctx->multi = FALSE; in verify_mgr_init()
201 ctx->active = TRUE; in verify_mgr_init()
210 if (! ctx) { in verify_mgr_cleanup()
213 ctx->key = 0; in verify_mgr_cleanup()
216 ctx->multi = FALSE; in verify_mgr_cleanup()
222 if (ctx->context) { in verify_mgr_cleanup()
223 free(ctx->context); in verify_mgr_cleanup()
[all …]
H A Dsign_mgr.c45 if (! sess || ! ctx) { in sign_mgr_init()
96 ctx->context = NULL; in sign_mgr_init()
211 ctx->key = key; in sign_mgr_init()
215 ctx->multi = FALSE; in sign_mgr_init()
216 ctx->active = TRUE; in sign_mgr_init()
225 if (! ctx) { in sign_mgr_cleanup()
228 ctx->key = 0; in sign_mgr_cleanup()
231 ctx->multi = FALSE; in sign_mgr_cleanup()
241 if (ctx->context) { in sign_mgr_cleanup()
242 free(ctx->context); in sign_mgr_cleanup()
[all …]
/illumos-gate/usr/src/lib/libresolv2/common/irs/
H A Dhesiod.c82 memset(ctx, 0, sizeof (*ctx)); in hesiod_init()
91 if (ctx->LHS == NULL || ctx->RHS == NULL) { in hesiod_init()
158 if (ctx->res && ctx->free_res) in hesiod_end()
159 (*ctx->free_res)(ctx->res); in hesiod_end()
160 free(ctx); in hesiod_end()
196 (ctx->LHS ? strlen(ctx->LHS) : 0) + 4)) == NULL) { in hesiod_to_bind()
281 ctx->RHS = ctx->LHS = 0; in parse_config_file()
330 ctx->RHS = ctx->LHS = 0; in parse_config_file()
481 if (ctx->res && ctx->free_res) { in __hesiod_res_set()
483 (*ctx->free_res)(ctx->res); in __hesiod_res_set()
[all …]
/illumos-gate/usr/src/tools/cw/
H A Dcw.c434 if (ctx) in newictx()
436 free(ctx); in newictx()
440 return (ctx); in newictx()
686 newae(ctx->i_ae, discard_file_name(ctx, arg)); in do_gcc()
802 newae(ctx->i_ae, discard_file_name(ctx, arg)); in do_gcc()
1267 newae(ctx->i_ae, discard_file_name(ctx, NULL)); in do_gcc()
1294 do_gcc(ctx); in do_smatch()
1328 newae(ctx->i_ae, discard_file_name(ctx, arg)); in do_cc()
1352 newae(ctx->i_ae, discard_file_name(ctx, arg)); in do_cc()
1390 newae(ctx->i_ae, discard_file_name(ctx, NULL)); in do_cc()
[all …]
/illumos-gate/usr/src/uts/common/os/
H A Dkcpc.c478 ctx->kc_vtick += curtick - ctx->kc_rawtick; in kcpc_sample()
911 kmem_free(ctx, sizeof (*ctx)); in kcpc_ctx_free()
950 ctx = NULL; in kcpc_overflow_intr()
1151 ctx->kc_vtick += curtick - ctx->kc_rawtick; in kcpc_hw_overflow_intr()
1185 ctx->kc_vtick += curtick - ctx->kc_rawtick; in kcpc_overflow_ast()
1255 ctx->kc_vtick += KCPC_GET_TICK() - ctx->kc_rawtick; in kcpc_save()
1497 cv_wait(&ctx->kc_condv, &ctx->kc_lock); in kcpc_free()
1610 for (ctx = kcpc_ctx_list[hash]; ctx; ctx = ctx->kc_next) in kcpc_invalidate_all()
2106 ASSERT(ctx != NULL && (ctx->kc_cpuid == CPU->cpu_id || in kcpc_program()
2108 if (ctx == NULL || (ctx->kc_cpuid != CPU->cpu_id && in kcpc_program()
[all …]
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/mech/
H A Dser_sctx.c303 if (!kret && ctx->here)
309 if (!kret && ctx->there)
321 if (!kret && ctx->enc)
327 if (!kret && ctx->seq)
577 sizeof(ctx->seed),
672 ctx->proto = ibuf;
702 if (ctx->seq)
704 if (ctx->enc)
706 if (ctx->subkey)
708 if (ctx->there)
[all …]
/illumos-gate/usr/src/cmd/sendmail/libmilter/
H A Dworker.c164 SMFICTX_PTR ctx; in mi_start_session()
208 SMFICTX_PTR ctx; in mi_close_session()
213 mi_clr_ctx(ctx);
336 SMFICTX_PTR ctx; local
379 ctx = ctx_nxt;
571 SMFICTX_PTR ctx; local
616 SMFICTX_PTR ctx; local
623 if (ctx != NULL)
683 ctx = NULL;
747 SMFICTX_PTR ctx; in mi_list_add_ctx()
[all …]

12345678910>>...24