/titanic_50/usr/src/cmd/praudit/ |
H A D | token.c | 147 exit_token(pr_context_t *context) in exit_token() argument 153 if ((returnstat = open_tag(context, TAG_ERRVAL)) != 0) in exit_token() 156 if ((returnstat = pr_adr_int32(context, (int32_t *)&retval, 1)) == 0) { in exit_token() 157 if (!(context->format & PRF_RAWM)) { in exit_token() 169 returnstat = pa_print(context, &uval, 0); in exit_token() 172 returnstat = close_tag(context, TAG_ERRVAL); in exit_token() 174 return (process_tag(context, TAG_RETVAL, returnstat, 1)); in exit_token() 191 file_token(pr_context_t *context) in file_token() argument 195 returnstat = pa_utime32(context, 0, 0); /* time from usecs */ in file_token() 198 returnstat = pa_file_string(context, returnstat, 1); in file_token() [all …]
|
H A D | printaudit.c | 50 static void checkpoint_progress(pr_context_t *context); 51 static int print_audit_common(pr_context_t *context, int flags, 53 static int token_processing(pr_context_t *context); 159 checkpoint_progress(pr_context_t *context) in checkpoint_progress() argument 161 int tokenid = context->tokenid; in checkpoint_progress() 164 if (context->data_mode == BUFMODE) { in checkpoint_progress() 165 context->inbuf_last = context->audit_adr->adr_now - 1; in checkpoint_progress() 166 context->outbuf_last = context->outbuf_p; in checkpoint_progress() 168 context->audit_rec_start = context->audit_adr->adr_now - 1; in checkpoint_progress() 170 context->audit_rec_len = 11; in checkpoint_progress() [all …]
|
H A D | prio.c | 43 pr_adr_char(pr_context_t *context, char *cp, int count) in pr_adr_char() argument 46 adr_t *adr = context->audit_adr; in pr_adr_char() 47 adrf_t *adrf = context->audit_adrf; in pr_adr_char() 49 if (context->data_mode == FILEMODE) { in pr_adr_char() 59 if (!pr_input_remaining(context, (sizeof (char) * count))) { in pr_adr_char() 72 pr_adr_short(pr_context_t *context, short *sp, int count) in pr_adr_short() argument 75 adr_t *adr = context->audit_adr; in pr_adr_short() 76 adrf_t *adrf = context->audit_adrf; in pr_adr_short() 78 if (context->data_mode == FILEMODE) { in pr_adr_short() 88 if (!pr_input_remaining(context, (sizeof (short) * count))) { in pr_adr_short() [all …]
|
H A D | praudit.h | 170 extern int open_tag(pr_context_t *context, int); 171 extern int finish_open_tag(pr_context_t *context); 172 extern int check_close_rec(pr_context_t *context, int); 173 extern int close_tag(pr_context_t *context, int); 174 extern int process_tag(pr_context_t *context, int, int, int); 179 extern int do_newline(pr_context_t *context, int); 191 extern int pa_print(pr_context_t *context, uval_t *uval, int flag); 192 extern int pa_reclen(pr_context_t *context, int status); 193 extern int pa_file_string(pr_context_t *context, int status, int flag); 194 extern int pa_adr_int32(pr_context_t *context, int status, int flag); [all …]
|
H A D | format.c | 61 static int do_mtime32(pr_context_t *context, int status, int flag, 63 static int do_mtime64(pr_context_t *context, int status, int flag, 120 do_newline(pr_context_t *context, int flag) in do_newline() argument 124 if (!(context->format & PRF_ONELINE) && (flag == 1)) in do_newline() 125 retstat = pr_putchar(context, '\n'); in do_newline() 126 else if (!(context->format & PRF_XMLM)) in do_newline() 127 retstat = pr_printf(context, "%s", context->SEPARATOR); in do_newline() 133 open_tag(pr_context_t *context, int tagnum) in open_tag() argument 139 if (!(context->format & PRF_XMLM)) in open_tag() 153 if (context->pending_flag && (tag->t_type != T_ATTRIBUTE)) { in open_tag() [all …]
|
/titanic_50/usr/src/lib/gss_mechs/mech_krb5/krb5/os/ |
H A D | def_realm.c | 85 krb5_context context = data; in krb5int_address_get_realm() local 102 krb5int_fqdn_get_realm(context, he->h_name, in krb5int_address_get_realm() 103 &context->default_realm); in krb5int_address_get_realm() 108 if (context->default_realm != 0) { in krb5int_address_get_realm() 131 krb5_get_default_realm(krb5_context context, char **lrealm) in krb5_get_default_realm() argument 140 if (!context || (context->magic != KV5M_CONTEXT)) in krb5_get_default_realm() 147 if (!context->default_realm) { in krb5_get_default_realm() 149 context->default_realm = strdup(realm); in krb5_get_default_realm() 150 if (context->default_realm == NULL) in krb5_get_default_realm() 155 if (!context->default_realm) { in krb5_get_default_realm() [all …]
|
/titanic_50/usr/src/lib/gss_mechs/mech_krb5/mech/ |
H A D | acquire_cred.c | 146 acquire_accept_cred(context, minor_status, desired_name, output_princ, cred) in acquire_accept_cred() argument 147 krb5_context context; in acquire_accept_cred() 174 code = krb5_kt_resolve(context, krb5_gss_keytab, &kt); 178 code = krb5_kt_default(context, &kt); 189 if ((code = krb5_kt_get_entry(context, kt, princ, 0, 0, &entry))) { 192 if (krb5_unparse_name(context, princ, &s_name) == 0) { 193 krb5_set_error_message(context, KG_KEYTAB_NOMATCH, 198 krb5_free_unparsed_name(context, s_name); 204 (void) krb5_kt_close(context, kt); 207 krb5_kt_free_entry(context, &entry); [all …]
|
H A D | add_cred.c | 85 krb5_context context; local 120 code = krb5_gss_init_context(&context); 127 context); 129 save_error_info(*minor_status, context); 130 krb5_free_context(context); 144 krb5_free_context(context); 153 krb5_free_context(context); 157 if (GSS_ERROR(kg_sync_ccache_name(context, minor_status))) { 158 save_error_info(*minor_status, context); 159 krb5_free_context(context); [all …]
|
H A D | init_sec_context.c | 106 static krb5_error_code get_credentials(context, cred, server, now, in get_credentials() argument 108 krb5_context context; in get_credentials() 121 if ((code = krb5_copy_principal(context, cred->princ, &in_creds.client))) 123 if ((code = krb5_copy_principal(context, server, &in_creds.server))) 129 code = krb5_get_credentials(context, 0, cred->ccache, 147 krb5_free_principal(context, in_creds.client); 149 krb5_free_principal(context, in_creds.server); 163 make_gss_checksum (krb5_context context, krb5_auth_context auth_context, in make_gss_checksum() argument 181 krb5_auth_con_getflags(context, auth_context, &con_flags); in make_gss_checksum() 182 krb5_auth_con_setflags(context, auth_context, in make_gss_checksum() [all …]
|
H A D | acquire_cred_with_pw.c | 97 acquire_accept_cred_with_pw(context, minor_status, desired_name, password, cred) in acquire_accept_cred_with_pw() argument 98 krb5_context context; in acquire_accept_cred_with_pw() 112 acquire_init_cred_with_pw(context, minor_status, desired_name, password, cred) in acquire_init_cred_with_pw() argument 113 krb5_context context; in acquire_init_cred_with_pw() 149 code = krb5_get_init_creds_password(context, &creds, desired_name, pw, 161 if ((code = krb5_cc_resolve(context, "MEMORY:GSSAPI", &ccache1))) 175 if ((code = krb5_cc_gen_new(context, &ccache2)) != 0) 178 (void) krb5_cc_close(context, ccache1); /* avoid leak; see above */ 180 if ((code = krb5_cc_initialize(context, ccache2, creds.client)) != 0) 183 if ((code = krb5_cc_store_cred(context, ccache2, &creds)) != 0) [all …]
|
/titanic_50/usr/src/uts/common/gssapi/mechs/krb5/krb5/krb/ |
H A D | ser_ctx.c | 104 krb5_context context; in krb5_context_size() local 130 if ((context = (krb5_context) arg)) { in krb5_context_size() 133 (context->in_tkt_ktype_count * sizeof(krb5_int32)) + in krb5_context_size() 134 (context->tgs_ktype_count * sizeof(krb5_int32))); in krb5_context_size() 136 if (context->default_realm) in krb5_context_size() 137 required += strlen(context->default_realm); in krb5_context_size() 139 if (context->os_context) in krb5_context_size() 142 (krb5_pointer) context->os_context, in krb5_context_size() 146 if (!kret && context->db_context) in krb5_context_size() 149 (krb5_pointer) context->db_context, in krb5_context_size() [all …]
|
H A D | kfree.c | 39 krb5_free_address(krb5_context context, krb5_address *val) in krb5_free_address() argument 48 krb5_free_addresses(krb5_context context, krb5_address **val) in krb5_free_addresses() argument 62 krb5_free_ap_rep(krb5_context context, register krb5_ap_rep *val) in krb5_free_ap_rep() argument 72 krb5_free_ap_req(krb5_context context, register krb5_ap_req *val) in krb5_free_ap_req() argument 75 krb5_free_ticket(context, val->ticket); in krb5_free_ap_req() 86 krb5_free_ap_rep_enc_part(krb5_context context, krb5_ap_rep_enc_part *val) in krb5_free_ap_rep_enc_part() argument 89 krb5_free_keyblock(context, val->subkey); in krb5_free_ap_rep_enc_part() 95 krb5_free_authenticator_contents(krb5_context context, krb5_authenticator *val) in krb5_free_authenticator_contents() argument 98 krb5_free_checksum(context, val->checksum); in krb5_free_authenticator_contents() 102 krb5_free_principal(context, val->client); in krb5_free_authenticator_contents() [all …]
|
/titanic_50/usr/src/lib/gss_mechs/mech_krb5/krb5/krb/ |
H A D | vfy_increds.c | 13 krb5_cc_copy_creds_except(krb5_context context, krb5_ccache incc, krb5_ccache outcc, krb5_principal… in krb5_cc_copy_creds_except() argument 22 if ((code = krb5_cc_set_flags(context, incc, flags)) != NULL) in krb5_cc_copy_creds_except() 25 if ((code = krb5_cc_set_flags(context, outcc, flags)) != NULL) in krb5_cc_copy_creds_except() 29 if ((code = krb5_cc_start_seq_get(context, incc, &cur)) != NULL) in krb5_cc_copy_creds_except() 33 while ((code = krb5_cc_next_cred(context, incc, &cur, &creds)) == NULL) { in krb5_cc_copy_creds_except() 34 if (krb5_principal_compare(context, princ, creds.server)) in krb5_cc_copy_creds_except() 37 code = krb5_cc_store_cred(context, outcc, &creds); in krb5_cc_copy_creds_except() 38 krb5_free_cred_contents(context, &creds); in krb5_cc_copy_creds_except() 53 (void) krb5_cc_set_flags(context, incc, flags); in krb5_cc_copy_creds_except() 55 code = krb5_cc_set_flags(context, incc, flags); in krb5_cc_copy_creds_except() [all …]
|
H A D | preauth2.c | 83 krb5_preauth_context *context = NULL; in krb5_init_preauth_context() local 128 context = malloc(sizeof(*context)); in krb5_init_preauth_context() 129 if (context == NULL) { in krb5_init_preauth_context() 133 context->modules = malloc(sizeof(context->modules[0]) * n_modules); in krb5_init_preauth_context() 134 if (context->modules == NULL) { in krb5_init_preauth_context() 136 free(context); in krb5_init_preauth_context() 139 memset(context->modules, 0, sizeof(context->modules[0]) * n_modules); in krb5_init_preauth_context() 140 context->n_modules = n_modules; in krb5_init_preauth_context() 160 context->modules[k].pa_type = pa_type; in krb5_init_preauth_context() 161 context->modules[k].enctypes = table->enctype_list; in krb5_init_preauth_context() [all …]
|
H A D | rd_req_dec.c | 73 krb5_rd_req_decrypt_tkt_part(krb5_context context, const krb5_ap_req *req, krb5_keytab keytab) in krb5_rd_req_decrypt_tkt_part() argument 83 if ((retval = krb5_kt_get_entry(context, keytab, req->ticket->server, in krb5_rd_req_decrypt_tkt_part() 97 retval = krb5_decrypt_tkt_part(context, &ktent.key, req->ticket); in krb5_rd_req_decrypt_tkt_part() 104 int kret = krb5_unparse_name(context, princ, &s_name); in krb5_rd_req_decrypt_tkt_part() 106 krb5_set_error_message(context, retval, in krb5_rd_req_decrypt_tkt_part() 112 krb5_free_unparsed_name(context, s_name); in krb5_rd_req_decrypt_tkt_part() 116 (void) krb5_kt_free_entry(context, &ktent); in krb5_rd_req_decrypt_tkt_part() 125 krb5int_check_clockskew2(krb5_context context, in krb5int_check_clockskew2() argument 132 retval = krb5_timeofday(context, ¤ttime); in krb5int_check_clockskew2() 137 if (!(skew < context->clockskew)) { in krb5int_check_clockskew2() [all …]
|
H A D | fwd_tgt.c | 41 krb5_fwd_tgt_creds(krb5_context context, krb5_auth_context auth_context, char *rhost, krb5_principa… in krb5_fwd_tgt_creds() argument 62 krb5_boolean old_use_conf_ktypes = context->use_conf_ktypes; in krb5_fwd_tgt_creds() 68 if ((retval = krb5int_cc_default(context, &cc))) in krb5_fwd_tgt_creds() 72 retval = krb5_auth_con_getkey (context, auth_context, &session_key); in krb5_fwd_tgt_creds() 77 krb5_free_keyblock (context, session_key); in krb5_fwd_tgt_creds() 85 retval = krb5_copy_principal (context, server, &in.server); in krb5_fwd_tgt_creds() 88 retval = krb5_copy_principal (context, client, &in.client); in krb5_fwd_tgt_creds() 91 retval = krb5_get_credentials (context, 0, cc, &in, &out); in krb5_fwd_tgt_creds() 97 krb5_free_creds (context, out); in krb5_fwd_tgt_creds() 99 krb5_free_cred_contents (context, &in); in krb5_fwd_tgt_creds() [all …]
|
H A D | get_in_tkt.c | 89 static krb5_error_code sort_krb5_padata_sequence(krb5_context context, 117 send_as_request2(krb5_context context, in send_as_request2() argument 143 if ((retval = krb5_timeofday(context, &time_now))) in send_as_request2() 154 retval = krb5_sendto_kdc2(context, packet, in send_as_request2() 155 krb5_princ_realm(context, request->client), in send_as_request2() 172 krb5_free_error(context, err_reply); in send_as_request2() 179 krb5_free_error(context, err_reply); in send_as_request2() 218 krb5_free_kdc_rep(context, as_reply); in send_as_request2() 225 krb5_free_kdc_rep(context, as_reply); in send_as_request2() 229 krb5_free_data(context, packet); in send_as_request2() [all …]
|
H A D | auth_con.c | 14 actx_copy_addr(krb5_context context, const krb5_address *inad, krb5_address **outad) in actx_copy_addr() argument 32 krb5_auth_con_init(krb5_context context, krb5_auth_context *auth_context) in krb5_auth_con_init() argument 46 (*auth_context)->req_cksumtype = context->default_ap_req_sumtype; in krb5_auth_con_init() 47 (*auth_context)->safe_cksumtype = context->default_safe_sumtype; in krb5_auth_con_init() 55 krb5_auth_con_free(krb5_context context, krb5_auth_context auth_context) in krb5_auth_con_free() argument 58 krb5_free_address(context, auth_context->local_addr); in krb5_auth_con_free() 60 krb5_free_address(context, auth_context->remote_addr); in krb5_auth_con_free() 62 krb5_free_address(context, auth_context->local_port); in krb5_auth_con_free() 64 krb5_free_address(context, auth_context->remote_port); in krb5_auth_con_free() 66 krb5_free_authenticator(context, auth_context->authentp); in krb5_auth_con_free() [all …]
|
/titanic_50/usr/src/lib/gss_mechs/mech_krb5/krb5/ccache/ |
H A D | ccfns.c | 34 krb5_cc_get_name (krb5_context context, krb5_ccache cache) in krb5_cc_get_name() argument 36 return cache->ops->get_name(context, cache); in krb5_cc_get_name() 40 krb5_cc_gen_new (krb5_context context, krb5_ccache *cache) in krb5_cc_gen_new() argument 42 return (*cache)->ops->gen_new(context, cache); in krb5_cc_gen_new() 46 krb5_cc_initialize(krb5_context context, krb5_ccache cache, in krb5_cc_initialize() argument 49 return cache->ops->init(context, cache, principal); in krb5_cc_initialize() 53 krb5_cc_destroy (krb5_context context, krb5_ccache cache) in krb5_cc_destroy() argument 55 return cache->ops->destroy(context, cache); in krb5_cc_destroy() 59 krb5_cc_close (krb5_context context, krb5_ccache cache) in krb5_cc_close() argument 61 return cache->ops->close(context, cache); in krb5_cc_close() [all …]
|
/titanic_50/usr/src/cmd/krb5/kadmin/dbutil/ |
H A D | kadm5_create.c | 55 add_admin_old_princ(void *handle, krb5_context context, 58 add_admin_sname_princ(void *handle, krb5_context context, 61 add_admin_princ(void *handle, krb5_context context, 64 static int add_admin_princs(void *handle, krb5_context context, char *realm); 88 krb5_context context; in kadm5_create() local 92 if ((retval = kadm5_init_krb5_context(&context))) in kadm5_create() 101 if ((retval = kadm5_get_config_params(context, 1, in kadm5_create() 107 retval = kadm5_create_magic_princs(&lparams, context); in kadm5_create() 109 kadm5_free_config_params(context, &lparams); in kadm5_create() 110 krb5_free_context(context); in kadm5_create() [all …]
|
/titanic_50/usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/device/ |
H A D | lm_dmae.c | 129 __drv_at(context->locking_policy->spinlock.irql, __drv_savesIRQL) 171 __drv_at(context->locking_policy->spinlock.irql, __drv_restoresIRQL ) 317 lm_dmae_context_t* context, in lm_dmae_initialize_command_by_block() argument 322 …command->opcode = lm_dmae_opcode(pdev, block->source, block->dest, TRUE, FALSE, context->change_en… in lm_dmae_initialize_command_by_block() 326 command->comp_addr_hi = context->completion_word_paddr.as_u32.high; in lm_dmae_initialize_command_by_block() 327 command->comp_addr_lo = context->completion_word_paddr.as_u32.low; in lm_dmae_initialize_command_by_block() 340 IN lm_dmae_context_t* context, in lm_dmae_operation_create() argument 345 DbgBreakIf(LM_DMAE_MODE_SINGLE_BLOCK != context->mode); in lm_dmae_operation_create() 346 DbgBreakIf(0 == context->completion_word_paddr.as_u64); in lm_dmae_operation_create() 359 operation->context = context; in lm_dmae_operation_create() [all …]
|
H A D | bnxe_context.c | 59 lm_context_info_t* context = NULL; in lm_setup_searcher_hash_info() local 69 context = pdev->context_info; in lm_setup_searcher_hash_info() 70 hash_info = &context->searcher_hash; in lm_setup_searcher_hash_info() 197 lm_context_info_t * context = NULL ; in lm_setup_context_pool() local 208 context = pdev->context_info; in lm_setup_context_pool() 210 if CHK_NULL(context) in lm_setup_context_pool() 212 DbgBreakIf( context == NULL ); in lm_setup_context_pool() 218 array = context->array ; in lm_setup_context_pool() 219 searcher_table = context->searcher_hash.searcher_table ; in lm_setup_context_pool() 221 mm_mem_zero( context, sizeof(lm_context_info_t) ) ; in lm_setup_context_pool() [all …]
|
/titanic_50/usr/src/lib/libsqlite/src/ |
H A D | func.c | 35 static void minmaxFunc(sqlite_func *context, int argc, const char **argv){ in minmaxFunc() argument 42 mask = (int)sqlite_user_data(context); in minmaxFunc() 56 sqlite_set_result_string(context, zBest, -1); in minmaxFunc() 62 static void typeofFunc(sqlite_func *context, int argc, const char **argv){ in typeofFunc() argument 64 sqlite_set_result_string(context, argv[1], -1); in typeofFunc() 70 static void lengthFunc(sqlite_func *context, int argc, const char **argv){ in lengthFunc() argument 82 sqlite_set_result_int(context, len); in lengthFunc() 88 static void absFunc(sqlite_func *context, int argc, const char **argv){ in absFunc() argument 94 sqlite_set_result_string(context, z, -1); in absFunc() 100 static void substrFunc(sqlite_func *context, int argc, const char **argv){ in substrFunc() argument [all …]
|
/titanic_50/usr/src/lib/krb5/kdb/ |
H A D | kdb_cpw.c | 65 get_key_data_kvno(context, count, data) in get_key_data_kvno() argument 66 krb5_context context; in get_key_data_kvno() 81 cleanup_key_data(context, count, data) in cleanup_key_data() argument 82 krb5_context context; in cleanup_key_data() 94 krb5_db_free(context, data[i].key_data_contents[j]); 98 krb5_db_free(context, data); 102 add_key_rnd(context, master_key, ks_tuple, ks_tuple_count, db_entry, kvno) in add_key_rnd() argument 103 krb5_context context; in add_key_rnd() 122 retval = krb5_build_principal_ext(context, &krbtgt_princ, 134 retval = krb5_db_get_principal(context, krbtgt_princ, &krbtgt_entry, [all …]
|
/titanic_50/usr/src/lib/gss_mechs/mech_krb5/krb5/rcache/ |
H A D | rcfns.c | 37 krb5_rc_initialize (krb5_context context, krb5_rcache id, krb5_deltat span) in krb5_rc_initialize() argument 39 return krb5_x(id->ops->init,(context, id, span)); in krb5_rc_initialize() 43 krb5_rc_recover_or_initialize (krb5_context context, krb5_rcache id, in krb5_rc_recover_or_initialize() argument 46 return krb5_x(id->ops->recover_or_init,(context, id, span)); in krb5_rc_recover_or_initialize() 50 krb5_rc_recover (krb5_context context, krb5_rcache id) in krb5_rc_recover() argument 52 return krb5_x((id)->ops->recover,(context, id)); in krb5_rc_recover() 56 krb5_rc_destroy (krb5_context context, krb5_rcache id) in krb5_rc_destroy() argument 58 return krb5_x((id)->ops->destroy,(context, id)); in krb5_rc_destroy() 62 krb5_rc_close (krb5_context context, krb5_rcache id) in krb5_rc_close() argument 64 return krb5_x((id)->ops->close,(context, id)); in krb5_rc_close() [all …]
|