Searched refs:context (Results 276 - 300 of 1533) sorted by relevance

<<11121314151617181920>>

/freebsd-12-stable/crypto/heimdal/lib/gssapi/krb5/
H A Dprf.c45 krb5_context context; local
66 GSSAPI_KRB5_INIT (&context);
70 _gsskrb5i_get_acceptor_subkey(ctx, context, &key);
73 _gsskrb5i_get_initiator_subkey(ctx, context, &key);
87 ret = krb5_crypto_init(context, key, 0, &crypto);
88 krb5_free_keyblock (context, key);
98 krb5_crypto_destroy(context, crypto);
111 krb5_crypto_destroy(context, crypto);
124 ret = krb5_crypto_prf(context, crypto, &input, &output);
129 krb5_crypto_destroy(context, crypt
[all...]
/freebsd-12-stable/crypto/heimdal/lib/krb5/
H A Dmk_rep.c37 krb5_mk_rep(krb5_context context, argument
58 ret = krb5_auth_con_generatelocalsubkey(context,
66 ret = krb5_copy_keyblock(context, auth_context->local_subkey,
70 krb5_set_error_message(context, ENOMEM,
78 krb5_generate_seq_number (context,
83 krb5_set_error_message(context, ENOMEM, "malloc: out of memory");
99 krb5_abortx(context, "internal error in ASN.1 encoder");
100 ret = krb5_crypto_init(context, auth_context->keyblock,
106 ret = krb5_encrypt (context,
112 krb5_crypto_destroy(context, crypt
[all...]
H A Dcodec.c39 krb5_decode_EncTicketPart (krb5_context context,
50 krb5_encode_EncTicketPart (krb5_context context,
61 krb5_decode_EncASRepPart (krb5_context context,
72 krb5_encode_EncASRepPart (krb5_context context,
83 krb5_decode_EncTGSRepPart (krb5_context context,
94 krb5_encode_EncTGSRepPart (krb5_context context,
105 krb5_decode_EncAPRepPart (krb5_context context,
116 krb5_encode_EncAPRepPart (krb5_context context,
127 krb5_decode_Authenticator (krb5_context context,
138 krb5_encode_Authenticator (krb5_context context,
[all...]
H A Daname_to_localname.c37 krb5_aname_to_localname (krb5_context context, argument
48 ret = krb5_get_default_realms (context, &lrealms);
59 krb5_free_host_realm (context, lrealms);
72 ret = krb5_copy_principal(context, aname, &rootprinc);
76 userok = krb5_kuserok(context, rootprinc, res);
77 krb5_free_principal(context, rootprinc);
H A Dsalt-arcfour.c37 ARCFOUR_string_to_key(krb5_context context, argument
52 krb5_set_error_message(context, ret, N_("malloc: out of memory", ""));
60 krb5_set_error_message (context, ret,
67 krb5_set_error_message (context, ENOMEM,
75 krb5_set_error_message (context, ret,
92 krb5_set_error_message (context, ENOMEM, N_("malloc: out of memory", ""));
H A Dacache.c55 cc_context_t context; member in struct:krb5_acc
79 translate_cc_error(krb5_context context, cc_int32 error) argument
82 krb5_clear_error_message(context);
90 init_ccapi(krb5_context context) argument
97 if (context)
98 krb5_clear_error_message(context);
102 if (context)
103 lib = krb5_config_get_string(context, NULL,
128 if (_krb5_expand_path_tokens(context, lib, &explib) == 0) {
139 if (context)
188 make_cred_from_ccred(krb5_context context, const cc_credentials_v5_t *incred, krb5_creds *cred) argument
335 make_ccred_from_cred(krb5_context context, const krb5_creds *incred, cc_credentials_v5_t *cred) argument
457 acc_get_name(krb5_context context, krb5_ccache id) argument
494 acc_alloc(krb5_context context, krb5_ccache *id) argument
524 acc_resolve(krb5_context context, krb5_ccache *id, const char *res) argument
564 acc_gen_new(krb5_context context, krb5_ccache *id) argument
582 acc_initialize(krb5_context context, krb5_ccache id, krb5_principal primary_principal) argument
636 acc_close(krb5_context context, krb5_ccache id) argument
658 acc_destroy(krb5_context context, krb5_ccache id) argument
676 acc_store_cred(krb5_context context, krb5_ccache id, krb5_creds *creds) argument
711 acc_get_principal(krb5_context context, krb5_ccache id, krb5_principal *principal) argument
739 acc_get_first(krb5_context context, krb5_ccache id, krb5_cc_cursor *cursor) argument
764 acc_get_next(krb5_context context, krb5_ccache id, krb5_cc_cursor *cursor, krb5_creds *creds) argument
791 acc_end_get(krb5_context context, krb5_ccache id, krb5_cc_cursor *cursor) argument
801 acc_remove_cred(krb5_context context, krb5_ccache id, krb5_flags which, krb5_creds *cred) argument
877 acc_set_flags(krb5_context context, krb5_ccache id, krb5_flags flags) argument
885 acc_get_version(krb5_context context, krb5_ccache id) argument
892 cc_context_t context; member in struct:cache_iter
897 acc_get_cache_first(krb5_context context, krb5_cc_cursor *cursor) argument
931 acc_get_cache_next(krb5_context context, krb5_cc_cursor cursor, krb5_ccache *id) argument
969 acc_end_cache_get(krb5_context context, krb5_cc_cursor cursor) argument
982 acc_move(krb5_context context, krb5_ccache from, krb5_ccache to) argument
1014 acc_get_default_name(krb5_context context, char **str) argument
1047 acc_set_default(krb5_context context, krb5_ccache id) argument
1066 acc_lastchange(krb5_context context, krb5_ccache id, krb5_timestamp *mtime) argument
[all...]
H A Dget_for_creds.c37 add_addrs(krb5_context context, argument
53 krb5_set_error_message(context, ret, N_("malloc: out of memory", ""));
65 ret = krb5_sockaddr2address (context, a->ai_addr, &ad);
67 if (krb5_address_search(context, &ad, addr))
68 krb5_free_address(context, &ad);
73 krb5_clear_error_message (context);
80 krb5_free_addresses (context, addr);
89 * @param context A kerberos 5 context.
90 * @param auth_context the auth context wit
104 krb5_fwd_tgt_creds(krb5_context context, krb5_auth_context auth_context, const char *hostname, krb5_principal client, krb5_principal server, krb5_ccache ccache, int forwardable, krb5_data *out_data) argument
187 krb5_get_forwarded_creds(krb5_context context, krb5_auth_context auth_context, krb5_ccache ccache, krb5_flags flags, const char *hostname, krb5_creds *in_creds, krb5_data *out_data) argument
[all...]
H A Dacl.c73 acl_parse_format(krb5_context context, argument
84 krb5_set_error_message(context, ENOMEM,
100 krb5_set_error_message(context, EINVAL,
119 acl_match_field(krb5_context context, argument
135 acl_match_acl(krb5_context context, argument
145 if(!acl_match_field(context, buf, acl)) {
173 * @param context Kerberos 5 context
184 * ret = krb5_acl_match_string(context, "foo", "s", "foo");
186 * krb5_errx(context,
202 krb5_acl_match_string(krb5_context context, const char *string, const char *format, ...) argument
245 krb5_acl_match_file(krb5_context context, const char *file, const char *format, ...) argument
[all...]
/freebsd-12-stable/crypto/heimdal/kuser/
H A Dklist.c77 print_cred(krb5_context context, krb5_creds *cred, rtbl_t ct, int do_flags) argument
83 krb5_timeofday (context, &sec);
98 ret = krb5_unparse_name (context, cred->server, &str);
100 krb5_err(context, 1, ret, "krb5_unparse_name");
133 print_cred_verbose(krb5_context context, krb5_creds *cred) argument
140 krb5_timeofday (context, &sec);
142 ret = krb5_unparse_name(context, cred->server, &str);
148 ret = krb5_unparse_name(context, cred->client, &str);
160 ret = krb5_enctype_to_string(context, t.enc_part.etype, &s);
172 ret = krb5_enctype_to_string(context, cre
227 print_tickets(krb5_context context, krb5_ccache ccache, krb5_principal principal, int do_verbose, int do_flags, int do_hidden) argument
332 check_for_tgt(krb5_context context, krb5_ccache ccache, krb5_principal principal, time_t *expiration) argument
449 display_v5_ccache(krb5_context context, krb5_ccache ccache, int do_test, int do_verbose, int do_flags, int do_hidden) argument
488 list_caches(krb5_context context) argument
[all...]
/freebsd-12-stable/contrib/apr-util/crypto/
H A Dapr_md4.c111 /* MD4 initialization. Begins an MD4 operation, writing a new context.
113 APU_DECLARE(apr_status_t) apr_md4_init(apr_md4_ctx_t *context)
115 context->count[0] = context->count[1] = 0;
118 context->state[0] = 0x67452301;
119 context->state[1] = 0xefcdab89;
120 context->state[2] = 0x98badcfe;
121 context->state[3] = 0x10325476;
124 context->xlate = NULL;
135 APU_DECLARE(apr_status_t) apr_md4_set_xlate(apr_md4_ctx_t *context,
[all...]
/freebsd-12-stable/contrib/llvm-project/libunwind/include/
H A Dunwind.h116 struct _Unwind_Context* context);
121 struct _Unwind_Context* context);
154 struct _Unwind_Context* context,
162 struct _Unwind_Context* context);
208 _Unwind_VRS_Get(_Unwind_Context *context, _Unwind_VRS_RegClass regclass,
213 _Unwind_VRS_Set(_Unwind_Context *context, _Unwind_VRS_RegClass regclass,
218 _Unwind_VRS_Pop(_Unwind_Context *context, _Unwind_VRS_RegClass regclass,
225 extern uintptr_t _Unwind_GetGR(struct _Unwind_Context *context, int index);
226 extern void _Unwind_SetGR(struct _Unwind_Context *context, int index,
228 extern uintptr_t _Unwind_GetIP(struct _Unwind_Context *context);
247 _Unwind_GetGR(struct _Unwind_Context *context, int index) argument
254 _Unwind_SetGR(struct _Unwind_Context *context, int index, uintptr_t value) argument
260 _Unwind_GetIP(struct _Unwind_Context *context) argument
266 _Unwind_SetIP(struct _Unwind_Context *context, uintptr_t value) argument
[all...]
/freebsd-12-stable/sys/contrib/libsodium/test/default/
H A Dkdf.c10 char *context; local
15 context = (char *) sodium_malloc(crypto_kdf_CONTEXTBYTES);
18 memcpy(context, "KDF test", strlen("KDF test"));
25 i, context, master_key);
35 i, context, master_key) == 0) {
46 sodium_free(context);
/freebsd-12-stable/crypto/heimdal/lib/gssapi/ntlm/
H A Diter_cred.c45 krb5_context context = NULL; local
49 ret = krb5_init_context(&context);
53 ret = krb5_kcm_storage_request(context, KCM_OP_GET_NTLM_USER_LIST, &request);
57 ret = krb5_kcm_call(context, request, &response, &response_data);
95 if (context)
96 krb5_free_context(context);
/freebsd-12-stable/crypto/heimdal/lib/kadm5/
H A Dclient_glue.c57 kadm5_init_with_password_ctx(krb5_context context, argument
66 return kadm5_c_init_with_password_ctx(context,
95 kadm5_init_with_skey_ctx(krb5_context context, argument
104 return kadm5_c_init_with_skey_ctx(context,
133 kadm5_init_with_creds_ctx(krb5_context context, argument
142 return kadm5_c_init_with_creds_ctx(context,
H A Dserver_glue.c57 kadm5_init_with_password_ctx(krb5_context context, argument
66 return kadm5_s_init_with_password_ctx(context,
95 kadm5_init_with_skey_ctx(krb5_context context, argument
104 return kadm5_s_init_with_skey_ctx(context,
133 kadm5_init_with_creds_ctx(krb5_context context, argument
142 return kadm5_s_init_with_creds_ctx(context,
H A Dget_s.c73 kadm5_server_context *context = server_handle; local
78 ret = context->db->hdb_open(context->context, context->db, O_RDONLY, 0);
81 ret = context->db->hdb_fetch_kvno(context->context, context->db, princ,
83 context
[all...]
/freebsd-12-stable/sys/dev/drm2/
H A Ddrm_lock.c45 static int drm_lock_take(struct drm_lock_data *lock_data, unsigned int context);
66 if (lock->context == DRM_KERNEL_CONTEXT) {
67 DRM_ERROR("Process %d using kernel context %d\n",
68 DRM_CURRENTPID, lock->context);
73 lock->context, DRM_CURRENTPID,
89 if (drm_lock_take(&master->lock, lock->context)) {
109 DRM_DEBUG("%d %s\n", lock->context,
123 dev->sigdata.context = lock->context;
133 lock->context);
185 drm_lock_take(struct drm_lock_data *lock_data, unsigned int context) argument
234 drm_lock_transfer(struct drm_lock_data *lock_data, unsigned int context) argument
260 drm_lock_free(struct drm_lock_data *lock_data, unsigned int context) argument
[all...]
/freebsd-12-stable/crypto/openssh/openbsd-compat/
H A Dsha2.c287 SHA256_Init(SHA256_CTX *context) argument
289 if (context == NULL)
291 memcpy(context->state, sha256_initial_hash_value,
293 memset(context->buffer, 0, sizeof(context->buffer));
294 context->bitcount = 0;
456 SHA256_Update(SHA256_CTX *context, const u_int8_t *data, size_t len) argument
464 usedspace = (context->bitcount >> 3) % SHA256_BLOCK_LENGTH;
471 memcpy(&context->buffer[usedspace], data, freespace);
472 context
502 SHA256_Pad(SHA256_CTX *context) argument
545 SHA256_Final(u_int8_t digest[SHA256_DIGEST_LENGTH], SHA256_CTX *context) argument
567 SHA512_Init(SHA512_CTX *context) argument
737 SHA512_Update(SHA512_CTX *context, const u_int8_t *data, size_t len) argument
783 SHA512_Pad(SHA512_CTX *context) argument
826 SHA512_Final(u_int8_t digest[SHA512_DIGEST_LENGTH], SHA512_CTX *context) argument
848 SHA384_Init(SHA384_CTX *context) argument
871 SHA384_Update(SHA512_CTX *context, const u_int8_t *data, size_t len) argument
877 SHA384_Pad(SHA512_CTX *context) argument
883 SHA384_Final(u_int8_t digest[SHA384_DIGEST_LENGTH], SHA384_CTX *context) argument
[all...]
/freebsd-12-stable/usr.bin/hesinfo/
H A Dhesinfo.c37 void *context; local
61 if (hesiod_init(&context) < 0) {
72 bindname = hesiod_to_bind(context, name, type);
91 list = hesiod_resolve(context, name, type);
105 hesiod_free_list(context, list);
106 hesiod_end(context);
/freebsd-12-stable/contrib/llvm-project/libunwind/src/
H A DUnwind-sjlj.c111 _LIBUNWIND_TRACE_UNWINDING("unwind_phase1: initial function-context=%p",
125 _LIBUNWIND_TRACE_UNWINDING("unwind_phase1: function-context=%p", (void *)c);
139 // stop search and remember function context
175 _LIBUNWIND_TRACE_UNWINDING("unwind_phase2s(ex_ojb=%p): context=%p",
395 _Unwind_GetLanguageSpecificData(struct _Unwind_Context *context) { argument
396 _Unwind_FunctionContext_t ufc = (_Unwind_FunctionContext_t) context;
397 _LIBUNWIND_TRACE_API("_Unwind_GetLanguageSpecificData(context=%p) "
399 (void *)context, ufc->lsda);
405 _LIBUNWIND_EXPORT uintptr_t _Unwind_GetGR(struct _Unwind_Context *context, argument
407 _LIBUNWIND_TRACE_API("_Unwind_GetGR(context
415 _Unwind_SetGR(struct _Unwind_Context *context, int index, uintptr_t new_value) argument
426 _Unwind_GetIP(struct _Unwind_Context *context) argument
437 _Unwind_GetIPInfo(struct _Unwind_Context *context, int *ipBefore) argument
449 _Unwind_SetIP(struct _Unwind_Context *context, uintptr_t new_value) argument
461 _Unwind_GetRegionStart(struct _Unwind_Context *context) argument
485 _Unwind_GetDataRelBase(struct _Unwind_Context *context) argument
496 _Unwind_GetTextRelBase(struct _Unwind_Context *context) argument
505 _Unwind_GetCFA(struct _Unwind_Context *context) argument
[all...]
/freebsd-12-stable/contrib/bsnmp/lib/
H A Dsnmpagent.c77 * Set context
79 struct context { struct
93 * Allocate a context
98 struct context *context; local
100 if ((context = malloc(sizeof(*context))) == NULL)
103 memset(context, 0, sizeof(*context));
104 TAILQ_INIT(&context
209 struct context context; local
335 do_getnext(struct context *context, const struct snmp_value *inb, struct snmp_value *outb, struct snmp_pdu *pdu) argument
407 struct context context; local
462 struct context context; local
571 rollback(struct context *context, struct snmp_pdu *pdu, u_int i) argument
603 struct context *context = (struct context *)ctx; local
630 struct context *context = (struct context *)ctx; local
660 struct context *context = (struct context *)ctx; local
681 struct context context; local
931 struct context *context; local
[all...]
/freebsd-12-stable/contrib/llvm-project/llvm/include/llvm/Support/
H A DCrashRecoveryContext.h19 /// This class implements support for running operations in a safe context so
54 /// Register cleanup handler, which is used when the recovery context is
56 /// The recovery context owns the handler.
67 /// Return the active context, if the code is currently executing in a
68 /// thread which is in a protected context.
75 /// a protected context.
87 /// a protected context which is run in another thread (optionally with a
120 /// a crash recovery context.
123 CrashRecoveryContext *context = nullptr;
124 CrashRecoveryContextCleanup(CrashRecoveryContext *context)
[all...]
/freebsd-12-stable/crypto/heimdal/admin/
H A Dadd.c66 ret = krb5_parse_name(context, opt->principal_string, &entry.principal);
68 krb5_warn(context, ret, "%s", opt->principal_string);
78 ret = krb5_string_to_enctype(context, opt->enctype_string, &enctype);
84 krb5_warn(context, ret, "%s", opt->enctype_string);
112 krb5_warn(context, ENOMEM, "malloc");
118 krb5_warn(context, ENOMEM, "hex decode failed");
122 ret = krb5_keyblock_init(context, enctype,
134 ret = krb5_string_to_key_data_salt(context, enctype, pw, salt,
137 ret = krb5_string_to_key(context, enctype, opt->password_string,
142 ret = krb5_generate_random_keyblock(context, enctyp
[all...]
/freebsd-12-stable/contrib/ofed/libmlx4/
H A Ddbrec.c54 static struct mlx4_db_page *__add_page(struct mlx4_context *context, argument
58 int ps = to_mdev(context->ibv_ctx.device)->page_size;
79 page->next = context->db_list[type];
80 context->db_list[type] = page;
87 uint32_t *mlx4_alloc_db(struct mlx4_context *context, enum mlx4_db_type type) argument
93 pthread_mutex_lock(&context->db_list_mutex);
95 for (page = context->db_list[type]; page; page = page->next)
99 page = __add_page(context, type);
114 pthread_mutex_unlock(&context->db_list_mutex);
119 void mlx4_free_db(struct mlx4_context *context, enu argument
[all...]
/freebsd-12-stable/contrib/gcc/
H A Dunwind-c.c50 parse_lsda_header (struct _Unwind_Context *context, const unsigned char *p, argument
56 info->Start = (context ? _Unwind_GetRegionStart (context) : 0);
61 p = read_encoded_value (context, lpstart_encoding, p, &info->LPStart);
89 if (__gnu_unwind_frame (ue_header, context) != _URC_OK) \
113 struct _Unwind_Context * context)
124 struct _Unwind_Context *context)
136 /* The dwarf unwinder assumes the context structure holds things like the
141 _Unwind_SetGR (context, 12, ip);
152 _Unwind_GetLanguageSpecificData (context);
111 PERSONALITY_FUNCTION(_Unwind_State state, struct _Unwind_Exception * ue_header, struct _Unwind_Context * context) argument
[all...]

Completed in 230 milliseconds

<<11121314151617181920>>