/illumos-gate/usr/src/lib/smbsrv/libsmb/common/ |
H A D | smb_ctxbuf.c | 54 smb_ctxbuf_init(smb_ctxbuf_t *ctx, unsigned char *buf, size_t buflen) argument 56 if (ctx == 0 || buf == 0 || buflen == 0) 61 ctx->basep = buf; 62 ctx->curp = buf; 63 ctx->endp = &buf[buflen]; 75 * Returns 0 if the ctx is invalid. 78 smb_ctxbuf_len(smb_ctxbuf_t *ctx) argument 80 if (ctx == 0 || ctx->basep == 0 || 81 ctx 101 smb_ctxbuf_printf(smb_ctxbuf_t *ctx, const char *fmt, ...) argument [all...] |
/illumos-gate/usr/src/cmd/sendmail/libmilter/ |
H A D | handler.c | 21 ** ctx -- context structure 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/common/smbsrv/ |
H A D | smb_door_legacy.c | 51 smb_dr_ctx_t *ctx = MEM_MALLOC("CommonDoor", sizeof (smb_dr_ctx_t)); local 52 if (ctx) { 53 ctx->start_ptr = ctx->ptr = ptr; 54 ctx->end_ptr = ptr + size; 55 ctx->status = 0; 57 return (ctx); 61 smb_dr_decode_finish(smb_dr_ctx_t *ctx) argument 63 int status = ctx->status; 64 if (status == 0 && ctx 74 smb_dr_ctx_t *ctx = MEM_MALLOC("CommonDoor", sizeof (smb_dr_ctx_t)); local 84 smb_dr_encode_finish(smb_dr_ctx_t *ctx, unsigned int *used) argument 101 smb_dr_get_dword(smb_dr_ctx_t *ctx) argument 116 smb_dr_get_int32(smb_dr_ctx_t *ctx) argument 131 smb_dr_get_uint32(smb_dr_ctx_t *ctx) argument 137 smb_dr_get_string(smb_dr_ctx_t *ctx) argument 171 smb_dr_put_dword(smb_dr_ctx_t *ctx, DWORD num) argument 184 smb_dr_put_int32(smb_dr_ctx_t *ctx, int32_t num) argument 197 smb_dr_put_uint32(smb_dr_ctx_t *ctx, uint32_t num) argument 203 smb_dr_put_string(smb_dr_ctx_t *ctx, const char *buf) argument 234 smb_dr_get_int64(smb_dr_ctx_t *ctx) argument 249 smb_dr_get_uint64(smb_dr_ctx_t *ctx) argument 256 smb_dr_put_int64(smb_dr_ctx_t *ctx, int64_t num) argument 269 smb_dr_put_uint64(smb_dr_ctx_t *ctx, uint64_t num) argument 275 smb_dr_put_short(smb_dr_ctx_t *ctx, short num) argument 288 smb_dr_get_short(smb_dr_ctx_t *ctx) argument 303 smb_dr_put_ushort(smb_dr_ctx_t *ctx, unsigned short num) argument 309 smb_dr_get_ushort(smb_dr_ctx_t *ctx) argument 315 smb_dr_put_word(smb_dr_ctx_t *ctx, WORD num) argument 321 smb_dr_get_word(smb_dr_ctx_t *ctx) argument 327 smb_dr_put_BYTE(smb_dr_ctx_t *ctx, BYTE byte) argument 340 smb_dr_get_BYTE(smb_dr_ctx_t *ctx) argument 355 smb_dr_put_buf(smb_dr_ctx_t *ctx, unsigned char *start, int len) argument 369 smb_dr_get_buf(smb_dr_ctx_t *ctx, unsigned char *buf, int bufsize) argument 396 smb_dr_get_share(smb_dr_ctx_t *ctx, smb_share_t *si) argument 411 smb_dr_put_share(smb_dr_ctx_t *ctx, smb_share_t *si) argument [all...] |
/illumos-gate/usr/src/lib/libndmp/common/ |
H A D | libndmp_door_data.c | 52 ndmp_door_ctx_t *ctx = malloc(sizeof (ndmp_door_ctx_t)); local 53 if (ctx) { 54 ctx->start_ptr = ctx->ptr = ptr; 55 ctx->end_ptr = ptr + size; 56 ctx->status = 0; 58 return (ctx); 62 ndmp_door_decode_finish(ndmp_door_ctx_t *ctx) argument 64 int status = ctx->status; 65 if ((status == 0) && (ctx 75 ndmp_door_ctx_t *ctx = malloc(sizeof (ndmp_door_ctx_t)); local 85 ndmp_door_encode_finish(ndmp_door_ctx_t *ctx, unsigned int *used) argument 101 ndmp_door_get_int32(ndmp_door_ctx_t *ctx) argument 116 ndmp_door_get_uint32(ndmp_door_ctx_t *ctx) argument 122 ndmp_door_get_string(ndmp_door_ctx_t *ctx) argument 152 ndmp_door_put_int32(ndmp_door_ctx_t *ctx, int32_t num) argument 165 ndmp_door_put_uint32(ndmp_door_ctx_t *ctx, uint32_t num) argument 171 ndmp_door_put_string(ndmp_door_ctx_t *ctx, char *buf) argument 201 ndmp_door_get_int64(ndmp_door_ctx_t *ctx) argument 216 ndmp_door_get_uint64(ndmp_door_ctx_t *ctx) argument 223 ndmp_door_put_int64(ndmp_door_ctx_t *ctx, int64_t num) argument 236 ndmp_door_put_uint64(ndmp_door_ctx_t *ctx, uint64_t num) argument 242 ndmp_door_put_short(ndmp_door_ctx_t *ctx, short num) argument 255 ndmp_door_get_short(ndmp_door_ctx_t *ctx) argument 270 ndmp_door_put_ushort(ndmp_door_ctx_t *ctx, unsigned short num) argument 276 ndmp_door_get_ushort(ndmp_door_ctx_t *ctx) argument 282 ndmp_door_put_buf(ndmp_door_ctx_t *ctx, unsigned char *start, int len) argument 296 ndmp_door_get_buf(ndmp_door_ctx_t *ctx, unsigned char *buf, int bufsize) argument [all...] |
/illumos-gate/usr/src/lib/auditd_plugins/syslog/ |
H A D | systoken.c | 83 parse_token(parse_context_t *ctx) argument 98 adrm_char(&(ctx->adr), &tokenid, 1); 101 rc = (*tokentable[tokenid].func)(ctx); 113 file_token(parse_context_t *ctx) argument 121 file64_token(parse_context_t *ctx) argument 127 common_header(parse_context_t *ctx) argument 129 adrm_u_int32(&(ctx->adr), &(ctx->out.sf_reclen), 1); 130 ctx->adr.adr_now += sizeof (char); /* version number */ 131 adrm_u_short(&(ctx 139 header_token(parse_context_t *ctx) argument 149 header32_ex_token(parse_context_t *ctx) argument 165 header64_ex_token(parse_context_t *ctx) argument 181 header64_token(parse_context_t *ctx) argument 200 trailer_token(parse_context_t *ctx) argument 225 arbitrary_data_token(parse_context_t *ctx) argument 262 opaque_token(parse_context_t *ctx) argument 277 return_value32_token(parse_context_t *ctx) argument 297 return_value64_token(parse_context_t *ctx) argument 317 sequence_token(parse_context_t *ctx) argument 330 text_token(parse_context_t *ctx) argument 381 tid_token(parse_context_t *ctx) argument 407 ip_addr_token(parse_context_t *ctx) argument 422 ip_addr_ex_token(parse_context_t *ctx) argument 448 ip_token(parse_context_t *ctx) argument 463 iport_token(parse_context_t *ctx) argument 478 group_token(parse_context_t *ctx) argument 493 newgroup_token(parse_context_t *ctx) argument 513 argument32_token(parse_context_t *ctx) argument 530 argument64_token(parse_context_t *ctx) argument 546 acl_token(parse_context_t *ctx) argument 562 ace_token(parse_context_t *ctx) argument 581 attribute_token(parse_context_t *ctx) argument 600 attribute32_token(parse_context_t *ctx) argument 619 attribute64_token(parse_context_t *ctx) argument 645 cmd_token(parse_context_t *ctx) argument 672 exit_token(parse_context_t *ctx) argument 691 exec_args_token(parse_context_t *ctx) argument 711 exec_env_token(parse_context_t *ctx) argument 726 liaison_token(parse_context_t *ctx) argument 739 path_token(parse_context_t *ctx) argument 771 path_attr_token(parse_context_t *ctx) argument 817 s5_IPC_perm_token(parse_context_t *ctx) argument 824 common_process(parse_context_t *ctx) argument 852 process32_token(parse_context_t *ctx) argument 881 process32_ex_token(parse_context_t *ctx) argument 909 process64_token(parse_context_t *ctx) argument 939 process64_ex_token(parse_context_t *ctx) argument 962 s5_IPC_token(parse_context_t *ctx) argument 979 socket_token(parse_context_t *ctx) argument 999 socket_ex_token(parse_context_t *ctx) argument 1013 common_subject(parse_context_t *ctx) argument 1040 subject32_token(parse_context_t *ctx) argument 1070 subject32_ex_token(parse_context_t *ctx) argument 1098 subject64_token(parse_context_t *ctx) argument 1128 subject64_ex_token(parse_context_t *ctx) argument 1144 xatom_token(parse_context_t *ctx) argument 1153 xselect_token(parse_context_t *ctx) argument 1255 skip_bytes(parse_context_t *ctx) argument 1264 skip_string(parse_context_t *ctx) argument 1282 get_bytes_to_string(parse_context_t *ctx, size_t *l, char **p, size_t offset) argument 1312 host_token(parse_context_t *ctx) argument 1326 useofauth_token(parse_context_t *ctx) argument 1342 user_token(parse_context_t *ctx) argument 1357 zonename_token(parse_context_t *ctx) argument 1373 fmri_token(parse_context_t *ctx) argument 1381 xcolormap_token(parse_context_t *ctx) argument 1387 xcursor_token(parse_context_t *ctx) argument 1393 xfont_token(parse_context_t *ctx) argument 1399 xgc_token(parse_context_t *ctx) argument 1405 xpixmap_token(parse_context_t *ctx) argument 1411 xwindow_token(parse_context_t *ctx) argument 1423 xgeneric(parse_context_t *ctx) argument 1436 xproperty_token(parse_context_t *ctx) argument 1447 xclient_token(parse_context_t *ctx) argument 1466 privilege_token(parse_context_t *ctx) argument 1485 secflags_token(parse_context_t *ctx) argument 1501 label_token(parse_context_t *ctx) argument 1521 useofpriv_token(parse_context_t *ctx) argument [all...] |
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/krb/ |
H A D | kerrs.c | 41 krb5_set_error_message (krb5_context ctx, krb5_error_code code, argument 45 if (ctx == NULL) 51 "krb5_set_error_message(ctx=%p/err=%p, code=%ld, ...)\n", 52 ctx, &ctx->err, (long) code); 54 krb5int_vset_error (&ctx->err, code, fmt, args); 57 fprintf(stderr, "->%s\n", ctx->err.msg); 63 krb5_vset_error_message (krb5_context ctx, krb5_error_code code, argument 68 fprintf(stderr, "krb5_vset_error_message(ctx=%p, code=%ld, ...)\n", 69 ctx, (lon 81 krb5_get_error_message(krb5_context ctx, krb5_error_code code) argument 93 krb5_free_error_message(krb5_context ctx, const char *msg) argument 105 krb5_clear_error_message(krb5_context ctx) argument [all...] |
/illumos-gate/usr/src/lib/libresolv2/common/isc/ |
H A D | heap.c | 55 heap_context ctx; local 60 ctx = (heap_context)malloc(sizeof (struct heap_context)); 61 if (ctx == NULL) 64 ctx->array_size = 0; 66 ctx->array_size_increment = ARRAY_SIZE_INCREMENT; 68 ctx->array_size_increment = array_size_increment; 69 ctx->heap_size = 0; 70 ctx->heap = NULL; 71 ctx->higher_priority = higher_priority; 72 ctx 77 heap_free(heap_context ctx) argument 91 heap_resize(heap_context ctx) argument 106 float_up(heap_context ctx, int i, void *elt) argument 122 sink_down(heap_context ctx, int i, void *elt) argument 146 heap_insert(heap_context ctx, void *elt) argument 164 heap_delete(heap_context ctx, int i) argument 189 heap_increased(heap_context ctx, int i) argument 201 heap_decreased(heap_context ctx, int i) argument 213 heap_element(heap_context ctx, int i) argument 223 heap_for_each(heap_context ctx, heap_for_each_func action, void *uap) argument [all...] |
H A D | ctl_clnt.c | 60 #define donefunc_p(ctx) ((ctx).donefunc != NULL) 77 struct ctl_cctx * ctx; member in struct:ctl_tran 154 struct ctl_cctx *ctx; local 159 ctx = memget(sizeof *ctx); 160 if (ctx == NULL) { 164 ctx->state = initializing; 165 ctx->ev = lev; 166 ctx 223 ctl_endclient(struct ctl_cctx *ctx) argument 236 ctl_command(struct ctl_cctx *ctx, const char *cmd, size_t len, ctl_clntdone donefunc, void *uap) argument 275 new_tran(struct ctl_cctx *ctx, ctl_clntdone donefunc, void *uap, int w) argument 293 start_write(struct ctl_cctx *ctx) argument 339 destroy(struct ctl_cctx *ctx, int notify) argument 389 error(struct ctl_cctx *ctx) argument 395 new_state(struct ctl_cctx *ctx, enum state new_state) argument 409 struct ctl_cctx *ctx = uap; local 445 struct ctl_cctx *ctx = tran->ctx; local 462 start_read(struct ctl_cctx *ctx) argument 478 stop_read(struct ctl_cctx *ctx) argument 488 struct ctl_cctx *ctx = uap; local 572 start_timer(struct ctl_cctx *ctx) argument 585 stop_timer(struct ctl_cctx *ctx) argument 599 touch_timer(struct ctl_cctx *ctx) argument 608 struct ctl_cctx *ctx = uap; local [all...] |
/illumos-gate/usr/src/cmd/nscd/ |
H A D | getauth.c | 34 #define nam_db ctx->nsc_db[0] 38 auth_init_ctx(nsc_ctx_t *ctx) { argument 39 ctx->dbname = NSS_DBNAM_AUTHATTR; 40 ctx->file_name = "/etc/security/auth_attr"; 41 ctx->db_count = 1;
|
H A D | getbootp.c | 34 #define nam_db ctx->nsc_db[0] 38 bootp_init_ctx(nsc_ctx_t *ctx) { argument 39 ctx->dbname = NSS_DBNAM_BOOTPARAMS; 40 ctx->file_name = "/etc/bootparams"; 41 ctx->db_count = 1;
|
H A D | getnetmasks.c | 34 #define key_db ctx->nsc_db[0] 39 netmask_init_ctx(nsc_ctx_t *ctx) { argument 40 ctx->dbname = NSS_DBNAM_NETMASKS; 41 ctx->db_count = 1; 42 ctx->file_name = "/etc/inet/netmasks";
|
H A D | getprinter.c | 34 #define nam_db ctx->nsc_db[0] 39 printer_init_ctx(nsc_ctx_t *ctx) { argument 40 ctx->dbname = NSS_DBNAM_PRINTERS; 41 ctx->file_name = "/etc/printers.conf"; 42 ctx->db_count = 1;
|
H A D | getprof.c | 34 #define nam_db ctx->nsc_db[0] 38 prof_init_ctx(nsc_ctx_t *ctx) { argument 39 ctx->dbname = NSS_DBNAM_PROFATTR; 40 ctx->file_name = "/etc/security/prof_attr"; 41 ctx->db_count = 1;
|
H A D | getuser.c | 34 #define nam_db ctx->nsc_db[0] 38 user_init_ctx(nsc_ctx_t *ctx) { argument 39 ctx->dbname = NSS_DBNAM_USERATTR; 40 ctx->file_name = "/etc/user_attr"; 41 ctx->db_count = 1;
|
H A D | getproto.c | 34 #define nam_db ctx->nsc_db[0] 35 #define num_db ctx->nsc_db[1] 41 proto_init_ctx(nsc_ctx_t *ctx) { argument 42 ctx->dbname = NSS_DBNAM_PROTOCOLS; 43 ctx->file_name = "/etc/inet/protocols"; 44 ctx->db_count = 2;
|
H A D | getrpc.c | 34 #define nam_db ctx->nsc_db[0] 35 #define num_db ctx->nsc_db[1] 41 rpc_init_ctx(nsc_ctx_t *ctx) { argument 42 ctx->dbname = NSS_DBNAM_RPC; 43 ctx->file_name = "/etc/rpc"; 44 ctx->db_count = 2;
|
/illumos-gate/usr/src/common/crypto/skein/ |
H A D | skein.c | 16 void Skein_256_Process_Block(Skein_256_Ctxt_t *ctx, const uint8_t *blkPtr, 18 void Skein_512_Process_Block(Skein_512_Ctxt_t *ctx, const uint8_t *blkPtr, 20 void Skein1024_Process_Block(Skein1024_Ctxt_t *ctx, const uint8_t *blkPtr, 26 Skein_256_Init(Skein_256_Ctxt_t *ctx, size_t hashBitLen) argument 34 ctx->h.hashBitLen = hashBitLen; /* output hash bit count */ 39 bcopy(SKEIN_256_IV_256, ctx->X, sizeof (ctx->X)); 42 bcopy(SKEIN_256_IV_224, ctx->X, sizeof (ctx->X)); 45 bcopy(SKEIN_256_IV_160, ctx 90 Skein_256_InitExt(Skein_256_Ctxt_t *ctx, size_t hashBitLen, uint64_t treeInfo, const uint8_t *key, size_t keyBytes) argument 158 Skein_256_Update(Skein_256_Ctxt_t *ctx, const uint8_t *msg, size_t msgByteCnt) argument 211 Skein_256_Final(Skein_256_Ctxt_t *ctx, uint8_t *hashVal) argument 262 Skein_512_Init(Skein_512_Ctxt_t *ctx, size_t hashBitLen) argument 327 Skein_512_InitExt(Skein_512_Ctxt_t *ctx, size_t hashBitLen, uint64_t treeInfo, const uint8_t *key, size_t keyBytes) argument 394 Skein_512_Update(Skein_512_Ctxt_t *ctx, const uint8_t *msg, size_t msgByteCnt) argument 447 Skein_512_Final(Skein_512_Ctxt_t *ctx, uint8_t *hashVal) argument 498 Skein1024_Init(Skein1024_Ctxt_t *ctx, size_t hashBitLen) argument 560 Skein1024_InitExt(Skein1024_Ctxt_t *ctx, size_t hashBitLen, uint64_t treeInfo, const uint8_t *key, size_t keyBytes) argument 627 Skein1024_Update(Skein1024_Ctxt_t *ctx, const uint8_t *msg, size_t msgByteCnt) argument 680 Skein1024_Final(Skein1024_Ctxt_t *ctx, uint8_t *hashVal) argument 732 Skein_256_Final_Pad(Skein_256_Ctxt_t *ctx, uint8_t *hashVal) argument 753 Skein_512_Final_Pad(Skein_512_Ctxt_t *ctx, uint8_t *hashVal) argument 774 Skein1024_Final_Pad(Skein1024_Ctxt_t *ctx, uint8_t *hashVal) argument 797 Skein_256_Output(Skein_256_Ctxt_t *ctx, uint8_t *hashVal) argument 837 Skein_512_Output(Skein_512_Ctxt_t *ctx, uint8_t *hashVal) argument 877 Skein1024_Output(Skein1024_Ctxt_t *ctx, uint8_t *hashVal) argument [all...] |
/illumos-gate/usr/src/lib/gss_mechs/mech_spnego/mech/ |
H A D | spnego_kerrs.c | 52 spnego_set_error_message (spnego_gss_ctx_id_t ctx, spnego_error_code code, argument 56 if (ctx == NULL) 62 "spnego_set_error_message(ctx=%p/err=%p, code=%ld, ...)\n", 63 ctx, &ctx->err, (long) code); 65 krb5int_vset_error (&ctx->err, code, fmt, args); 68 fprintf(stderr, "->%s\n", ctx->err.msg); 74 spnego_vset_error_message (spnego_gss_ctx_id_t ctx, spnego_error_code code, argument 79 fprintf(stderr, "spnego_vset_error_message(ctx=%p, code=%ld, ...)\n", 80 ctx, (lon 92 spnego_get_error_message(spnego_gss_ctx_id_t ctx, spnego_error_code code) argument 104 spnego_free_error_message(spnego_gss_ctx_id_t ctx, const char *msg) argument 116 spnego_clear_error_message(spnego_gss_ctx_id_t ctx) argument [all...] |
/illumos-gate/usr/src/uts/common/fs/zfs/ |
H A D | skein_zfs.c | 38 Skein_512_Ctxt_t ctx; local 41 bcopy(ctx_template, &ctx, sizeof (ctx)); 42 (void) Skein_512_Update(&ctx, buf, size); 43 (void) Skein_512_Final(&ctx, (uint8_t *)zcp); 44 bzero(&ctx, sizeof (ctx)); 72 Skein_512_Ctxt_t *ctx; local 74 ctx = kmem_zalloc(sizeof (*ctx), KM_SLEE 87 Skein_512_Ctxt_t *ctx = ctx_template; local [all...] |
H A D | edonr_zfs.c | 41 EdonRState ctx; local 44 bcopy(ctx_template, &ctx, sizeof (ctx)); 45 EdonRUpdate(&ctx, buf, size * 8); 46 EdonRFinal(&ctx, digest); 69 EdonRState *ctx; local 89 ctx = kmem_zalloc(sizeof (*ctx), KM_SLEEP); 90 EdonRInit(ctx, EDONR_MODE); 91 EdonRUpdate(ctx, salt_bloc 98 EdonRState *ctx = ctx_template; local [all...] |
/illumos-gate/usr/src/lib/libsmbfs/smb/ |
H A D | ctx.c | 32 * $Id: ctx.c,v 1.32.70.2 2005/06/02 00:55:40 lindak Exp $ 110 rpc_cleanup_smbctx(struct smb_ctx *ctx) argument 113 (*close_hook)(ctx); 188 dump_ctx(char *where, struct smb_ctx *ctx) argument 191 dump_ctx_flags(ctx->ct_flags); 193 if (ctx->ct_locname) 194 printf(" localname=\"%s\"", ctx->ct_locname); 198 if (ctx->ct_fullserver) 199 printf(" fullserver=\"%s\"", ctx->ct_fullserver); 203 if (ctx 226 smb_ctx_t *ctx; local 245 smb_ctx_init(struct smb_ctx *ctx) argument 315 smb_ctx_scan_argv(struct smb_ctx *ctx, int argc, char **argv, int minlevel, int maxlevel, int sharetype) argument 388 smb_ctx_free(smb_ctx_t *ctx) argument 395 smb_ctx_done(struct smb_ctx *ctx) argument 465 smb_ctx_parseunc(struct smb_ctx *ctx, const char *unc, int minlevel, int maxlevel, int sharetype, const char **next) argument 631 smb_ctx_setcharset(struct smb_ctx *ctx, const char *arg) argument 666 smb_ctx_setauthflags(struct smb_ctx *ctx, int flags) argument 673 smb_ctx_setfullserver(struct smb_ctx *ctx, const char *name) argument 686 smb_ctx_setserver(struct smb_ctx *ctx, const char *name) argument 694 smb_ctx_setuser(struct smb_ctx *ctx, const char *name, int from_cmd) argument 726 smb_ctx_setdomain(struct smb_ctx *ctx, const char *name, int from_cmd) argument 753 smb_ctx_setpassword(struct smb_ctx *ctx, const char *passwd, int from_cmd) argument 803 smb_ctx_setpwhash(smb_ctx_t *ctx, const uchar_t *nthash, const uchar_t *lmhash) argument 826 smb_ctx_setshare(struct smb_ctx *ctx, const char *share, int stype) argument 844 smb_ctx_setsrvaddr(struct smb_ctx *ctx, const char *addr) argument 860 smb_ctx_setsigning(struct smb_ctx *ctx, int enable, int require) argument 916 smb_parse_secopts(struct smb_ctx *ctx, const char *arg) argument 967 smb_ctx_opt(struct smb_ctx *ctx, int opt, const char *arg) argument 1045 smb_ctx_resolve(struct smb_ctx *ctx) argument 1167 smb_ctx_gethandle(struct smb_ctx *ctx) argument 1208 smb_ctx_get_ssn(struct smb_ctx *ctx) argument 1250 smb_ctx_get_tree(struct smb_ctx *ctx) argument 1307 smb_ctx_flags2(struct smb_ctx *ctx) argument 1360 smb_ctx_readrcsection(struct smb_ctx *ctx, const char *sname, int level) argument 1498 smb_ctx_readrc(struct smb_ctx *ctx) argument [all...] |
/illumos-gate/usr/src/lib/pkcs11/pkcs11_tpm/common/ |
H A D | sign_mgr.c | 32 SIGN_VERIFY_CONTEXT * ctx, 45 if (! sess || ! ctx) { 48 if (ctx->active != FALSE) { 95 ctx->context_len = 0; 96 ctx->context = NULL; 126 ctx->context_len = sizeof (RSA_DIGEST_CONTEXT); 127 ctx->context = (CK_BYTE *)malloc( 129 if (! ctx->context) { 132 (void) memset(ctx->context, 0x0, 155 ctx 31 sign_mgr_init(SESSION * sess, SIGN_VERIFY_CONTEXT * ctx, CK_MECHANISM * mech, CK_BBOOL recover_mode, CK_OBJECT_HANDLE key) argument 223 sign_mgr_cleanup(SIGN_VERIFY_CONTEXT *ctx) argument 250 sign_mgr_sign(SESSION * sess, CK_BBOOL length_only, SIGN_VERIFY_CONTEXT * ctx, CK_BYTE * in_data, CK_ULONG in_data_len, CK_BYTE * out_data, CK_ULONG * out_data_len) argument 304 sign_mgr_sign_update(SESSION * sess, SIGN_VERIFY_CONTEXT * ctx, CK_BYTE * in_data, CK_ULONG in_data_len) argument 332 sign_mgr_sign_final(SESSION * sess, CK_BBOOL length_only, SIGN_VERIFY_CONTEXT * ctx, CK_BYTE * signature, CK_ULONG * sig_len) argument 358 sign_mgr_sign_recover(SESSION * sess, CK_BBOOL length_only, SIGN_VERIFY_CONTEXT * ctx, CK_BYTE * in_data, CK_ULONG in_data_len, CK_BYTE * out_data, CK_ULONG * out_data_len) argument [all...] |
/illumos-gate/usr/src/cmd/smbsrv/smbd/ |
H A D | smbd_authsvc.c | 226 authsvc_context_t *ctx; local 272 ctx = smbd_authctx_create(); 273 if (ctx == NULL) { 281 ctx->ctx_socket = ns; 283 rc = pthread_create(&tid, &attr, smbd_authsvc_work, ctx); 289 smbd_authctx_destroy(ctx); 292 ctx = NULL; /* given to the new thread */ 319 authsvc_context_t *ctx; local 321 ctx = malloc(sizeof (*ctx)); 348 smbd_authctx_destroy(authsvc_context_t *ctx) argument 387 authsvc_context_t *ctx = arg; local 478 smbd_authsvc_dispatch(authsvc_context_t *ctx) argument 534 smbd_authsvc_oldreq(authsvc_context_t *ctx) argument 561 smbd_authsvc_clinfo(authsvc_context_t *ctx) argument 581 smbd_authsvc_esfirst(authsvc_context_t *ctx) argument 683 smbd_authsvc_esnext(authsvc_context_t *ctx) argument 727 smbd_authsvc_escmn(authsvc_context_t *ctx) argument 835 smbd_raw_ntlmssp_esfirst(authsvc_context_t *ctx) argument 862 smbd_raw_ntlmssp_esnext(authsvc_context_t *ctx) argument 884 smbd_authsvc_gettoken(authsvc_context_t *ctx) argument [all...] |
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/mech/ |
H A D | get_tkt_flags.c | 41 krb5_gss_ctx_id_rec *ctx; local 44 ctx = (krb5_gss_ctx_id_rec *) context_handle; 46 rep.value = &ctx->krb_flags; 47 rep.length = sizeof(ctx->krb_flags);
|
/illumos-gate/usr/src/common/crypto/modes/ |
H A D | cbc.c | 42 cbc_encrypt_contiguous_blocks(cbc_ctx_t *ctx, char *data, size_t length, argument 59 if (length + ctx->cbc_remainder_len < block_size) { 62 (uint8_t *)ctx->cbc_remainder + ctx->cbc_remainder_len, 64 ctx->cbc_remainder_len += length; 65 ctx->cbc_copy_to = datap; 69 lastp = (uint8_t *)ctx->cbc_iv; 75 if (ctx->cbc_remainder_len > 0) { 76 need = block_size - ctx->cbc_remainder_len; 81 bcopy(datap, &((uint8_t *)ctx 169 cbc_decrypt_contiguous_blocks(cbc_ctx_t *ctx, char *data, size_t length, crypto_data_t *out, size_t block_size, int (*decrypt)(const void *, const uint8_t *, uint8_t *), void (*copy_block)(uint8_t *, uint8_t *), void (*xor_block)(uint8_t *, uint8_t *)) argument [all...] |