Home
last modified time | relevance | path

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

12345678910>>...19

/titanic_41/usr/src/common/smbsrv/
H A Dsmb_door_legacy.c51 smb_dr_ctx_t *ctx = MEM_MALLOC("CommonDoor", sizeof (smb_dr_ctx_t)); in smb_dr_decode_start() local
52 if (ctx) { in smb_dr_decode_start()
53 ctx->start_ptr = ctx->ptr = ptr; in smb_dr_decode_start()
54 ctx->end_ptr = ptr + size; in smb_dr_decode_start()
55 ctx->status = 0; in smb_dr_decode_start()
57 return (ctx); in smb_dr_decode_start()
61 smb_dr_decode_finish(smb_dr_ctx_t *ctx) in smb_dr_decode_finish() argument
63 int status = ctx->status; in smb_dr_decode_finish()
64 if (status == 0 && ctx->ptr != ctx->end_ptr) in smb_dr_decode_finish()
67 MEM_FREE("CommonDoor", ctx); in smb_dr_decode_finish()
[all …]
/titanic_41/usr/src/lib/auditd_plugins/syslog/
H A Dsystoken.c83 parse_token(parse_context_t *ctx) in parse_token() argument
98 adrm_char(&(ctx->adr), &tokenid, 1); in parse_token()
101 rc = (*tokentable[tokenid].func)(ctx); in parse_token()
113 file_token(parse_context_t *ctx) in file_token() argument
121 file64_token(parse_context_t *ctx) in file64_token() argument
127 common_header(parse_context_t *ctx) in common_header() argument
129 adrm_u_int32(&(ctx->adr), &(ctx->out.sf_reclen), 1); in common_header()
130 ctx->adr.adr_now += sizeof (char); /* version number */ in common_header()
131 adrm_u_short(&(ctx->adr), &(ctx->out.sf_eventid), 1); in common_header()
132 ctx->adr.adr_now += sizeof (short); /* modifier */ in common_header()
[all …]
/titanic_41/usr/src/lib/libndmp/common/
H A Dlibndmp_door_data.c52 ndmp_door_ctx_t *ctx = malloc(sizeof (ndmp_door_ctx_t)); in ndmp_door_decode_start() local
53 if (ctx) { in ndmp_door_decode_start()
54 ctx->start_ptr = ctx->ptr = ptr; in ndmp_door_decode_start()
55 ctx->end_ptr = ptr + size; in ndmp_door_decode_start()
56 ctx->status = 0; in ndmp_door_decode_start()
58 return (ctx); in ndmp_door_decode_start()
62 ndmp_door_decode_finish(ndmp_door_ctx_t *ctx) in ndmp_door_decode_finish() argument
64 int status = ctx->status; in ndmp_door_decode_finish()
65 if ((status == 0) && (ctx->ptr != ctx->end_ptr)) { in ndmp_door_decode_finish()
68 free(ctx); in ndmp_door_decode_finish()
[all …]
/titanic_41/usr/src/lib/libresolv2/common/isc/
H A Dctl_clnt.c60 #define donefunc_p(ctx) ((ctx).donefunc != NULL) argument
77 struct ctl_cctx * ctx; member
154 struct ctl_cctx *ctx; in ctl_client() local
159 ctx = memget(sizeof *ctx); in ctl_client()
160 if (ctx == NULL) { in ctl_client()
164 ctx->state = initializing; in ctl_client()
165 ctx->ev = lev; in ctl_client()
166 ctx->logger = logger; in ctl_client()
167 ctx->timeout = evConsTime(timeout, 0); in ctl_client()
168 ctx->donefunc = donefunc; in ctl_client()
[all …]
H A Dheap.c55 heap_context ctx; in heap_new() local
60 ctx = (heap_context)malloc(sizeof (struct heap_context)); in heap_new()
61 if (ctx == NULL) in heap_new()
64 ctx->array_size = 0; in heap_new()
66 ctx->array_size_increment = ARRAY_SIZE_INCREMENT; in heap_new()
68 ctx->array_size_increment = array_size_increment; in heap_new()
69 ctx->heap_size = 0; in heap_new()
70 ctx->heap = NULL; in heap_new()
71 ctx->higher_priority = higher_priority; in heap_new()
72 ctx->index = index; in heap_new()
[all …]
H A Deventlib.c68 evContext_p *ctx; in evCreate() local
74 OKNEW(ctx); in evCreate()
77 ctx->cur = NULL; in evCreate()
80 ctx->debug = 0; in evCreate()
81 ctx->output = NULL; in evCreate()
84 ctx->conns = NULL; in evCreate()
85 INIT_LIST(ctx->accepts); in evCreate()
88 ctx->files = NULL; in evCreate()
90 ctx->pollfds = NULL; in evCreate()
91 ctx->maxnfds = 0; in evCreate()
[all …]
H A Dctl_srvr.c68 tmp, sizeof tmp, ctx->logger)
86 struct ctl_sctx * ctx; member
179 struct ctl_sctx *ctx; in ctl_server() local
193 ctx = memget(sizeof *ctx); in ctl_server()
194 if (ctx == NULL) { in ctl_server()
198 ctx->ev = lev; in ctl_server()
199 ctx->uctx = uctx; in ctl_server()
200 ctx->unkncode = unkncode; in ctl_server()
201 ctx->timeoutcode = timeoutcode; in ctl_server()
202 ctx->verbs = verbs; in ctl_server()
[all …]
H A Dev_files.c42 static evFile *FindFD(const evContext_p *ctx, int fd, int eventmask);
52 evContext_p *ctx = opaqueCtx.opaque; in evSelectFD() local
56 evPrintf(ctx, 1, in evSelectFD()
58 ctx, fd, eventmask, func, uap); in evSelectFD()
62 if (fd > ctx->highestFD) in evSelectFD()
74 if (fd >= ctx->maxnfds && evPollfdRealloc(ctx, 1, fd) != 0) in evSelectFD()
77 id = FindFD(ctx, fd, EV_MASK_ALL); in evSelectFD()
80 FD_SET(fd, &ctx->nonblockBefore); in evSelectFD()
88 FD_CLR(fd, &ctx->nonblockBefore); in evSelectFD()
98 if (id != NULL && FindFD(ctx, fd, eventmask) != NULL) in evSelectFD()
[all …]
/titanic_41/usr/src/lib/libsmbfs/smb/
H A Dctx.c110 rpc_cleanup_smbctx(struct smb_ctx *ctx) in rpc_cleanup_smbctx() argument
113 (*close_hook)(ctx); in rpc_cleanup_smbctx()
188 dump_ctx(char *where, struct smb_ctx *ctx) in dump_ctx() argument
191 dump_ctx_flags(ctx->ct_flags); in dump_ctx()
193 if (ctx->ct_locname) in dump_ctx()
194 printf(" localname=\"%s\"", ctx->ct_locname); in dump_ctx()
198 if (ctx->ct_fullserver) in dump_ctx()
199 printf(" fullserver=\"%s\"", ctx->ct_fullserver); in dump_ctx()
203 if (ctx->ct_srvaddr_s) in dump_ctx()
204 printf(" srvaddr_s=\"%s\"\n", ctx->ct_srvaddr_s); in dump_ctx()
[all …]
/titanic_41/usr/src/cmd/ssh/sshd/
H A Dgss-serv.c152 ssh_gssapi_accept_ctx(Gssctxt *ctx, gss_buffer_t recv_tok, in ssh_gssapi_accept_ctx() argument
161 ctx->major = gss_accept_sec_context(&ctx->minor, &ctx->context, in ssh_gssapi_accept_ctx()
163 &ctx->src_name, &ctx->actual_mech, send_tok, &ctx->flags, in ssh_gssapi_accept_ctx()
164 NULL, &ctx->deleg_creds); in ssh_gssapi_accept_ctx()
166 if (GSS_ERROR(ctx->major)) in ssh_gssapi_accept_ctx()
167 ssh_gssapi_error(ctx, "accepting security context"); in ssh_gssapi_accept_ctx()
169 if (ctx->major == GSS_S_CONTINUE_NEEDED && send_tok->length == 0) in ssh_gssapi_accept_ctx()
172 else if (GSS_ERROR(ctx->major) && send_tok->length == 0) in ssh_gssapi_accept_ctx()
175 if (ctx->major == GSS_S_COMPLETE && in ssh_gssapi_accept_ctx()
176 ctx->desired_mech != GSS_C_NULL_OID && in ssh_gssapi_accept_ctx()
[all …]
/titanic_41/usr/src/tools/cw/
H A Dcw.c331 #define CC(ctx) \ argument
332 (((ctx)->i_flags & CW_F_SHADOW) ? \
333 ((ctx)->i_compiler == CW_C_CC ? CW_C_GCC : CW_C_CC) : \
334 (ctx)->i_compiler)
505 cw_ictx_t *ctx = calloc(sizeof (cw_ictx_t), 1); in newictx() local
506 if (ctx) in newictx()
507 if ((ctx->i_ae = calloc(sizeof (struct aelist), 1)) == NULL) { in newictx()
508 free(ctx); in newictx()
512 return (ctx); in newictx()
639 do_gcc(cw_ictx_t *ctx) in do_gcc() argument
[all …]
/titanic_41/usr/src/lib/libsasl/lib/
H A Dauxprop.c132 static int prop_init(struct propctx *ctx, unsigned estimate) in prop_init() argument
136 ctx->mem_base = alloc_proppool(VALUES_SIZE + estimate); in prop_init()
137 if(!ctx->mem_base) return SASL_NOMEM; in prop_init()
139 ctx->mem_cur = ctx->mem_base; in prop_init()
141 ctx->values = (struct propval *)ctx->mem_base->data; in prop_init()
142 ctx->mem_base->unused = ctx->mem_base->size - VALUES_SIZE; in prop_init()
143 ctx->allocated_values = PROP_DEFAULT; in prop_init()
144 ctx->used_values = 0; in prop_init()
146 ctx->data_end = ctx->mem_base->data + ctx->mem_base->size; in prop_init()
147 ctx->list_end = (char **)(ctx->mem_base->data + VALUES_SIZE); in prop_init()
[all …]
/titanic_41/usr/src/common/crypto/modes/
H A Dccm.c48 ccm_mode_encrypt_contiguous_blocks(ccm_ctx_t *ctx, char *data, size_t length, in ccm_mode_encrypt_contiguous_blocks() argument
67 if (length + ctx->ccm_remainder_len < block_size) { in ccm_mode_encrypt_contiguous_blocks()
70 (uint8_t *)ctx->ccm_remainder + ctx->ccm_remainder_len, in ccm_mode_encrypt_contiguous_blocks()
72 ctx->ccm_remainder_len += length; in ccm_mode_encrypt_contiguous_blocks()
73 ctx->ccm_copy_to = datap; in ccm_mode_encrypt_contiguous_blocks()
77 lastp = (uint8_t *)ctx->ccm_cb; in ccm_mode_encrypt_contiguous_blocks()
81 mac_buf = (uint8_t *)ctx->ccm_mac_buf; in ccm_mode_encrypt_contiguous_blocks()
85 if (ctx->ccm_remainder_len > 0) { in ccm_mode_encrypt_contiguous_blocks()
86 need = block_size - ctx->ccm_remainder_len; in ccm_mode_encrypt_contiguous_blocks()
91 bcopy(datap, &((uint8_t *)ctx->ccm_remainder) in ccm_mode_encrypt_contiguous_blocks()
[all …]
H A Dgcm.c131 gcm_mode_encrypt_contiguous_blocks(gcm_ctx_t *ctx, char *data, size_t length, in gcm_mode_encrypt_contiguous_blocks() argument
150 if (length + ctx->gcm_remainder_len < block_size) { in gcm_mode_encrypt_contiguous_blocks()
153 (uint8_t *)ctx->gcm_remainder + ctx->gcm_remainder_len, in gcm_mode_encrypt_contiguous_blocks()
155 ctx->gcm_remainder_len += length; in gcm_mode_encrypt_contiguous_blocks()
156 ctx->gcm_copy_to = datap; in gcm_mode_encrypt_contiguous_blocks()
160 lastp = (uint8_t *)ctx->gcm_cb; in gcm_mode_encrypt_contiguous_blocks()
166 if (ctx->gcm_remainder_len > 0) { in gcm_mode_encrypt_contiguous_blocks()
167 need = block_size - ctx->gcm_remainder_len; in gcm_mode_encrypt_contiguous_blocks()
172 bcopy(datap, &((uint8_t *)ctx->gcm_remainder) in gcm_mode_encrypt_contiguous_blocks()
173 [ctx->gcm_remainder_len], need); in gcm_mode_encrypt_contiguous_blocks()
[all …]
H A Dcbc.c42 cbc_encrypt_contiguous_blocks(cbc_ctx_t *ctx, char *data, size_t length, in cbc_encrypt_contiguous_blocks() argument
59 if (length + ctx->cbc_remainder_len < block_size) { in cbc_encrypt_contiguous_blocks()
62 (uint8_t *)ctx->cbc_remainder + ctx->cbc_remainder_len, in cbc_encrypt_contiguous_blocks()
64 ctx->cbc_remainder_len += length; in cbc_encrypt_contiguous_blocks()
65 ctx->cbc_copy_to = datap; in cbc_encrypt_contiguous_blocks()
69 lastp = (uint8_t *)ctx->cbc_iv; in cbc_encrypt_contiguous_blocks()
75 if (ctx->cbc_remainder_len > 0) { in cbc_encrypt_contiguous_blocks()
76 need = block_size - ctx->cbc_remainder_len; in cbc_encrypt_contiguous_blocks()
81 bcopy(datap, &((uint8_t *)ctx->cbc_remainder) in cbc_encrypt_contiguous_blocks()
82 [ctx->cbc_remainder_len], need); in cbc_encrypt_contiguous_blocks()
[all …]
H A Dctr.c43 ctr_mode_contiguous_blocks(ctr_ctx_t *ctx, char *data, size_t length, in ctr_mode_contiguous_blocks() argument
60 if (length + ctx->ctr_remainder_len < block_size) { in ctr_mode_contiguous_blocks()
63 (uint8_t *)ctx->ctr_remainder + ctx->ctr_remainder_len, in ctr_mode_contiguous_blocks()
65 ctx->ctr_remainder_len += length; in ctr_mode_contiguous_blocks()
66 ctx->ctr_copy_to = datap; in ctr_mode_contiguous_blocks()
70 lastp = (uint8_t *)ctx->ctr_cb; in ctr_mode_contiguous_blocks()
76 if (ctx->ctr_remainder_len > 0) { in ctr_mode_contiguous_blocks()
77 need = block_size - ctx->ctr_remainder_len; in ctr_mode_contiguous_blocks()
82 bcopy(datap, &((uint8_t *)ctx->ctr_remainder) in ctr_mode_contiguous_blocks()
83 [ctx->ctr_remainder_len], need); in ctr_mode_contiguous_blocks()
[all …]
/titanic_41/usr/src/uts/common/gssapi/mechs/krb5/krb5/krb/
H A Dinit_ctx.c203 krb5_reinit_ef_handle(krb5_context ctx) in krb5_reinit_ef_handle() argument
205 ctx->cryptoki_initialized = FALSE; in krb5_reinit_ef_handle()
207 if (krb5_init_ef_handle(ctx) != 0) { in krb5_reinit_ef_handle()
217 ctx->pid = __krb5_current_pid; in krb5_reinit_ef_handle()
220 if (ctx->arcfour_ctx.initialized) { in krb5_reinit_ef_handle()
222 ret = krb5_open_pkcs11_session(&ctx->arcfour_ctx.eSession); in krb5_reinit_ef_handle()
224 ctx->arcfour_ctx.initialized = 0; in krb5_reinit_ef_handle()
225 ctx->arcfour_ctx.eSession = CK_INVALID_HANDLE; in krb5_reinit_ef_handle()
226 C_CloseSession(ctx->hSession); in krb5_reinit_ef_handle()
227 ctx->hSession = CK_INVALID_HANDLE; in krb5_reinit_ef_handle()
[all …]
/titanic_41/usr/src/cmd/vscan/vscand/
H A Dvs_icap.c239 vs_scan_ctx_t ctx; in vs_icap_scan_file() local
258 (void) memset(&ctx, 0, sizeof (vs_scan_ctx_t)); in vs_icap_scan_file()
259 ctx.vsc_idx = eng->vse_eidx; in vs_icap_scan_file()
260 (void) strlcpy(ctx.vsc_host, eng->vse_host, sizeof (ctx.vsc_host)); in vs_icap_scan_file()
261 ctx.vsc_port = eng->vse_port; in vs_icap_scan_file()
262 ctx.vsc_sockfd = eng->vse_sockfd; in vs_icap_scan_file()
263 ctx.vsc_fd = fd; in vs_icap_scan_file()
264 ctx.vsc_fname = fname; in vs_icap_scan_file()
265 ctx.vsc_fsize = fsize; in vs_icap_scan_file()
266 ctx.vsc_flags = flags; in vs_icap_scan_file()
[all …]
/titanic_41/usr/src/lib/pkcs11/pkcs11_tpm/common/
H A Ddig_mgr.c301 DIGEST_CONTEXT *ctx, in digest_mgr_init() argument
304 if (! sess || ! ctx) { in digest_mgr_init()
307 if (ctx->active != FALSE) { in digest_mgr_init()
314 ctx->context_len = sizeof (SHA1_CTX); in digest_mgr_init()
315 ctx->context.sha1ctx = (SHA1_CTX *) in digest_mgr_init()
316 malloc(ctx->context_len); in digest_mgr_init()
317 if (!ctx->context.sha1ctx) in digest_mgr_init()
319 SHA1Init(ctx->context.sha1ctx); in digest_mgr_init()
325 ctx->context_len = sizeof (MD5_CTX); in digest_mgr_init()
326 ctx->context.md5ctx = (MD5_CTX *) in digest_mgr_init()
[all …]
H A Dverify_mgr.c32 SIGN_VERIFY_CONTEXT * ctx, in verify_mgr_init() argument
45 if (! sess || ! ctx) { in verify_mgr_init()
48 if (ctx->active != FALSE) { in verify_mgr_init()
96 ctx->context_len = 0; in verify_mgr_init()
97 ctx->context = NULL; in verify_mgr_init()
126 ctx->context_len = sizeof (RSA_DIGEST_CONTEXT); in verify_mgr_init()
127 ctx->context = (CK_BYTE *)malloc( in verify_mgr_init()
129 if (! ctx->context) { in verify_mgr_init()
132 (void) memset(ctx->context, 0x0, in verify_mgr_init()
152 ctx->context_len = 0; in verify_mgr_init()
[all …]
H A Dsign_mgr.c32 SIGN_VERIFY_CONTEXT * ctx, in sign_mgr_init() argument
45 if (! sess || ! ctx) { in sign_mgr_init()
48 if (ctx->active != FALSE) { in sign_mgr_init()
95 ctx->context_len = 0; in sign_mgr_init()
96 ctx->context = NULL; in sign_mgr_init()
126 ctx->context_len = sizeof (RSA_DIGEST_CONTEXT); in sign_mgr_init()
127 ctx->context = (CK_BYTE *)malloc( in sign_mgr_init()
129 if (! ctx->context) { in sign_mgr_init()
132 (void) memset(ctx->context, 0x0, in sign_mgr_init()
155 ctx->context_len = 0; in sign_mgr_init()
[all …]
/titanic_41/usr/src/lib/libresolv2/common/irs/
H A Dhesiod.c65 static int parse_config_file(struct hesiod_p *ctx, const char *filename);
66 static char ** get_txt_records(struct hesiod_p *ctx, int class,
68 static int init(struct hesiod_p *ctx);
77 struct hesiod_p *ctx; in hesiod_init() local
80 ctx = malloc(sizeof(struct hesiod_p)); in hesiod_init()
81 if (ctx == 0) { in hesiod_init()
86 memset(ctx, 0, sizeof (*ctx)); in hesiod_init()
88 if (parse_config_file(ctx, _PATH_HESIOD_CONF) < 0) { in hesiod_init()
93 ctx->LHS = malloc(strlen(DEF_LHS) + 1); in hesiod_init()
94 ctx->RHS = malloc(strlen(DEF_RHS) + 1); in hesiod_init()
[all …]
/titanic_41/usr/src/uts/common/os/
H A Dkcpc.c78 static void kcpc_restore(kcpc_ctx_t *ctx);
79 static void kcpc_save(kcpc_ctx_t *ctx);
80 static void kcpc_ctx_clone(kcpc_ctx_t *ctx, kcpc_ctx_t *cctx);
93 #define KCPC_CTX_FLAG_SET(ctx, flag) atomic_or_uint(&(ctx)->kc_flags, (flag)) argument
94 #define KCPC_CTX_FLAG_CLR(ctx, flag) atomic_and_uint(&(ctx)->kc_flags, ~(flag)) argument
173 kcpc_ctx_t *ctx; in kcpc_bind_cpu() local
177 ctx = kcpc_ctx_alloc(KM_SLEEP); in kcpc_bind_cpu()
179 if (kcpc_assign_reqs(set, ctx) != 0) { in kcpc_bind_cpu()
180 kcpc_ctx_free(ctx); in kcpc_bind_cpu()
185 ctx->kc_cpuid = cpuid; in kcpc_bind_cpu()
[all …]
/titanic_41/usr/src/uts/common/gssapi/mechs/krb5/mech/
H A Dser_sctx.c260 krb5_gss_ctx_id_rec *ctx; local
297 if ((ctx = (krb5_gss_ctx_id_rec *) arg)) {
300 required += sizeof(ctx->seed);
303 if (!kret && ctx->here)
306 (krb5_pointer) ctx->here,
309 if (!kret && ctx->there)
312 (krb5_pointer) ctx->there,
315 if (!kret && ctx->subkey)
318 (krb5_pointer) ctx->subkey,
321 if (!kret && ctx->enc)
[all …]
/titanic_41/usr/src/cmd/sendmail/libmilter/
H A Dworker.c85 # define OLD_SESSION_TIMEOUT ctx->ctx_timeout
131 #define LAUNCH_WORKER(ctx) \ argument
137 if ((r = thread_create(&tid, mi_worker, ctx)) != 0) \
145 if ((lev) < ctx->ctx_dbg) \
163 mi_start_session(ctx) in mi_start_session() argument
164 SMFICTX_PTR ctx; in mi_start_session()
169 SM_ASSERT(ctx != NULL);
173 if (mi_list_add_ctx(ctx) != MI_SUCCESS)
179 ctx->ctx_sid = id++;
184 ctx->ctx_wstate = WKST_READY_TO_RUN;
[all …]

12345678910>>...19