Searched refs:ctx (Results 301 - 325 of 1886) sorted by relevance

<<11121314151617181920>>

/freebsd-11-stable/contrib/wpa/src/crypto/
H A Daes-unwrap.c31 void *ctx; local
39 ctx = aes_decrypt_init(kek, kek_len);
40 if (ctx == NULL)
61 aes_decrypt(ctx, b, b);
67 aes_decrypt_deinit(ctx);
H A Daes-wrap.c30 void *ctx; local
40 ctx = aes_encrypt_init(kek, kek_len);
41 if (ctx == NULL)
56 aes_encrypt(ctx, b, b);
67 aes_encrypt_deinit(ctx);
/freebsd-11-stable/crypto/heimdal/lib/gssapi/spnego/
H A Dcontext_stubs.c76 gssspnego_ctx ctx; local
83 ctx = (gssspnego_ctx)context_handle;
85 HEIMDAL_MUTEX_lock(&ctx->ctx_id_mutex);
88 ctx->negotiated_ctx_id,
91 HEIMDAL_MUTEX_unlock(&ctx->ctx_id_mutex);
95 ctx->negotiated_ctx_id = GSS_C_NO_CONTEXT;
108 gssspnego_ctx ctx; local
113 ctx = (gssspnego_ctx)*context_handle;
115 HEIMDAL_MUTEX_lock(&ctx->ctx_id_mutex);
128 gssspnego_ctx ctx; local
154 gssspnego_ctx ctx; local
180 gssspnego_ctx ctx; local
211 gssspnego_ctx ctx; local
243 gssspnego_ctx ctx; local
395 gssspnego_ctx ctx; local
459 gssspnego_ctx ctx; local
487 gssspnego_ctx ctx; local
532 gssspnego_ctx ctx; local
742 gssspnego_ctx ctx; local
768 gssspnego_ctx ctx; local
797 gssspnego_ctx ctx; local
[all...]
H A Dinit_sec_context.c44 gss_ctx_id_t ctx = GSS_C_NO_CONTEXT; local
49 &ctx,
65 gss_delete_sec_context(&min_stat, &ctx, NULL);
203 gssspnego_ctx ctx; local
220 ctx = (gssspnego_ctx)context;
222 HEIMDAL_MUTEX_lock(&ctx->ctx_id_mutex);
224 ctx->local = 1;
226 sub = gss_import_name(&minor, &name->value, &name->type, &ctx->target_name);
234 ctx->target_name,
239 &ctx
398 gssspnego_ctx ctx; local
[all...]
/freebsd-11-stable/contrib/wpa/src/common/
H A Dgas_server.h16 struct gas_server * gas_server_init(void *ctx,
17 void (*tx)(void *ctx, int freq,
25 (*req_cb)(void *ctx, const u8 *sa,
27 void (*status_cb)(void *ctx, struct wpabuf *resp,
29 void *ctx);
/freebsd-11-stable/contrib/unbound/libunbound/
H A Dlibworker.h72 struct ub_ctx* ctx; member in struct:libworker
95 * @param ctx: is updated with pid/tid of the background worker.
96 * a new allocation cache is obtained from ctx. It contains the
99 * Further communication is done via the pipes in ctx.
101 int libworker_bg(struct ub_ctx* ctx);
108 * @param ctx: new allocation cache obtained and returned to it.
112 int libworker_fg(struct ub_ctx* ctx, struct ctx_query* q);
116 * @param ctx: context with config.
120 struct libworker* libworker_create_event(struct ub_ctx* ctx,
125 * @param ctx
[all...]
/freebsd-11-stable/contrib/ofed/libibverbs/examples/
H A Drc_pingpong.c81 static struct ibv_cq *pp_cq(struct pingpong_context *ctx) argument
83 return use_ts ? ibv_cq_ex_to_cq(ctx->cq_s.cq_ex) :
84 ctx->cq_s.cq;
94 static int pp_connect_ctx(struct pingpong_context *ctx, int port, int my_psn, argument
120 if (ibv_modify_qp(ctx->qp, &attr,
138 if (ibv_modify_qp(ctx->qp, &attr,
224 static struct pingpong_dest *pp_server_exch_dest(struct pingpong_context *ctx, argument
299 if (pp_connect_ctx(ctx, ib_port, my_dest->psn, mtu, sl, rem_dest,
329 struct pingpong_context *ctx; local
332 ctx
499 pp_close_ctx(struct pingpong_context *ctx) argument
539 pp_post_recv(struct pingpong_context *ctx, int n) argument
561 pp_post_send(struct pingpong_context *ctx) argument
589 parse_single_wc(struct pingpong_context *ctx, int *scnt, int *rcnt, int *routs, int iters, uint64_t wr_id, enum ibv_wc_status status, uint64_t completion_timestamp, struct ts_params *ts) argument
688 struct pingpong_context *ctx; local
[all...]
/freebsd-11-stable/sys/ofed/drivers/infiniband/core/
H A Dib_ucm.c91 struct list_head file_list; /* member in file ctx list */
95 struct ib_ucm_context *ctx; member in struct:ib_ucm_event
97 struct list_head ctx_list; /* member in ctx event list */
130 struct ib_ucm_context *ctx; local
133 ctx = idr_find(&ctx_id_table, id);
134 if (!ctx)
135 ctx = ERR_PTR(-ENOENT);
136 else if (ctx->file != file)
137 ctx = ERR_PTR(-EINVAL);
139 atomic_inc(&ctx
145 ib_ucm_ctx_put(struct ib_ucm_context *ctx) argument
156 ib_ucm_cleanup_events(struct ib_ucm_context *ctx) argument
182 struct ib_ucm_context *ctx; local
355 struct ib_ucm_context *ctx; local
392 struct ib_ucm_context *ctx; local
479 struct ib_ucm_context *ctx; local
526 struct ib_ucm_context *ctx; local
571 struct ib_ucm_context *ctx; local
603 struct ib_ucm_context *ctx; local
651 struct ib_ucm_context *ctx; local
676 struct ib_ucm_context *ctx; local
739 struct ib_ucm_context *ctx; local
797 struct ib_ucm_context *ctx; local
839 struct ib_ucm_context *ctx; local
891 struct ib_ucm_context *ctx; local
940 struct ib_ucm_context *ctx; local
967 struct ib_ucm_context *ctx; local
1002 struct ib_ucm_context *ctx; local
1044 struct ib_ucm_context *ctx; local
1179 struct ib_ucm_context *ctx; local
[all...]
/freebsd-11-stable/contrib/wpa/wpa_supplicant/
H A Dpreauth_test.c79 static void _wpa_supplicant_set_state(void *ctx, enum wpa_states state) argument
81 struct wpa_supplicant *wpa_s = ctx;
86 static enum wpa_states _wpa_supplicant_get_state(void *ctx) argument
88 struct wpa_supplicant *wpa_s = ctx;
165 static void wpa_supplicant_set_config_blob(void *ctx, argument
168 struct wpa_supplicant *wpa_s = ctx;
174 wpa_supplicant_get_config_blob(void *ctx, const char *name) argument
176 struct wpa_supplicant *wpa_s = ctx;
222 struct wpa_sm_ctx *ctx; local
227 ctx
[all...]
/freebsd-11-stable/contrib/subversion/subversion/libsvn_client/
H A Dupgrade.c52 svn_client_ctx_t *ctx;
77 SVN_ERR(svn_client_get_repos_root(repos_root, repos_uuid, url, ri->ctx,
92 upgrade_externals_from_properties(svn_client_ctx_t *ctx,
99 svn_client_ctx_t *ctx,
107 info_baton.ctx = ctx;
116 SVN_ERR(svn_wc_upgrade(ctx->wc_ctx, local_abspath,
118 ctx->cancel_func, ctx->cancel_baton,
119 ctx
50 svn_client_ctx_t *ctx; member in struct:repos_info_baton
96 svn_client_upgrade(const char *path, svn_client_ctx_t *ctx, apr_pool_t *scratch_pool) argument
185 upgrade_external_item(svn_client_ctx_t *ctx, const char *externals_parent_abspath, const char *externals_parent_url, const char *externals_parent_repos_root_url, svn_wc_external_item2_t *item, struct repos_info_baton *info_baton, apr_pool_t *scratch_pool) argument
299 upgrade_externals_from_properties(svn_client_ctx_t *ctx, const char *local_abspath, struct repos_info_baton *info_baton, apr_pool_t *scratch_pool) argument
[all...]
H A Drevert.c57 svn_client_ctx_t *ctx;
74 err = svn_wc_revert6(b->ctx->wc_ctx,
82 b->ctx->cancel_func, b->ctx->cancel_baton,
83 b->ctx->notify_func2, b->ctx->notify_baton2,
94 if (b->ctx->notify_func2)
104 b->ctx->notify_func2(b->ctx->notify_baton2,
124 svn_client_ctx_t *ctx,
55 svn_client_ctx_t *ctx; member in struct:revert_with_write_lock_baton
116 svn_client_revert4(const apr_array_header_t *paths, svn_depth_t depth, const apr_array_header_t *changelists, svn_boolean_t clear_changelists, svn_boolean_t metadata_only, svn_boolean_t added_keep_local, svn_client_ctx_t *ctx, apr_pool_t *pool) argument
[all...]
/freebsd-11-stable/crypto/openssl/crypto/ec/
H A Dectest.c118 static void timings(EC_GROUP *group, int type, BN_CTX *ctx)
131 if (!EC_GROUP_get_order(group, s, ctx))
160 (type != TIMING_BASE_PT) ? r0[i] : NULL, ctx))
214 BN_CTX *ctx = BN_CTX_new(); local
222 if (!EC_GROUP_get_order(group, order, ctx))
224 if (!EC_POINT_mul(group, Q, order, NULL, NULL, ctx))
230 if (!EC_GROUP_precompute_mult(group, ctx))
232 if (!EC_POINT_mul(group, Q, order, NULL, NULL, ctx))
251 if (!EC_POINT_mul(group, P, n1, NULL, NULL, ctx))
259 if (!EC_POINT_mul(group, Q, NULL, P, n1, ctx))
322 BN_CTX *ctx = NULL; local
1129 BN_CTX *ctx = NULL; local
1748 BN_CTX *ctx; local
[all...]
/freebsd-11-stable/contrib/subversion/subversion/svn/
H A Dlock-cmd.c47 get_comment(const char **comment, svn_client_ctx_t *ctx,
115 svn_client_ctx_t *ctx = ((svn_cl__cmd_baton_t *) baton)->ctx;
122 ctx, FALSE, pool));
131 SVN_ERR(get_comment(&comment, ctx, opt_state, pool));
135 nlb.inner_notify = ctx->notify_func2;
136 nlb.inner_baton = ctx->notify_baton2;
139 ctx->notify_func2 = notify_lock_handler;
140 ctx->notify_baton2 = &nlb;
142 SVN_ERR(svn_client_lock(targets, comment, opt_state->force, ctx, poo
45 get_comment(const char **comment, svn_client_ctx_t *ctx, svn_cl__opt_state_t *opt_state, apr_pool_t *pool) argument
113 svn_client_ctx_t *ctx = ((svn_cl__cmd_baton_t *) baton)->ctx; local
[all...]
/freebsd-11-stable/crypto/openssl/crypto/jpake/
H A Djpake.h57 void JPAKE_CTX_free(JPAKE_CTX *ctx);
64 int JPAKE_STEP1_generate(JPAKE_STEP1 *send, JPAKE_CTX *ctx);
65 int JPAKE_STEP1_process(JPAKE_CTX *ctx, const JPAKE_STEP1 *received);
73 int JPAKE_STEP2_generate(JPAKE_STEP2 *send, JPAKE_CTX *ctx);
74 int JPAKE_STEP2_process(JPAKE_CTX *ctx, const JPAKE_STEP2 *received);
83 int JPAKE_STEP3A_generate(JPAKE_STEP3A *send, JPAKE_CTX *ctx);
84 int JPAKE_STEP3A_process(JPAKE_CTX *ctx, const JPAKE_STEP3A *received);
88 int JPAKE_STEP3B_generate(JPAKE_STEP3B *send, JPAKE_CTX *ctx);
89 int JPAKE_STEP3B_process(JPAKE_CTX *ctx, const JPAKE_STEP3B *received);
94 * ctx i
[all...]
/freebsd-11-stable/contrib/netbsd-tests/lib/libc/hash/
H A Dh_hash.c92 MD5_CTX ctx; local
94 MD5Init(&ctx);
95 MD5Update(&ctx, buf, len);
100 MD5Update(&ctx, buf, len);
102 MD5Final(out, &ctx);
105 SHA1_CTX ctx; local
107 SHA1Init(&ctx);
108 SHA1Update(&ctx, buf, len);
113 SHA1Update(&ctx, buf, len);
115 SHA1Final(out, &ctx);
[all...]
/freebsd-11-stable/contrib/wpa/src/fst/
H A Dfst.h48 void *ctx; member in struct:fst_wpa_obj
52 * @ctx: User context %ctx
58 const u8 * (*get_bssid)(void *ctx);
62 * @ctx: User context %ctx
66 void (*get_channel_info)(void *ctx, enum hostapd_hw_mode *hw_mode,
71 * @ctx: User context %ctx
76 int (*get_hw_modes)(void *ctx, struc
[all...]
/freebsd-11-stable/crypto/openssl/crypto/
H A Dbn_int.h9 BN_MONT_CTX *mont, BN_CTX *ctx);
11 BN_CTX *ctx);
13 BN_CTX *ctx);
18 int bn_mul_fixed_top(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx);
19 int bn_sqr_fixed_top(BIGNUM *r, const BIGNUM *a, BN_CTX *ctx);
/freebsd-11-stable/lib/libc/net/
H A Dhesiod.c89 struct hesiod_p *ctx; local
92 ctx = malloc(sizeof(struct hesiod_p));
93 if (ctx) {
94 *context = ctx;
101 if (read_config_file(ctx, configname) >= 0) {
111 if (ctx->rhs)
112 free(ctx->rhs);
113 ctx->rhs = malloc(strlen(p) + 2);
114 if (ctx->rhs) {
115 *ctx
144 struct hesiod_p *ctx = (struct hesiod_p *) context; local
160 struct hesiod_p *ctx = (struct hesiod_p *) context; local
237 struct hesiod_p *ctx = (struct hesiod_p *) context; local
[all...]
/freebsd-11-stable/crypto/openssl/crypto/bn/
H A Dbn_sqrt.c63 BIGNUM *BN_mod_sqrt(BIGNUM *in, const BIGNUM *a, const BIGNUM *p, BN_CTX *ctx) argument
109 BN_CTX_start(ctx);
110 A = BN_CTX_get(ctx);
111 b = BN_CTX_get(ctx);
112 q = BN_CTX_get(ctx);
113 t = BN_CTX_get(ctx);
114 x = BN_CTX_get(ctx);
115 y = BN_CTX_get(ctx);
125 if (!BN_nnmod(A, a, p, ctx))
148 if (!BN_mod_exp(ret, A, q, p, ctx))
[all...]
/freebsd-11-stable/contrib/wpa/src/utils/
H A Dhttp_curl.c43 void *ctx; member in struct:http_ctx
56 int (*cert_cb)(void *ctx, struct http_cert *cert);
70 static void clear_curl(struct http_ctx *ctx) argument
72 if (ctx->curl) {
73 curl_easy_cleanup(ctx->curl);
74 ctx->curl = NULL;
76 if (ctx->curl_hdr) {
77 curl_slist_free_all(ctx->curl_hdr);
78 ctx->curl_hdr = NULL;
93 static void debug_dump(struct http_ctx *ctx, cons argument
127 struct http_ctx *ctx = userdata; local
164 struct http_ctx *ctx = userdata; local
204 add_alt_name_othername(struct http_ctx *ctx, struct http_cert *cert, OTHERNAME *o) argument
236 add_alt_name_dns(struct http_ctx *ctx, struct http_cert *cert, ASN1_STRING *name) argument
257 add_alt_name(struct http_ctx *ctx, struct http_cert *cert, const GENERAL_NAME *name) argument
271 add_alt_names(struct http_ctx *ctx, struct http_cert *cert, GENERAL_NAMES *names) argument
478 add_logo(struct http_ctx *ctx, struct http_cert *hcert, HashAlgAndValue *hash, ASN1_IA5STRING *uri) argument
526 add_logo_direct(struct http_ctx *ctx, struct http_cert *hcert, LogotypeData *data) argument
583 add_logo_indirect(struct http_ctx *ctx, struct http_cert *hcert, LogotypeReference *ref) argument
799 add_logotype_ext(struct http_ctx *ctx, struct http_cert *hcert, X509 *cert) argument
870 parse_cert(struct http_ctx *ctx, struct http_cert *hcert, X509 *cert, GENERAL_NAMES **names) argument
906 validate_server_cert(struct http_ctx *ctx, X509 *cert) argument
932 http_parse_x509_certificate(struct http_ctx *ctx, const char *fname) argument
995 struct http_ctx *ctx; local
1112 struct http_ctx *ctx = arg; local
1316 struct http_ctx *ctx = parm; local
1348 setup_curl_post(struct http_ctx *ctx, const char *address, const char *ca_fname, const char *username, const char *password, const char *client_cert, const char *client_key) argument
1411 post_init_client(struct http_ctx *ctx, const char *address, const char *ca_fname, const char *username, const char *password, const char *client_cert, const char *client_key) argument
1446 soap_init_client(struct http_ctx *ctx, const char *address, const char *ca_fname, const char *username, const char *password, const char *client_cert, const char *client_key) argument
1465 soap_reinit_client(struct http_ctx *ctx) argument
1496 free_curl_buf(struct http_ctx *ctx) argument
1504 soap_send_receive(struct http_ctx *ctx, xml_node_t *node) argument
1573 struct http_ctx *ctx; local
1588 http_ocsp_set(struct http_ctx *ctx, int val) argument
1599 http_deinit_ctx(struct http_ctx *ctx) argument
1616 http_download_file(struct http_ctx *ctx, const char *url, const char *fname, const char *ca_fname) argument
1680 http_post(struct http_ctx *ctx, const char *url, const char *data, const char *content_type, const char *ext_hdr, const char *ca_fname, const char *username, const char *password, const char *client_cert, const char *client_key, size_t *resp_len) argument
1746 http_set_cert_cb(struct http_ctx *ctx, int (*cb)(void *ctx, struct http_cert *cert), void *cb_ctx) argument
1755 http_get_err(struct http_ctx *ctx) argument
[all...]
/freebsd-11-stable/contrib/llvm-project/lld/lib/Driver/
H A DDarwinLdDriver.cpp114 std::vector<std::unique_ptr<File>> loadFile(MachOLinkingContext &ctx, argument
117 if (ctx.logInputFiles())
120 ErrorOr<std::unique_ptr<MemoryBuffer>> mbOrErr = ctx.getMemoryBuffer(path);
124 ctx.registry().loadFile(std::move(mbOrErr.get()));
133 ctx.registerDylib(reinterpret_cast<mach_o::MachODylibFile *>(shl),
158 static void addFile(StringRef path, MachOLinkingContext &ctx, argument
161 loadFile(ctx, path, loadWholeArchive, upwardDylib);
163 ctx.getNodes().push_back(std::make_unique<FileNode>(std::move(file)));
169 MachOLinkingContext &ctx) {
175 ctx
168 parseExportsList(StringRef exportFilePath, MachOLinkingContext &ctx) argument
198 parseOrderFile(StringRef orderFilePath, MachOLinkingContext &ctx) argument
252 loadFileList(StringRef fileListPath, MachOLinkingContext &ctx, bool forceLoad) argument
301 parseLLVMOptions(const LinkingContext &ctx) argument
317 parse(llvm::ArrayRef<const char *> args, MachOLinkingContext &ctx) argument
1133 createFiles(MachOLinkingContext &ctx, bool Implicit) argument
1158 MachOLinkingContext ctx; local
[all...]
/freebsd-11-stable/contrib/ntp/sntp/libevent/
H A Devrpc.c188 evrpc_process_hooks(struct evrpc_hook_list *head, void *ctx, argument
193 int res = hook->process(ctx, req, evbuf, hook->process_arg);
280 static int evrpc_pause_request(void *vbase, void *ctx,
504 struct evrpc_request_wrapper *ctx);
652 static void evrpc_schedule_request_closure(void *ctx, enum EVRPC_HOOK_RESULT);
655 * We assume that the ctx is no longer queued on the pool.
659 struct evrpc_request_wrapper *ctx)
662 struct evrpc_pool *pool = ctx->pool;
665 if ((req = evhttp_request_new(evrpc_reply_done, ctx)) == NULL)
669 ctx
658 evrpc_schedule_request(struct evhttp_connection *connection, struct evrpc_request_wrapper *ctx) argument
719 struct evrpc_request_wrapper *ctx = arg; local
762 evrpc_pause_request(void *vbase, void *ctx, void (*cb)(void *, enum EVRPC_HOOK_RESULT)) argument
778 evrpc_resume_request(void *vbase, void *ctx, enum EVRPC_HOOK_RESULT res) argument
799 evrpc_make_request(struct evrpc_request_wrapper *ctx) argument
831 struct evrpc_request_wrapper *ctx = (struct evrpc_request_wrapper *) local
861 struct evrpc_request_wrapper *ctx = arg; local
915 struct evrpc_request_wrapper *ctx = arg; local
956 struct evrpc_request_wrapper *ctx = TAILQ_FIRST(&pool->requests); local
972 struct evrpc_request_wrapper *ctx = arg; local
1000 struct evrpc_hook_meta *ctx; local
1014 struct evrpc_hook_meta *ctx = *pctx; local
1021 evrpc_hook_context_free_(struct evrpc_hook_meta *ctx) argument
1029 evrpc_hook_add_meta(void *ctx, const char *key, const void *data, size_t data_size) argument
1052 evrpc_hook_find_meta(void *ctx, const char *key, void **data, size_t *data_size) argument
1072 evrpc_hook_get_connection(void *ctx) argument
1089 struct evrpc_request_wrapper *ctx; local
1152 evrpc_request_get_pool(struct evrpc_request_wrapper *ctx) argument
1158 evrpc_request_set_pool(struct evrpc_request_wrapper *ctx, struct evrpc_pool *pool) argument
1165 evrpc_request_set_cb(struct evrpc_request_wrapper *ctx, void (*cb)(struct evrpc_status*, void *request, void *reply, void *arg), void *cb_arg) argument
[all...]
/freebsd-11-stable/lib/libgssapi/
H A Dgss_init_sec_context.c75 struct _gss_context *ctx = (struct _gss_context *) *context_handle; local
95 if (!ctx) {
104 ctx = malloc(sizeof(struct _gss_context));
105 if (!ctx) {
109 memset(ctx, 0, sizeof(struct _gss_context));
110 m = ctx->gc_mech = _gss_find_mech_switch(mech_type);
112 free(ctx);
117 m = ctx->gc_mech;
118 mech_type = &ctx->gc_mech->gm_mech_oid;
128 free(ctx);
[all...]
/freebsd-11-stable/crypto/heimdal/lib/gssapi/mech/
H A Dgss_init_sec_context.c127 struct _gss_context *ctx = (struct _gss_context *) *context_handle; local
147 if (!ctx) {
151 ctx = malloc(sizeof(struct _gss_context));
152 if (!ctx) {
156 memset(ctx, 0, sizeof(struct _gss_context));
157 m = ctx->gc_mech = __gss_get_mechanism(mech_type);
159 free(ctx);
164 m = ctx->gc_mech;
165 mech_type = &ctx->gc_mech->gm_mech_oid;
175 free(ctx);
[all...]
/freebsd-11-stable/sys/kgssapi/
H A Dgss_accept_sec_context.c60 gss_ctx_id_t ctx = *context_handle; local
71 if (ctx)
72 args.ctx = ctx->handle;
74 args.ctx = 0;
99 if (!ctx) {
100 ctx = kgss_create_context(res.mech_type);
101 if (!ctx) {
107 *context_handle = ctx;
109 ctx
[all...]

Completed in 180 milliseconds

<<11121314151617181920>>