/illumos-gate/usr/src/uts/common/crypto/api/ |
H A D | kcf_digest.c | 213 crypto_ctx_t *ctx; in crypto_digest_init_prov() local 256 *ctxp = (crypto_context_t)ctx; in crypto_digest_init_prov() 339 crypto_ctx_t *ctx = (crypto_ctx_t *)context; in crypto_digest_update() local 345 if ((ctx == NULL) || in crypto_digest_update() 388 crypto_ctx_t *ctx = (crypto_ctx_t *)context; in crypto_digest_final() local 394 if ((ctx == NULL) || in crypto_digest_final() 425 crypto_ctx_t *ctx = (crypto_ctx_t *)context; in crypto_digest_key_prov() local 431 if ((ctx == NULL) || in crypto_digest_key_prov() 445 ctx->cc_session, NULL, key, NULL, NULL); in crypto_digest_key_prov() 459 crypto_ctx_t *ctx = (crypto_ctx_t *)context; in crypto_digest_single() local [all …]
|
H A D | kcf_cipher.c | 111 crypto_ctx_t *ctx; in crypto_cipher_init_prov() local 165 kcf_context_t *tctxp = (kcf_context_t *)ctx; in crypto_cipher_init_prov() 190 ctx->cc_flags = CRYPTO_INIT_OPSTATE; in crypto_cipher_init_prov() 214 *ctxp = (crypto_context_t)ctx; in crypto_cipher_init_prov() 476 crypto_ctx_t *ctx = (crypto_ctx_t *)context; in crypto_encrypt_update() local 482 if ((ctx == NULL) || in crypto_encrypt_update() 542 if ((ctx == NULL) || in crypto_encrypt_final() 764 if ((ctx == NULL) || in crypto_decrypt_update() 824 if ((ctx == NULL) || in crypto_decrypt_final() 861 if ((ctx == NULL) || in crypto_encrypt_single() [all …]
|
/illumos-gate/usr/src/lib/libsmbfs/smb/ |
H A D | ntlm.c | 119 MD4_CTX ctx; in ntlm_compute_nt_hash() local 130 MD4Init(&ctx); in ntlm_compute_nt_hash() 131 MD4Update(&ctx, unipw, pwsz); in ntlm_compute_nt_hash() 132 MD4Final(hash, &ctx); in ntlm_compute_nt_hash() 210 ctx->ct_srv_chal, NTLM_CHAL_SZ); in ntlm_put_v1_responses() 222 if (ctx->ct_authflags & SMB_AT_LM1) { in ntlm_put_v1_responses() 497 if (ctx->ct_user[0] == '\0') in ntlm_put_v2_responses() 512 ucuser, ctx->ct_domain); in ntlm_put_v2_responses() 527 v2hash, ctx->ct_srv_chal, in ntlm_put_v2_responses() 528 ctx->ct_clnonce, NTLM_CHAL_SZ); in ntlm_put_v2_responses() [all …]
|
H A D | findvc.c | 67 findvc(struct smb_ctx *ctx, struct addrinfo *ai) in findvc() argument 69 smbioc_ossn_t *ssn = &ctx->ct_ssn; in findvc() 81 if (nsmb_ioctl(ctx->ct_dev_fd, SMBIOC_SSN_FIND, ssn) == -1) in findvc() 92 smb_ctx_findvc(struct smb_ctx *ctx) in smb_ctx_findvc() argument 98 if ((ctx->ct_flags & SMBCF_RESOLVED) == 0) in smb_ctx_findvc() 101 if (ctx->ct_dev_fd < 0) { in smb_ctx_findvc() 102 if ((err = smb_ctx_gethandle(ctx))) in smb_ctx_findvc() 106 for (ai = ctx->ct_addrinfo; ai; ai = ai->ai_next) { in smb_ctx_findvc() 113 err = findvc(ctx, ai); in smb_ctx_findvc() 138 smb_ctx_kill(struct smb_ctx *ctx) in smb_ctx_kill() argument [all …]
|
H A D | iod_wk.c | 71 smb_iod_work(smb_ctx_t *ctx) in smb_iod_work() argument 73 smbioc_ssn_work_t *work = &ctx->ct_work; in smb_iod_work() 76 DPRINT("server: %s", ctx->ct_srvname); in smb_iod_work() 101 if (nsmb_ioctl(ctx->ct_dev_fd, in smb_iod_work() 112 err = smb_iod_connect(ctx); in smb_iod_work() 133 if (nsmb_ioctl(ctx->ct_dev_fd, in smb_iod_work() 148 if (nsmb_ioctl(ctx->ct_dev_fd, in smb_iod_work() 172 if (ctx->ct_dev_fd != -1) { in smb_iod_work() 173 nsmb_close(ctx->ct_dev_fd); in smb_iod_work() 174 ctx->ct_dev_fd = -1; in smb_iod_work()
|
/illumos-gate/usr/src/uts/common/io/ixgbe/ |
H A D | ixgbe_tx.c | 222 if ((ctx != NULL) && ctx->lso_flag) { in ixgbe_ring_tx() 225 hdr_len = ctx->ip_hdr_len + ctx->mac_hdr_len + ctx->l4_hdr_len; in ixgbe_ring_tx() 604 ctx->mss = mss; in ixgbe_get_context() 779 if (ctx == NULL) in ixgbe_check_context() 804 (ctx->lso_flag && ((ctx->mss != last->mss) || in ixgbe_check_context() 835 if (ctx->lso_flag || ctx->hcksum_flags & HCK_IPV4_HDRCKSUM) { in ixgbe_fill_context() 843 if (ctx->lso_flag || ctx->hcksum_flags & HCK_PARTIALCKSUM) { in ixgbe_fill_context() 1002 if (ctx != NULL && ctx->lso_flag) { in ixgbe_tx_fill_ring() 1005 (mbsize - ctx->mac_hdr_len - ctx->ip_hdr_len in ixgbe_tx_fill_ring() 1015 if (ctx != NULL && ctx->lso_flag) { in ixgbe_tx_fill_ring() [all …]
|
/illumos-gate/usr/src/lib/smbsrv/libmlsvc/common/ |
H A D | eventlog_svc.c | 193 logr_context_t *ctx; in logr_hdlookup() local 218 if (ctx == NULL) in logr_context_data_free() 221 free(ctx->lc_source_name); in logr_context_data_free() 224 free(ctx); in logr_context_data_free() 225 ctx = NULL; in logr_context_data_free() 236 logr_context_t *ctx; in logr_hdalloc() local 244 free(ctx); in logr_hdalloc() 250 free(ctx); in logr_hdalloc() 340 logr_context_t *ctx; in logr_s_EventLogQueryCount() local 367 logr_context_t *ctx; in logr_s_EventLogGetOldestRec() local [all …]
|
/illumos-gate/usr/src/lib/policykit/libpolkit/common/ |
H A D | libpolkit-rbac.c | 65 LibPolKitContext *ctx; in libpolkit_new_context() local 67 ctx = g_new0 (LibPolKitContext, 1); in libpolkit_new_context() 68 ctx->magic = LIBPOLKIT_MAGIC; in libpolkit_new_context() 70 return ctx; in libpolkit_new_context() 79 libpolkit_free_context (LibPolKitContext *ctx) in libpolkit_free_context() argument 81 LIBPOLKIT_CHECK_CONTEXT (ctx, FALSE); in libpolkit_free_context() 83 ctx->magic = 0; in libpolkit_free_context() 84 g_free (ctx); in libpolkit_free_context() 102 LIBPOLKIT_CHECK_CONTEXT (ctx, LIBPOLKIT_RESULT_INVALID_CONTEXT); in libpolkit_get_allowed_resources_for_privilege_for_uid() 114 libpolkit_is_uid_allowed_for_privilege (LibPolKitContext *ctx, in libpolkit_is_uid_allowed_for_privilege() argument [all …]
|
/illumos-gate/usr/src/common/crypto/sha1/amd64/ |
H A D | sha1-x86_64.pl | 65 $ctx="%r8"; 99 mov 0($ctx),$A 100 mov 4($ctx),$B 101 mov 8($ctx),$C 102 mov 12($ctx),$D 103 mov 16($ctx),$E 252 add 0($ctx),$E 253 add 4($ctx),$T 254 add 8($ctx),$A 257 mov $E,0($ctx) [all …]
|
/illumos-gate/usr/src/tools/smatch/src/ |
H A D | parse.c | 678 if (!ctx->mode) in apply_modifiers() 680 ctype = ctx->mode->to_mode(ctx->ctype.base_type); in apply_modifiers() 1172 if (ctx->ctype.as) in attribute_address_space() 1283 if (ctx->ctype.base_type && ctx->ctype.base_type->type == SYM_STRUCT) in attribute_designated_init() 1295 if (ctx->ctype.base_type && ctx->ctype.base_type->type == SYM_UNION) in attribute_transparent_union() 1365 return mod[ctx->storage_class] | (ctx->is_inline ? MOD_INLINE : 0) in storage_modifiers() 1422 if (!ctx->storage_class || ctx->storage_class == SStatic in thread_specifier() 1424 ctx->is_tls = 1; in thread_specifier() 1441 ctx->is_inline = 1; in inline_specifier() 1971 saved = ctx.ctype; in declaration_list() [all …]
|
/illumos-gate/usr/src/lib/libresolv2/common/isc/ |
H A D | ev_streams.c | 71 if (ctx->streams != NULL) in evWrite() 72 ctx->streams->prev = new; in evWrite() 74 new->next = ctx->streams; in evWrite() 75 ctx->streams = new; in evWrite() 105 if (ctx->streams != NULL) in evRead() 108 new->next = ctx->streams; in evRead() 109 ctx->streams = new; in evRead() 173 ctx->strDone = NULL; in evCancelRW() 174 ctx->strLast = NULL; in evCancelRW() 244 ctx->strLast = str; in done() [all …]
|
/illumos-gate/usr/src/uts/common/io/igb/ |
H A D | igb_tx.c | 133 ctx = &tx_context; in igb_tx() 153 ctx = NULL; in igb_tx() 185 if (ctx && ctx->lso_flag) { in igb_tx() 186 hdr_len = ctx->mac_hdr_len + ctx->ip_hdr_len + ctx->l4_hdr_len; in igb_tx() 623 ctx->mss = mss; in igb_get_tx_context() 783 if (ctx == NULL) in igb_check_tx_context() 806 (ctx->lso_flag && ((ctx->mss != last->mss) || in igb_check_tx_context() 841 if (ctx->lso_flag || ctx->hcksum_flags & HCK_IPV4_HDRCKSUM) { in igb_fill_tx_context() 849 if (ctx->lso_flag || ctx->hcksum_flags & HCK_PARTIALCKSUM) { in igb_fill_tx_context() 1004 if (ctx != NULL && ctx->lso_flag) { in igb_tx_fill_ring() [all …]
|
/illumos-gate/usr/src/lib/gss_mechs/mech_dummy/mech/ |
H A D | dmech.c | 199 void *ctx; in dummy_gss_acquire_cred() 234 void *ctx; in dummy_gss_release_cred() 541 free(ctx); 569 void *ctx; in dummy_gss_sign() 598 void *ctx; in dummy_gss_verify() 639 void *ctx; in dummy_gss_seal() 680 void *ctx; in dummy_gss_unseal() 727 void *ctx; in dummy_gss_display_status() 747 void *ctx; in dummy_gss_indicate_mechs() 768 void *ctx; in dummy_gss_compare_name() [all …]
|
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/mech/ |
H A D | wrap_size_limit.c | 108 krb5_gss_ctx_id_rec *ctx; local 137 ctx = (krb5_gss_ctx_id_rec *) context_handle; 138 if (! ctx->established) { 143 if (ctx->proto == 1) { 149 while (sz > 0 && krb5_encrypt_size(sz, ctx->enc->enctype) + 16 > req_output_size) 166 if (sz < 16 + ctx->cksum_size) 169 sz -= (16 + ctx->cksum_size); 178 overhead = 7 + ctx->mech_used->length; 180 conflen = kg_confounder_size(ctx->k5_context, ctx->enc); 182 ohlen = g_token_size(ctx->mech_used, [all …]
|
/illumos-gate/usr/src/cmd/fs.d/smbclnt/smbutil/ |
H A D | discon.c | 46 struct smb_ctx *ctx; in cmd_discon() local 52 error = smb_ctx_alloc(&ctx); in cmd_discon() 56 error = smb_ctx_scan_argv(ctx, argc, argv, in cmd_discon() 61 error = smb_ctx_readrc(ctx); in cmd_discon() 68 error = smb_ctx_opt(ctx, opt, optarg); in cmd_discon() 77 error = smb_ctx_resolve(ctx); in cmd_discon() 89 error = smb_ctx_findvc(ctx); in cmd_discon() 99 error = smb_ctx_kill(ctx); in cmd_discon() 104 error, ctx->ct_fullserver); in cmd_discon() 108 smb_ctx_free(ctx); in cmd_discon()
|
/illumos-gate/usr/src/uts/common/gssapi/mechs/dummy/ |
H A D | dmech.c | 204 dummy_gss_ctx_id_rec *ctx; local 212 ASSERT(ctx->established == 1); 238 dummy_gss_ctx_id_rec *ctx; local 246 ASSERT(ctx->established == 1); 280 dummy_gss_ctx_id_rec *ctx; local 286 ASSERT(ctx->established == 1); 316 dummy_gss_ctx_id_rec *ctx; local 327 ASSERT(ctx->established == 1); 365 dummy_gss_ctx_id_t ctx; local 377 ctx->established = 1; [all …]
|
/illumos-gate/usr/src/uts/i86pc/dboot/ |
H A D | dboot_multiboot2.c | 104 struct dboot_multiboot2_iterate_ctx *ctx) in dboot_multiboot2_iterate() argument 108 uint32_t tag = ctx->dboot_iter_tag; in dboot_multiboot2_iterate() 114 if (callback(index, tagp, ctx) == B_TRUE) { in dboot_multiboot2_iterate() 144 struct dboot_multiboot2_iterate_ctx *ctx) in dboot_multiboot2_iterate_callback() argument 146 if (index == ctx->dboot_iter_index) { in dboot_multiboot2_iterate_callback() 147 ctx->dboot_iter_tagp = tagp; in dboot_multiboot2_iterate_callback() 156 struct dboot_multiboot2_iterate_ctx ctx = { in dboot_multiboot2_modcount() local 163 return (dboot_multiboot2_iterate(mbi, &ctx)); in dboot_multiboot2_modcount() 170 struct dboot_multiboot2_iterate_ctx ctx = { in dboot_multiboot2_modstart() local 190 struct dboot_multiboot2_iterate_ctx ctx = { in dboot_multiboot2_modend() local [all …]
|
/illumos-gate/usr/src/lib/smbsrv/libfksmbsrv/common/ |
H A D | fksmb_sign_pkcs.c | 93 rv = C_DigestUpdate(ctx, buf, len); in smb_md5_update() 95 (void) C_CloseSession(ctx); in smb_md5_update() 109 rv = C_DigestFinal(ctx, digest16, &len); in smb_md5_final() 110 (void) C_CloseSession(ctx); in smb_md5_final() 162 rv = C_SignUpdate(ctx, in, len); in smb2_hmac_update() 164 (void) C_CloseSession(ctx); in smb2_hmac_update() 185 (void) C_CloseSession(ctx); in smb2_hmac_final() 296 rv = C_SignUpdate(ctx, in, len); in smb3_cmac_update() 298 (void) C_CloseSession(ctx); in smb3_cmac_update() 313 rv = C_SignFinal(ctx, digest, &len); in smb3_cmac_final() [all …]
|
/illumos-gate/usr/src/common/crypto/aes/ |
H A D | aes_modes.c | 99 aes_ctx_t *aes_ctx = ctx; in aes_encrypt_contiguous_blocks() 103 rv = ctr_mode_contiguous_blocks(ctx, data, length, out, in aes_encrypt_contiguous_blocks() 106 rv = ccm_mode_encrypt_contiguous_blocks(ctx, data, length, in aes_encrypt_contiguous_blocks() 110 rv = gcm_mode_encrypt_contiguous_blocks(ctx, data, length, in aes_encrypt_contiguous_blocks() 114 rv = cbc_encrypt_contiguous_blocks(ctx, in aes_encrypt_contiguous_blocks() 118 rv = ecb_cipher_contiguous_blocks(ctx, data, length, out, in aes_encrypt_contiguous_blocks() 132 aes_ctx_t *aes_ctx = ctx; in aes_decrypt_contiguous_blocks() 136 rv = ctr_mode_contiguous_blocks(ctx, data, length, out, in aes_decrypt_contiguous_blocks() 141 rv = ccm_mode_decrypt_contiguous_blocks(ctx, data, length, in aes_decrypt_contiguous_blocks() 145 rv = gcm_mode_decrypt_contiguous_blocks(ctx, data, length, in aes_decrypt_contiguous_blocks() [all …]
|
/illumos-gate/usr/src/test/bhyve-tests/tests/inst_emul/ |
H A D | page_dirty.c | 40 read_dirty_bitmap(struct vmctx *ctx, uint8_t *bitmap) in read_dirty_bitmap() argument 111 struct vmctx *ctx = NULL; in test_dirty_tracking_disabled() local 123 ctx = test_initialize_flags(test_suite_name, 0); in test_dirty_tracking_disabled() 125 if ((vcpu = vm_vcpu_open(ctx, 0)) == NULL) { in test_dirty_tracking_disabled() 150 struct vmctx *ctx = NULL; in main() local 162 if ((vcpu = vm_vcpu_open(ctx, 0)) == NULL) { in main() 173 read_dirty_bitmap(ctx, dirty_bitmap); in main() 182 read_dirty_bitmap(ctx, dirty_bitmap); in main() 188 uint8_t *dptr = vm_map_gpa(ctx, MEM_LOC_STACK, 1); in main() 192 read_dirty_bitmap(ctx, dirty_bitmap); in main() [all …]
|
/illumos-gate/usr/src/lib/libgss/ |
H A D | g_exp_sec_context.c | 81 gss_union_ctx_id_t ctx; local 96 ctx = (gss_union_ctx_id_t)*context_handle; 97 mech = __gss_get_mechanism(ctx->mech_type); 104 &ctx->internal_ctx_id, &token); 110 length = token.length + 4 + ctx->mech_type->length; 118 length = ctx->mech_type->length; 126 (void) memcpy(buf+4, ctx->mech_type->elements, 127 (size_t)ctx->mech_type->length); 132 free(ctx->mech_type->elements); 133 free(ctx->mech_type); [all …]
|
/illumos-gate/usr/src/uts/common/crypto/io/ |
H A D | md4_mod.c | 90 #define PROV_MD4_CTX(ctx) ((md4_ctx_t *)(ctx)->cc_provider_private) argument 222 if (ctx->cc_provider_private == NULL) in md4_digest_init() 226 MD4Init(&PROV_MD4_CTX(ctx)->mc_md4_ctx); in md4_digest_init() 524 ASSERT(ctx->cc_provider_private != NULL); in md4_digest() 541 MD4Update(&PROV_MD4_CTX(ctx)->mc_md4_ctx, in md4_digest() 560 ctx->cc_provider_private = NULL; in md4_digest() 595 ctx->cc_provider_private = NULL; in md4_digest() 606 ASSERT(ctx->cc_provider_private != NULL); in md4_digest_update() 613 MD4Update(&PROV_MD4_CTX(ctx)->mc_md4_ctx, in md4_digest_update() 639 ASSERT(ctx->cc_provider_private != NULL); in md4_digest_final() [all …]
|
/illumos-gate/usr/src/lib/libsasl/include/ |
H A D | prop.h | 86 int prop_request(struct propctx *ctx, const char **names); 95 const struct propval *prop_get(struct propctx *ctx); 110 int prop_getnames(struct propctx *ctx, const char **names, 118 void prop_clear(struct propctx *ctx, int requests); 123 void prop_erase(struct propctx *ctx, const char *name); 129 void prop_dispose(struct propctx **ctx); 145 int prop_format(struct propctx *ctx, const char *sep, int seplen, 159 int prop_set(struct propctx *ctx, const char *name, 172 int prop_setvals(struct propctx *ctx, const char *name,
|
/illumos-gate/usr/src/cmd/sendmail/libmilter/ |
H A D | handler.c | 28 mi_handle_session(ctx) 29 SMFICTX_PTR ctx; 33 if (ctx == NULL) 35 ctx->ctx_id = (sthread_t) sthread_get_id(); 42 if (pthread_detach(ctx->ctx_id) != 0) 45 ret = mi_engine(ctx); 46 mi_clr_ctx(ctx); 47 ctx = NULL;
|
/illumos-gate/usr/src/test/bhyve-tests/tests/vmm/ |
H A D | pause_resume.c | 36 check_paused(struct vmctx *ctx) in check_paused() argument 50 const int vmfd = vm_get_device_fd(ctx); in check_paused() 62 struct vmctx *ctx; in main() local 65 ctx = create_test_vm(suite_name); in main() 66 if (ctx == NULL) { in main() 70 if ((vcpu = vm_vcpu_open(ctx, 0)) == NULL) { in main() 78 const int vmfd = vm_get_device_fd(ctx); in main() 82 if (check_paused(ctx)) { in main() 91 if (!check_paused(ctx)) { in main() 122 if (check_paused(ctx)) { in main() [all …]
|