Searched refs:ctx (Results 1 - 25 of 159) sorted by relevance

1234567

/sssd/src/tests/
H A Dcommon_check.h33 #define ck_leaks_push(ctx) check_leaks_push(ctx)
34 #define ck_leaks_pop(ctx) fail_unless(check_leaks_pop(ctx) == true, check_leaks_err_msg())
H A Dleak_check.c37 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 Dfail_over-tests.c63 struct test_ctx *ctx; local
67 ctx = talloc_zero(global_talloc_context, struct test_ctx);
68 fail_if(ctx == NULL, "Could not allocate memory for test context");
70 ctx->ev = tevent_context_init(ctx);
71 if (ctx->ev == NULL) {
72 talloc_free(ctx);
76 ret = resolv_init(ctx, ctx->ev, 5, &ctx
106 struct test_ctx *ctx; local
229 struct test_ctx *ctx; local
[all...]
/sssd/src/util/crypto/libcrypto/
H A Dsss_openssl.h34 # define EVP_MD_CTX_free(ctx) EVP_MD_CTX_destroy((ctx))
H A Dcrypto_hmac_sha1.c38 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...]
/sssd/src/sss_client/
H A Dnss_mc_common.c58 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/responder/common/
H A Dnegcache.h31 uint32_t sss_ncache_get_timeout(struct sss_nc_ctx *ctx);
34 int sss_ncache_check_user(struct sss_nc_ctx *ctx, struct sss_domain_info *dom,
36 int sss_ncache_check_group(struct sss_nc_ctx *ctx, struct sss_domain_info *dom,
38 int sss_ncache_check_netgr(struct sss_nc_ctx *ctx, struct sss_domain_info *dom,
40 int sss_ncache_check_uid(struct sss_nc_ctx *ctx, struct sss_domain_info *dom,
42 int sss_ncache_check_gid(struct sss_nc_ctx *ctx, struct sss_domain_info *dom,
44 int sss_ncache_check_sid(struct sss_nc_ctx *ctx, const char *sid);
45 int sss_ncache_check_cert(struct sss_nc_ctx *ctx, const char *cert);
47 int sss_ncache_check_service(struct sss_nc_ctx *ctx,
51 int sss_ncache_check_service_port(struct sss_nc_ctx *ctx,
[all...]
/sssd/src/lib/sifp/
H A Dsss_sifp.c59 sss_sifp_ctx *ctx = NULL; local
70 ctx = alloc_func(sizeof(sss_sifp_ctx), alloc_pvt);
71 if (ctx == NULL) {
76 ctx->conn = NULL;
77 ctx->alloc_fn = alloc_func;
78 ctx->free_fn = free_func;
79 ctx->alloc_pvt = alloc_pvt;
80 ctx->io_error = alloc_func(sizeof(DBusError), alloc_pvt);
81 if (ctx->io_error == NULL) {
86 *_ctx = ctx;
111 sss_sifp_get_last_io_error_name(sss_sifp_ctx *ctx) argument
125 sss_sifp_get_last_io_error_message(sss_sifp_ctx *ctx) argument
168 sss_sifp_fetch_attr(sss_sifp_ctx *ctx, const char *object_path, const char *interface, const char *name, sss_sifp_attr ***_attrs) argument
224 sss_sifp_fetch_all_attrs(sss_sifp_ctx *ctx, const char *object_path, const char *interface, sss_sifp_attr ***_attrs) argument
272 sss_sifp_fetch_object(sss_sifp_ctx *ctx, const char *object_path, const char *interface, sss_sifp_object **_object) argument
338 sss_sifp_ctx *ctx = NULL; local
362 sss_sifp_free_attrs(sss_sifp_ctx *ctx, sss_sifp_attr ***_attrs) argument
420 sss_sifp_free_object(sss_sifp_ctx *ctx, sss_sifp_object **_object) argument
441 sss_sifp_free_string(sss_sifp_ctx *ctx, char **_str) argument
454 sss_sifp_free_string_array(sss_sifp_ctx *ctx, char ***_str_array) argument
[all...]
H A Dsss_sifp_private.h27 void *sss_sifp_alloc_zero(sss_sifp_ctx *ctx, size_t size, size_t num);
29 #define _alloc_zero(ctx, type, num) sss_sifp_alloc_zero(ctx, sizeof(type), num)
31 #define _free(ctx, var) \
33 ctx->free_fn((var), ctx->alloc_pvt); \
79 sss_sifp_set_io_error(sss_sifp_ctx *ctx,
83 sss_sifp_strdup(sss_sifp_ctx *ctx,
87 sss_sifp_strcat(sss_sifp_ctx *ctx,
92 sss_sifp_parse_attr(sss_sifp_ctx *ctx,
[all...]
H A Dsss_sifp_utils.c27 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 Dsss_sifp_dbus.h60 * @param[in] ctx sss_sifp context
67 sss_sifp_send_message(sss_sifp_ctx *ctx,
74 * @param[in] ctx sss_sifp context
82 sss_sifp_send_message_ex(sss_sifp_ctx *ctx,
94 * @param[in] ctx sss_sifp context
103 sss_sifp_invoke_list_ex(sss_sifp_ctx *ctx,
116 * @param[in] ctx sss_sifp context
123 sss_sifp_invoke_list(sss_sifp_ctx *ctx,
136 * @param[in] ctx sss_sifp context
145 sss_sifp_invoke_find_ex(sss_sifp_ctx *ctx,
[all...]
H A Dsss_sifp_common.c31 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/libwbclient/
H A Dwbc_ctx_sssd.c33 void wbcCtxFree(struct wbcContext *ctx) argument
39 wbcErr wbcCtxPing(struct wbcContext *ctx) argument
50 wbcErr wbcCtxInterfaceDetails(struct wbcContext *ctx, argument
56 wbcErr wbcCtxLookupName(struct wbcContext *ctx, argument
65 wbcErr wbcCtxLookupSid(struct wbcContext *ctx, argument
74 wbcErr wbcCtxLookupSids(struct wbcContext *ctx, argument
82 wbcErr wbcCtxLookupRids(struct wbcContext *ctx, argument
93 wbcErr wbcCtxLookupUserSids(struct wbcContext *ctx, argument
102 wbcErr wbcCtxGetSidAliases(struct wbcContext *ctx, argument
112 wbcErr wbcCtxListUsers(struct wbcContext *ctx, argument
120 wbcCtxListGroups(struct wbcContext *ctx, const char *domain_name, uint32_t *num_groups, const char ***groups) argument
128 wbcCtxGetDisplayName(struct wbcContext *ctx, const struct wbcDomainSid *sid, char **pdomain, char **pfullname, enum wbcSidType *pname_type) argument
137 wbcCtxSidToUid(struct wbcContext *ctx, const struct wbcDomainSid *sid, uid_t *puid) argument
144 wbcCtxUidToSid(struct wbcContext *ctx, uid_t uid, struct wbcDomainSid *sid) argument
150 wbcCtxSidToGid(struct wbcContext *ctx, const struct wbcDomainSid *sid, gid_t *pgid) argument
157 wbcCtxGidToSid(struct wbcContext *ctx, gid_t gid, struct wbcDomainSid *sid) argument
163 wbcCtxSidsToUnixIds(struct wbcContext *ctx, const struct wbcDomainSid *sids, uint32_t num_sids, struct wbcUnixId *ids) argument
170 wbcCtxUnixIdsToSids(struct wbcContext *ctx, const struct wbcUnixId *ids, uint32_t num_ids, struct wbcDomainSid *sids) argument
177 wbcCtxAllocateUid(struct wbcContext *ctx, uid_t *puid) argument
182 wbcCtxAllocateGid(struct wbcContext *ctx, gid_t *pgid) argument
187 wbcCtxGetpwnam(struct wbcContext *ctx, const char *name, struct passwd **pwd) argument
193 wbcCtxGetpwuid(struct wbcContext *ctx, uid_t uid, struct passwd **pwd) argument
199 wbcCtxGetpwsid(struct wbcContext *ctx, struct wbcDomainSid * sid, struct passwd **pwd) argument
205 wbcCtxGetgrnam(struct wbcContext *ctx, const char *name, struct group **grp) argument
211 wbcCtxGetgrgid(struct wbcContext *ctx, gid_t gid, struct group **grp) argument
217 wbcCtxSetpwent(struct wbcContext *ctx) argument
222 wbcCtxEndpwent(struct wbcContext *ctx) argument
227 wbcCtxGetpwent(struct wbcContext *ctx, struct passwd **pwd) argument
232 wbcCtxSetgrent(struct wbcContext *ctx) argument
237 wbcCtxEndgrent(struct wbcContext *ctx) argument
242 wbcCtxGetgrent(struct wbcContext *ctx, struct group **grp) argument
247 wbcCtxGetgrlist(struct wbcContext *ctx, struct group **grp) argument
252 wbcCtxGetGroups(struct wbcContext *ctx, const char *account, uint32_t *num_groups, gid_t **_groups) argument
260 wbcCtxDomainInfo(struct wbcContext *ctx, const char *domain, struct wbcDomainInfo **dinfo) argument
267 wbcCtxDcInfo(struct wbcContext *ctx, const char *domain, size_t *num_dcs, const char ***dc_names, const char ***dc_ips) argument
274 wbcCtxListTrusts(struct wbcContext *ctx, struct wbcDomainInfo **domains, size_t *num_domains) argument
281 wbcCtxLookupDomainController(struct wbcContext *ctx, const char *domain, uint32_t flags, struct wbcDomainControllerInfo **dc_info) argument
289 wbcCtxLookupDomainControllerEx(struct wbcContext *ctx, const char *domain, struct wbcGuid *guid, const char *site, uint32_t flags, struct wbcDomainControllerInfoEx **dc_info) argument
299 wbcCtxAuthenticateUser(struct wbcContext *ctx, const char *username, const char *password) argument
306 wbcCtxAuthenticateUserEx(struct wbcContext *ctx, const struct wbcAuthUserParams *params, struct wbcAuthUserInfo **info, struct wbcAuthErrorInfo **error) argument
314 wbcCtxLogonUser(struct wbcContext *ctx, const struct wbcLogonUserParams *params, struct wbcLogonUserInfo **info, struct wbcAuthErrorInfo **error, struct wbcUserPasswordPolicyInfo **policy) argument
323 wbcCtxLogoffUser(struct wbcContext *ctx, const char *username, uid_t uid, const char *ccfilename) argument
330 wbcCtxLogoffUserEx(struct wbcContext *ctx, const struct wbcLogoffUserParams *params, struct wbcAuthErrorInfo **error) argument
337 wbcCtxChangeUserPassword(struct wbcContext *ctx, const char *username, const char *old_password, const char *new_password) argument
345 wbcCtxChangeUserPasswordEx(struct wbcContext *ctx, const struct wbcChangePasswordParams *params, struct wbcAuthErrorInfo **error, enum wbcPasswordChangeRejectReason *reject_reason, struct wbcUserPasswordPolicyInfo **policy) argument
354 wbcCtxCredentialCache(struct wbcContext *ctx, struct wbcCredentialCacheParams *params, struct wbcCredentialCacheInfo **info, struct wbcAuthErrorInfo **error) argument
362 wbcCtxCredentialSave(struct wbcContext *ctx, const char *user, const char *password) argument
368 wbcCtxResolveWinsByName(struct wbcContext *ctx, const char *name, char **ip) argument
374 wbcCtxResolveWinsByIP(struct wbcContext *ctx, const char *ip, char **name) argument
380 wbcCtxCheckTrustCredentials(struct wbcContext *ctx, const char *domain, struct wbcAuthErrorInfo **error) argument
386 wbcCtxChangeTrustCredentials(struct wbcContext *ctx, const char *domain, struct wbcAuthErrorInfo **error) argument
392 wbcCtxPingDc(struct wbcContext *ctx, const char *domain, struct wbcAuthErrorInfo **error) argument
398 wbcCtxPingDc2(struct wbcContext *ctx, const char *domain, struct wbcAuthErrorInfo **error, char **dcname) argument
[all...]
/sssd/src/lib/idmap/
H A Dsss_idmap.h142 * @param[out] ctx idmap context
150 struct sss_idmap_ctx **ctx);
155 * @param[in] ctx idmap context
159 sss_idmap_ctx_set_autorid(struct sss_idmap_ctx *ctx, bool use_autorid);
164 * @param[in] ctx idmap context
168 sss_idmap_ctx_set_lower(struct sss_idmap_ctx *ctx, id_t lower);
173 * @param[in] ctx idmap context
177 sss_idmap_ctx_set_upper(struct sss_idmap_ctx *ctx, id_t upper);
182 * @param[in] ctx idmap context
186 sss_idmap_ctx_set_rangesize(struct sss_idmap_ctx *ctx, id_
[all...]
H A Dsss_idmap.c73 static char *idmap_strdup(struct sss_idmap_ctx *ctx, const char *str) argument
78 CHECK_IDMAP_CTX(ctx, NULL);
82 new = ctx->alloc_func(len, ctx->alloc_pvt);
109 construct_range(struct sss_idmap_ctx *ctx, argument
120 dst = ctx->alloc_func(sizeof(struct idmap_range_params), ctx->alloc_pvt);
229 struct sss_idmap_ctx *ctx; local
235 ctx = alloc_func(sizeof(struct sss_idmap_ctx), alloc_pvt);
236 if (ctx
257 free_helpers(struct sss_idmap_ctx *ctx, struct idmap_range_params *helpers, bool helpers_owner) argument
292 sss_idmap_free_domain(struct sss_idmap_ctx *ctx, struct idmap_domain_info *dom) argument
308 sss_idmap_free(struct sss_idmap_ctx *ctx) argument
327 sss_idmap_free_ptr(struct sss_idmap_ctx *ctx, void *ptr) argument
339 sss_idmap_free_sid(struct sss_idmap_ctx *ctx, char *sid) argument
345 sss_idmap_free_dom_sid(struct sss_idmap_ctx *ctx, struct sss_dom_sid *dom_sid) argument
351 sss_idmap_free_smb_sid(struct sss_idmap_ctx *ctx, struct dom_sid *smb_sid) argument
357 sss_idmap_free_bin_sid(struct sss_idmap_ctx *ctx, uint8_t *bin_sid) argument
379 sss_idmap_calculate_range(struct sss_idmap_ctx *ctx, const char *range_id, id_t *slice_num, struct sss_idmap_range *_range) argument
533 sss_idmap_check_collision(struct sss_idmap_ctx *ctx, char *n_name, char *n_sid, struct sss_idmap_range *n_range, uint32_t n_first_rid, char *n_range_id, bool n_external_mapping) argument
595 generate_sec_slice_name(struct sss_idmap_ctx *ctx, const char *domain_sid, uint32_t rid) argument
623 generate_slice(struct sss_idmap_ctx *ctx, char *slice_name, uint32_t first_rid, struct idmap_range_params **_slice) argument
653 get_helpers(struct sss_idmap_ctx *ctx, const char *domain_sid, uint32_t first_rid, struct idmap_range_params **_sec_slices) argument
701 sss_idmap_add_domain_ex(struct sss_idmap_ctx *ctx, const char *domain_name, const char *domain_sid, struct sss_idmap_range *range, const char *range_id, uint32_t rid, bool external_mapping) argument
782 sss_idmap_add_auto_domain_ex(struct sss_idmap_ctx *ctx, const char *domain_name, const char *domain_sid, struct sss_idmap_range *range, const char *range_id, uint32_t rid, bool external_mapping, idmap_store_cb cb, void *pvt) argument
842 sss_idmap_add_domain(struct sss_idmap_ctx *ctx, const char *domain_name, const char *domain_sid, struct sss_idmap_range *range) argument
913 get_range(struct sss_idmap_ctx *ctx, struct idmap_range_params *helpers, const char *dom_sid, long long rid, struct idmap_range_params **_range) argument
955 spawn_dom(struct sss_idmap_ctx *ctx, struct idmap_domain_info *parent, struct idmap_range_params *range) argument
1016 add_dom_for_sid(struct sss_idmap_ctx *ctx, struct idmap_domain_info *matched_dom, const char *sid, uint32_t *_id) argument
1055 sss_idmap_sid_to_unix(struct sss_idmap_ctx *ctx, const char *sid, uint32_t *_id) argument
1106 sss_idmap_check_sid_unix(struct sss_idmap_ctx *ctx, const char *sid, uint32_t id) argument
1151 generate_sid(struct sss_idmap_ctx *ctx, const char *dom_sid, uint32_t rid, char **_sid) argument
1180 sss_idmap_unix_to_sid(struct sss_idmap_ctx *ctx, uint32_t id, char **_sid) argument
1241 sss_idmap_dom_sid_to_unix(struct sss_idmap_ctx *ctx, struct sss_dom_sid *dom_sid, uint32_t *id) argument
1263 sss_idmap_bin_sid_to_unix(struct sss_idmap_ctx *ctx, uint8_t *bin_sid, size_t length, uint32_t *id) argument
1286 sss_idmap_smb_sid_to_unix(struct sss_idmap_ctx *ctx, struct dom_sid *smb_sid, uint32_t *id) argument
1308 sss_idmap_check_dom_sid_to_unix(struct sss_idmap_ctx *ctx, struct sss_dom_sid *dom_sid, uint32_t id) argument
1330 sss_idmap_check_bin_sid_unix(struct sss_idmap_ctx *ctx, uint8_t *bin_sid, size_t length, uint32_t id) argument
1353 sss_idmap_check_smb_sid_unix(struct sss_idmap_ctx *ctx, struct dom_sid *smb_sid, uint32_t id) argument
1374 sss_idmap_unix_to_dom_sid(struct sss_idmap_ctx *ctx, uint32_t id, struct sss_dom_sid **_dom_sid) argument
1406 sss_idmap_unix_to_bin_sid(struct sss_idmap_ctx *ctx, uint32_t id, uint8_t **_bin_sid, size_t *_length) argument
1443 sss_idmap_ctx_set_autorid(struct sss_idmap_ctx *ctx, bool use_autorid) argument
1451 sss_idmap_ctx_set_lower(struct sss_idmap_ctx *ctx, id_t lower) argument
1459 sss_idmap_ctx_set_upper(struct sss_idmap_ctx *ctx, id_t upper) argument
1467 sss_idmap_ctx_set_rangesize(struct sss_idmap_ctx *ctx, id_t rangesize) argument
1475 sss_idmap_ctx_set_extra_slice_init(struct sss_idmap_ctx *ctx, int extra_slice_init) argument
1484 sss_idmap_ctx_get_autorid(struct sss_idmap_ctx *ctx, bool *_autorid) argument
1492 sss_idmap_ctx_get_lower(struct sss_idmap_ctx *ctx, id_t *_lower) argument
1500 sss_idmap_ctx_get_upper(struct sss_idmap_ctx *ctx, id_t *_upper) argument
1508 sss_idmap_ctx_get_rangesize(struct sss_idmap_ctx *ctx, id_t *_rangesize) argument
1516 sss_idmap_domain_has_algorithmic_mapping(struct sss_idmap_ctx *ctx, const char *dom_sid, bool *has_algorithmic_mapping) argument
1557 sss_idmap_domain_by_name_has_algorithmic_mapping(struct sss_idmap_ctx *ctx, const char *dom_name, bool *has_algorithmic_mapping) argument
[all...]
H A Dsss_idmap_conv.c44 enum idmap_error_code sss_idmap_bin_sid_to_dom_sid(struct sss_idmap_ctx *ctx, argument
55 CHECK_IDMAP_CTX(ctx, IDMAP_CONTEXT_INVALID);
59 dom_sid = ctx->alloc_func(sizeof(struct sss_dom_sid), ctx->alloc_pvt);
100 ctx->free_func(dom_sid, ctx->alloc_pvt);
105 enum idmap_error_code sss_idmap_dom_sid_to_bin_sid(struct sss_idmap_ctx *ctx, argument
117 CHECK_IDMAP_CTX(ctx, IDMAP_CONTEXT_INVALID);
125 bin_sid = ctx->alloc_func(length, ctx
161 sss_idmap_dom_sid_to_sid(struct sss_idmap_ctx *ctx, struct sss_dom_sid *dom_sid, char **_sid) argument
225 sss_idmap_sid_to_dom_sid(struct sss_idmap_ctx *ctx, const char *sid, struct sss_dom_sid **_dom_sid) argument
329 sss_idmap_sid_to_bin_sid(struct sss_idmap_ctx *ctx, const char *sid, uint8_t **_bin_sid, size_t *_length) argument
362 sss_idmap_bin_sid_to_sid(struct sss_idmap_ctx *ctx, const uint8_t *bin_sid, size_t length, char **_sid) argument
393 sss_idmap_sid_to_smb_sid(struct sss_idmap_ctx *ctx, const char *sid, struct dom_sid **_smb_sid) argument
423 sss_idmap_smb_sid_to_sid(struct sss_idmap_ctx *ctx, struct dom_sid *smb_sid, char **_sid) argument
453 sss_idmap_dom_sid_to_smb_sid(struct sss_idmap_ctx *ctx, struct sss_dom_sid *dom_sid, struct dom_sid **_smb_sid) argument
480 sss_idmap_smb_sid_to_dom_sid(struct sss_idmap_ctx *ctx, struct dom_sid *smb_sid, struct sss_dom_sid **_dom_sid) argument
507 sss_idmap_bin_sid_to_smb_sid(struct sss_idmap_ctx *ctx, const uint8_t *bin_sid, size_t length, struct dom_sid **_smb_sid) argument
538 sss_idmap_smb_sid_to_bin_sid(struct sss_idmap_ctx *ctx, struct dom_sid *smb_sid, uint8_t **_bin_sid, size_t *_length) argument
[all...]
H A Dsss_idmap_private.h34 #define CHECK_IDMAP_CTX(ctx, ret) do { \
35 if (ctx == NULL || ctx->alloc_func == NULL || ctx->free_func == NULL) { \
/sssd/src/providers/krb5/
H A Dkrb5_init.c35 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/lib/cifs_idmap_sss/
H A Dcifs_idmap_sss.c52 #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/src/providers/ipa/
H A Dipa_dyndns.h36 struct ipa_options *ctx);
H A Dipa_dyndns.c36 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 Dipa_srv.c44 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/src/util/
H A Drefcount.h41 * when 'ctx' is freed with talloc_free() and no other references are left.
43 #define rc_alloc(ctx, type) \
44 (type *)_rc_alloc(ctx, sizeof(type), offsetof(type, REFCOUNT_MEMBER_NAME), \
49 * successful. The reference count will be decremented after 'ctx' has been
52 #define rc_reference(ctx, type, src) \
53 (type *)_rc_reference(ctx, offsetof(type, REFCOUNT_MEMBER_NAME), src)
/sssd/src/krb5_plugin/
H A Dsssd_krb5_locator_plugin.c50 if (ctx->debug) { \
83 static int get_krb5info(const char *realm, struct sssd_ctx *ctx, argument
187 free(ctx->kdc_addr);
188 ctx->kdc_addr = strdup((char *) buf);
189 if (ctx->kdc_addr == NULL) {
194 ctx->kdc_port = (uint16_t) port;
197 free(ctx->kpasswd_addr);
198 ctx->kpasswd_addr = strdup((char *) buf);
199 if (ctx->kpasswd_addr == NULL) {
204 ctx
221 struct sssd_ctx *ctx; local
242 struct sssd_ctx *ctx; local
267 struct sssd_ctx *ctx; local
[all...]
/sssd/src/providers/
H A Dbackend.h115 bool be_is_offline(struct be_ctx *ctx);
116 void be_mark_offline(struct be_ctx *ctx);
117 void be_mark_dom_offline(struct sss_domain_info *dom, struct be_ctx *ctx);
120 struct be_ctx *ctx,
127 struct be_ctx *ctx,
132 int be_add_unconditional_online_cb(TALLOC_CTX *mem_ctx, struct be_ctx *ctx,
138 struct be_ctx *ctx,
153 int be_init_failover(struct be_ctx *ctx);
155 int be_fo_add_service(struct be_ctx *ctx, const char *service_name,
158 struct be_ctx *ctx, cons
[all...]

Completed in 4057 milliseconds

1234567