/sssd/src/lib/sifp/ |
H A D | sss_sifp_utils.c | 27 void *sss_sifp_alloc_zero(sss_sifp_ctx *ctx, size_t size, size_t num) argument 29 void *addr = ctx->alloc_fn(size * num, ctx->alloc_pvt); 40 void sss_sifp_set_io_error(sss_sifp_ctx *ctx, DBusError *error) argument 42 dbus_error_free(ctx->io_error); 43 dbus_error_init(ctx->io_error); 44 dbus_set_error(ctx->io_error, error->name, "%s", error->message); 47 char * sss_sifp_strdup(sss_sifp_ctx *ctx, const char *str) argument 57 result = _alloc_zero(ctx, char, str_len + 1); 67 char * sss_sifp_strcat(sss_sifp_ctx *ctx, cons argument [all...] |
H A D | sss_sifp_dbus.c | 29 static sss_sifp_error sss_sifp_ifp_call(sss_sifp_ctx *ctx, argument 59 ret = sss_sifp_send_message(ctx, msg, _reply); 79 sss_sifp_send_message(sss_sifp_ctx *ctx, argument 83 return sss_sifp_send_message_ex(ctx, msg, 5000, _reply); 87 sss_sifp_send_message_ex(sss_sifp_ctx *ctx, argument 96 if (ctx == NULL || msg == NULL) { 102 reply = dbus_connection_send_with_reply_and_block(ctx->conn, msg, 105 sss_sifp_set_io_error(ctx, &dbus_error); 124 sss_sifp_invoke_list_va(sss_sifp_ctx *ctx, argument 136 if (ctx 165 sss_sifp_invoke_list_ex(sss_sifp_ctx *ctx, const char *object_path, const char *interface, const char *method, char ***_object_paths, int first_arg_type, ...) argument 184 sss_sifp_invoke_list(sss_sifp_ctx *ctx, const char *method, char ***_object_paths, int first_arg_type, ...) argument 201 sss_sifp_invoke_find_va(sss_sifp_ctx *ctx, const char *object_path, const char *interface, const char *method, char **_object_path, int first_arg_type, va_list ap) argument 242 sss_sifp_invoke_find_ex(sss_sifp_ctx *ctx, const char *object_path, const char *interface, const char *method, char **_object_path, int first_arg_type, ...) argument 261 sss_sifp_invoke_find(sss_sifp_ctx *ctx, const char *method, char **_object_path, int first_arg_type, ...) argument [all...] |
H A D | sss_sifp_common.c | 31 sss_sifp_fetch_object_by_attr(sss_sifp_ctx *ctx, argument 48 ret = sss_sifp_invoke_find_ex(ctx, path, iface_find, method, &object_path, 54 ret = sss_sifp_fetch_object(ctx, object_path, iface_object, &object); 64 sss_sifp_free_string(ctx, &object_path); 70 sss_sifp_fetch_object_by_name(sss_sifp_ctx *ctx, argument 78 return sss_sifp_fetch_object_by_attr(ctx, path, iface_find, iface_object, 84 sss_sifp_list_domains(sss_sifp_ctx *ctx, argument 99 ret = sss_sifp_invoke_list_ex(ctx, IFP_PATH, IFACE_IFP, "Domains", 108 domains = _alloc_zero(ctx, char *, size + 1); 116 ret = sss_sifp_fetch_attr(ctx, object_path 154 sss_sifp_fetch_domain_by_name(sss_sifp_ctx *ctx, const char *name, sss_sifp_object **_domain) argument 164 sss_sifp_fetch_user_by_uid(sss_sifp_ctx *ctx, uid_t uid, sss_sifp_object **_user) argument 176 sss_sifp_fetch_user_by_name(sss_sifp_ctx *ctx, const char *name, sss_sifp_object **_user) argument [all...] |
/sssd/src/sss_client/autofs/ |
H A D | autofs_test_client.c | 41 void *ctx; local 70 ret = _sss_setautomntent(mapname, &ctx); 80 ret = _sss_getautomntent_r(&key, &value, ctx); 102 ret = _sss_getautomntbyname_r(pc_key, &value, ctx); 122 ret = _sss_endautomntent(&ctx);
|
/sssd/src/util/crypto/libcrypto/ |
H A D | crypto_hmac_sha1.c | 38 EVP_MD_CTX *ctx; local 44 ctx = EVP_MD_CTX_new(); 45 if (ctx == NULL) { 51 if (!EVP_DigestInit_ex(ctx, EVP_sha1(), NULL)) { 56 EVP_DigestUpdate(ctx, (const unsigned char *)key, key_len); 57 EVP_DigestFinal_ex(ctx, ikey, &res_len); 71 if (!EVP_DigestInit_ex(ctx, EVP_sha1(), NULL)) { 76 EVP_DigestUpdate(ctx, (const unsigned char *)ikey, HMAC_SHA1_BLOCKSIZE); 77 EVP_DigestUpdate(ctx, (const unsigned char *)in, in_len); 78 EVP_DigestFinal_ex(ctx, has [all...] |
H A D | crypto_nite.c | 53 EVP_CIPHER_CTX *ctx; local 91 ctx = EVP_CIPHER_CTX_new(); 92 if (ctx == NULL) { 97 ret = EVP_EncryptInit_ex(ctx, cipher, 0, key, evpivlen ? out : NULL); 105 ret = EVP_EncryptUpdate(ctx, out + outlen, &tmplen, plaintext, plainlen); 113 ret = EVP_EncryptFinal_ex(ctx, out + outlen, &tmplen); 162 EVP_CIPHER_CTX_free(ctx); 175 EVP_CIPHER_CTX *ctx = NULL; local 251 ctx = EVP_CIPHER_CTX_new(); 252 if (ctx [all...] |
/sssd/src/lib/winbind_idmap_sss/ |
H A D | winbind_idmap_sss.c | 39 struct idmap_sss_ctx *ctx; local 46 ctx = talloc_zero(dom, struct idmap_sss_ctx); 47 if (ctx == NULL) { 51 err = sss_idmap_init(sss_idmap_talloc, ctx, sss_idmap_talloc_free, 52 &ctx->idmap_ctx); 54 talloc_free(ctx); 58 dom->private_data = ctx; 72 struct idmap_sss_ctx *ctx; local 78 ctx = talloc_get_type(dom->private_data, struct idmap_sss_ctx); 79 if (ctx 134 struct idmap_sss_ctx *ctx; local [all...] |
/sssd/src/providers/ad/ |
H A D | ad_dyndns.c | 95 struct ad_options *ctx = talloc_get_type(pvt, struct ad_options); local 96 struct sdap_id_ctx *sdap_ctx = ctx->id_ctx->sdap_id_ctx; 99 req = sdap_dyndns_timer_conn_send(ctx, sdap_ctx->be->ev, sdap_ctx, 100 ctx->dyndns_ctx); 104 be_nsupdate_timer_schedule(sdap_ctx->be->ev, ctx->dyndns_ctx); 107 tevent_req_set_callback(req, ad_dyndns_timer_connected, ctx); 113 struct ad_options *ctx = tevent_req_callback_data(req, struct ad_options); local 123 return ad_dyndns_update(ctx); 126 static struct tevent_req *ad_dyndns_update_send(struct ad_options *ctx); 132 struct ad_options *ctx local 167 ad_dyndns_update_send(struct ad_options *ctx) argument [all...] |
/sssd/src/responder/ifp/ |
H A D | ifp_private.h | 49 void ifp_register_nodes(struct ifp_ctx *ctx, struct sbus_connection *conn); 91 struct ifp_ctx *ctx; member in struct:ifp_list_ctx 98 struct ifp_ctx *ctx,
|
H A D | ifp_iface_nodes.c | 113 struct ifp_ctx *ctx; local 118 ctx = talloc_get_type(data, struct ifp_ctx); 121 domain = ctx->rctx->domains; 133 domain = ctx->rctx->domains; 162 void ifp_register_nodes(struct ifp_ctx *ctx, struct sbus_connection *conn) argument 168 nodes_map[i].fn, ctx);
|
/sssd/src/tests/ |
H A D | leak_check.c | 37 TALLOC_CTX *ctx; member in struct:size_snapshot 54 check_leaks(TALLOC_CTX *ctx, size_t bytes, const char *location) argument 58 if (ctx == NULL) { 62 bytes_allocated = talloc_total_size(ctx); 65 talloc_report_full(ctx, stderr); 75 check_leaks_push(TALLOC_CTX *ctx) argument 80 snapshot->ctx = ctx; 81 snapshot->bytes_allocated = talloc_total_size(ctx); 86 _check_leaks_pop(TALLOC_CTX *ctx, cons argument [all...] |
H A D | auth-tests.c | 52 static int setup_sysdb_tests(struct sysdb_test_ctx **ctx) argument 146 *ctx = test_ctx;
|
/sssd/src/providers/proxy/ |
H A D | proxy_netgroup.c | 131 errno_t get_netgroup(struct proxy_id_ctx *ctx, argument 143 status = ctx->ops.setnetgrent(name, &result); 166 status = ctx->ops.getnetgrent_r(&result, buffer, BUFLEN, &ret); 186 status = ctx->ops.endnetgrent(&result);
|
H A D | proxy_services.c | 108 get_serv_byname(struct proxy_id_ctx *ctx, argument 128 status = ctx->ops.getservbyname_r(name, protocol, result, 153 get_serv_byport(struct proxy_id_ctx *ctx, argument 181 status = ctx->ops.getservbyport_r(port, protocol, result, 205 enum_services(struct proxy_id_ctx *ctx, argument 255 status = ctx->ops.setservent(); 268 status = ctx->ops.getservent_r(svc, buffer, buflen, &ret); 371 ctx->ops.endservent();
|
/sssd/src/providers/ipa/ |
H A D | ipa_dyndns.c | 36 struct ipa_options *ctx) 40 ctx->be_res = be_ctx->be_res; 41 if (ctx->be_res == NULL) { 47 ret = be_nsupdate_init_timer(ctx->dyndns_ctx, be_ctx->ev, 48 ipa_dyndns_timer, ctx); 56 ctx, NULL); 69 struct ipa_options *ctx; member in struct:ipa_dyndns_timer_ctx 76 struct ipa_options *ctx = talloc_get_type(pvt, struct ipa_options); local 77 struct sdap_id_ctx *sdap_ctx = ctx->id_ctx->sdap_id_ctx; 80 req = sdap_dyndns_timer_conn_send(ctx, sdap_ct 35 ipa_dyndns_init(struct be_ctx *be_ctx, struct ipa_options *ctx) argument 94 struct ipa_options *ctx = tevent_req_callback_data(req, local 116 struct ipa_options *ctx = talloc_get_type(pvt, struct ipa_options); local 150 ipa_dyndns_update_send(struct ipa_options *ctx) argument [all...] |
H A D | ipa_hostid.c | 31 struct ipa_hostid_ctx *ctx; member in struct:hosts_get_state 58 struct sdap_id_ctx *ctx; local 61 ctx = hostid_ctx->sdap_id_ctx; 67 state->ctx = hostid_ctx; 70 state->op = sdap_id_op_create(state, ctx->conn->conn_cache); 77 state->domain = ctx->be->domain; 132 state->ctx->sdap_id_ctx->opts, state->name, 133 state->ctx->ipa_opts->host_map, NULL, 134 state->ctx->host_search_bases);
|
/sssd/src/providers/krb5/ |
H A D | krb5_init.c | 35 static errno_t krb5_init_kpasswd(struct krb5_ctx *ctx, argument 45 realm = dp_opt_get_string(ctx->opts, KRB5_REALM); 51 kdc_servers = dp_opt_get_string(ctx->opts, KRB5_KDC); 52 primary_servers = dp_opt_get_string(ctx->opts, KRB5_KPASSWD); 53 backup_servers = dp_opt_get_string(ctx->opts, KRB5_BACKUP_KPASSWD); 54 use_kdcinfo = dp_opt_get_bool(ctx->opts, KRB5_USE_KDCINFO); 66 ctx->kpasswd_service = NULL; 68 ret = krb5_service_init(ctx, be_ctx, SSS_KRB5KPASSWD_FO_SRV, 70 use_kdcinfo, &ctx->kpasswd_service); 81 static errno_t krb5_init_kdc(struct krb5_ctx *ctx, struc argument 111 krb5_ctx_re_destructor(struct krb5_ctx *ctx) argument 127 struct krb5_ctx *ctx; local 200 struct krb5_ctx *ctx; local 223 struct krb5_ctx *ctx; local [all...] |
/sssd/src/providers/ldap/ |
H A D | sdap_fd_events.c | 87 struct ldap_conncb *ctx) 92 struct ldap_cb_data *cb_data = talloc_get_type(ctx->lc_arg, 137 struct ldap_conncb *ctx) 142 struct ldap_cb_data *cb_data = talloc_get_type(ctx->lc_arg, 84 sdap_ldap_connect_callback_add(LDAP *ld, Sockbuf *sb, LDAPURLDesc *srv, struct sockaddr *addr, struct ldap_conncb *ctx) argument 136 sdap_ldap_connect_callback_del(LDAP *ld, Sockbuf *sb, struct ldap_conncb *ctx) argument
|
H A D | sdap_autofs.c | 39 struct sdap_id_ctx *ctx; member in struct:autofs_get_map_state 56 struct sdap_id_ctx *ctx, 67 state->ctx = ctx; 71 state->op = sdap_id_op_create(state, state->ctx->conn->conn_cache); 128 state->ctx->be->domain, 129 state->ctx->be->domain->sysdb, 132 state->ctx->opts, 175 ret = sysdb_delete_autofsmap(state->ctx->be->domain, state->map_name); 54 sdap_autofs_get_map_send(TALLOC_CTX *mem_ctx, struct tevent_context *ev, struct sdap_id_ctx *ctx, const char *map_name) argument
|
/sssd/src/providers/data_provider/ |
H A D | dp_target_id.c | 100 struct dp_initgr_ctx *ctx; local 105 ctx = talloc_zero(mem_ctx, struct dp_initgr_ctx); 106 if (ctx == NULL) { 116 ctx->username = talloc_strdup(ctx, username); 117 if (ctx->username == NULL) { 122 ctx->domain = talloc_strdup(ctx, domain); 123 if (ctx->domain == NULL) { 128 ctx 156 dp_req_initgr_pp(const char *req_name, struct data_provider *provider, struct dp_initgr_ctx *ctx, struct dp_reply_std *reply) argument 210 struct dp_initgr_ctx *ctx; local [all...] |
/sssd/src/providers/ |
H A D | data_provider_callbacks.c | 53 static int be_add_cb(TALLOC_CTX *mem_ctx, struct be_ctx *ctx, argument 59 if (!ctx || !cb) { 71 new_cb->be = ctx; 156 int be_add_reconnect_cb(TALLOC_CTX *mem_ctx, struct be_ctx *ctx, be_callback_t cb, argument 161 ret = be_add_cb(mem_ctx, ctx, cb, pvt, &ctx->reconnect_cb_list, reconnect_cb); 195 int be_add_online_cb(TALLOC_CTX *mem_ctx, struct be_ctx *ctx, be_callback_t cb, argument 200 ret = be_add_cb(mem_ctx, ctx, cb, pvt, &ctx->online_cb_list, online_cb); 209 ctx 238 be_add_unconditional_online_cb(TALLOC_CTX *mem_ctx, struct be_ctx *ctx, be_callback_t cb, void *pvt, struct be_cb **unconditional_online_cb) argument 265 be_add_offline_cb(TALLOC_CTX *mem_ctx, struct be_ctx *ctx, be_callback_t cb, void *pvt, struct be_cb **offline_cb) argument [all...] |
/sssd/src/sbus/ |
H A D | sssd_dbus_server.c | 31 static int sbus_server_destructor(void *ctx); 363 static int sbus_server_destructor(void *ctx) argument 368 server = talloc_get_type(ctx, struct sbus_connection);
|
H A D | sssd_dbus_utils.c | 48 static void sbus_msg_data_destructor(void *ctx) argument 52 talloc_msg = talloc_get_type(ctx, struct sbus_talloc_msg);
|
/sssd/src/sss_client/ |
H A D | nss_mc_common.c | 58 errno_t sss_nss_check_header(struct sss_cli_mc_ctx *ctx) argument 69 (struct sss_mc_header *)ctx->mmap_base, 88 if (ctx->data_table == NULL) { 89 ctx->seed = h.seed; 90 ctx->data_table = MC_PTR_ADD(ctx->mmap_base, h.data_table); 91 ctx->hash_table = MC_PTR_ADD(ctx->mmap_base, h.hash_table); 92 ctx->dt_size = h.dt_size; 93 ctx 117 sss_nss_mc_destroy_ctx(struct sss_cli_mc_ctx *ctx) argument 134 sss_nss_mc_init_ctx(const char *name, struct sss_cli_mc_ctx *ctx) argument 197 sss_nss_mc_get_ctx(const char *name, struct sss_cli_mc_ctx *ctx) argument 251 sss_nss_mc_hash(struct sss_cli_mc_ctx *ctx, const char *key, size_t len) argument 257 sss_nss_mc_get_record(struct sss_cli_mc_ctx *ctx, uint32_t slot, struct sss_mc_rec **_rec) argument [all...] |
/sssd/src/tests/cwrap/ |
H A D | test_responder_common.c | 116 struct create_pipe_ctx *ctx; local 118 ctx = talloc(global_talloc_context, struct create_pipe_ctx); 119 assert_non_null(ctx); 120 ctx->fd = -1; 122 *state = ctx; 126 void check_sock_properties(struct create_pipe_ctx *ctx, mode_t mode) argument 134 ret = stat(ctx->sock_name, &sbuf); 141 ret = getsockopt(ctx->fd, SOL_SOCKET, SO_DOMAIN, &optval, &optlen); 146 ret = getsockopt(ctx->fd, SOL_SOCKET, SO_TYPE, &optval, &optlen); 152 ret = getsockopt(ctx 167 struct create_pipe_ctx *ctx; local 187 struct create_pipe_ctx *ctx; local [all...] |