| /sssd-io/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-io/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-io/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-io/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-io/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-io/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-io/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...] |
| /sssd-io/src/providers/files/ |
| H A D | files_init.c | 164 struct files_id_ctx *ctx; local 167 ctx = talloc_zero(mem_ctx, struct files_id_ctx); 168 if (ctx == NULL) { 172 ctx->be = be_ctx; 173 ctx->domain = be_ctx->domain; 175 ret = files_init_file_sources(ctx, be_ctx, 176 &ctx->passwd_files, 177 &ctx->group_files); 183 ctx->fctx = sf_init(ctx, be_ct 206 struct files_id_ctx *ctx; local [all...] |
| /sssd-io/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_srv.c | 44 struct ipa_srv_plugin_ctx *ctx = NULL; local 46 ctx = talloc_zero(mem_ctx, struct ipa_srv_plugin_ctx); 47 if (ctx == NULL) { 51 ctx->resolv_ctx = resolv_ctx; 53 ctx->hostname = talloc_strdup(ctx, hostname); 54 if (ctx->hostname == NULL) { 58 ctx->ipa_domain = talloc_strdup(ctx, ipa_domain); 59 if (ctx 94 struct ipa_srv_plugin_ctx *ctx = NULL; local [all...] |
| /sssd-io/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 203 struct krb5_ctx *ctx; local 226 struct krb5_ctx *ctx; local [all...] |
| /sssd-io/src/providers/ldap/ |
| H A D | sdap_certmap.c | 55 struct sss_certmap_ctx *sdap_get_sss_certmap(struct sdap_certmap_ctx *ctx) argument 57 return ctx == NULL ? NULL : ctx->certmap_ctx;
|
| 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 | ldap_id_netgroup.c | 35 struct sdap_id_ctx *ctx; member in struct:ldap_netgroup_get_state 62 struct sdap_id_ctx *ctx, 77 state->ctx = ctx; 93 state->timeout = dp_opt_get_int(ctx->opts->basic, SDAP_SEARCH_TIMEOUT); 101 ctx->opts->netgroup_map[SDAP_AT_NETGROUP_NAME].name, 103 ctx->opts->netgroup_map[SDAP_OC_NETGROUP].name); 111 ret = build_attrs_from_map(state, ctx->opts->netgroup_map, SDAP_OPTS_NETGROUP, 164 state->ctx->opts, 60 ldap_netgroup_get_send(TALLOC_CTX *memctx, struct tevent_context *ev, struct sdap_id_ctx *ctx, struct sdap_domain *sdom, struct sdap_id_conn_ctx *conn, const char *name, bool noexist_delete) 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-io/src/responder/ifp/ |
| 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);
|
| H A D | ifp_private.h | 49 void ifp_register_nodes(struct ifp_ctx *ctx, struct sbus_connection *conn); 93 struct ifp_ctx *ctx; member in struct:ifp_list_ctx 101 struct ifp_ctx *ctx,
|
| /sssd-io/src/lib/certmap/ |
| H A D | sss_certmap_ldap_mapping.c | 63 static int check_parsed_template(struct sss_certmap_ctx *ctx, argument 109 static int parse_template(TALLOC_CTX *mem_ctx, struct sss_certmap_ctx *ctx, argument 129 CM_DEBUG(ctx, "Only one '.' allowed in template."); 135 CM_DEBUG(ctx, "Missing name in template."); 145 CM_DEBUG(ctx, "Only one '!' allowed in template."); 151 CM_DEBUG(ctx, "Missing name in template."); 160 CM_DEBUG(ctx, "Memory allocation failed."); 174 CM_DEBUG(ctx, "Memory allocation failed."); 192 ret = check_parsed_template(ctx, parsed); 194 CM_DEBUG(ctx, "Pars 210 add_comp(struct sss_certmap_ctx *ctx, struct ldap_mapping_rule *rule, const char *string, enum comp_type type) argument 241 add_string(struct sss_certmap_ctx *ctx, struct ldap_mapping_rule *rule, const char *string) argument 247 add_template(struct sss_certmap_ctx *ctx, struct ldap_mapping_rule *rule, const char *string) argument 253 parse_ldap_mapping_rule(struct sss_certmap_ctx *ctx, const char *rule_start, struct ldap_mapping_rule **mapping_rule) argument [all...] |
| /sssd-io/src/lib/cifs_idmap_sss/ |
| H A D | cifs_idmap_sss.c | 52 #define ctx_set_error(ctx, error) \ 54 *ctx->errmsg = error; \ 60 struct sssd_ctx *ctx; local 66 ctx = malloc(sizeof *ctx); 67 if (!ctx) { 71 ctx->errmsg = errmsg; 72 ctx_set_error(ctx, NULL); 74 err = sss_idmap_init(NULL, NULL, NULL, &ctx->idmap); 76 ctx_set_error(ctx, idmap_error_strin 87 struct sssd_ctx *ctx = handle; local 104 struct sssd_ctx *ctx = handle; local 134 sid_to_cifs_sid(struct sssd_ctx *ctx, const char *sid, struct cifs_sid *csid) argument 163 struct sssd_ctx *ctx = handle; local 215 sss_sid_to_id(struct sssd_ctx *ctx, const char *sid, struct cifs_uxid *cuxid) argument 253 struct sssd_ctx *ctx = handle; local 293 struct sssd_ctx *ctx = handle; local [all...] |
| /sssd-io/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-io/src/responder/kcm/ |
| H A D | kcmsrv_op_queue.c | 81 void queue_removal_cb(struct tevent_context *ctx, argument
|