ctx 283 examples/VFS/skel_opaque.c struct sys_notify_context *ctx, struct notify_entry *e, ctx 284 examples/VFS/skel_opaque.c void (*callback)(struct sys_notify_context *ctx, void *private_data, struct notify_event *ev), ctx 275 examples/VFS/skel_transparent.c struct sys_notify_context *ctx, struct notify_entry *e, ctx 276 examples/VFS/skel_transparent.c void (*callback)(struct sys_notify_context *ctx, void *private_data, struct notify_event *ev), ctx 279 examples/VFS/skel_transparent.c return SMB_VFS_NEXT_NOTIFY_WATCH(handle, ctx, e, callback, ctx 92 examples/libsmbclient/testbrowse2.c SMBCCTX *ctx; ctx 94 examples/libsmbclient/testbrowse2.c if ((ctx = smbc_new_context()) == NULL) return NULL; ctx 96 examples/libsmbclient/testbrowse2.c smbc_setDebug(ctx, debuglevel); ctx 97 examples/libsmbclient/testbrowse2.c smbc_setFunctionAuthData(ctx, smbc_auth_fn); ctx 99 examples/libsmbclient/testbrowse2.c if (smbc_init_context(ctx) == NULL){ ctx 100 examples/libsmbclient/testbrowse2.c smbc_free_context(ctx, 1); ctx 104 examples/libsmbclient/testbrowse2.c return ctx; ctx 107 examples/libsmbclient/testbrowse2.c void delete_smbctx(SMBCCTX* ctx){ ctx 108 examples/libsmbclient/testbrowse2.c smbc_getFunctionPurgeCachedServers(ctx)(ctx); ctx 109 examples/libsmbclient/testbrowse2.c smbc_free_context(ctx, 1); ctx 112 examples/libsmbclient/testbrowse2.c smbitem* get_smbitem_list(SMBCCTX *ctx, char *smb_path){ ctx 117 examples/libsmbclient/testbrowse2.c if ((fd = smbc_getFunctionOpendir(ctx)(ctx, smb_path)) == NULL) ctx 119 examples/libsmbclient/testbrowse2.c while((dirent = smbc_getFunctionReaddir(ctx)(ctx, fd)) != NULL){ ctx 132 examples/libsmbclient/testbrowse2.c smbc_getFunctionClose(ctx)(ctx, fd); ctx 146 examples/libsmbclient/testbrowse2.c void recurse(SMBCCTX *ctx, char *smb_group, char *smb_path, int maxlen){ ctx 153 examples/libsmbclient/testbrowse2.c list = get_smbitem_list(ctx, smb_path); ctx 170 examples/libsmbclient/testbrowse2.c recurse(ctx, smb_group, smb_path, maxlen); ctx 171 examples/libsmbclient/testbrowse2.c smbc_getFunctionPurgeCachedServers(ctx)(ctx); ctx 183 examples/libsmbclient/testbrowse2.c recurse(ctx, smb_group, smb_path, maxlen); ctx 185 examples/libsmbclient/testbrowse2.c smbc_getFunctionPurgeCachedServers(ctx)(ctx); ctx 198 examples/libsmbclient/testbrowse2.c SMBCCTX *ctx; ctx 201 examples/libsmbclient/testbrowse2.c if ((ctx = create_smbctx()) == NULL){ ctx 206 examples/libsmbclient/testbrowse2.c if (argc == 1) recurse(ctx, "", smb_path, sizeof(smb_path)); ctx 210 examples/libsmbclient/testbrowse2.c recurse(ctx, "", smb_path, sizeof(smb_path)); ctx 213 examples/libsmbclient/testbrowse2.c delete_smbctx(ctx); ctx 5 examples/libsmbclient/testctx.c SMBCCTX *ctx; ctx 6 examples/libsmbclient/testctx.c ctx = smbc_new_context (); ctx 7 examples/libsmbclient/testctx.c smbc_init_context (ctx); ctx 9 examples/libsmbclient/testctx.c smbc_free_context (ctx, 1); ctx 27 lib/async_req/async_req.c #define TALLOC_FREE(ctx) do { talloc_free(ctx); ctx=NULL; } while(0) ctx 29 lib/async_req/async_sock.c #define TALLOC_FREE(ctx) do { talloc_free(ctx); ctx=NULL; } while(0) ctx 31 lib/crypto/hmacmd5.c _PUBLIC_ void hmac_md5_init_rfc2104(const uint8_t *key, int key_len, HMACMD5Context *ctx) ctx 50 lib/crypto/hmacmd5.c ZERO_STRUCT(ctx->k_ipad); ctx 51 lib/crypto/hmacmd5.c ZERO_STRUCT(ctx->k_opad); ctx 52 lib/crypto/hmacmd5.c memcpy( ctx->k_ipad, key, key_len); ctx 53 lib/crypto/hmacmd5.c memcpy( ctx->k_opad, key, key_len); ctx 58 lib/crypto/hmacmd5.c ctx->k_ipad[i] ^= 0x36; ctx 59 lib/crypto/hmacmd5.c ctx->k_opad[i] ^= 0x5c; ctx 62 lib/crypto/hmacmd5.c MD5Init(&ctx->ctx); ctx 63 lib/crypto/hmacmd5.c MD5Update(&ctx->ctx, ctx->k_ipad, 64); ctx 70 lib/crypto/hmacmd5.c HMACMD5Context *ctx) ctx 78 lib/crypto/hmacmd5.c hmac_md5_init_rfc2104(key, key_len, ctx); ctx 84 lib/crypto/hmacmd5.c _PUBLIC_ void hmac_md5_update(const uint8_t *text, int text_len, HMACMD5Context *ctx) ctx 86 lib/crypto/hmacmd5.c MD5Update(&ctx->ctx, text, text_len); /* then text of datagram */ ctx 92 lib/crypto/hmacmd5.c _PUBLIC_ void hmac_md5_final(uint8_t *digest, HMACMD5Context *ctx) ctx 96 lib/crypto/hmacmd5.c MD5Final(digest, &ctx->ctx); ctx 99 lib/crypto/hmacmd5.c MD5Update(&ctx_o, ctx->k_opad, 64); ctx 110 lib/crypto/hmacmd5.c HMACMD5Context ctx; ctx 111 lib/crypto/hmacmd5.c hmac_md5_init_limK_to_64(key, 16, &ctx); ctx 114 lib/crypto/hmacmd5.c hmac_md5_update(data, data_len, &ctx); ctx 116 lib/crypto/hmacmd5.c hmac_md5_final(digest, &ctx); ctx 28 lib/crypto/hmacmd5.h struct MD5Context ctx; ctx 35 lib/crypto/hmacmd5.h HMACMD5Context *ctx); ctx 36 lib/crypto/hmacmd5.h void hmac_md5_update(const uint8_t *text, int text_len, HMACMD5Context *ctx); ctx 37 lib/crypto/hmacmd5.h void hmac_md5_final(uint8_t *digest, HMACMD5Context *ctx); ctx 39 lib/crypto/hmacmd5.h void hmac_md5_init_rfc2104(const uint8_t *key, int key_len, HMACMD5Context *ctx); ctx 79 lib/crypto/hmacmd5test.c HMACMD5Context ctx; ctx 83 lib/crypto/hmacmd5test.c hmac_md5_init_rfc2104(testarray[i].key.data, testarray[i].key.length, &ctx); ctx 84 lib/crypto/hmacmd5test.c hmac_md5_update(testarray[i].data.data, testarray[i].data.length, &ctx); ctx 85 lib/crypto/hmacmd5test.c hmac_md5_final(md5, &ctx); ctx 35 lib/crypto/hmacsha256.c _PUBLIC_ void hmac_sha256_init(const uint8_t *key, size_t key_len, struct HMACSHA256Context *ctx) ctx 54 lib/crypto/hmacsha256.c ZERO_STRUCT(ctx->k_ipad); ctx 55 lib/crypto/hmacsha256.c ZERO_STRUCT(ctx->k_opad); ctx 56 lib/crypto/hmacsha256.c memcpy( ctx->k_ipad, key, key_len); ctx 57 lib/crypto/hmacsha256.c memcpy( ctx->k_opad, key, key_len); ctx 62 lib/crypto/hmacsha256.c ctx->k_ipad[i] ^= 0x36; ctx 63 lib/crypto/hmacsha256.c ctx->k_opad[i] ^= 0x5c; ctx 66 lib/crypto/hmacsha256.c SHA256_Init(&ctx->ctx); ctx 67 lib/crypto/hmacsha256.c SHA256_Update(&ctx->ctx, ctx->k_ipad, 64); ctx 73 lib/crypto/hmacsha256.c _PUBLIC_ void hmac_sha256_update(const uint8_t *data, size_t data_len, struct HMACSHA256Context *ctx) ctx 75 lib/crypto/hmacsha256.c SHA256_Update(&ctx->ctx, data, data_len); /* then text of datagram */ ctx 81 lib/crypto/hmacsha256.c _PUBLIC_ void hmac_sha256_final(uint8_t digest[SHA256_DIGEST_LENGTH], struct HMACSHA256Context *ctx) ctx 85 lib/crypto/hmacsha256.c SHA256_Final(digest, &ctx->ctx); ctx 88 lib/crypto/hmacsha256.c SHA256_Update(&ctx_o, ctx->k_opad, 64); ctx 29 lib/crypto/hmacsha256.h SHA256_CTX ctx; ctx 34 lib/crypto/hmacsha256.h void hmac_sha256_init(const uint8_t *key, size_t key_len, struct HMACSHA256Context *ctx); ctx 35 lib/crypto/hmacsha256.h void hmac_sha256_update(const uint8_t *data, size_t data_len, struct HMACSHA256Context *ctx); ctx 36 lib/crypto/hmacsha256.h void hmac_sha256_final(uint8_t digest[20], struct HMACSHA256Context *ctx); ctx 46 lib/crypto/md5.c _PUBLIC_ void MD5Init(struct MD5Context *ctx) ctx 48 lib/crypto/md5.c ctx->buf[0] = 0x67452301; ctx 49 lib/crypto/md5.c ctx->buf[1] = 0xefcdab89; ctx 50 lib/crypto/md5.c ctx->buf[2] = 0x98badcfe; ctx 51 lib/crypto/md5.c ctx->buf[3] = 0x10325476; ctx 53 lib/crypto/md5.c ctx->bits[0] = 0; ctx 54 lib/crypto/md5.c ctx->bits[1] = 0; ctx 61 lib/crypto/md5.c _PUBLIC_ void MD5Update(struct MD5Context *ctx, const uint8_t *buf, size_t len) ctx 67 lib/crypto/md5.c t = ctx->bits[0]; ctx 68 lib/crypto/md5.c if ((ctx->bits[0] = t + ((uint32_t) len << 3)) < t) ctx 69 lib/crypto/md5.c ctx->bits[1]++; /* Carry from low to high */ ctx 70 lib/crypto/md5.c ctx->bits[1] += len >> 29; ctx 77 lib/crypto/md5.c uint8_t *p = (uint8_t *) ctx->in + t; ctx 85 lib/crypto/md5.c byteReverse(ctx->in, 16); ctx 86 lib/crypto/md5.c MD5Transform(ctx->buf, (uint32_t *) ctx->in); ctx 93 lib/crypto/md5.c memmove(ctx->in, buf, 64); ctx 94 lib/crypto/md5.c byteReverse(ctx->in, 16); ctx 95 lib/crypto/md5.c MD5Transform(ctx->buf, (uint32_t *) ctx->in); ctx 102 lib/crypto/md5.c memmove(ctx->in, buf, len); ctx 109 lib/crypto/md5.c _PUBLIC_ void MD5Final(uint8_t digest[16], struct MD5Context *ctx) ctx 115 lib/crypto/md5.c count = (ctx->bits[0] >> 3) & 0x3F; ctx 119 lib/crypto/md5.c p = ctx->in + count; ctx 129 lib/crypto/md5.c byteReverse(ctx->in, 16); ctx 130 lib/crypto/md5.c MD5Transform(ctx->buf, (uint32_t *) ctx->in); ctx 133 lib/crypto/md5.c memset(ctx->in, 0, 56); ctx 138 lib/crypto/md5.c byteReverse(ctx->in, 14); ctx 141 lib/crypto/md5.c ((uint32_t *) ctx->in)[14] = ctx->bits[0]; ctx 142 lib/crypto/md5.c ((uint32_t *) ctx->in)[15] = ctx->bits[1]; ctx 144 lib/crypto/md5.c MD5Transform(ctx->buf, (uint32_t *) ctx->in); ctx 145 lib/crypto/md5.c byteReverse((uint8_t *) ctx->buf, 4); ctx 146 lib/crypto/md5.c memmove(digest, ctx->buf, 16); ctx 147 lib/crypto/md5.c memset(ctx, 0, sizeof(ctx)); /* In case it's sensitive */ ctx 65 lib/crypto/md5test.c struct MD5Context ctx; ctx 75 lib/crypto/md5test.c MD5Init(&ctx); ctx 76 lib/crypto/md5test.c MD5Update(&ctx, data.data, data.length); ctx 77 lib/crypto/md5test.c MD5Final(md5, &ctx); ctx 29 lib/replace/test/main.c bool torture_local_replace(struct torture_context *ctx); ctx 1019 lib/replace/test/testsuite.c bool torture_local_replace(struct torture_context *ctx) ctx 30 lib/smbconf/smbconf.c static WERROR smbconf_global_check(struct smbconf_ctx *ctx) ctx 32 lib/smbconf/smbconf.c if (!smbconf_share_exists(ctx, GLOBAL_NAME)) { ctx 33 lib/smbconf/smbconf.c return smbconf_create_share(ctx, GLOBAL_NAME); ctx 49 lib/smbconf/smbconf.c bool smbconf_backend_requires_messaging(struct smbconf_ctx *ctx) ctx 51 lib/smbconf/smbconf.c return ctx->ops->requires_messaging(ctx); ctx 57 lib/smbconf/smbconf.c bool smbconf_is_writeable(struct smbconf_ctx *ctx) ctx 59 lib/smbconf/smbconf.c return ctx->ops->is_writeable(ctx); ctx 65 lib/smbconf/smbconf.c void smbconf_shutdown(struct smbconf_ctx *ctx) ctx 67 lib/smbconf/smbconf.c talloc_free(ctx); ctx 76 lib/smbconf/smbconf.c bool smbconf_changed(struct smbconf_ctx *ctx, struct smbconf_csn *csn, ctx 87 lib/smbconf/smbconf.c ctx->ops->get_csn(ctx, csn, service, param); ctx 94 lib/smbconf/smbconf.c WERROR smbconf_drop(struct smbconf_ctx *ctx) ctx 96 lib/smbconf/smbconf.c return ctx->ops->drop(ctx); ctx 108 lib/smbconf/smbconf.c WERROR smbconf_get_config(struct smbconf_ctx *ctx, ctx 127 lib/smbconf/smbconf.c werr = smbconf_get_share_names(ctx, tmp_ctx, &tmp_num_shares, ctx 142 lib/smbconf/smbconf.c werr = smbconf_get_share(ctx, tmp_services, ctx 167 lib/smbconf/smbconf.c WERROR smbconf_get_share_names(struct smbconf_ctx *ctx, ctx 172 lib/smbconf/smbconf.c return ctx->ops->get_share_names(ctx, mem_ctx, num_shares, ctx 179 lib/smbconf/smbconf.c bool smbconf_share_exists(struct smbconf_ctx *ctx, ctx 182 lib/smbconf/smbconf.c return ctx->ops->share_exists(ctx, servicename); ctx 188 lib/smbconf/smbconf.c WERROR smbconf_create_share(struct smbconf_ctx *ctx, ctx 191 lib/smbconf/smbconf.c if ((servicename != NULL) && smbconf_share_exists(ctx, servicename)) { ctx 195 lib/smbconf/smbconf.c return ctx->ops->create_share(ctx, servicename); ctx 201 lib/smbconf/smbconf.c WERROR smbconf_get_share(struct smbconf_ctx *ctx, ctx 206 lib/smbconf/smbconf.c return ctx->ops->get_share(ctx, mem_ctx, servicename, service); ctx 212 lib/smbconf/smbconf.c WERROR smbconf_delete_share(struct smbconf_ctx *ctx, const char *servicename) ctx 214 lib/smbconf/smbconf.c if (!smbconf_share_exists(ctx, servicename)) { ctx 218 lib/smbconf/smbconf.c return ctx->ops->delete_share(ctx, servicename); ctx 224 lib/smbconf/smbconf.c WERROR smbconf_set_parameter(struct smbconf_ctx *ctx, ctx 229 lib/smbconf/smbconf.c return ctx->ops->set_parameter(ctx, service, param, valstr); ctx 238 lib/smbconf/smbconf.c WERROR smbconf_set_global_parameter(struct smbconf_ctx *ctx, ctx 243 lib/smbconf/smbconf.c werr = smbconf_global_check(ctx); ctx 245 lib/smbconf/smbconf.c werr = smbconf_set_parameter(ctx, GLOBAL_NAME, param, val); ctx 254 lib/smbconf/smbconf.c WERROR smbconf_get_parameter(struct smbconf_ctx *ctx, ctx 264 lib/smbconf/smbconf.c return ctx->ops->get_parameter(ctx, mem_ctx, service, param, valstr); ctx 272 lib/smbconf/smbconf.c WERROR smbconf_get_global_parameter(struct smbconf_ctx *ctx, ctx 279 lib/smbconf/smbconf.c werr = smbconf_global_check(ctx); ctx 281 lib/smbconf/smbconf.c werr = smbconf_get_parameter(ctx, mem_ctx, GLOBAL_NAME, param, ctx 291 lib/smbconf/smbconf.c WERROR smbconf_delete_parameter(struct smbconf_ctx *ctx, ctx 294 lib/smbconf/smbconf.c return ctx->ops->delete_parameter(ctx, service, param); ctx 302 lib/smbconf/smbconf.c WERROR smbconf_delete_global_parameter(struct smbconf_ctx *ctx, ctx 307 lib/smbconf/smbconf.c werr = smbconf_global_check(ctx); ctx 309 lib/smbconf/smbconf.c werr = smbconf_delete_parameter(ctx, GLOBAL_NAME, param); ctx 315 lib/smbconf/smbconf.c WERROR smbconf_get_includes(struct smbconf_ctx *ctx, ctx 320 lib/smbconf/smbconf.c return ctx->ops->get_includes(ctx, mem_ctx, service, num_includes, ctx 324 lib/smbconf/smbconf.c WERROR smbconf_get_global_includes(struct smbconf_ctx *ctx, ctx 330 lib/smbconf/smbconf.c werr = smbconf_global_check(ctx); ctx 332 lib/smbconf/smbconf.c werr = smbconf_get_includes(ctx, mem_ctx, GLOBAL_NAME, ctx 339 lib/smbconf/smbconf.c WERROR smbconf_set_includes(struct smbconf_ctx *ctx, ctx 343 lib/smbconf/smbconf.c return ctx->ops->set_includes(ctx, service, num_includes, includes); ctx 346 lib/smbconf/smbconf.c WERROR smbconf_set_global_includes(struct smbconf_ctx *ctx, ctx 352 lib/smbconf/smbconf.c werr = smbconf_global_check(ctx); ctx 354 lib/smbconf/smbconf.c werr = smbconf_set_includes(ctx, GLOBAL_NAME, ctx 362 lib/smbconf/smbconf.c WERROR smbconf_delete_includes(struct smbconf_ctx *ctx, const char *service) ctx 364 lib/smbconf/smbconf.c return ctx->ops->delete_includes(ctx, service); ctx 367 lib/smbconf/smbconf.c WERROR smbconf_delete_global_includes(struct smbconf_ctx *ctx) ctx 371 lib/smbconf/smbconf.c werr = smbconf_global_check(ctx); ctx 373 lib/smbconf/smbconf.c werr = smbconf_delete_includes(ctx, GLOBAL_NAME); ctx 379 lib/smbconf/smbconf.c WERROR smbconf_transaction_start(struct smbconf_ctx *ctx) ctx 381 lib/smbconf/smbconf.c return ctx->ops->transaction_start(ctx); ctx 384 lib/smbconf/smbconf.c WERROR smbconf_transaction_commit(struct smbconf_ctx *ctx) ctx 386 lib/smbconf/smbconf.c return ctx->ops->transaction_commit(ctx); ctx 389 lib/smbconf/smbconf.c WERROR smbconf_transaction_cancel(struct smbconf_ctx *ctx) ctx 391 lib/smbconf/smbconf.c return ctx->ops->transaction_cancel(ctx); ctx 40 lib/smbconf/smbconf.h bool smbconf_backend_requires_messaging(struct smbconf_ctx *ctx); ctx 41 lib/smbconf/smbconf.h bool smbconf_is_writeable(struct smbconf_ctx *ctx); ctx 42 lib/smbconf/smbconf.h void smbconf_shutdown(struct smbconf_ctx *ctx); ctx 43 lib/smbconf/smbconf.h bool smbconf_changed(struct smbconf_ctx *ctx, struct smbconf_csn *csn, ctx 45 lib/smbconf/smbconf.h WERROR smbconf_drop(struct smbconf_ctx *ctx); ctx 46 lib/smbconf/smbconf.h WERROR smbconf_get_config(struct smbconf_ctx *ctx, ctx 50 lib/smbconf/smbconf.h WERROR smbconf_get_share_names(struct smbconf_ctx *ctx, ctx 54 lib/smbconf/smbconf.h bool smbconf_share_exists(struct smbconf_ctx *ctx, const char *servicename); ctx 55 lib/smbconf/smbconf.h WERROR smbconf_create_share(struct smbconf_ctx *ctx, const char *servicename); ctx 56 lib/smbconf/smbconf.h WERROR smbconf_get_share(struct smbconf_ctx *ctx, ctx 60 lib/smbconf/smbconf.h WERROR smbconf_delete_share(struct smbconf_ctx *ctx, ctx 62 lib/smbconf/smbconf.h WERROR smbconf_set_parameter(struct smbconf_ctx *ctx, ctx 66 lib/smbconf/smbconf.h WERROR smbconf_set_global_parameter(struct smbconf_ctx *ctx, ctx 68 lib/smbconf/smbconf.h WERROR smbconf_get_parameter(struct smbconf_ctx *ctx, ctx 73 lib/smbconf/smbconf.h WERROR smbconf_get_global_parameter(struct smbconf_ctx *ctx, ctx 77 lib/smbconf/smbconf.h WERROR smbconf_delete_parameter(struct smbconf_ctx *ctx, ctx 79 lib/smbconf/smbconf.h WERROR smbconf_delete_global_parameter(struct smbconf_ctx *ctx, ctx 81 lib/smbconf/smbconf.h WERROR smbconf_get_includes(struct smbconf_ctx *ctx, ctx 85 lib/smbconf/smbconf.h WERROR smbconf_get_global_includes(struct smbconf_ctx *ctx, ctx 88 lib/smbconf/smbconf.h WERROR smbconf_set_includes(struct smbconf_ctx *ctx, ctx 91 lib/smbconf/smbconf.h WERROR smbconf_set_global_includes(struct smbconf_ctx *ctx, ctx 94 lib/smbconf/smbconf.h WERROR smbconf_delete_includes(struct smbconf_ctx *ctx, const char *service); ctx 95 lib/smbconf/smbconf.h WERROR smbconf_delete_global_includes(struct smbconf_ctx *ctx); ctx 97 lib/smbconf/smbconf.h WERROR smbconf_transaction_start(struct smbconf_ctx *ctx); ctx 98 lib/smbconf/smbconf.h WERROR smbconf_transaction_commit(struct smbconf_ctx *ctx); ctx 99 lib/smbconf/smbconf.h WERROR smbconf_transaction_cancel(struct smbconf_ctx *ctx); ctx 30 lib/smbconf/smbconf_private.h WERROR (*init)(struct smbconf_ctx *ctx, const char *path); ctx 31 lib/smbconf/smbconf_private.h int (*shutdown)(struct smbconf_ctx *ctx); ctx 32 lib/smbconf/smbconf_private.h bool (*requires_messaging)(struct smbconf_ctx *ctx); ctx 33 lib/smbconf/smbconf_private.h bool (*is_writeable)(struct smbconf_ctx *ctx); ctx 34 lib/smbconf/smbconf_private.h WERROR (*open_conf)(struct smbconf_ctx *ctx); ctx 35 lib/smbconf/smbconf_private.h int (*close_conf)(struct smbconf_ctx *ctx); ctx 36 lib/smbconf/smbconf_private.h void (*get_csn)(struct smbconf_ctx *ctx, struct smbconf_csn *csn, ctx 38 lib/smbconf/smbconf_private.h WERROR (*drop)(struct smbconf_ctx *ctx); ctx 39 lib/smbconf/smbconf_private.h WERROR (*get_share_names)(struct smbconf_ctx *ctx, ctx 43 lib/smbconf/smbconf_private.h bool (*share_exists)(struct smbconf_ctx *ctx, const char *service); ctx 44 lib/smbconf/smbconf_private.h WERROR (*create_share)(struct smbconf_ctx *ctx, const char *service); ctx 45 lib/smbconf/smbconf_private.h WERROR (*get_share)(struct smbconf_ctx *ctx, ctx 49 lib/smbconf/smbconf_private.h WERROR (*delete_share)(struct smbconf_ctx *ctx, ctx 51 lib/smbconf/smbconf_private.h WERROR (*set_parameter)(struct smbconf_ctx *ctx, ctx 55 lib/smbconf/smbconf_private.h WERROR (*get_parameter)(struct smbconf_ctx *ctx, ctx 60 lib/smbconf/smbconf_private.h WERROR (*delete_parameter)(struct smbconf_ctx *ctx, ctx 62 lib/smbconf/smbconf_private.h WERROR (*get_includes)(struct smbconf_ctx *ctx, ctx 66 lib/smbconf/smbconf_private.h WERROR (*set_includes)(struct smbconf_ctx *ctx, ctx 69 lib/smbconf/smbconf_private.h WERROR (*delete_includes)(struct smbconf_ctx *ctx, ctx 71 lib/smbconf/smbconf_private.h WERROR (*transaction_start)(struct smbconf_ctx *ctx); ctx 72 lib/smbconf/smbconf_private.h WERROR (*transaction_commit)(struct smbconf_ctx *ctx); ctx 73 lib/smbconf/smbconf_private.h WERROR (*transaction_cancel)(struct smbconf_ctx *ctx); ctx 55 lib/smbconf/smbconf_txt.c static struct txt_private_data *pd(struct smbconf_ctx *ctx) ctx 57 lib/smbconf/smbconf_txt.c return (struct txt_private_data *)(ctx->data); ctx 161 lib/smbconf/smbconf_txt.c static void smbconf_txt_flush_cache(struct smbconf_ctx *ctx) ctx 163 lib/smbconf/smbconf_txt.c talloc_free(pd(ctx)->cache); ctx 164 lib/smbconf/smbconf_txt.c pd(ctx)->cache = NULL; ctx 167 lib/smbconf/smbconf_txt.c static WERROR smbconf_txt_init_cache(struct smbconf_ctx *ctx) ctx 169 lib/smbconf/smbconf_txt.c if (pd(ctx)->cache != NULL) { ctx 170 lib/smbconf/smbconf_txt.c smbconf_txt_flush_cache(ctx); ctx 173 lib/smbconf/smbconf_txt.c pd(ctx)->cache = talloc_zero(pd(ctx), struct txt_cache); ctx 175 lib/smbconf/smbconf_txt.c if (pd(ctx)->cache == NULL) { ctx 182 lib/smbconf/smbconf_txt.c static WERROR smbconf_txt_load_file(struct smbconf_ctx *ctx) ctx 187 lib/smbconf/smbconf_txt.c if (!file_exist(ctx->path)) { ctx 191 lib/smbconf/smbconf_txt.c new_csn = (uint64_t)file_modtime(ctx->path); ctx 192 lib/smbconf/smbconf_txt.c if (new_csn == pd(ctx)->csn) { ctx 196 lib/smbconf/smbconf_txt.c werr = smbconf_txt_init_cache(ctx); ctx 201 lib/smbconf/smbconf_txt.c if (!pm_process(ctx->path, smbconf_txt_do_section, ctx 202 lib/smbconf/smbconf_txt.c smbconf_txt_do_parameter, pd(ctx))) ctx 207 lib/smbconf/smbconf_txt.c pd(ctx)->csn = new_csn; ctx 222 lib/smbconf/smbconf_txt.c static WERROR smbconf_txt_init(struct smbconf_ctx *ctx, const char *path) ctx 227 lib/smbconf/smbconf_txt.c ctx->path = talloc_strdup(ctx, path); ctx 228 lib/smbconf/smbconf_txt.c if (ctx->path == NULL) { ctx 232 lib/smbconf/smbconf_txt.c ctx->data = talloc_zero(ctx, struct txt_private_data); ctx 233 lib/smbconf/smbconf_txt.c if (ctx->data == NULL) { ctx 237 lib/smbconf/smbconf_txt.c pd(ctx)->verbatim = true; ctx 242 lib/smbconf/smbconf_txt.c static int smbconf_txt_shutdown(struct smbconf_ctx *ctx) ctx 244 lib/smbconf/smbconf_txt.c return ctx->ops->close_conf(ctx); ctx 247 lib/smbconf/smbconf_txt.c static bool smbconf_txt_requires_messaging(struct smbconf_ctx *ctx) ctx 252 lib/smbconf/smbconf_txt.c static bool smbconf_txt_is_writeable(struct smbconf_ctx *ctx) ctx 258 lib/smbconf/smbconf_txt.c static WERROR smbconf_txt_open(struct smbconf_ctx *ctx) ctx 260 lib/smbconf/smbconf_txt.c return smbconf_txt_load_file(ctx); ctx 263 lib/smbconf/smbconf_txt.c static int smbconf_txt_close(struct smbconf_ctx *ctx) ctx 265 lib/smbconf/smbconf_txt.c smbconf_txt_flush_cache(ctx); ctx 273 lib/smbconf/smbconf_txt.c static void smbconf_txt_get_csn(struct smbconf_ctx *ctx, ctx 281 lib/smbconf/smbconf_txt.c csn->csn = (uint64_t)file_modtime(ctx->path); ctx 287 lib/smbconf/smbconf_txt.c static WERROR smbconf_txt_drop(struct smbconf_ctx *ctx) ctx 295 lib/smbconf/smbconf_txt.c static WERROR smbconf_txt_get_share_names(struct smbconf_ctx *ctx, ctx 311 lib/smbconf/smbconf_txt.c werr = smbconf_txt_load_file(ctx); ctx 321 lib/smbconf/smbconf_txt.c if (smbconf_share_exists(ctx, NULL)) { ctx 330 lib/smbconf/smbconf_txt.c if (smbconf_share_exists(ctx, GLOBAL_NAME)) { ctx 339 lib/smbconf/smbconf_txt.c for (count = 0; count < pd(ctx)->cache->num_shares; count++) { ctx 340 lib/smbconf/smbconf_txt.c if (strequal(pd(ctx)->cache->share_names[count], GLOBAL_NAME) || ctx 341 lib/smbconf/smbconf_txt.c (pd(ctx)->cache->share_names[count] == NULL)) ctx 348 lib/smbconf/smbconf_txt.c pd(ctx)->cache->share_names[count]); ctx 370 lib/smbconf/smbconf_txt.c static bool smbconf_txt_share_exists(struct smbconf_ctx *ctx, ctx 375 lib/smbconf/smbconf_txt.c werr = smbconf_txt_load_file(ctx); ctx 381 lib/smbconf/smbconf_txt.c pd(ctx)->cache->share_names, ctx 382 lib/smbconf/smbconf_txt.c pd(ctx)->cache->num_shares, NULL); ctx 388 lib/smbconf/smbconf_txt.c static WERROR smbconf_txt_create_share(struct smbconf_ctx *ctx, ctx 397 lib/smbconf/smbconf_txt.c static WERROR smbconf_txt_get_share(struct smbconf_ctx *ctx, ctx 408 lib/smbconf/smbconf_txt.c werr = smbconf_txt_load_file(ctx); ctx 414 lib/smbconf/smbconf_txt.c pd(ctx)->cache->share_names, ctx 415 lib/smbconf/smbconf_txt.c pd(ctx)->cache->num_shares, ctx 437 lib/smbconf/smbconf_txt.c for (count = 0; count < pd(ctx)->cache->num_params[sidx]; count++) { ctx 441 lib/smbconf/smbconf_txt.c pd(ctx)->cache->param_names[sidx][count]); ctx 448 lib/smbconf/smbconf_txt.c pd(ctx)->cache->param_values[sidx][count]); ctx 469 lib/smbconf/smbconf_txt.c static WERROR smbconf_txt_delete_share(struct smbconf_ctx *ctx, ctx 478 lib/smbconf/smbconf_txt.c static WERROR smbconf_txt_set_parameter(struct smbconf_ctx *ctx, ctx 489 lib/smbconf/smbconf_txt.c static WERROR smbconf_txt_get_parameter(struct smbconf_ctx *ctx, ctx 499 lib/smbconf/smbconf_txt.c werr = smbconf_txt_load_file(ctx); ctx 505 lib/smbconf/smbconf_txt.c pd(ctx)->cache->share_names, ctx 506 lib/smbconf/smbconf_txt.c pd(ctx)->cache->num_shares, ctx 513 lib/smbconf/smbconf_txt.c pd(ctx)->cache->param_names[share_index], ctx 514 lib/smbconf/smbconf_txt.c pd(ctx)->cache->num_params[share_index], ctx 521 lib/smbconf/smbconf_txt.c pd(ctx)->cache->param_values[share_index][param_index]); ctx 533 lib/smbconf/smbconf_txt.c static WERROR smbconf_txt_delete_parameter(struct smbconf_ctx *ctx, ctx 540 lib/smbconf/smbconf_txt.c static WERROR smbconf_txt_get_includes(struct smbconf_ctx *ctx, ctx 553 lib/smbconf/smbconf_txt.c werr = smbconf_txt_load_file(ctx); ctx 559 lib/smbconf/smbconf_txt.c pd(ctx)->cache->share_names, ctx 560 lib/smbconf/smbconf_txt.c pd(ctx)->cache->num_shares, ctx 568 lib/smbconf/smbconf_txt.c for (count = 0; count < pd(ctx)->cache->num_params[sidx]; count++) { ctx 569 lib/smbconf/smbconf_txt.c if (strequal(pd(ctx)->cache->param_names[sidx][count], ctx 575 lib/smbconf/smbconf_txt.c pd(ctx)->cache->param_values[sidx][count]); ctx 601 lib/smbconf/smbconf_txt.c static WERROR smbconf_txt_set_includes(struct smbconf_ctx *ctx, ctx 609 lib/smbconf/smbconf_txt.c static WERROR smbconf_txt_delete_includes(struct smbconf_ctx *ctx, ctx 615 lib/smbconf/smbconf_txt.c static WERROR smbconf_txt_transaction_start(struct smbconf_ctx *ctx) ctx 620 lib/smbconf/smbconf_txt.c static WERROR smbconf_txt_transaction_commit(struct smbconf_ctx *ctx) ctx 625 lib/smbconf/smbconf_txt.c static WERROR smbconf_txt_transaction_cancel(struct smbconf_ctx *ctx) ctx 24 lib/smbconf/smbconf_util.c static int smbconf_destroy_ctx(struct smbconf_ctx *ctx) ctx 26 lib/smbconf/smbconf_util.c return ctx->ops->shutdown(ctx); ctx 46 lib/smbconf/smbconf_util.c struct smbconf_ctx *ctx; ctx 52 lib/smbconf/smbconf_util.c ctx = talloc_zero(mem_ctx, struct smbconf_ctx); ctx 53 lib/smbconf/smbconf_util.c if (ctx == NULL) { ctx 57 lib/smbconf/smbconf_util.c ctx->ops = ops; ctx 59 lib/smbconf/smbconf_util.c werr = ctx->ops->init(ctx, path); ctx 64 lib/smbconf/smbconf_util.c talloc_set_destructor(ctx, smbconf_destroy_ctx); ctx 66 lib/smbconf/smbconf_util.c *conf_ctx = ctx; ctx 70 lib/smbconf/smbconf_util.c talloc_free(ctx); ctx 1329 lib/talloc/talloc.c void *_talloc_zero(const void *ctx, size_t size, const char *name) ctx 1331 lib/talloc/talloc.c void *p = _talloc_named_const(ctx, size, name); ctx 1637 lib/talloc/talloc.c void *_talloc_array(const void *ctx, size_t el_size, unsigned count, const char *name) ctx 1642 lib/talloc/talloc.c return _talloc_named_const(ctx, el_size * count, name); ctx 1648 lib/talloc/talloc.c void *_talloc_zero_array(const void *ctx, size_t el_size, unsigned count, const char *name) ctx 1653 lib/talloc/talloc.c return _talloc_zero(ctx, el_size * count, name); ctx 1659 lib/talloc/talloc.c void *_talloc_realloc_array(const void *ctx, void *ptr, size_t el_size, unsigned count, const char *name) ctx 1664 lib/talloc/talloc.c return _talloc_realloc(ctx, ptr, el_size * count, name); ctx 72 lib/talloc/talloc.h #define talloc_steal(ctx, ptr) ({ _TALLOC_TYPEOF(ptr) __talloc_steal_ret = (_TALLOC_TYPEOF(ptr))_talloc_steal((ctx),(ptr)); __talloc_steal_ret; }) ctx 77 lib/talloc/talloc.h #define talloc_steal(ctx, ptr) (_TALLOC_TYPEOF(ptr))_talloc_steal((ctx),(ptr)) ctx 80 lib/talloc/talloc.h #define talloc_reference(ctx, ptr) (_TALLOC_TYPEOF(ptr))_talloc_reference((ctx),(ptr)) ctx 81 lib/talloc/talloc.h #define talloc_move(ctx, ptr) (_TALLOC_TYPEOF(*(ptr)))_talloc_move((ctx),(void *)(ptr)) ctx 84 lib/talloc/talloc.h #define talloc(ctx, type) (type *)talloc_named_const(ctx, sizeof(type), #type) ctx 85 lib/talloc/talloc.h #define talloc_size(ctx, size) talloc_named_const(ctx, size, __location__) ctx 86 lib/talloc/talloc.h #define talloc_ptrtype(ctx, ptr) (_TALLOC_TYPEOF(ptr))talloc_size(ctx, sizeof(*(ptr))) ctx 88 lib/talloc/talloc.h #define talloc_new(ctx) talloc_named_const(ctx, 0, "talloc_new: " __location__) ctx 90 lib/talloc/talloc.h #define talloc_zero(ctx, type) (type *)_talloc_zero(ctx, sizeof(type), #type) ctx 91 lib/talloc/talloc.h #define talloc_zero_size(ctx, size) _talloc_zero(ctx, size, __location__) ctx 93 lib/talloc/talloc.h #define talloc_zero_array(ctx, type, count) (type *)_talloc_zero_array(ctx, sizeof(type), count, #type) ctx 94 lib/talloc/talloc.h #define talloc_array(ctx, type, count) (type *)_talloc_array(ctx, sizeof(type), count, #type) ctx 95 lib/talloc/talloc.h #define talloc_array_size(ctx, size, count) _talloc_array(ctx, size, count, __location__) ctx 96 lib/talloc/talloc.h #define talloc_array_ptrtype(ctx, ptr, count) (_TALLOC_TYPEOF(ptr))talloc_array_size(ctx, sizeof(*(ptr)), count) ctx 97 lib/talloc/talloc.h #define talloc_array_length(ctx) (talloc_get_size(ctx)/sizeof(*ctx)) ctx 99 lib/talloc/talloc.h #define talloc_realloc(ctx, p, type, count) (type *)_talloc_realloc_array(ctx, p, sizeof(type), count, #type) ctx 100 lib/talloc/talloc.h #define talloc_realloc_size(ctx, ptr, size) _talloc_realloc(ctx, ptr, size, __location__) ctx 111 lib/talloc/talloc.h #define talloc_zero_p(ctx, type) talloc_zero(ctx, type) ctx 112 lib/talloc/talloc.h #define talloc_p(ctx, type) talloc(ctx, type) ctx 113 lib/talloc/talloc.h #define talloc_array_p(ctx, type, count) talloc_array(ctx, type, count) ctx 114 lib/talloc/talloc.h #define talloc_realloc_p(ctx, p, type, count) talloc_realloc(ctx, p, type, count) ctx 115 lib/talloc/talloc.h #define talloc_destroy(ctx) talloc_free(ctx) ctx 119 lib/talloc/talloc.h #define TALLOC_FREE(ctx) do { talloc_free(ctx); ctx=NULL; } while(0) ctx 160 lib/talloc/talloc.h void *_talloc_zero(const void *ctx, size_t size, const char *name); ctx 162 lib/talloc/talloc.h void *_talloc_array(const void *ctx, size_t el_size, unsigned count, const char *name); ctx 163 lib/talloc/talloc.h void *_talloc_zero_array(const void *ctx, size_t el_size, unsigned count, const char *name); ctx 164 lib/talloc/talloc.h void *_talloc_realloc_array(const void *ctx, void *ptr, size_t el_size, unsigned count, const char *name); ctx 167 lib/talloc/talloc.h size_t talloc_get_size(const void *ctx); ctx 168 lib/talloc/talloc.h void *talloc_find_parent_byname(const void *ctx, const char *name); ctx 792 lib/talloc/testsuite.c void *ctx = talloc_new(NULL); ctx 805 lib/talloc/testsuite.c p1 = talloc_size(ctx, loop % 100); ctx 815 lib/talloc/testsuite.c talloc_free(ctx); ctx 817 lib/talloc/testsuite.c ctx = talloc_pool(NULL, 1024); ctx 824 lib/talloc/testsuite.c p1 = talloc_size(ctx, loop % 100); ctx 827 lib/talloc/testsuite.c talloc_free_children(ctx); ctx 832 lib/talloc/testsuite.c talloc_free(ctx); ctx 40 lib/tdb/pytdb.c TDB_CONTEXT *ctx; ctx 82 lib/tdb/pytdb.c TDB_CONTEXT *ctx; ctx 89 lib/tdb/pytdb.c ctx = tdb_open(name, hash_size, tdb_flags, flags, mode); ctx 90 lib/tdb/pytdb.c if (ctx == NULL) { ctx 96 lib/tdb/pytdb.c ret->ctx = ctx; ctx 103 lib/tdb/pytdb.c int ret = tdb_transaction_cancel(self->ctx); ctx 104 lib/tdb/pytdb.c PyErr_TDB_ERROR_IS_ERR_RAISE(ret, self->ctx); ctx 110 lib/tdb/pytdb.c int ret = tdb_transaction_commit(self->ctx); ctx 111 lib/tdb/pytdb.c PyErr_TDB_ERROR_IS_ERR_RAISE(ret, self->ctx); ctx 117 lib/tdb/pytdb.c int ret = tdb_transaction_recover(self->ctx); ctx 118 lib/tdb/pytdb.c PyErr_TDB_ERROR_IS_ERR_RAISE(ret, self->ctx); ctx 124 lib/tdb/pytdb.c int ret = tdb_transaction_start(self->ctx); ctx 125 lib/tdb/pytdb.c PyErr_TDB_ERROR_IS_ERR_RAISE(ret, self->ctx); ctx 131 lib/tdb/pytdb.c int ret = tdb_reopen(self->ctx); ctx 132 lib/tdb/pytdb.c PyErr_TDB_ERROR_IS_ERR_RAISE(ret, self->ctx); ctx 138 lib/tdb/pytdb.c int ret = tdb_lockall(self->ctx); ctx 139 lib/tdb/pytdb.c PyErr_TDB_ERROR_IS_ERR_RAISE(ret, self->ctx); ctx 145 lib/tdb/pytdb.c int ret = tdb_unlockall(self->ctx); ctx 146 lib/tdb/pytdb.c PyErr_TDB_ERROR_IS_ERR_RAISE(ret, self->ctx); ctx 152 lib/tdb/pytdb.c int ret = tdb_lockall_read(self->ctx); ctx 153 lib/tdb/pytdb.c PyErr_TDB_ERROR_IS_ERR_RAISE(ret, self->ctx); ctx 159 lib/tdb/pytdb.c int ret = tdb_unlockall_read(self->ctx); ctx 160 lib/tdb/pytdb.c PyErr_TDB_ERROR_IS_ERR_RAISE(ret, self->ctx); ctx 169 lib/tdb/pytdb.c ret = tdb_close(self->ctx); ctx 171 lib/tdb/pytdb.c PyErr_TDB_ERROR_IS_ERR_RAISE(ret, self->ctx); ctx 184 lib/tdb/pytdb.c return PyString_FromTDB_DATA(tdb_fetch(self->ctx, key)); ctx 198 lib/tdb/pytdb.c ret = tdb_append(self->ctx, key, data); ctx 199 lib/tdb/pytdb.c PyErr_TDB_ERROR_IS_ERR_RAISE(ret, self->ctx); ctx 205 lib/tdb/pytdb.c return PyString_FromTDB_DATA(tdb_firstkey(self->ctx)); ctx 217 lib/tdb/pytdb.c return PyString_FromTDB_DATA(tdb_nextkey(self->ctx, key)); ctx 229 lib/tdb/pytdb.c ret = tdb_delete(self->ctx, key); ctx 230 lib/tdb/pytdb.c PyErr_TDB_ERROR_IS_ERR_RAISE(ret, self->ctx); ctx 243 lib/tdb/pytdb.c ret = tdb_exists(self->ctx, key); ctx 245 lib/tdb/pytdb.c PyErr_TDB_ERROR_IS_ERR_RAISE(ret, self->ctx); ctx 264 lib/tdb/pytdb.c ret = tdb_store(self->ctx, key, value, flag); ctx 265 lib/tdb/pytdb.c PyErr_TDB_ERROR_IS_ERR_RAISE(ret, self->ctx); ctx 283 lib/tdb/pytdb.c self->current = tdb_nextkey(self->iteratee->ctx, self->current); ctx 308 lib/tdb/pytdb.c ret->current = tdb_firstkey(self->ctx); ctx 316 lib/tdb/pytdb.c int ret = tdb_wipe_all(self->ctx); ctx 317 lib/tdb/pytdb.c PyErr_TDB_ERROR_IS_ERR_RAISE(ret, self->ctx); ctx 362 lib/tdb/pytdb.c return PyInt_FromLong(tdb_hash_size(self->ctx)); ctx 369 lib/tdb/pytdb.c tdb_set_max_dead(self->ctx, PyInt_AsLong(max_dead)); ctx 375 lib/tdb/pytdb.c return PyInt_FromLong(tdb_map_size(self->ctx)); ctx 380 lib/tdb/pytdb.c return PyInt_FromLong(tdb_get_flags(self->ctx)); ctx 385 lib/tdb/pytdb.c return PyString_FromString(tdb_name(self->ctx)); ctx 399 lib/tdb/pytdb.c return PyString_FromFormat("Tdb('%s')", tdb_name(self->ctx)); ctx 405 lib/tdb/pytdb.c tdb_close(self->ctx); ctx 420 lib/tdb/pytdb.c val = tdb_fetch(self->ctx, tkey); ctx 441 lib/tdb/pytdb.c ret = tdb_delete(self->ctx, tkey); ctx 450 lib/tdb/pytdb.c ret = tdb_store(self->ctx, tkey, tval, TDB_REPLACE); ctx 454 lib/tdb/pytdb.c PyErr_SetTDBError(self->ctx); ctx 56 lib/tevent/tevent.h typedef void (*tevent_immediate_handler_t)(struct tevent_context *ctx, ctx 100 lib/tevent/tevent.h struct tevent_context *ctx, ctx 105 lib/tevent/tevent.h #define tevent_schedule_immediate(im, ctx, handler, private_data) \ ctx 106 lib/tevent/tevent.h _tevent_schedule_immediate(im, ctx, handler, private_data, \ ctx 123 lib/tevent/tevent_util.h #define TALLOC_FREE(ctx) do { talloc_free(ctx); ctx=NULL; } while(0) ctx 23 lib/torture/subunit.c static void subunit_suite_start(struct torture_context *ctx, ctx 28 lib/torture/subunit.c static void subunit_print_testname(struct torture_context *ctx, ctx 39 lib/torture/subunit.c static void subunit_test_start(struct torture_context *ctx, ctx 44 lib/torture/subunit.c subunit_print_testname(ctx, tcase, test); ctx 158 lib/torture/torture.c struct torture_suite *torture_suite_create(TALLOC_CTX *ctx, const char *name) ctx 160 lib/torture/torture.c struct torture_suite *suite = talloc_zero(ctx, struct torture_suite); ctx 169 lib/util/charset/charcnv.c _PUBLIC_ ssize_t iconv_talloc(TALLOC_CTX *ctx, ctx 188 lib/util/charset/charcnv.c ob = talloc_realloc(ctx, outbuf, char, destlen); ctx 314 lib/util/charset/charcnv.c _PUBLIC_ bool convert_string_talloc_convenience(TALLOC_CTX *ctx, ctx 343 lib/util/charset/charcnv.c ret = iconv_talloc(ctx, descriptor, src, srclen, dest); ctx 118 lib/util/charset/charset.h char *strupper_talloc(TALLOC_CTX *ctx, const char *src); ctx 119 lib/util/charset/charset.h char *talloc_strdup_upper(TALLOC_CTX *ctx, const char *src); ctx 120 lib/util/charset/charset.h char *strupper_talloc_n(TALLOC_CTX *ctx, const char *src, size_t n); ctx 121 lib/util/charset/charset.h char *strlower_talloc(TALLOC_CTX *ctx, const char *src); ctx 127 lib/util/charset/charset.h bool push_ascii_talloc(TALLOC_CTX *ctx, char **dest, const char *src, size_t *converted_size); ctx 128 lib/util/charset/charset.h bool push_ucs2_talloc(TALLOC_CTX *ctx, smb_ucs2_t **dest, const char *src, size_t *converted_size); ctx 129 lib/util/charset/charset.h bool push_utf8_talloc(TALLOC_CTX *ctx, char **dest, const char *src, size_t *converted_size); ctx 130 lib/util/charset/charset.h bool pull_ascii_talloc(TALLOC_CTX *ctx, char **dest, const char *src, size_t *converted_size); ctx 131 lib/util/charset/charset.h bool pull_ucs2_talloc(TALLOC_CTX *ctx, char **dest, const smb_ucs2_t *src, size_t *converted_size); ctx 132 lib/util/charset/charset.h bool pull_utf8_talloc(TALLOC_CTX *ctx, char **dest, const char *src, size_t *converted_size); ctx 136 lib/util/charset/charset.h bool convert_string_talloc(TALLOC_CTX *ctx, ctx 175 lib/util/charset/charset.h bool convert_string_talloc_convenience(TALLOC_CTX *ctx, ctx 427 lib/util/charset/util_unistr.c _PUBLIC_ char *strlower_talloc(TALLOC_CTX *ctx, const char *src) ctx 435 lib/util/charset/util_unistr.c dest = talloc_array(ctx, char, 2*(strlen(src))+1); ctx 458 lib/util/charset/util_unistr.c dest = talloc_realloc(ctx, dest, char, size+1); ctx 469 lib/util/charset/util_unistr.c _PUBLIC_ char *strupper_talloc_n(TALLOC_CTX *ctx, const char *src, size_t n) ctx 481 lib/util/charset/util_unistr.c dest = talloc_array(ctx, char, 2*(n+1)); ctx 504 lib/util/charset/util_unistr.c dest = talloc_realloc(ctx, dest, char, size+1); ctx 514 lib/util/charset/util_unistr.c _PUBLIC_ char *strupper_talloc(TALLOC_CTX *ctx, const char *src) ctx 516 lib/util/charset/util_unistr.c return strupper_talloc_n(ctx, src, src?strlen(src):0); ctx 522 lib/util/charset/util_unistr.c _PUBLIC_ char *talloc_strdup_upper(TALLOC_CTX *ctx, const char *src) ctx 524 lib/util/charset/util_unistr.c return strupper_talloc(ctx, src); ctx 671 lib/util/charset/util_unistr.c _PUBLIC_ bool push_ascii_talloc(TALLOC_CTX *ctx, char **dest, const char *src, size_t *converted_size) ctx 675 lib/util/charset/util_unistr.c return convert_string_talloc(ctx, CH_UNIX, CH_DOS, src, src_len, (void **)dest, converted_size, false); ctx 782 lib/util/charset/util_unistr.c _PUBLIC_ bool push_ucs2_talloc(TALLOC_CTX *ctx, smb_ucs2_t **dest, const char *src, size_t *converted_size) ctx 786 lib/util/charset/util_unistr.c return convert_string_talloc(ctx, CH_UNIX, CH_UTF16, src, src_len, (void **)dest, converted_size, false); ctx 798 lib/util/charset/util_unistr.c _PUBLIC_ bool push_utf8_talloc(TALLOC_CTX *ctx, char **dest, const char *src, size_t *converted_size) ctx 802 lib/util/charset/util_unistr.c return convert_string_talloc(ctx, CH_UNIX, CH_UTF8, src, src_len, (void **)dest, converted_size, false); ctx 853 lib/util/charset/util_unistr.c _PUBLIC_ bool pull_ascii_talloc(TALLOC_CTX *ctx, char **dest, const char *src, size_t *converted_size) ctx 857 lib/util/charset/util_unistr.c return convert_string_talloc(ctx, CH_DOS, CH_UNIX, src, src_len, (void **)dest, converted_size, false); ctx 868 lib/util/charset/util_unistr.c _PUBLIC_ bool pull_ucs2_talloc(TALLOC_CTX *ctx, char **dest, const smb_ucs2_t *src, size_t *converted_size) ctx 872 lib/util/charset/util_unistr.c return convert_string_talloc(ctx, CH_UTF16, CH_UNIX, src, src_len, (void **)dest, converted_size, false); ctx 883 lib/util/charset/util_unistr.c _PUBLIC_ bool pull_utf8_talloc(TALLOC_CTX *ctx, char **dest, const char *src, size_t *converted_size) ctx 887 lib/util/charset/util_unistr.c return convert_string_talloc(ctx, CH_UTF8, CH_UNIX, src, src_len, (void **)dest, converted_size, false); ctx 978 lib/util/charset/util_unistr.c _PUBLIC_ bool convert_string_talloc(TALLOC_CTX *ctx, ctx 984 lib/util/charset/util_unistr.c return convert_string_talloc_convenience(ctx, get_iconv_convenience(), ctx 49 lib/util/data_blob.h #define data_blob_talloc(ctx, ptr, size) data_blob_talloc_named(ctx, ptr, size, "DATA_BLOB: "__location__) ctx 50 lib/util/data_blob.h #define data_blob_dup_talloc(ctx, blob) data_blob_talloc_named(ctx, (blob)->data, (blob)->length, "DATA_BLOB: "__location__) ctx 198 lib/util/util.c _PUBLIC_ char *get_myname(TALLOC_CTX *ctx) ctx 218 lib/util/util.c return talloc_strdup(ctx, hostname); ctx 829 lib/util/util.c static bool next_token_internal_talloc(TALLOC_CTX *ctx, ctx 879 lib/util/util.c *pp_buff = talloc_array(ctx, char, len); ctx 902 lib/util/util.c bool next_token_talloc(TALLOC_CTX *ctx, ctx 907 lib/util/util.c return next_token_internal_talloc(ctx, ptr, pp_buff, sep, true); ctx 916 lib/util/util.c bool next_token_no_ltrim_talloc(TALLOC_CTX *ctx, ctx 921 lib/util/util.c return next_token_internal_talloc(ctx, ptr, pp_buff, sep, false); ctx 207 lib/util/util.h bool next_token_talloc(TALLOC_CTX *ctx, ctx 217 lib/util/util.h bool next_token_no_ltrim_talloc(TALLOC_CTX *ctx, ctx 274 libcli/ldap/ldap_message.c int ctx; ctx 278 libcli/ldap/ldap_message.c ctx = 2; ctx 280 libcli/ldap/ldap_message.c ctx = 1; ctx 282 libcli/ldap/ldap_message.c asn1_push_tag(data, ASN1_CONTEXT_SIMPLE(ctx)); ctx 75 libcli/security/secace.c NTSTATUS sec_ace_add_sid(TALLOC_CTX *ctx, struct security_ace **pp_new, struct security_ace *old, unsigned *num, struct dom_sid *sid, uint32_t mask) ctx 79 libcli/security/secace.c if (!ctx || !pp_new || !old || !sid || !num) return NT_STATUS_INVALID_PARAMETER; ctx 83 libcli/security/secace.c if((pp_new[0] = talloc_zero_array(ctx, struct security_ace, *num )) == 0) ctx 120 libcli/security/secace.c NTSTATUS sec_ace_del_sid(TALLOC_CTX *ctx, struct security_ace **pp_new, struct security_ace *old, uint32_t *num, struct dom_sid *sid) ctx 125 libcli/security/secace.c if (!ctx || !pp_new || !old || !sid || !num) return NT_STATUS_INVALID_PARAMETER; ctx 128 libcli/security/secace.c if((pp_new[0] = talloc_zero_array(ctx, struct security_ace, *num )) == 0) ctx 30 libcli/security/secace.h NTSTATUS sec_ace_add_sid(TALLOC_CTX *ctx, struct security_ace **pp_new, struct security_ace *old, unsigned *num, struct dom_sid *sid, uint32_t mask); ctx 32 libcli/security/secace.h NTSTATUS sec_ace_del_sid(TALLOC_CTX *ctx, struct security_ace **pp_new, struct security_ace *old, uint32_t *num, struct dom_sid *sid); ctx 33 libcli/security/secacl.c struct security_acl *make_sec_acl(TALLOC_CTX *ctx, ctx 40 libcli/security/secacl.c if((dst = talloc_zero(ctx, struct security_acl)) == NULL) ctx 54 libcli/security/secacl.c ((dst->aces = talloc_array(ctx, struct security_ace, num_aces)) ctx 71 libcli/security/secacl.c struct security_acl *dup_sec_acl(TALLOC_CTX *ctx, struct security_acl *src) ctx 76 libcli/security/secacl.c return make_sec_acl(ctx, src->revision, src->num_aces, src->aces); ctx 26 libcli/security/secacl.h struct security_acl *make_sec_acl(TALLOC_CTX *ctx, enum security_acl_revision revision, ctx 28 libcli/security/secacl.h struct security_acl *dup_sec_acl(TALLOC_CTX *ctx, struct security_acl *src); ctx 159 librpc/ndr/libndr.h #define NDR_PRINT_STRUCT_STRING(ctx, type, p) ndr_print_struct_string(ctx, (ndr_print_fn_t)ndr_print_ ##type, #p, p) ctx 160 librpc/ndr/libndr.h #define NDR_PRINT_UNION_STRING(ctx, type, level, p) ndr_print_union_string(ctx, (ndr_print_fn_t)ndr_print_ ##type, #p, level, p) ctx 161 librpc/ndr/libndr.h #define NDR_PRINT_FUNCTION_STRING(ctx, type, flags, p) ndr_print_function_string(ctx, (ndr_print_function_t)ndr_print_ ##type, #type, flags, p) ctx 162 librpc/ndr/libndr.h #define NDR_PRINT_BOTH_STRING(ctx, type, p) NDR_PRINT_FUNCTION_STRING(ctx, type, NDR_BOTH, p) ctx 163 librpc/ndr/libndr.h #define NDR_PRINT_OUT_STRING(ctx, type, p) NDR_PRINT_FUNCTION_STRING(ctx, type, NDR_OUT, p) ctx 164 librpc/ndr/libndr.h #define NDR_PRINT_IN_STRING(ctx, type, p) NDR_PRINT_FUNCTION_STRING(ctx, type, NDR_IN | NDR_SET_VALUES, p) ctx 252 nsswitch/libwbclient/wbc_util.c static wbcErr process_domain_info_string(TALLOC_CTX *ctx, ctx 277 nsswitch/libwbclient/wbc_util.c info->short_name = talloc_strdup(ctx, r); ctx 290 nsswitch/libwbclient/wbc_util.c info->dns_name = talloc_strdup(ctx, r); ctx 131 nsswitch/pam_winbind.c #define _PAM_LOG_FUNCTION_ENTER(function, ctx) \ ctx 133 nsswitch/pam_winbind.c _pam_log_debug(ctx, LOG_DEBUG, "[pamh: %p] ENTER: " \ ctx 134 nsswitch/pam_winbind.c function " (flags: 0x%04x)", ctx->pamh, ctx->flags); \ ctx 135 nsswitch/pam_winbind.c _pam_log_state(ctx); \ ctx 138 nsswitch/pam_winbind.c #define _PAM_LOG_FUNCTION_LEAVE(function, ctx, retval) \ ctx 140 nsswitch/pam_winbind.c _pam_log_debug(ctx, LOG_DEBUG, "[pamh: %p] LEAVE: " \ ctx 141 nsswitch/pam_winbind.c function " returning %d (%s)", ctx->pamh, retval, \ ctx 143 nsswitch/pam_winbind.c _pam_log_state(ctx); \ ctx 303 nsswitch/pam_winbind.c static void _pam_log_state_datum(struct pwb_context *ctx, ctx 310 nsswitch/pam_winbind.c pam_get_item(ctx->pamh, item_type, &data); ctx 312 nsswitch/pam_winbind.c pam_get_data(ctx->pamh, key, &data); ctx 317 nsswitch/pam_winbind.c _pam_log_debug(ctx, LOG_DEBUG, ctx 319 nsswitch/pam_winbind.c ctx->pamh, type, key, (const char *)data, ctx 322 nsswitch/pam_winbind.c _pam_log_debug(ctx, LOG_DEBUG, ctx 324 nsswitch/pam_winbind.c ctx->pamh, type, key, data); ctx 329 nsswitch/pam_winbind.c #define _PAM_LOG_STATE_DATA_POINTER(ctx, module_data_name) \ ctx 330 nsswitch/pam_winbind.c _pam_log_state_datum(ctx, 0, module_data_name, 0) ctx 332 nsswitch/pam_winbind.c #define _PAM_LOG_STATE_DATA_STRING(ctx, module_data_name) \ ctx 333 nsswitch/pam_winbind.c _pam_log_state_datum(ctx, 0, module_data_name, 1) ctx 335 nsswitch/pam_winbind.c #define _PAM_LOG_STATE_ITEM_POINTER(ctx, item_type) \ ctx 336 nsswitch/pam_winbind.c _pam_log_state_datum(ctx, item_type, #item_type, 0) ctx 338 nsswitch/pam_winbind.c #define _PAM_LOG_STATE_ITEM_STRING(ctx, item_type) \ ctx 339 nsswitch/pam_winbind.c _pam_log_state_datum(ctx, item_type, #item_type, 1) ctx 347 nsswitch/pam_winbind.c #define _PAM_LOG_STATE_ITEM_PASSWORD(ctx, item_type) \ ctx 348 nsswitch/pam_winbind.c _pam_log_state_datum(ctx, item_type, #item_type, \ ctx 351 nsswitch/pam_winbind.c static void _pam_log_state(struct pwb_context *ctx) ctx 353 nsswitch/pam_winbind.c if (!_pam_log_is_debug_state_enabled(ctx->ctrl)) { ctx 357 nsswitch/pam_winbind.c _PAM_LOG_STATE_ITEM_STRING(ctx, PAM_SERVICE); ctx 358 nsswitch/pam_winbind.c _PAM_LOG_STATE_ITEM_STRING(ctx, PAM_USER); ctx 359 nsswitch/pam_winbind.c _PAM_LOG_STATE_ITEM_STRING(ctx, PAM_TTY); ctx 360 nsswitch/pam_winbind.c _PAM_LOG_STATE_ITEM_STRING(ctx, PAM_RHOST); ctx 361 nsswitch/pam_winbind.c _PAM_LOG_STATE_ITEM_STRING(ctx, PAM_RUSER); ctx 362 nsswitch/pam_winbind.c _PAM_LOG_STATE_ITEM_PASSWORD(ctx, PAM_OLDAUTHTOK); ctx 363 nsswitch/pam_winbind.c _PAM_LOG_STATE_ITEM_PASSWORD(ctx, PAM_AUTHTOK); ctx 364 nsswitch/pam_winbind.c _PAM_LOG_STATE_ITEM_STRING(ctx, PAM_USER_PROMPT); ctx 365 nsswitch/pam_winbind.c _PAM_LOG_STATE_ITEM_POINTER(ctx, PAM_CONV); ctx 367 nsswitch/pam_winbind.c _PAM_LOG_STATE_ITEM_POINTER(ctx, PAM_FAIL_DELAY); ctx 370 nsswitch/pam_winbind.c _PAM_LOG_STATE_ITEM_POINTER(ctx, PAM_REPOSITORY); ctx 373 nsswitch/pam_winbind.c _PAM_LOG_STATE_DATA_STRING(ctx, PAM_WINBIND_HOMEDIR); ctx 374 nsswitch/pam_winbind.c _PAM_LOG_STATE_DATA_STRING(ctx, PAM_WINBIND_LOGONSCRIPT); ctx 375 nsswitch/pam_winbind.c _PAM_LOG_STATE_DATA_STRING(ctx, PAM_WINBIND_LOGONSERVER); ctx 376 nsswitch/pam_winbind.c _PAM_LOG_STATE_DATA_STRING(ctx, PAM_WINBIND_PROFILEPATH); ctx 377 nsswitch/pam_winbind.c _PAM_LOG_STATE_DATA_STRING(ctx, ctx 380 nsswitch/pam_winbind.c _PAM_LOG_STATE_DATA_STRING(ctx, ctx 382 nsswitch/pam_winbind.c _PAM_LOG_STATE_DATA_POINTER(ctx, PAM_WINBIND_PWD_LAST_SET); ctx 512 nsswitch/pam_winbind.c static int _pam_winbind_free_context(struct pwb_context *ctx) ctx 514 nsswitch/pam_winbind.c if (!ctx) { ctx 518 nsswitch/pam_winbind.c if (ctx->dict) { ctx 519 nsswitch/pam_winbind.c iniparser_freedict(ctx->dict); ctx 655 nsswitch/pam_winbind.c static int _make_remark(struct pwb_context *ctx, ctx 664 nsswitch/pam_winbind.c if (ctx->flags & WINBIND_SILENT) { ctx 673 nsswitch/pam_winbind.c retval = converse(ctx->pamh, 1, pmsg, &resp); ctx 681 nsswitch/pam_winbind.c static int _make_remark_v(struct pwb_context *ctx, ctx 691 nsswitch/pam_winbind.c _pam_log(ctx, LOG_ERR, "memory allocation failure"); ctx 695 nsswitch/pam_winbind.c ret = _make_remark(ctx, type, var); ctx 700 nsswitch/pam_winbind.c static int _make_remark_format(struct pwb_context *ctx, int type, const char *format, ...) PRINTF_ATTRIBUTE(3,4); ctx 701 nsswitch/pam_winbind.c static int _make_remark_format(struct pwb_context *ctx, int type, const char *format, ...) ctx 707 nsswitch/pam_winbind.c ret = _make_remark_v(ctx, type, format, args); ctx 712 nsswitch/pam_winbind.c static int pam_winbind_request_log(struct pwb_context *ctx, ctx 720 nsswitch/pam_winbind.c _pam_log(ctx, LOG_WARNING, "user '%s' denied access " ctx 725 nsswitch/pam_winbind.c _pam_log(ctx, LOG_WARNING, "user '%s' account expired", ctx 730 nsswitch/pam_winbind.c _pam_log(ctx, LOG_WARNING, "user '%s' password expired", ctx 735 nsswitch/pam_winbind.c _pam_log(ctx, LOG_WARNING, "user '%s' new password " ctx 740 nsswitch/pam_winbind.c _pam_log_debug(ctx, LOG_NOTICE, "user '%s' not found", ctx 742 nsswitch/pam_winbind.c if (ctx->ctrl & WINBIND_UNKNOWN_OK_ARG) { ctx 749 nsswitch/pam_winbind.c _pam_log(ctx, LOG_NOTICE, ctx 752 nsswitch/pam_winbind.c _pam_log(ctx, LOG_NOTICE, ctx 758 nsswitch/pam_winbind.c _pam_log(ctx, LOG_ERR, ctx 765 nsswitch/pam_winbind.c static int wbc_auth_error_to_pam_error(struct pwb_context *ctx, ctx 774 nsswitch/pam_winbind.c _pam_log_debug(ctx, LOG_DEBUG, "request %s succeeded", ctx 777 nsswitch/pam_winbind.c return pam_winbind_request_log(ctx, ret, username, fn); ctx 782 nsswitch/pam_winbind.c _pam_log(ctx, LOG_ERR, ctx 793 nsswitch/pam_winbind.c return pam_winbind_request_log(ctx, ret, username, fn); ctx 796 nsswitch/pam_winbind.c _pam_log(ctx, LOG_ERR, "request %s failed, but PAM error 0!", fn); ctx 799 nsswitch/pam_winbind.c return pam_winbind_request_log(ctx, ret, username, fn); ctx 803 nsswitch/pam_winbind.c return pam_winbind_request_log(ctx, ret, username, fn); ctx 807 nsswitch/pam_winbind.c static bool _pam_winbind_change_pwd(struct pwb_context *ctx) ctx 818 nsswitch/pam_winbind.c ret = converse(ctx->pamh, 1, &pmsg, &resp); ctx 821 nsswitch/pam_winbind.c _pam_log(ctx, LOG_CRIT, "pam_winbind: system error!\n"); ctx 828 nsswitch/pam_winbind.c _pam_log(ctx, LOG_CRIT, "Received [%s] reply from application.\n", resp->resp); ctx 838 nsswitch/pam_winbind.c static bool _pam_winbind_change_pwd(struct pwb_context *ctx) ctx 855 nsswitch/pam_winbind.c static bool _pam_send_password_expiry_message(struct pwb_context *ctx, ctx 876 nsswitch/pam_winbind.c PAM_WB_REMARK_DIRECT(ctx, "NT_STATUS_PASSWORD_EXPIRED"); ctx 897 nsswitch/pam_winbind.c ret = _make_remark(ctx, PAM_TEXT_INFO, ctx 916 nsswitch/pam_winbind.c retval = _pam_winbind_change_pwd(ctx); ctx 927 nsswitch/pam_winbind.c ret = _make_remark_format(ctx, PAM_TEXT_INFO, ctx 946 nsswitch/pam_winbind.c retval = _pam_winbind_change_pwd(ctx); ctx 968 nsswitch/pam_winbind.c static void _pam_warn_password_expiry(struct pwb_context *ctx, ctx 1003 nsswitch/pam_winbind.c if (_pam_send_password_expiry_message(ctx, next_change, now, ctx 1020 nsswitch/pam_winbind.c if (_pam_send_password_expiry_message(ctx, next_change, now, ctx 1070 nsswitch/pam_winbind.c static bool winbind_name_to_sid_string(struct pwb_context *ctx, ctx 1087 nsswitch/pam_winbind.c _pam_log_debug(ctx, LOG_DEBUG, ctx 1092 nsswitch/pam_winbind.c _pam_log(ctx, LOG_INFO, ctx 1126 nsswitch/pam_winbind.c static bool winbind_name_list_to_sid_string_list(struct pwb_context *ctx, ctx 1150 nsswitch/pam_winbind.c if (!winbind_name_to_sid_string(ctx, user, ctx 1162 nsswitch/pam_winbind.c _pam_log(ctx, LOG_INFO, "cannot convert group %s to sid, " ctx 1165 nsswitch/pam_winbind.c _make_remark_format(ctx, PAM_TEXT_INFO, _("Cannot convert group %s " ctx 1183 nsswitch/pam_winbind.c if (!winbind_name_to_sid_string(ctx, user, search_location, ctx 1186 nsswitch/pam_winbind.c _pam_log(ctx, LOG_INFO, "cannot convert group %s to sid, " ctx 1189 nsswitch/pam_winbind.c _make_remark_format(ctx, PAM_TEXT_INFO, _("Cannot convert group %s " ctx 1221 nsswitch/pam_winbind.c static void _pam_setup_krb5_env(struct pwb_context *ctx, ctx 1229 nsswitch/pam_winbind.c if (off(ctx->ctrl, WINBIND_KRB5_AUTH)) { ctx 1248 nsswitch/pam_winbind.c _pam_log_debug(ctx, LOG_DEBUG, ctx 1255 nsswitch/pam_winbind.c ret = pam_putenv(ctx->pamh, var); ctx 1257 nsswitch/pam_winbind.c _pam_log(ctx, LOG_ERR, ctx 1259 nsswitch/pam_winbind.c var, pam_strerror(ctx->pamh, ret)); ctx 1273 nsswitch/pam_winbind.c static void _pam_setup_unix_username(struct pwb_context *ctx, ctx 1308 nsswitch/pam_winbind.c static void _pam_set_data_string(struct pwb_context *ctx, ctx 1319 nsswitch/pam_winbind.c ret = pam_set_data(ctx->pamh, data_name, talloc_strdup(NULL, value), ctx 1322 nsswitch/pam_winbind.c _pam_log_debug(ctx, LOG_DEBUG, ctx 1324 nsswitch/pam_winbind.c data_name, pam_strerror(ctx->pamh, ret)); ctx 1338 nsswitch/pam_winbind.c static void _pam_set_data_info3(struct pwb_context *ctx, ctx 1341 nsswitch/pam_winbind.c _pam_set_data_string(ctx, PAM_WINBIND_HOMEDIR, ctx 1343 nsswitch/pam_winbind.c _pam_set_data_string(ctx, PAM_WINBIND_LOGONSCRIPT, ctx 1345 nsswitch/pam_winbind.c _pam_set_data_string(ctx, PAM_WINBIND_LOGONSERVER, ctx 1347 nsswitch/pam_winbind.c _pam_set_data_string(ctx, PAM_WINBIND_PROFILEPATH, ctx 1377 nsswitch/pam_winbind.c static void _pam_warn_logon_type(struct pwb_context *ctx, ctx 1384 nsswitch/pam_winbind.c _make_remark(ctx, PAM_ERROR_MSG, ctx 1388 nsswitch/pam_winbind.c _pam_log_debug(ctx, LOG_DEBUG, ctx 1394 nsswitch/pam_winbind.c _make_remark(ctx, PAM_ERROR_MSG, ctx 1398 nsswitch/pam_winbind.c _pam_log_debug(ctx, LOG_DEBUG, ctx 1414 nsswitch/pam_winbind.c static void _pam_warn_krb5_failure(struct pwb_context *ctx, ctx 1419 nsswitch/pam_winbind.c _make_remark(ctx, PAM_ERROR_MSG, ctx 1424 nsswitch/pam_winbind.c _pam_log_debug(ctx, LOG_DEBUG, ctx 1430 nsswitch/pam_winbind.c static bool _pam_check_remark_auth_err(struct pwb_context *ctx, ctx 1451 nsswitch/pam_winbind.c _make_remark(ctx, PAM_ERROR_MSG, error_string); ctx 1457 nsswitch/pam_winbind.c _make_remark(ctx, PAM_ERROR_MSG, e->display_string); ctx 1462 nsswitch/pam_winbind.c _make_remark(ctx, PAM_ERROR_MSG, nt_status_string); ctx 1479 nsswitch/pam_winbind.c static char *_pam_compose_pwd_restriction_string(struct pwb_context *ctx, ctx 1488 nsswitch/pam_winbind.c str = talloc_asprintf(ctx, _("Your password ")); ctx 1538 nsswitch/pam_winbind.c static int _pam_create_homedir(struct pwb_context *ctx, ctx 1550 nsswitch/pam_winbind.c _make_remark_format(ctx, PAM_TEXT_INFO, ctx 1553 nsswitch/pam_winbind.c _pam_log(ctx, LOG_ERR, "could not create dir: %s (%s)", ctx 1561 nsswitch/pam_winbind.c static int _pam_chown_homedir(struct pwb_context *ctx, ctx 1567 nsswitch/pam_winbind.c _pam_log(ctx, LOG_ERR, "failed to chown user homedir: %s (%s)", ctx 1575 nsswitch/pam_winbind.c static int _pam_mkhomedir(struct pwb_context *ctx) ctx 1588 nsswitch/pam_winbind.c ret = pam_get_user(ctx->pamh, &username, NULL); ctx 1590 nsswitch/pam_winbind.c _pam_log_debug(ctx, LOG_DEBUG, "can not get the username"); ctx 1596 nsswitch/pam_winbind.c _pam_log_debug(ctx, LOG_DEBUG, "can not get the username"); ctx 1599 nsswitch/pam_winbind.c _pam_log_debug(ctx, LOG_DEBUG, "homedir is: %s", pwd->pw_dir); ctx 1601 nsswitch/pam_winbind.c ret = _pam_create_homedir(ctx, pwd->pw_dir, 0700); ctx 1603 nsswitch/pam_winbind.c ret = _pam_chown_homedir(ctx, pwd->pw_dir, ctx 1613 nsswitch/pam_winbind.c create_dir = talloc_strdup(ctx, "/"); ctx 1625 nsswitch/pam_winbind.c _pam_log(ctx, LOG_DEBUG, "final directory: %s", user_dir); ctx 1635 nsswitch/pam_winbind.c _pam_log_debug(ctx, LOG_DEBUG, "token is %s", token); ctx 1641 nsswitch/pam_winbind.c _pam_log_debug(ctx, LOG_DEBUG, "current_dir is %s", create_dir); ctx 1644 nsswitch/pam_winbind.c _pam_log_debug(ctx, LOG_DEBUG, "assuming last directory: %s", token); ctx 1648 nsswitch/pam_winbind.c ret = _pam_create_homedir(ctx, create_dir, mode); ctx 1654 nsswitch/pam_winbind.c return _pam_chown_homedir(ctx, create_dir, ctx 1660 nsswitch/pam_winbind.c static int winbind_auth_request(struct pwb_context *ctx, ctx 1710 nsswitch/pam_winbind.c if (ctx->ctrl & WINBIND_KRB5_AUTH) { ctx 1714 nsswitch/pam_winbind.c if (ctx->ctrl & (WINBIND_KRB5_AUTH|WINBIND_CACHED_LOGIN)) { ctx 1724 nsswitch/pam_winbind.c if (ctx->ctrl & WINBIND_KRB5_AUTH) { ctx 1726 nsswitch/pam_winbind.c _pam_log_debug(ctx, LOG_DEBUG, ctx 1733 nsswitch/pam_winbind.c if (ctx->ctrl & WINBIND_CACHED_LOGIN) { ctx 1734 nsswitch/pam_winbind.c _pam_log_debug(ctx, LOG_DEBUG, ctx 1745 nsswitch/pam_winbind.c _pam_log_debug(ctx, LOG_DEBUG, ctx 1754 nsswitch/pam_winbind.c if (!winbind_name_list_to_sid_string_list(ctx, user, member, ctx 1757 nsswitch/pam_winbind.c _pam_log_debug(ctx, LOG_ERR, ctx 1814 nsswitch/pam_winbind.c ret = wbc_auth_error_to_pam_error(ctx, error, wbc_status, ctx 1843 nsswitch/pam_winbind.c if (_pam_check_remark_auth_err(ctx, error, codes[i], &_ret)) { ctx 1855 nsswitch/pam_winbind.c _pam_warn_password_expiry(ctx, user_info, policy, ctx 1864 nsswitch/pam_winbind.c _pam_log_debug(ctx, LOG_DEBUG, ctx 1883 nsswitch/pam_winbind.c _pam_warn_logon_type(ctx, user, user_info->user_flags); ctx 1886 nsswitch/pam_winbind.c _pam_warn_krb5_failure(ctx, user, user_info->user_flags); ctx 1889 nsswitch/pam_winbind.c _pam_set_data_info3(ctx, user_info); ctx 1892 nsswitch/pam_winbind.c _pam_setup_krb5_env(ctx, info); ctx 1896 nsswitch/pam_winbind.c _pam_setup_unix_username(ctx, user_ret, info); ctx 1920 nsswitch/pam_winbind.c static int winbind_chauthtok_request(struct pwb_context *ctx, ctx 1947 nsswitch/pam_winbind.c if (ctx->ctrl & WINBIND_KRB5_AUTH) { ctx 1952 nsswitch/pam_winbind.c if (ctx->ctrl & WINBIND_CACHED_LOGIN) { ctx 1963 nsswitch/pam_winbind.c ret = wbc_auth_error_to_pam_error(ctx, error, wbc_status, ctx 1967 nsswitch/pam_winbind.c _pam_log(ctx, LOG_NOTICE, ctx 1979 nsswitch/pam_winbind.c if (_pam_check_remark_auth_err(ctx, error, codes[i], &_ret)) { ctx 2002 nsswitch/pam_winbind.c PAM_WB_REMARK_DIRECT(ctx, ctx 2007 nsswitch/pam_winbind.c PAM_WB_REMARK_DIRECT(ctx, ctx 2011 nsswitch/pam_winbind.c PAM_WB_REMARK_DIRECT(ctx, ctx 2015 nsswitch/pam_winbind.c _make_remark(ctx, PAM_ERROR_MSG, ctx 2020 nsswitch/pam_winbind.c _pam_log_debug(ctx, LOG_DEBUG, ctx 2028 nsswitch/pam_winbind.c _pam_compose_pwd_restriction_string(ctx, policy); ctx 2030 nsswitch/pam_winbind.c _make_remark(ctx, PAM_ERROR_MSG, ctx 2050 nsswitch/pam_winbind.c static int valid_user(struct pwb_context *ctx, ctx 2069 nsswitch/pam_winbind.c _pam_log(ctx, LOG_DEBUG, "valid_user: wbcGetpwnam gave %s\n", ctx 2095 nsswitch/pam_winbind.c static int _winbind_read_password(struct pwb_context *ctx, ctx 2107 nsswitch/pam_winbind.c _pam_log(ctx, LOG_DEBUG, "getting password (0x%08x)", ctrl); ctx 2131 nsswitch/pam_winbind.c retval = _pam_get_item(ctx->pamh, authtok_flag, &item); ctx 2134 nsswitch/pam_winbind.c _pam_log(ctx, LOG_ALERT, ctx 2141 nsswitch/pam_winbind.c _pam_log(ctx, LOG_DEBUG, ctx 2185 nsswitch/pam_winbind.c retval = converse(ctx->pamh, i, pmsg, &resp); ctx 2201 nsswitch/pam_winbind.c _pam_log(ctx, LOG_NOTICE, ctx 2214 nsswitch/pam_winbind.c _make_remark(ctx, PAM_ERROR_MSG, ctx 2228 nsswitch/pam_winbind.c _pam_log_debug(ctx, LOG_DEBUG, ctx 2236 nsswitch/pam_winbind.c retval = pam_set_item(ctx->pamh, authtok_flag, token); ctx 2239 nsswitch/pam_winbind.c (retval = _pam_get_item(ctx->pamh, authtok_flag, &item)) != PAM_SUCCESS) { ctx 2241 nsswitch/pam_winbind.c _pam_log(ctx, LOG_CRIT, "error manipulating password"); ctx 2252 nsswitch/pam_winbind.c static const char *get_conf_item_string(struct pwb_context *ctx, ctx 2259 nsswitch/pam_winbind.c if (!(ctx->ctrl & config_flag)) { ctx 2264 nsswitch/pam_winbind.c for (i=0; i<ctx->argc; i++) { ctx 2266 nsswitch/pam_winbind.c if ((strncmp(ctx->argv[i], item, strlen(item)) == 0)) { ctx 2269 nsswitch/pam_winbind.c if ((p = strchr(ctx->argv[i], '=')) == NULL) { ctx 2270 nsswitch/pam_winbind.c _pam_log(ctx, LOG_INFO, ctx 2275 nsswitch/pam_winbind.c _pam_log_debug(ctx, LOG_INFO, ctx 2281 nsswitch/pam_winbind.c if (ctx->dict) { ctx 2284 nsswitch/pam_winbind.c key = talloc_asprintf(ctx, "global:%s", item); ctx 2289 nsswitch/pam_winbind.c parm_opt = iniparser_getstr(ctx->dict, key); ctx 2292 nsswitch/pam_winbind.c _pam_log_debug(ctx, LOG_INFO, "CONFIG file: %s '%s'\n", ctx 2299 nsswitch/pam_winbind.c static int get_config_item_int(struct pwb_context *ctx, ctx 2305 nsswitch/pam_winbind.c if (!(ctx->ctrl & config_flag)) { ctx 2310 nsswitch/pam_winbind.c for (i = 0; i < ctx->argc; i++) { ctx 2312 nsswitch/pam_winbind.c if ((strncmp(ctx->argv[i], item, strlen(item)) == 0)) { ctx 2315 nsswitch/pam_winbind.c if ((p = strchr(ctx->argv[i], '=')) == NULL) { ctx 2316 nsswitch/pam_winbind.c _pam_log(ctx, LOG_INFO, ctx 2322 nsswitch/pam_winbind.c _pam_log_debug(ctx, LOG_INFO, ctx 2329 nsswitch/pam_winbind.c if (ctx->dict) { ctx 2332 nsswitch/pam_winbind.c key = talloc_asprintf(ctx, "global:%s", item); ctx 2337 nsswitch/pam_winbind.c parm_opt = iniparser_getint(ctx->dict, key, -1); ctx 2340 nsswitch/pam_winbind.c _pam_log_debug(ctx, LOG_INFO, ctx 2348 nsswitch/pam_winbind.c static const char *get_krb5_cc_type_from_config(struct pwb_context *ctx) ctx 2350 nsswitch/pam_winbind.c return get_conf_item_string(ctx, "krb5_ccache_type", ctx 2354 nsswitch/pam_winbind.c static const char *get_member_from_config(struct pwb_context *ctx) ctx 2357 nsswitch/pam_winbind.c ret = get_conf_item_string(ctx, "require_membership_of", ctx 2362 nsswitch/pam_winbind.c return get_conf_item_string(ctx, "require-membership-of", ctx 2366 nsswitch/pam_winbind.c static int get_warn_pwd_expire_from_config(struct pwb_context *ctx) ctx 2369 nsswitch/pam_winbind.c ret = get_config_item_int(ctx, "warn_pwd_expire", ctx 2386 nsswitch/pam_winbind.c static char winbind_get_separator(struct pwb_context *ctx) ctx 2393 nsswitch/pam_winbind.c _pam_log(ctx, LOG_ERR, ctx 2416 nsswitch/pam_winbind.c static char* winbind_upn_to_username(struct pwb_context *ctx, ctx 2429 nsswitch/pam_winbind.c sep = winbind_get_separator(ctx); ctx 2434 nsswitch/pam_winbind.c name = talloc_strdup(ctx, upn); ctx 2458 nsswitch/pam_winbind.c return talloc_asprintf(ctx, "%s\\%s", domain, name); ctx 2465 nsswitch/pam_winbind.c struct pwb_context *ctx = NULL; ctx 2473 nsswitch/pam_winbind.c retval = _pam_winbind_init_context(pamh, flags, argc, argv, &ctx); ctx 2478 nsswitch/pam_winbind.c _PAM_LOG_FUNCTION_ENTER("_pam_delete_cred", ctx); ctx 2480 nsswitch/pam_winbind.c if (ctx->ctrl & WINBIND_KRB5_AUTH) { ctx 2490 nsswitch/pam_winbind.c _pam_log(ctx, LOG_ERR, ctx 2496 nsswitch/pam_winbind.c _pam_log(ctx, LOG_ERR, ctx 2502 nsswitch/pam_winbind.c _pam_log_debug(ctx, LOG_DEBUG, ctx 2507 nsswitch/pam_winbind.c _pam_log_debug(ctx, LOG_DEBUG, ctx 2555 nsswitch/pam_winbind.c retval = wbc_auth_error_to_pam_error(ctx, error, wbc_status, ctx 2562 nsswitch/pam_winbind.c _pam_log(ctx, LOG_INFO, ctx 2574 nsswitch/pam_winbind.c retval = wbc_auth_error_to_pam_error(ctx, error, wbc_status, ctx 2582 nsswitch/pam_winbind.c if ((ctx->ctrl & WINBIND_KRB5_AUTH) && pam_getenv(pamh, "KRB5CCNAME")) { ctx 2586 nsswitch/pam_winbind.c _PAM_LOG_FUNCTION_LEAVE("_pam_delete_cred", ctx, retval); ctx 2588 nsswitch/pam_winbind.c TALLOC_FREE(ctx); ctx 2606 nsswitch/pam_winbind.c struct pwb_context *ctx = NULL; ctx 2608 nsswitch/pam_winbind.c retval = _pam_winbind_init_context(pamh, flags, argc, argv, &ctx); ctx 2613 nsswitch/pam_winbind.c _PAM_LOG_FUNCTION_ENTER("pam_sm_authenticate", ctx); ctx 2618 nsswitch/pam_winbind.c _pam_log_debug(ctx, LOG_DEBUG, ctx 2642 nsswitch/pam_winbind.c _pam_log_debug(ctx, LOG_DEBUG, ctx 2655 nsswitch/pam_winbind.c samaccountname = winbind_upn_to_username(ctx, ctx 2663 nsswitch/pam_winbind.c retval = _winbind_read_password(ctx, ctx->ctrl, NULL, ctx 2668 nsswitch/pam_winbind.c _pam_log(ctx, LOG_ERR, ctx 2677 nsswitch/pam_winbind.c _pam_log_debug(ctx, LOG_INFO, ctx 2681 nsswitch/pam_winbind.c _pam_log_debug(ctx, LOG_INFO, ctx 2685 nsswitch/pam_winbind.c member = get_member_from_config(ctx); ctx 2686 nsswitch/pam_winbind.c cctype = get_krb5_cc_type_from_config(ctx); ctx 2687 nsswitch/pam_winbind.c warn_pwd_expire = get_warn_pwd_expire_from_config(ctx); ctx 2690 nsswitch/pam_winbind.c retval = winbind_auth_request(ctx, real_username, password, ctx 2728 nsswitch/pam_winbind.c _pam_log_debug(ctx, LOG_INFO, ctx 2745 nsswitch/pam_winbind.c _PAM_LOG_FUNCTION_LEAVE("pam_sm_authenticate", ctx, retval); ctx 2747 nsswitch/pam_winbind.c TALLOC_FREE(ctx); ctx 2757 nsswitch/pam_winbind.c struct pwb_context *ctx = NULL; ctx 2759 nsswitch/pam_winbind.c ret = _pam_winbind_init_context(pamh, flags, argc, argv, &ctx); ctx 2764 nsswitch/pam_winbind.c _PAM_LOG_FUNCTION_ENTER("pam_sm_setcred", ctx); ctx 2772 nsswitch/pam_winbind.c _pam_log_debug(ctx, LOG_WARNING, ctx 2777 nsswitch/pam_winbind.c _pam_log_debug(ctx, LOG_WARNING, ctx 2782 nsswitch/pam_winbind.c _pam_log_debug(ctx, LOG_WARNING, ctx 2793 nsswitch/pam_winbind.c _PAM_LOG_FUNCTION_LEAVE("pam_sm_setcred", ctx, ret); ctx 2795 nsswitch/pam_winbind.c TALLOC_FREE(ctx); ctx 2811 nsswitch/pam_winbind.c struct pwb_context *ctx = NULL; ctx 2813 nsswitch/pam_winbind.c ret = _pam_winbind_init_context(pamh, flags, argc, argv, &ctx); ctx 2818 nsswitch/pam_winbind.c _PAM_LOG_FUNCTION_ENTER("pam_sm_acct_mgmt", ctx); ctx 2824 nsswitch/pam_winbind.c _pam_log_debug(ctx, LOG_DEBUG, ctx 2831 nsswitch/pam_winbind.c ret = valid_user(ctx, username); ctx 2839 nsswitch/pam_winbind.c _pam_log_debug(ctx, LOG_NOTICE, "user '%s' not found", ctx 2841 nsswitch/pam_winbind.c if (ctx->ctrl & WINBIND_UNKNOWN_OK_ARG) { ctx 2856 nsswitch/pam_winbind.c _pam_log(ctx, LOG_WARNING, ctx 2859 nsswitch/pam_winbind.c _pam_log(ctx, LOG_NOTICE, ctx 2866 nsswitch/pam_winbind.c _pam_log(ctx, LOG_WARNING, ctx 2868 nsswitch/pam_winbind.c _pam_log(ctx, LOG_NOTICE, ctx 2876 nsswitch/pam_winbind.c _pam_log(ctx, LOG_NOTICE, ctx 2882 nsswitch/pam_winbind.c _pam_log(ctx, LOG_ERR, ctx 2894 nsswitch/pam_winbind.c _PAM_LOG_FUNCTION_LEAVE("pam_sm_acct_mgmt", ctx, ret); ctx 2896 nsswitch/pam_winbind.c TALLOC_FREE(ctx); ctx 2906 nsswitch/pam_winbind.c struct pwb_context *ctx = NULL; ctx 2908 nsswitch/pam_winbind.c ret = _pam_winbind_init_context(pamh, flags, argc, argv, &ctx); ctx 2913 nsswitch/pam_winbind.c _PAM_LOG_FUNCTION_ENTER("pam_sm_open_session", ctx); ctx 2915 nsswitch/pam_winbind.c if (ctx->ctrl & WINBIND_MKHOMEDIR) { ctx 2917 nsswitch/pam_winbind.c ret = _pam_mkhomedir(ctx); ctx 2920 nsswitch/pam_winbind.c _PAM_LOG_FUNCTION_LEAVE("pam_sm_open_session", ctx, ret); ctx 2922 nsswitch/pam_winbind.c TALLOC_FREE(ctx); ctx 2932 nsswitch/pam_winbind.c struct pwb_context *ctx = NULL; ctx 2934 nsswitch/pam_winbind.c ret = _pam_winbind_init_context(pamh, flags, argc, argv, &ctx); ctx 2939 nsswitch/pam_winbind.c _PAM_LOG_FUNCTION_ENTER("pam_sm_close_session", ctx); ctx 2942 nsswitch/pam_winbind.c _PAM_LOG_FUNCTION_LEAVE("pam_sm_close_session", ctx, ret); ctx 2944 nsswitch/pam_winbind.c TALLOC_FREE(ctx); ctx 2959 nsswitch/pam_winbind.c static bool _pam_require_krb5_auth_after_chauthtok(struct pwb_context *ctx, ctx 2977 nsswitch/pam_winbind.c _pam_get_data(ctx->pamh, PAM_WINBIND_NEW_AUTHTOK_REQD_DURING_AUTH, ctx 2979 nsswitch/pam_winbind.c pam_set_data(ctx->pamh, PAM_WINBIND_NEW_AUTHTOK_REQD_DURING_AUTH, ctx 3017 nsswitch/pam_winbind.c struct pwb_context *ctx = NULL; ctx 3019 nsswitch/pam_winbind.c ret = _pam_winbind_init_context(pamh, flags, argc, argv, &ctx); ctx 3024 nsswitch/pam_winbind.c _PAM_LOG_FUNCTION_ENTER("pam_sm_chauthtok", ctx); ctx 3026 nsswitch/pam_winbind.c cached_login = (ctx->ctrl & WINBIND_CACHED_LOGIN); ctx 3029 nsswitch/pam_winbind.c ctx->ctrl &= ~WINBIND_CACHED_LOGIN; ctx 3036 nsswitch/pam_winbind.c _pam_log(ctx, LOG_ERR, ctx 3042 nsswitch/pam_winbind.c _pam_log(ctx, LOG_ERR, "username was NULL!"); ctx 3047 nsswitch/pam_winbind.c _pam_log_debug(ctx, LOG_DEBUG, "username [%s] obtained", user); ctx 3050 nsswitch/pam_winbind.c ret = valid_user(ctx, user); ctx 3073 nsswitch/pam_winbind.c Announce = talloc_asprintf(ctx, "%s %s", greeting, user); ctx 3075 nsswitch/pam_winbind.c _pam_log(ctx, LOG_CRIT, ctx 3082 nsswitch/pam_winbind.c lctrl = ctx->ctrl | WINBIND__OLD_PASSWORD; ctx 3083 nsswitch/pam_winbind.c ret = _winbind_read_password(ctx, lctrl, ctx 3090 nsswitch/pam_winbind.c _pam_log(ctx, LOG_NOTICE, ctx 3097 nsswitch/pam_winbind.c ret = winbind_auth_request(ctx, user, pass_old, ctx 3117 nsswitch/pam_winbind.c _pam_log(ctx, LOG_CRIT, ctx 3135 nsswitch/pam_winbind.c _pam_log(ctx, LOG_NOTICE, ctx 3140 nsswitch/pam_winbind.c lctrl = ctx->ctrl & ~WINBIND_TRY_FIRST_PASS_ARG; ctx 3153 nsswitch/pam_winbind.c ret = _winbind_read_password(ctx, lctrl, ctx 3160 nsswitch/pam_winbind.c _pam_log_debug(ctx, LOG_ALERT, ctx 3191 nsswitch/pam_winbind.c ctx->ctrl |= WINBIND_CACHED_LOGIN; ctx 3194 nsswitch/pam_winbind.c ret = winbind_chauthtok_request(ctx, user, pass_old, ctx 3201 nsswitch/pam_winbind.c if (_pam_require_krb5_auth_after_chauthtok(ctx, user)) { ctx 3209 nsswitch/pam_winbind.c member = get_member_from_config(ctx); ctx 3210 nsswitch/pam_winbind.c cctype = get_krb5_cc_type_from_config(ctx); ctx 3211 nsswitch/pam_winbind.c warn_pwd_expire = get_warn_pwd_expire_from_config(ctx); ctx 3221 nsswitch/pam_winbind.c ret = winbind_auth_request(ctx, user, pass_new, ctx 3237 nsswitch/pam_winbind.c _pam_warn_password_expiry(ctx, user_info, policy, ctx 3243 nsswitch/pam_winbind.c _pam_set_data_info3(ctx, user_info); ctx 3246 nsswitch/pam_winbind.c _pam_setup_krb5_env(ctx, info); ctx 3251 nsswitch/pam_winbind.c _pam_log_debug(ctx, LOG_INFO, ctx 3283 nsswitch/pam_winbind.c if (_pam_check_remark_auth_err(ctx, error, codes[i], &_ret)) { ctx 3291 nsswitch/pam_winbind.c _PAM_LOG_FUNCTION_LEAVE("pam_sm_chauthtok", ctx, ret); ctx 3293 nsswitch/pam_winbind.c TALLOC_FREE(ctx); ctx 175 nsswitch/pam_winbind.h #define TALLOC_FREE(ctx) do { talloc_free(ctx); ctx=NULL; } while(0) ctx 177 nsswitch/pam_winbind.h #define TALLOC_ZERO_P(ctx, type) (type *)_talloc_zero(ctx, sizeof(type), #type) ctx 178 nsswitch/pam_winbind.h #define TALLOC_P(ctx, type) (type *)talloc_named_const(ctx, sizeof(type), #type) ctx 63 source3/auth/auth_util.c TALLOC_CTX *ctx = talloc_tos(); ctx 67 source3/auth/auth_util.c add_script = talloc_strdup(ctx, lp_adduser_script()); ctx 71 source3/auth/auth_util.c add_script = talloc_all_string_sub(ctx, ctx 79 source3/auth/auth_util.c add_script = talloc_all_string_sub(ctx, ctx 88 source3/auth/auth_util.c add_script = talloc_all_string_sub(ctx, ctx 298 source3/auth/token_util.c TALLOC_CTX *ctx; ctx 319 source3/auth/token_util.c if ( (ctx = talloc_init("create_builtin_administrators")) == NULL ) { ctx 323 source3/auth/token_util.c ret = lookup_name(ctx, root_name, LOOKUP_NAME_DOMAIN, NULL, NULL, ctx 325 source3/auth/token_util.c TALLOC_FREE( ctx ); ctx 303 source3/client/client.c TALLOC_CTX *ctx = talloc_tos(); ctx 305 source3/client/client.c if ( !cli_resolve_path(ctx, "", auth_info, cli, client_get_cur_dir(), &targetcli, &targetpath)) { ctx 357 source3/client/client.c TALLOC_CTX *ctx = talloc_stackframe(); ctx 359 source3/client/client.c newdir = talloc_strdup(ctx, new_dir); ctx 361 source3/client/client.c TALLOC_FREE(ctx); ctx 369 source3/client/client.c saved_dir = talloc_strdup(ctx, client_get_cur_dir()); ctx 371 source3/client/client.c TALLOC_FREE(ctx); ctx 379 source3/client/client.c new_cd = talloc_asprintf(ctx, "%s%s", ctx 396 source3/client/client.c new_cd = clean_name(ctx, new_cd); ctx 399 source3/client/client.c if ( !cli_resolve_path(ctx, "", auth_info, cli, new_cd, &targetcli, &targetpath)) { ctx 406 source3/client/client.c TALLOC_FREE(ctx); ctx 426 source3/client/client.c targetpath = talloc_asprintf(ctx, ctx 434 source3/client/client.c targetpath = clean_name(ctx, targetpath); ctx 451 source3/client/client.c TALLOC_FREE(ctx); ctx 522 source3/client/client.c TALLOC_CTX *ctx = talloc_tos(); ctx 544 source3/client/client.c afname = talloc_asprintf(ctx, ctx 564 source3/client/client.c sd = cli_query_secdesc(finfo->cli, fnum, ctx); ctx 714 source3/client/client.c TALLOC_CTX *ctx = talloc_tos(); ctx 719 source3/client/client.c dir = talloc_strdup(ctx, mask); ctx 744 source3/client/client.c mask2 = talloc_asprintf(ctx, ctx 790 source3/client/client.c TALLOC_CTX *ctx = talloc_tos(); ctx 817 source3/client/client.c char *head = talloc_strdup(ctx, do_list_queue_head()); ctx 825 source3/client/client.c if ( !cli_resolve_path(ctx, "", auth_info, cli, head, &targetcli, &targetpath ) ) { ctx 858 source3/client/client.c if (cli_resolve_path(ctx, "", auth_info, cli, mask, &targetcli, &targetpath)) { ctx 879 source3/client/client.c TALLOC_CTX *ctx = talloc_tos(); ctx 886 source3/client/client.c mask = talloc_strdup(ctx, client_get_cur_dir()); ctx 891 source3/client/client.c if (next_token_talloc(ctx, &cmd_ptr,&buf,NULL)) { ctx 894 source3/client/client.c mask = talloc_strdup(ctx, buf); ctx 925 source3/client/client.c TALLOC_CTX *ctx = talloc_tos(); ctx 932 source3/client/client.c mask = talloc_strdup(ctx, client_get_cur_dir()); ctx 943 source3/client/client.c if (next_token_talloc(ctx, &cmd_ptr,&buf,NULL)) { ctx 946 source3/client/client.c mask = talloc_strdup(ctx, buf); ctx 951 source3/client/client.c mask = talloc_strdup(ctx, "*"); ctx 965 source3/client/client.c TALLOC_CTX *ctx = talloc_tos(); ctx 970 source3/client/client.c if (!next_token_talloc(ctx, &cmd_ptr, &num, NULL) ctx 971 source3/client/client.c || !next_token_talloc(ctx, &cmd_ptr, &data, NULL)) { ctx 1001 source3/client/client.c TALLOC_CTX *ctx = talloc_tos(); ctx 1015 source3/client/client.c lname = talloc_strdup(ctx, lname_in); ctx 1024 source3/client/client.c if (!cli_resolve_path(ctx, "", auth_info, cli, rname, &targetcli, &targetname ) ) { ctx 1120 source3/client/client.c TALLOC_CTX *ctx = talloc_tos(); ctx 1125 source3/client/client.c rname = talloc_strdup(ctx, client_get_cur_dir()); ctx 1130 source3/client/client.c if (!next_token_talloc(ctx, &cmd_ptr,&fname,NULL)) { ctx 1138 source3/client/client.c rname = clean_name(ctx, rname); ctx 1143 source3/client/client.c next_token_talloc(ctx, &cmd_ptr,&lname,NULL); ctx 1157 source3/client/client.c TALLOC_CTX *ctx = talloc_tos(); ctx 1195 source3/client/client.c rname = talloc_asprintf(ctx, ctx 1208 source3/client/client.c saved_curdir = talloc_strdup(ctx, client_get_cur_dir()); ctx 1213 source3/client/client.c new_cd = talloc_asprintf(ctx, ctx 1241 source3/client/client.c mget_mask = talloc_asprintf(ctx, ctx 1266 source3/client/client.c TALLOC_CTX *ctx = talloc_tos(); ctx 1275 source3/client/client.c rname = talloc_strdup(ctx, client_get_cur_dir()); ctx 1280 source3/client/client.c lname = talloc_asprintf(ctx, "%s/smbmore.XXXXXX",tmpdir()); ctx 1291 source3/client/client.c if (!next_token_talloc(ctx, &cmd_ptr,&fname,NULL)) { ctx 1300 source3/client/client.c rname = clean_name(ctx,rname); ctx 1309 source3/client/client.c pager_cmd = talloc_asprintf(ctx, ctx 1331 source3/client/client.c TALLOC_CTX *ctx = talloc_tos(); ctx 1342 source3/client/client.c while (next_token_talloc(ctx, &cmd_ptr,&buf,NULL)) { ctx 1343 source3/client/client.c mget_mask = talloc_strdup(ctx, client_get_cur_dir()); ctx 1348 source3/client/client.c mget_mask = talloc_strdup(ctx, buf); ctx 1365 source3/client/client.c mget_mask = talloc_asprintf(ctx, ctx 1383 source3/client/client.c TALLOC_CTX *ctx = talloc_tos(); ctx 1387 source3/client/client.c if (!cli_resolve_path(ctx, "", auth_info, cli, name, &targetcli, &targetname)) { ctx 1437 source3/client/client.c TALLOC_CTX *ctx = talloc_tos(); ctx 1441 source3/client/client.c mask = talloc_strdup(ctx, client_get_cur_dir()); ctx 1446 source3/client/client.c if (!next_token_talloc(ctx, &cmd_ptr,&buf,NULL)) { ctx 1465 source3/client/client.c ddir2 = talloc_strdup(ctx, ""); ctx 1470 source3/client/client.c if (!cli_resolve_path(ctx, "", auth_info, cli, mask, &targetcli, &targetname)) { ctx 1474 source3/client/client.c ddir = talloc_strdup(ctx, targetname); ctx 1507 source3/client/client.c TALLOC_CTX *ctx = talloc_tos(); ctx 1511 source3/client/client.c name = talloc_strdup(ctx, client_get_cur_dir()); ctx 1516 source3/client/client.c if (!next_token_talloc(ctx, &cmd_ptr, &buf, NULL)) { ctx 1591 source3/client/client.c TALLOC_CTX *ctx = talloc_tos(); ctx 1595 source3/client/client.c name = talloc_strdup(ctx, client_get_cur_dir()); ctx 1600 source3/client/client.c if (!next_token_talloc(ctx, &cmd_ptr, &buf, NULL)) { ctx 1620 source3/client/client.c TALLOC_CTX *ctx = talloc_tos(); ctx 1631 source3/client/client.c if (!cli_resolve_path(ctx, "", auth_info, cli, rname, &targetcli, &targetname)) { ctx 1733 source3/client/client.c TALLOC_CTX *ctx = talloc_tos(); ctx 1738 source3/client/client.c rname = talloc_strdup(ctx, client_get_cur_dir()); ctx 1743 source3/client/client.c if (!next_token_talloc(ctx, &cmd_ptr,&lname,NULL)) { ctx 1748 source3/client/client.c if (next_token_talloc(ctx, &cmd_ptr,&buf,NULL)) { ctx 1757 source3/client/client.c rname = clean_name(ctx, rname); ctx 1826 source3/client/client.c TALLOC_CTX *ctx = talloc_tos(); ctx 1828 source3/client/client.c next_token_talloc(ctx, &cmd_ptr,&new_fs,NULL) ctx 1911 source3/client/client.c TALLOC_CTX *ctx = talloc_tos(); ctx 1914 source3/client/client.c while (next_token_talloc(ctx, &cmd_ptr,&p,NULL)) { ctx 2021 source3/client/client.c TALLOC_CTX *ctx = talloc_tos(); ctx 2025 source3/client/client.c if (!next_token_talloc(ctx, &cmd_ptr, &buf,NULL)) { ctx 2032 source3/client/client.c } while (next_token_talloc(ctx, &cmd_ptr,&buf,NULL)); ctx 2043 source3/client/client.c TALLOC_CTX *ctx = talloc_tos(); ctx 2048 source3/client/client.c if (!next_token_talloc(ctx, &cmd_ptr, &lname,NULL)) { ctx 2053 source3/client/client.c rname = talloc_strdup(ctx, lname); ctx 2059 source3/client/client.c rname = talloc_asprintf(ctx, ctx 2065 source3/client/client.c rname = talloc_asprintf(ctx, ctx 2101 source3/client/client.c TALLOC_CTX *ctx = talloc_tos(); ctx 2104 source3/client/client.c mask = talloc_asprintf(ctx, ctx 2131 source3/client/client.c TALLOC_CTX *ctx = talloc_tos(); ctx 2140 source3/client/client.c mask = talloc_strdup(ctx, client_get_cur_dir()); ctx 2144 source3/client/client.c if (!next_token_talloc(ctx, &cmd_ptr,&buf,NULL)) { ctx 2163 source3/client/client.c TALLOC_CTX *ctx = talloc_tos(); ctx 2170 source3/client/client.c if (!next_token_talloc(ctx, &cmd_ptr,&buf,NULL)) { ctx 2177 source3/client/client.c if (!next_token_talloc(ctx, &cmd_ptr,&buf,NULL)) { ctx 2182 source3/client/client.c mask = talloc_asprintf(ctx, "%s%s", ctx 2189 source3/client/client.c if (!cli_resolve_path(ctx, "", auth_info, cli, mask, &targetcli, &targetname)) { ctx 2205 source3/client/client.c TALLOC_CTX *ctx = talloc_tos(); ctx 2212 source3/client/client.c if (!next_token_talloc(ctx, &cmd_ptr,&buf,NULL)) { ctx 2216 source3/client/client.c mask = talloc_asprintf(ctx, ctx 2224 source3/client/client.c if (!cli_resolve_path(ctx, "", auth_info, cli, mask, &targetcli, &targetname)) { ctx 2245 source3/client/client.c TALLOC_CTX *ctx = talloc_tos(); ctx 2255 source3/client/client.c if (!next_token_talloc(ctx, &cmd_ptr,&domain,NULL)) { ctx 2260 source3/client/client.c if (!next_token_talloc(ctx, &cmd_ptr,&user,NULL)) { ctx 2265 source3/client/client.c if (!next_token_talloc(ctx, &cmd_ptr,&password,NULL)) { ctx 2291 source3/client/client.c TALLOC_CTX *ctx = talloc_tos(); ctx 2299 source3/client/client.c if (!next_token_talloc(ctx, &cmd_ptr,&buf,NULL)) { ctx 2303 source3/client/client.c mask = talloc_asprintf(ctx, ctx 2311 source3/client/client.c if (!next_token_talloc(ctx, &cmd_ptr,&buf,NULL)) { ctx 2317 source3/client/client.c if (!cli_resolve_path(ctx, "", auth_info, cli, mask, &targetcli, &targetname)) { ctx 2339 source3/client/client.c TALLOC_CTX *ctx = talloc_tos(); ctx 2347 source3/client/client.c if (!next_token_talloc(ctx, &cmd_ptr,&buf,NULL)) { ctx 2351 source3/client/client.c mask = talloc_asprintf(ctx, ctx 2359 source3/client/client.c if (!next_token_talloc(ctx, &cmd_ptr,&buf,NULL)) { ctx 2365 source3/client/client.c if (!cli_resolve_path(ctx, "", auth_info, cli, mask, &targetcli, &targetname)) { ctx 2381 source3/client/client.c TALLOC_CTX *ctx = talloc_tos(); ctx 2387 source3/client/client.c if (!next_token_talloc(ctx, &cmd_ptr,&buf,NULL)) { ctx 2391 source3/client/client.c mask = talloc_asprintf(ctx, ctx 2399 source3/client/client.c if (!cli_resolve_path(ctx, "", auth_info, cli, mask, &targetcli, &targetname)) { ctx 2415 source3/client/client.c TALLOC_CTX *ctx = talloc_tos(); ctx 2421 source3/client/client.c if (!next_token_talloc(ctx, &cmd_ptr,&buf,NULL)) { ctx 2425 source3/client/client.c mask = talloc_asprintf(ctx, ctx 2433 source3/client/client.c if (!cli_resolve_path(ctx, "", auth_info, cli, mask, &targetcli, &targetname)) { ctx 2449 source3/client/client.c TALLOC_CTX *ctx = talloc_tos(); ctx 2453 source3/client/client.c if (!next_token_talloc(ctx, &cmd_ptr,&buf,NULL)) { ctx 2469 source3/client/client.c TALLOC_CTX *ctx = talloc_tos(); ctx 2486 source3/client/client.c caps = talloc_strdup(ctx, ""); ctx 2567 source3/client/client.c TALLOC_CTX *ctx = talloc_tos(); ctx 2573 source3/client/client.c if (!next_token_talloc(ctx, &cmd_ptr,&buf,NULL)) { ctx 2579 source3/client/client.c if (!next_token_talloc(ctx, &cmd_ptr,&buf,NULL)) { ctx 2593 source3/client/client.c if (!next_token_talloc(ctx, &cmd_ptr,&buf,NULL)) { ctx 2600 source3/client/client.c if (!next_token_talloc(ctx, &cmd_ptr,&buf,NULL)) { ctx 2616 source3/client/client.c TALLOC_CTX *ctx = talloc_tos(); ctx 2621 source3/client/client.c if (!next_token_talloc(ctx, &cmd_ptr,&buf,NULL)) { ctx 2627 source3/client/client.c if (!next_token_talloc(ctx, &cmd_ptr,&buf,NULL)) { ctx 2634 source3/client/client.c if (!next_token_talloc(ctx, &cmd_ptr,&buf,NULL)) { ctx 2655 source3/client/client.c TALLOC_CTX *ctx = talloc_tos(); ctx 2661 source3/client/client.c if (!next_token_talloc(ctx, &cmd_ptr,&buf,NULL)) { ctx 2665 source3/client/client.c mask = talloc_asprintf(ctx, ctx 2673 source3/client/client.c if (!cli_resolve_path(ctx, "", auth_info, cli, mask, &targetcli, &targetname)) { ctx 2692 source3/client/client.c TALLOC_CTX *ctx = talloc_tos(); ctx 2700 source3/client/client.c if (!next_token_talloc(ctx, &cmd_ptr,&buf,NULL) || ctx 2701 source3/client/client.c !next_token_talloc(ctx, &cmd_ptr,&buf2,NULL)) { ctx 2705 source3/client/client.c oldname = talloc_asprintf(ctx, ctx 2712 source3/client/client.c newname = talloc_asprintf(ctx, ctx 2720 source3/client/client.c if (!cli_resolve_path(ctx, "", auth_info, cli, oldname, &targetcli, &targetname)) { ctx 2743 source3/client/client.c TALLOC_CTX *ctx = talloc_tos(); ctx 2751 source3/client/client.c if (!next_token_talloc(ctx, &cmd_ptr,&buf,NULL) || ctx 2752 source3/client/client.c !next_token_talloc(ctx, &cmd_ptr,&buf2,NULL)) { ctx 2756 source3/client/client.c oldname = talloc_asprintf(ctx, ctx 2763 source3/client/client.c newname = talloc_asprintf(ctx, ctx 2771 source3/client/client.c if (!cli_resolve_path(ctx, "", auth_info, cli, oldname, &targetcli, &targetname)) { ctx 2796 source3/client/client.c TALLOC_CTX *ctx = talloc_tos(); ctx 2804 source3/client/client.c if (!next_token_talloc(ctx, &cmd_ptr,&buf,NULL) || ctx 2805 source3/client/client.c !next_token_talloc(ctx, &cmd_ptr,&buf2,NULL)) { ctx 2809 source3/client/client.c src = talloc_asprintf(ctx, ctx 2819 source3/client/client.c if (!cli_resolve_path(ctx, "", auth_info, cli, src, &targetcli, &targetname)) { ctx 2946 source3/client/client.c TALLOC_CTX *ctx = talloc_tos(); ctx 2960 source3/client/client.c if (!next_token_talloc(ctx, &cmd_ptr,&name,NULL)) { ctx 2964 source3/client/client.c src = talloc_asprintf(ctx, ctx 2972 source3/client/client.c if (!cli_resolve_path(ctx, "", auth_info, cli, src, &targetcli, &targetname)) { ctx 3117 source3/client/client.c TALLOC_CTX *ctx = talloc_tos(); ctx 3126 source3/client/client.c if (!next_token_talloc(ctx, &cmd_ptr,&name,NULL)) { ctx 3130 source3/client/client.c src = talloc_asprintf(ctx, ctx 3138 source3/client/client.c if (!cli_resolve_path(ctx, "", auth_info, cli, src, &targetcli, &targetname)) { ctx 3214 source3/client/client.c TALLOC_CTX *ctx = talloc_tos(); ctx 3222 source3/client/client.c if (!next_token_talloc(ctx, &cmd_ptr,&buf,NULL) || ctx 3223 source3/client/client.c !next_token_talloc(ctx, &cmd_ptr,&buf2,NULL) || ctx 3224 source3/client/client.c !next_token_talloc(ctx, &cmd_ptr,&buf3,NULL)) { ctx 3232 source3/client/client.c src = talloc_asprintf(ctx, ctx 3239 source3/client/client.c if (!cli_resolve_path(ctx, "", auth_info, cli, src, &targetcli, &targetname) ) { ctx 3264 source3/client/client.c TALLOC_CTX *ctx = talloc_tos(); ctx 3271 source3/client/client.c if (!next_token_talloc(ctx, &cmd_ptr,&buf,NULL) || ctx 3272 source3/client/client.c !next_token_talloc(ctx, &cmd_ptr,&buf2,NULL)) { ctx 3277 source3/client/client.c src = talloc_asprintf(ctx, ctx 3285 source3/client/client.c dest = talloc_asprintf(ctx, ctx 3293 source3/client/client.c if (!cli_resolve_path(ctx, "", auth_info, cli, src, &targetcli, &targetsrc)) { ctx 3298 source3/client/client.c if (!cli_resolve_path(ctx, "", auth_info, cli, dest, &targetcli, &targetdest)) { ctx 3340 source3/client/client.c TALLOC_CTX *ctx = talloc_tos(); ctx 3346 source3/client/client.c if (!next_token_talloc(ctx, &cmd_ptr,&buf,NULL) || ctx 3347 source3/client/client.c !next_token_talloc(ctx, &cmd_ptr,&buf2,NULL)) { ctx 3352 source3/client/client.c src = talloc_asprintf(ctx, ctx 3360 source3/client/client.c dest = talloc_asprintf(ctx, ctx 3368 source3/client/client.c if (!cli_resolve_path(ctx, "", auth_info, cli, src, &targetcli, &targetname)) { ctx 3398 source3/client/client.c TALLOC_CTX *ctx = talloc_tos(); ctx 3403 source3/client/client.c ok = next_token_talloc(ctx, &cmd_ptr,&buf,NULL); ctx 3426 source3/client/client.c TALLOC_CTX *ctx = talloc_tos(); ctx 3429 source3/client/client.c if (next_token_talloc(ctx, &cmd_ptr,&buf,NULL)) { ctx 3504 source3/client/client.c TALLOC_CTX *ctx = talloc_tos(); ctx 3508 source3/client/client.c if (next_token_talloc(ctx, &cmd_ptr,&buf,NULL)) { ctx 3514 source3/client/client.c d = TALLOC_ARRAY(ctx, char, PATH_MAX+1); ctx 3528 source3/client/client.c TALLOC_CTX *ctx = talloc_tos(); ctx 3534 source3/client/client.c remote_name = talloc_strdup(ctx, client_get_cur_dir()); ctx 3539 source3/client/client.c if (!next_token_talloc(ctx, &cmd_ptr, &fname, NULL)) { ctx 3547 source3/client/client.c remote_name = clean_name(ctx,remote_name); ctx 3553 source3/client/client.c next_token_talloc(ctx, &cmd_ptr, &p, NULL); ctx 3567 source3/client/client.c TALLOC_CTX *ctx = talloc_tos(); ctx 3573 source3/client/client.c remote_name = talloc_strdup(ctx, client_get_cur_dir()); ctx 3578 source3/client/client.c if (!next_token_talloc(ctx, &cmd_ptr, &local_name, NULL)) { ctx 3588 source3/client/client.c if (next_token_talloc(ctx, &cmd_ptr, &buf, NULL)) { ctx 3599 source3/client/client.c remote_name = clean_name(ctx, remote_name); ctx 3766 source3/client/client.c TALLOC_CTX *ctx = talloc_tos(); ctx 3769 source3/client/client.c if (!next_token_talloc(ctx, &cmd_ptr,&buf,NULL)) { ctx 3784 source3/client/client.c TALLOC_CTX *ctx = talloc_tos(); ctx 3787 source3/client/client.c if (!next_token_talloc(ctx, &cmd_ptr,&l_username,NULL)) { ctx 3792 source3/client/client.c if (!next_token_talloc(ctx, &cmd_ptr,&l_password,NULL)) { ctx 3795 source3/client/client.c l_password = talloc_strdup(ctx,pass); ctx 3831 source3/client/client.c TALLOC_CTX *ctx = talloc_tos(); ctx 3835 source3/client/client.c if (!cli_resolve_path(ctx, "", auth_info, cli, client_get_cur_dir(), ctx 3851 source3/client/client.c TALLOC_CTX *ctx = talloc_tos(); ctx 3855 source3/client/client.c if (!next_token_talloc(ctx, &cmd_ptr,&buf,NULL)) { ctx 4019 source3/client/client.c TALLOC_CTX *ctx = talloc_tos(); ctx 4023 source3/client/client.c if (next_token_talloc(ctx, &cmd_ptr,&buf,NULL)) { ctx 4045 source3/client/client.c TALLOC_CTX *ctx = talloc_tos(); ctx 4046 source3/client/client.c char *cmd = talloc_strdup(ctx, cmd_in); ctx 4082 source3/client/client.c if (!next_token_talloc(ctx, &cmd_ptr,&tok,NULL)) { ctx 4122 source3/client/client.c TALLOC_CTX *ctx = talloc_stackframe(); ctx 4125 source3/client/client.c tmp = talloc_strdup(ctx,info->dirmask); ctx 4127 source3/client/client.c TALLOC_FREE(ctx); ctx 4132 source3/client/client.c TALLOC_FREE(ctx); ctx 4139 source3/client/client.c TALLOC_FREE(ctx); ctx 4143 source3/client/client.c TALLOC_FREE(ctx); ctx 4166 source3/client/client.c TALLOC_CTX *ctx = talloc_stackframe(); ctx 4181 source3/client/client.c TALLOC_FREE(ctx); ctx 4209 source3/client/client.c dirmask = talloc_asprintf(ctx, ctx 4219 source3/client/client.c dirmask = talloc_asprintf(ctx, ctx 4227 source3/client/client.c if (!cli_resolve_path(ctx, "", auth_info, cli, dirmask, &targetcli, &targetpath)) { ctx 4241 source3/client/client.c TALLOC_FREE(ctx); ctx 4253 source3/client/client.c TALLOC_FREE(ctx); ctx 4272 source3/client/client.c TALLOC_FREE(ctx); ctx 625 source3/client/clitar.c TALLOC_CTX *ctx = talloc_stackframe(); ctx 658 source3/client/clitar.c rname = clean_name(ctx, rname_in); ctx 798 source3/client/clitar.c TALLOC_FREE(ctx); ctx 808 source3/client/clitar.c TALLOC_CTX *ctx = talloc_stackframe(); ctx 819 source3/client/clitar.c exclaim = talloc_asprintf(ctx, ctx 843 source3/client/clitar.c saved_curdir = talloc_strdup(ctx, client_get_cur_dir()); ctx 853 source3/client/clitar.c new_cd = talloc_asprintf(ctx, ctx 873 source3/client/clitar.c mtar_mask = talloc_asprintf(ctx, ctx 886 source3/client/clitar.c char *rname = talloc_asprintf(ctx, ctx 1271 source3/client/clitar.c TALLOC_CTX *ctx = talloc_tos(); ctx 1275 source3/client/clitar.c if (!next_token_talloc(ctx, &cmd_ptr,&buf,NULL)) { ctx 1297 source3/client/clitar.c TALLOC_CTX *ctx = talloc_tos(); ctx 1300 source3/client/clitar.c while (next_token_talloc(ctx, &cmd_ptr,&buf,NULL)) { ctx 1341 source3/client/clitar.c TALLOC_CTX *ctx = talloc_tos(); ctx 1350 source3/client/clitar.c if (!next_token_talloc(ctx, &cmd_ptr,&buf,NULL)) { ctx 1355 source3/client/clitar.c fname = talloc_asprintf(ctx, ctx 1363 source3/client/clitar.c while (next_token_talloc(ctx, &cmd_ptr,&buf,NULL)) { ctx 1459 source3/client/clitar.c TALLOC_CTX *ctx = talloc_tos(); ctx 1465 source3/client/clitar.c if (!next_token_talloc(ctx, &cmd_ptr,&buf,NULL)) { ctx 1487 source3/client/clitar.c TALLOC_CTX *ctx = talloc_tos(); ctx 1517 source3/client/clitar.c char *saved_dir = talloc_strdup(ctx, ctx 1524 source3/client/clitar.c tarmac = talloc_strdup(ctx, ctx 1527 source3/client/clitar.c tarmac = talloc_asprintf(ctx, ctx 1565 source3/client/clitar.c tarmac = talloc_asprintf(ctx, ctx 1578 source3/client/clitar.c char *mask = talloc_asprintf(ctx, ctx 67 source3/client/dnsbrowse.c TALLOC_CTX * ctx = talloc_tos(); ctx 85 source3/client/dnsbrowse.c fdset = TALLOC_ZERO(ctx, fdsetsz); ctx 165 source3/client/dnsbrowse.c TALLOC_CTX * ctx = talloc_stackframe(); ctx 174 source3/client/dnsbrowse.c TALLOC_FREE(ctx); ctx 185 source3/client/dnsbrowse.c fdset = TALLOC_ZERO(ctx, fdsetsz); ctx 223 source3/client/dnsbrowse.c TALLOC_FREE(ctx); ctx 73 source3/client/tree.c char *get_path(TALLOC_CTX *ctx, GtkWidget *item) ctx 115 source3/client/tree.c path_string = talloc_strdup(ctx, "smb:/"); ctx 156 source3/client/tree.c TALLOC_CTX *ctx = talloc_stackframe(); ctx 167 source3/client/tree.c path = get_path(ctx, child); ctx 170 source3/client/tree.c TALLOC_FREE(ctx); ctx 178 source3/client/tree.c TALLOC_FREE(ctx); ctx 188 source3/client/tree.c TALLOC_FREE(ctx); ctx 246 source3/client/tree.c path1 = talloc_asprintf(ctx, ctx 252 source3/client/tree.c TALLOC_FREE(ctx); ctx 261 source3/client/tree.c TALLOC_FREE(ctx); ctx 300 source3/client/tree.c TALLOC_FREE(ctx); ctx 201 source3/groupdb/mapping.c TALLOC_CTX *ctx = talloc_tos(); ctx 203 source3/groupdb/mapping.c add_script = talloc_strdup(ctx, ctx 208 source3/groupdb/mapping.c add_script = talloc_string_sub(ctx, ctx 257 source3/groupdb/mapping.c TALLOC_CTX *ctx = talloc_tos(); ctx 259 source3/groupdb/mapping.c del_script = talloc_strdup(ctx, ctx 264 source3/groupdb/mapping.c del_script = talloc_string_sub(ctx, ctx 292 source3/groupdb/mapping.c TALLOC_CTX *ctx = talloc_tos(); ctx 294 source3/groupdb/mapping.c add_script = talloc_strdup(ctx, ctx 299 source3/groupdb/mapping.c add_script = talloc_all_string_sub(ctx, ctx 304 source3/groupdb/mapping.c add_script = talloc_string_sub(ctx, ctx 334 source3/groupdb/mapping.c TALLOC_CTX *ctx = talloc_tos(); ctx 336 source3/groupdb/mapping.c add_script = talloc_strdup(ctx, ctx 341 source3/groupdb/mapping.c add_script = talloc_string_sub(ctx, ctx 346 source3/groupdb/mapping.c add_script = talloc_string_sub(ctx, ctx 374 source3/groupdb/mapping.c TALLOC_CTX *ctx = talloc_tos(); ctx 376 source3/groupdb/mapping.c del_script = talloc_strdup(ctx, ctx 381 source3/groupdb/mapping.c del_script = talloc_string_sub(ctx, ctx 386 source3/groupdb/mapping.c del_script = talloc_string_sub(ctx, ctx 918 source3/include/includes.h krb5_error_code krb5_set_default_tgs_ktypes(krb5_context ctx, const krb5_enctype *enc); ctx 925 source3/include/includes.h void krb5_free_unparsed_name(krb5_context ctx, char *val); ctx 941 source3/include/includes.h krb5_error_code smb_krb5_locate_kdc(krb5_context ctx, const krb5_data *realm, struct sockaddr **addr_pp, int *naddrs, int get_masters); ctx 943 source3/include/includes.h krb5_error_code krb5_locate_kdc(krb5_context ctx, const krb5_data *realm, struct sockaddr **addr_pp, int *naddrs, int get_masters); ctx 413 source3/include/libsmb_internal.h SMBC_parse_path(TALLOC_CTX *ctx, ctx 457 source3/include/libsmb_internal.h SMBC_call_auth_fn(TALLOC_CTX *ctx, ctx 472 source3/include/libsmb_internal.h SMBC_find_server(TALLOC_CTX *ctx, ctx 481 source3/include/libsmb_internal.h SMBC_server(TALLOC_CTX *ctx, ctx 491 source3/include/libsmb_internal.h SMBC_attr_server(TALLOC_CTX *ctx, ctx 2694 source3/include/libsmbclient.h smbc_set_credentials_with_fallback(SMBCCTX *ctx, ctx 13 source3/include/mangle.h bool (*lookup_name_from_8_3)(TALLOC_CTX *ctx, ctx 140 source3/include/messages.h void messaging_deregister(struct messaging_context *ctx, uint32_t msg_type, ctx 66 source3/include/nss_info.h TALLOC_CTX *ctx, ctx 88 source3/include/nss_info.h TALLOC_CTX *ctx, ctx 413 source3/include/nt_printing.h TALLOC_CTX *ctx; ctx 36 source3/include/packet.h NTSTATUS packet_fd_read(struct packet_context *ctx); ctx 41 source3/include/packet.h NTSTATUS packet_fd_read_sync(struct packet_context *ctx); ctx 49 source3/include/packet.h bool packet_handler(struct packet_context *ctx, ctx 62 source3/include/packet.h size_t packet_outgoing_bytes(struct packet_context *ctx); ctx 67 source3/include/packet.h NTSTATUS packet_fd_write(struct packet_context *ctx); ctx 72 source3/include/packet.h NTSTATUS packet_flush(struct packet_context *ctx); ctx 80 source3/include/packet.h NTSTATUS packet_send(struct packet_context *ctx, int num_blobs, ...); ctx 85 source3/include/packet.h int packet_get_fd(struct packet_context *ctx); ctx 351 source3/include/proto.h bool convert_string_allocate(TALLOC_CTX *ctx, charset_t from, charset_t to, ctx 356 source3/include/proto.h char *talloc_strdup_upper(TALLOC_CTX *ctx, const char *s); ctx 359 source3/include/proto.h char *talloc_strdup_lower(TALLOC_CTX *ctx, const char *s); ctx 372 source3/include/proto.h bool push_utf8_talloc(TALLOC_CTX *ctx, char **dest, const char *src, ctx 376 source3/include/proto.h size_t pull_ucs2_base_talloc(TALLOC_CTX *ctx, ctx 383 source3/include/proto.h bool push_ucs2_talloc(TALLOC_CTX *ctx, smb_ucs2_t **dest, const char *src, ctx 387 source3/include/proto.h bool pull_utf8_talloc(TALLOC_CTX *ctx, char **dest, const char *src, ctx 390 source3/include/proto.h bool pull_ucs2_talloc(TALLOC_CTX *ctx, char **dest, const smb_ucs2_t *src, ctx 392 source3/include/proto.h bool pull_ascii_talloc(TALLOC_CTX *ctx, char **dest, const char *src, ctx 409 source3/include/proto.h TALLOC_CTX *ctx, ctx 485 source3/include/proto.h char *get_sec_mask_str(TALLOC_CTX *ctx, uint32 type); ctx 661 source3/include/proto.h SEC_DESC_BUF *sec_desc_merge(TALLOC_CTX *ctx, SEC_DESC_BUF *new_sdb, SEC_DESC_BUF *old_sdb); ctx 662 source3/include/proto.h SEC_DESC *make_sec_desc(TALLOC_CTX *ctx, ctx 667 source3/include/proto.h SEC_DESC *dup_sec_desc(TALLOC_CTX *ctx, const SEC_DESC *src); ctx 678 source3/include/proto.h SEC_DESC *make_standard_sec_desc(TALLOC_CTX *ctx, const DOM_SID *owner_sid, const DOM_SID *grp_sid, ctx 680 source3/include/proto.h SEC_DESC_BUF *make_sec_desc_buf(TALLOC_CTX *ctx, size_t len, SEC_DESC *sec_desc); ctx 681 source3/include/proto.h SEC_DESC_BUF *dup_sec_desc_buf(TALLOC_CTX *ctx, SEC_DESC_BUF *src); ctx 682 source3/include/proto.h NTSTATUS sec_desc_add_sid(TALLOC_CTX *ctx, SEC_DESC **psd, DOM_SID *sid, uint32 mask, size_t *sd_size); ctx 684 source3/include/proto.h NTSTATUS sec_desc_del_sid(TALLOC_CTX *ctx, SEC_DESC **psd, DOM_SID *sid, size_t *sd_size); ctx 685 source3/include/proto.h NTSTATUS se_create_child_secdesc(TALLOC_CTX *ctx, ctx 692 source3/include/proto.h NTSTATUS se_create_child_secdesc_buf(TALLOC_CTX *ctx, ctx 714 source3/include/proto.h SEC_DESC *get_share_security_default( TALLOC_CTX *ctx, size_t *psize, uint32 def_access); ctx 715 source3/include/proto.h SEC_DESC *get_share_security( TALLOC_CTX *ctx, const char *servicename, ctx 721 source3/include/proto.h bool parse_usershare_acl(TALLOC_CTX *ctx, const char *acl_str, SEC_DESC **ppsd); ctx 804 source3/include/proto.h char *standard_sub_conn(TALLOC_CTX *ctx, connection_struct *conn, const char *str); ctx 1016 source3/include/proto.h char *current_timestring(TALLOC_CTX *ctx, bool hires); ctx 1121 source3/include/proto.h char *unix_clean_name(TALLOC_CTX *ctx, const char *s); ctx 1122 source3/include/proto.h char *clean_name(TALLOC_CTX *ctx, const char *s); ctx 1137 source3/include/proto.h char *get_myname(TALLOC_CTX *ctx); ctx 1138 source3/include/proto.h char *get_mydnsdomname(TALLOC_CTX *ctx); ctx 1140 source3/include/proto.h char *automount_lookup(TALLOC_CTX *ctx, const char *user_name); ctx 1141 source3/include/proto.h char *automount_lookup(TALLOC_CTX *ctx, const char *user_name); ctx 1213 source3/include/proto.h void *_talloc_zero_zeronull(const void *ctx, size_t size, const char *name); ctx 1215 source3/include/proto.h void *_talloc_array_zeronull(const void *ctx, size_t el_size, unsigned count, const char *name); ctx 1216 source3/include/proto.h void *_talloc_zero_array_zeronull(const void *ctx, size_t el_size, unsigned count, const char *name); ctx 1274 source3/include/proto.h NTSTATUS samr_make_sam_obj_sd(TALLOC_CTX *ctx, SEC_DESC **psd, size_t *sd_size); ctx 1320 source3/include/proto.h DOM_SID *sid_dup_talloc(TALLOC_CTX *ctx, const DOM_SID *src); ctx 1362 source3/include/proto.h char *print_canonical_sockaddr(TALLOC_CTX *ctx, ctx 1432 source3/include/proto.h bool next_token_talloc(TALLOC_CTX *ctx, ctx 1436 source3/include/proto.h bool next_token_no_ltrim_talloc(TALLOC_CTX *ctx, ctx 1499 source3/include/proto.h char *talloc_all_string_sub(TALLOC_CTX *ctx, ctx 1558 source3/include/proto.h int rpcstr_pull_talloc(TALLOC_CTX *ctx, ctx 1564 source3/include/proto.h int rpcstr_push_talloc(TALLOC_CTX *ctx, smb_ucs2_t **dest, const char *src); ctx 1729 source3/include/proto.h NTSTATUS ads_dns_lookup_ns(TALLOC_CTX *ctx, ctx 1736 source3/include/proto.h NTSTATUS ads_dns_query_dcs(TALLOC_CTX *ctx, ctx 1741 source3/include/proto.h NTSTATUS ads_dns_query_gcs(TALLOC_CTX *ctx, ctx 1746 source3/include/proto.h NTSTATUS ads_dns_query_kdcs(TALLOC_CTX *ctx, ctx 1751 source3/include/proto.h NTSTATUS ads_dns_query_pdc(TALLOC_CTX *ctx, ctx 1755 source3/include/proto.h NTSTATUS ads_dns_query_dcs_guid(TALLOC_CTX *ctx, ctx 1839 source3/include/proto.h ADS_MODLIST ads_init_mods(TALLOC_CTX *ctx); ctx 1840 source3/include/proto.h ADS_STATUS ads_mod_str(TALLOC_CTX *ctx, ADS_MODLIST *mods, ctx 1842 source3/include/proto.h ADS_STATUS ads_mod_strlist(TALLOC_CTX *ctx, ADS_MODLIST *mods, ctx 1849 source3/include/proto.h ADS_STATUS ads_add_strlist(TALLOC_CTX *ctx, ADS_MODLIST *mods, ctx 1876 source3/include/proto.h char* ads_get_dnshostname( ADS_STRUCT *ads, TALLOC_CTX *ctx, const char *machine_name ); ctx 1877 source3/include/proto.h char* ads_get_upn( ADS_STRUCT *ads, TALLOC_CTX *ctx, const char *machine_name ); ctx 1878 source3/include/proto.h char* ads_get_samaccountname( ADS_STRUCT *ads, TALLOC_CTX *ctx, const char *machine_name ); ctx 1901 source3/include/proto.h TALLOC_CTX *ctx, const ADS_MODLIST *mods); ctx 1903 source3/include/proto.h TALLOC_CTX *ctx, ADS_MODLIST *mods); ctx 2346 source3/include/proto.h struct cli_state *get_ipc_connect_master_ip(TALLOC_CTX *ctx, ctx 2350 source3/include/proto.h struct cli_state *get_ipc_connect_master_ip_bcast(TALLOC_CTX *ctx, ctx 2361 source3/include/proto.h struct cli_state *cli_cm_open(TALLOC_CTX *ctx, ctx 2372 source3/include/proto.h bool cli_dfs_get_referral(TALLOC_CTX *ctx, ctx 2378 source3/include/proto.h bool cli_resolve_path(TALLOC_CTX *ctx, ctx 2547 source3/include/proto.h TALLOC_CTX *ctx, ctx 2551 source3/include/proto.h TALLOC_CTX *ctx, ctx 2851 source3/include/proto.h TALLOC_CTX *ctx, ctx 3008 source3/include/proto.h bool getlmhostsent(TALLOC_CTX *ctx, XFILE *fp, char **pp_name, int *name_type, ctx 3028 source3/include/proto.h NTSTATUS resolve_name_list(TALLOC_CTX *ctx, ctx 3264 source3/include/proto.h bool decode_pw_buffer(TALLOC_CTX *ctx, ctx 3450 source3/include/proto.h char *share_mode_str(TALLOC_CTX *ctx, int num, const struct share_mode_entry *e); ctx 4289 source3/include/proto.h enum usershare_err parse_usershare_file(TALLOC_CTX *ctx, ctx 4409 source3/include/proto.h struct samu *samu_new( TALLOC_CTX *ctx ); ctx 4850 source3/include/proto.h bool nt_printing_getsec(TALLOC_CTX *ctx, const char *sharename, SEC_DESC_BUF **secdesc_ctr); ctx 4967 source3/include/proto.h WERROR reg_createkey(TALLOC_CTX *ctx, struct registry_key *parent, ctx 4986 source3/include/proto.h WERROR reg_deletekey_recursive(TALLOC_CTX *ctx, ctx 4989 source3/include/proto.h WERROR reg_deletesubkeys_recursive(TALLOC_CTX *ctx, ctx 5109 source3/include/proto.h REGISTRY_VALUE *regval_compose(TALLOC_CTX *ctx, const char *name, uint16 type, ctx 5147 source3/include/proto.h char *normalize_reg_path(TALLOC_CTX *ctx, const char *keyname ); ctx 5149 source3/include/proto.h char *reg_remaining_path(TALLOC_CTX *ctx, const char *key); ctx 5155 source3/include/proto.h WERROR regkey_open_internal( TALLOC_CTX *ctx, REGISTRY_KEY **regkey, ctx 5718 source3/include/proto.h bool prs_init(prs_struct *ps, uint32 size, TALLOC_CTX *ctx, bool io); ctx 5832 source3/include/proto.h char *elog_tdbname(TALLOC_CTX *ctx, const char *name ); ctx 5963 source3/include/proto.h WERROR delete_printer_hook(TALLOC_CTX *ctx, NT_USER_TOKEN *token, const char *sharename ); ctx 6052 source3/include/proto.h WERROR add_port_hook(TALLOC_CTX *ctx, NT_USER_TOKEN *token, const char *portname, const char *uri ); ctx 6053 source3/include/proto.h bool add_printer_hook(TALLOC_CTX *ctx, NT_USER_TOKEN *token, NT_PRINTER_INFO_LEVEL *printer); ctx 6054 source3/include/proto.h WERROR enumports_hook(TALLOC_CTX *ctx, int *count, char ***lines ); ctx 6058 source3/include/proto.h char *valid_share_pathname(TALLOC_CTX *ctx, const char *dos_pathname); ctx 6106 source3/include/proto.h SEC_DESC *svcctl_get_secdesc( TALLOC_CTX *ctx, const char *name, NT_USER_TOKEN *token ); ctx 6107 source3/include/proto.h bool svcctl_set_secdesc( TALLOC_CTX *ctx, const char *name, SEC_DESC *sec_desc, NT_USER_TOKEN *token ); ctx 6108 source3/include/proto.h const char *svcctl_lookup_dispname(TALLOC_CTX *ctx, const char *name, NT_USER_TOKEN *token ); ctx 6109 source3/include/proto.h const char *svcctl_lookup_description(TALLOC_CTX *ctx, const char *name, NT_USER_TOKEN *token ); ctx 6241 source3/include/proto.h bool make_dir_struct(TALLOC_CTX *ctx, ctx 6264 source3/include/proto.h char *dptr_ReadDirName(TALLOC_CTX *ctx, ctx 6275 source3/include/proto.h bool get_dir_entry(TALLOC_CTX *ctx, ctx 6386 source3/include/proto.h NTSTATUS unix_convert(TALLOC_CTX *ctx, ctx 6455 source3/include/proto.h bool mangle_lookup_name_from_8_3(TALLOC_CTX *ctx, ctx 6489 source3/include/proto.h NTSTATUS get_referred_path(TALLOC_CTX *ctx, ctx 6498 source3/include/proto.h bool create_junction(TALLOC_CTX *ctx, ctx 6503 source3/include/proto.h struct junction_map *enum_msdfs_links(TALLOC_CTX *ctx, size_t *p_num_jn); ctx 6504 source3/include/proto.h NTSTATUS resolve_dfspath(TALLOC_CTX *ctx, ctx 6509 source3/include/proto.h NTSTATUS resolve_dfspath_wcard(TALLOC_CTX *ctx, ctx 6515 source3/include/proto.h NTSTATUS create_conn_struct(TALLOC_CTX *ctx, ctx 6546 source3/include/proto.h NTSTATUS sys_notify_watch(struct sys_notify_context *ctx, ctx 6548 source3/include/proto.h void (*callback)(struct sys_notify_context *ctx, ctx 6555 source3/include/proto.h NTSTATUS inotify_watch(struct sys_notify_context *ctx, ctx 6557 source3/include/proto.h void (*callback)(struct sys_notify_context *ctx, ctx 6766 source3/include/proto.h SEC_DESC *get_nt_acl_no_snum( TALLOC_CTX *ctx, const char *fname); ctx 6829 source3/include/proto.h size_t srvstr_get_path_wcard(TALLOC_CTX *ctx, ctx 6838 source3/include/proto.h size_t srvstr_get_path(TALLOC_CTX *ctx, ctx 6903 source3/include/proto.h NTSTATUS rmdir_internals(TALLOC_CTX *ctx, ctx 6913 source3/include/proto.h NTSTATUS rename_internals(TALLOC_CTX *ctx, ctx 6924 source3/include/proto.h NTSTATUS copy_file(TALLOC_CTX *ctx, ctx 7059 source3/include/proto.h struct ea_list *read_ea_list_entry(TALLOC_CTX *ctx, const char *pdata, size_t data_size, size_t *pbytes_used); ctx 7068 source3/include/proto.h NTSTATUS hardlink_internals(TALLOC_CTX *ctx, ctx 7143 source3/include/proto.h char *vfs_GetWd(TALLOC_CTX *ctx, connection_struct *conn); ctx 141 source3/include/safe_string.h #define pull_string_talloc(ctx, base_ptr, smb_flags2, dest, src, src_len, flags) \ ctx 143 source3/include/safe_string.h ctx, base_ptr, smb_flags2, dest, src, src_len, flags) ctx 153 source3/include/safe_string.h #define clistr_pull_talloc(ctx, inbuf, pp_dest, src, src_len, flags) \ ctx 155 source3/include/safe_string.h ctx, inbuf, pp_dest, src, src_len, flags) ctx 195 source3/include/safe_string.h #define pull_string_talloc_fn2(fn_name, fn_line, ctx, base_ptr, smb_flags2, dest, src, src_len, flags) \ ctx 196 source3/include/safe_string.h pull_string_talloc_fn(fn_name, fn_line, ctx, base_ptr, smb_flags2, dest, src, src_len, flags) ctx 1732 source3/include/smb.h bool (*set_oplock)(struct kernel_oplocks *ctx, ctx 1734 source3/include/smb.h void (*release_oplock)(struct kernel_oplocks *ctx, ctx 232 source3/include/smb_macros.h #define TALLOC(ctx, size) talloc_zeronull(ctx, size, __location__) ctx 233 source3/include/smb_macros.h #define TALLOC_P(ctx, type) (type *)talloc_zeronull(ctx, sizeof(type), #type) ctx 234 source3/include/smb_macros.h #define TALLOC_ARRAY(ctx, type, count) (type *)_talloc_array_zeronull(ctx, sizeof(type), count, #type) ctx 235 source3/include/smb_macros.h #define TALLOC_MEMDUP(ctx, ptr, size) _talloc_memdup_zeronull(ctx, ptr, size, __location__) ctx 236 source3/include/smb_macros.h #define TALLOC_ZERO(ctx, size) _talloc_zero_zeronull(ctx, size, __location__) ctx 237 source3/include/smb_macros.h #define TALLOC_ZERO_P(ctx, type) (type *)_talloc_zero_zeronull(ctx, sizeof(type), #type) ctx 238 source3/include/smb_macros.h #define TALLOC_ZERO_ARRAY(ctx, type, count) (type *)_talloc_zero_array_zeronull(ctx, sizeof(type), count, #type) ctx 239 source3/include/smb_macros.h #define TALLOC_SIZE(ctx, size) talloc_zeronull(ctx, size, __location__) ctx 240 source3/include/smb_macros.h #define TALLOC_ZERO_SIZE(ctx, size) _talloc_zero_zeronull(ctx, size, __location__) ctx 244 source3/include/smb_macros.h #define TALLOC(ctx, size) talloc_named_const(ctx, size, __location__) ctx 245 source3/include/smb_macros.h #define TALLOC_P(ctx, type) (type *)talloc_named_const(ctx, sizeof(type), #type) ctx 246 source3/include/smb_macros.h #define TALLOC_ARRAY(ctx, type, count) (type *)_talloc_array(ctx, sizeof(type), count, #type) ctx 247 source3/include/smb_macros.h #define TALLOC_MEMDUP(ctx, ptr, size) _talloc_memdup(ctx, ptr, size, __location__) ctx 248 source3/include/smb_macros.h #define TALLOC_ZERO(ctx, size) _talloc_zero(ctx, size, __location__) ctx 249 source3/include/smb_macros.h #define TALLOC_ZERO_P(ctx, type) (type *)_talloc_zero(ctx, sizeof(type), #type) ctx 250 source3/include/smb_macros.h #define TALLOC_ZERO_ARRAY(ctx, type, count) (type *)_talloc_zero_array(ctx, sizeof(type), count, #type) ctx 251 source3/include/smb_macros.h #define TALLOC_SIZE(ctx, size) talloc_named_const(ctx, size, __location__) ctx 252 source3/include/smb_macros.h #define TALLOC_ZERO_SIZE(ctx, size) _talloc_zero(ctx, size, __location__) ctx 256 source3/include/smb_macros.h #define TALLOC_REALLOC(ctx, ptr, count) _talloc_realloc(ctx, ptr, count, __location__) ctx 257 source3/include/smb_macros.h #define TALLOC_REALLOC_ARRAY(ctx, ptr, type, count) (type *)_talloc_realloc_array(ctx, ptr, sizeof(type), count, #type) ctx 258 source3/include/smb_macros.h #define talloc_destroy(ctx) talloc_free(ctx) ctx 260 source3/include/smb_macros.h #define TALLOC_FREE(ctx) do { talloc_free(ctx); ctx=NULL; } while(0) ctx 20 source3/include/srvstr.h #define srvstr_pull_talloc(ctx, base_ptr, smb_flags2, dest, src, src_len, flags) \ ctx 21 source3/include/srvstr.h pull_string_talloc(ctx, base_ptr, smb_flags2, dest, src, src_len, flags) ctx 28 source3/include/srvstr.h #define srvstr_pull_req_talloc(ctx, req_, dest, src, flags) \ ctx 29 source3/include/srvstr.h pull_string_talloc(ctx, req_->inbuf, req_->flags2, dest, src, \ ctx 382 source3/include/vfs.h struct sys_notify_context *ctx, ctx 384 source3/include/vfs.h void (*callback)(struct sys_notify_context *ctx, ctx 86 source3/include/vfs_macros.h #define SMB_VFS_NOTIFY_WATCH(conn, ctx, e, callback, private_data, handle_p) ((conn)->vfs.ops.notify_watch((conn)->vfs.handles.notify_watch, (ctx), (e), (callback), (private_data), (handle_p))) ctx 220 source3/include/vfs_macros.h #define SMB_VFS_OPAQUE_NOTIFY_WATCH(conn, ctx, e, callback, private_data, handle_p) ((conn)->vfs_opaque.ops.notify_watch((conn)->vfs_opaque.handles.notify_watch, (ctx), (e), (callback), (private_data), (handle_p))) ctx 355 source3/include/vfs_macros.h #define SMB_VFS_NEXT_NOTIFY_WATCH(conn, ctx, e, callback, private_data, handle_p) ((conn)->vfs_next.ops.notify_watch((conn)->vfs_next.handles.notify_watch, (ctx), (e), (callback), (private_data), (handle_p))) ctx 281 source3/lib/adt_tree.c static void pathtree_print_children(TALLOC_CTX *ctx, ctx 298 source3/lib/adt_tree.c path2 = talloc_strdup(ctx, path); ctx 304 source3/lib/adt_tree.c path2 = talloc_asprintf(ctx, ctx 314 source3/lib/adt_tree.c pathtree_print_children(ctx, node->children[i], debug, path2 ); ctx 332 source3/lib/adt_tree.c TALLOC_CTX *ctx = talloc_stackframe(); ctx 333 source3/lib/adt_tree.c pathtree_print_children(ctx, tree->root->children[i], debug, ctx 335 source3/lib/adt_tree.c TALLOC_FREE(ctx); ctx 223 source3/lib/afs.c TALLOC_CTX *ctx = talloc_tos(); ctx 227 source3/lib/afs.c afs_username = talloc_strdup(ctx, ctx 233 source3/lib/afs.c afs_username = talloc_sub_advanced(ctx, ctx 31 source3/lib/avahi.c struct avahi_poll_context *ctx; ctx 40 source3/lib/avahi.c struct avahi_poll_context *ctx; ctx 61 source3/lib/avahi.c struct avahi_poll_context *ctx = talloc_get_type_abort( ctx 63 source3/lib/avahi.c int num_watches = talloc_array_length(ctx->watches); ctx 66 source3/lib/avahi.c tmp = talloc_realloc(ctx, ctx->watches, AvahiWatch *, num_watches + 1); ctx 70 source3/lib/avahi.c ctx->watches = tmp; ctx 76 source3/lib/avahi.c ctx->watches[num_watches] = watch_ctx; ctx 78 source3/lib/avahi.c watch_ctx->ctx = ctx; ctx 79 source3/lib/avahi.c watch_ctx->fde = tevent_add_fd(ctx->ev, watch_ctx, fd, ctx 91 source3/lib/avahi.c ctx->watches = talloc_realloc(ctx, ctx->watches, AvahiWatch *, ctx 123 source3/lib/avahi.c AvahiWatch **watches = w->ctx->watches; ctx 124 source3/lib/avahi.c struct avahi_poll_context *ctx; ctx 136 source3/lib/avahi.c ctx = w->ctx; ctx 140 source3/lib/avahi.c ctx->watches = talloc_realloc(ctx, watches, AvahiWatch *, ctx 154 source3/lib/avahi.c struct avahi_poll_context *ctx = talloc_get_type_abort( ctx 156 source3/lib/avahi.c int num_timeouts = talloc_array_length(ctx->timeouts); ctx 159 source3/lib/avahi.c tmp = talloc_realloc(ctx, ctx->timeouts, AvahiTimeout *, ctx 164 source3/lib/avahi.c ctx->timeouts = tmp; ctx 170 source3/lib/avahi.c ctx->timeouts[num_timeouts] = timeout_ctx; ctx 172 source3/lib/avahi.c timeout_ctx->ctx = ctx; ctx 176 source3/lib/avahi.c timeout_ctx->te = tevent_add_timer(ctx->ev, timeout_ctx, ctx 189 source3/lib/avahi.c ctx->timeouts = talloc_realloc(ctx, ctx->timeouts, AvahiTimeout *, ctx 217 source3/lib/avahi.c t->te = tevent_add_timer(t->ctx->ev, t, *tv, avahi_timeout_handler, t); ctx 227 source3/lib/avahi.c AvahiTimeout **timeouts = t->ctx->timeouts; ctx 228 source3/lib/avahi.c struct avahi_poll_context *ctx; ctx 240 source3/lib/avahi.c ctx = t->ctx; ctx 244 source3/lib/avahi.c ctx->timeouts = talloc_realloc(ctx, timeouts, AvahiTimeout *, ctx 252 source3/lib/avahi.c struct avahi_poll_context *ctx; ctx 258 source3/lib/avahi.c ctx = talloc_zero(result, struct avahi_poll_context); ctx 259 source3/lib/avahi.c if (ctx == NULL) { ctx 263 source3/lib/avahi.c ctx->ev = ev; ctx 272 source3/lib/avahi.c result->userdata = ctx; ctx 540 source3/lib/charcnv.c bool convert_string_allocate(TALLOC_CTX *ctx, charset_t from, charset_t to, ctx 563 source3/lib/charcnv.c ob = ((ctx != NULL) ? talloc_strdup(ctx, "") : SMB_STRDUP("")); ctx 591 source3/lib/charcnv.c if (!ctx) ctx 600 source3/lib/charcnv.c if (ctx) { ctx 601 source3/lib/charcnv.c ob = (char *)TALLOC_REALLOC(ctx, ob, destlen + 2); ctx 643 source3/lib/charcnv.c if (ctx) { ctx 660 source3/lib/charcnv.c if (ctx) { ctx 661 source3/lib/charcnv.c ob = (char *)TALLOC_REALLOC(ctx,ob,destlen + 2); ctx 778 source3/lib/charcnv.c bool convert_string_talloc(TALLOC_CTX *ctx, charset_t from, charset_t to, ctx 785 source3/lib/charcnv.c return convert_string_allocate(ctx, from, to, src, srclen, dest, ctx 872 source3/lib/charcnv.c char *talloc_strdup_upper(TALLOC_CTX *ctx, const char *s) ctx 874 source3/lib/charcnv.c char *out_buffer = talloc_strdup(ctx,s); ctx 902 source3/lib/charcnv.c if (!convert_string_talloc(ctx, CH_UNIX, CH_UTF16LE, s, ctx 911 source3/lib/charcnv.c if (!convert_string_talloc(ctx, CH_UTF16LE, CH_UNIX, ubuf, ctx 974 source3/lib/charcnv.c char *talloc_strdup_lower(TALLOC_CTX *ctx, const char *s) ctx 980 source3/lib/charcnv.c if (!push_ucs2_talloc(ctx, &buffer, s, &converted_size)) { ctx 986 source3/lib/charcnv.c if (!pull_ucs2_talloc(ctx, &out_buffer, buffer, &converted_size)) { ctx 1181 source3/lib/charcnv.c static size_t pull_ascii_base_talloc(TALLOC_CTX *ctx, ctx 1192 source3/lib/charcnv.c if (ctx == NULL) { ctx 1214 source3/lib/charcnv.c char *msg = talloc_asprintf(ctx, ctx 1232 source3/lib/charcnv.c if (!convert_string_allocate(ctx, CH_DOS, CH_UNIX, src, src_len, &dest, ctx 1244 source3/lib/charcnv.c dest = TALLOC_REALLOC_ARRAY(ctx, dest, char, ctx 1362 source3/lib/charcnv.c bool push_ucs2_talloc(TALLOC_CTX *ctx, smb_ucs2_t **dest, const char *src, ctx 1368 source3/lib/charcnv.c return convert_string_talloc(ctx, CH_UNIX, CH_UTF16LE, src, src_len, ctx 1450 source3/lib/charcnv.c bool push_utf8_talloc(TALLOC_CTX *ctx, char **dest, const char *src, ctx 1456 source3/lib/charcnv.c return convert_string_talloc(ctx, CH_UNIX, CH_UTF8, src, src_len, ctx 1563 source3/lib/charcnv.c size_t pull_ucs2_base_talloc(TALLOC_CTX *ctx, ctx 1577 source3/lib/charcnv.c if (ctx == NULL) { ctx 1626 source3/lib/charcnv.c if (!convert_string_talloc(ctx, CH_UTF16LE, CH_UNIX, src, src_len, ctx 1638 source3/lib/charcnv.c dest = TALLOC_REALLOC_ARRAY(ctx, dest, char, ctx 1674 source3/lib/charcnv.c bool pull_ucs2_talloc(TALLOC_CTX *ctx, char **dest, const smb_ucs2_t *src, ctx 1680 source3/lib/charcnv.c return convert_string_talloc(ctx, CH_UTF16LE, CH_UNIX, src, src_len, ctx 1715 source3/lib/charcnv.c bool pull_utf8_talloc(TALLOC_CTX *ctx, char **dest, const char *src, ctx 1721 source3/lib/charcnv.c return convert_string_talloc(ctx, CH_UTF8, CH_UNIX, src, src_len, ctx 1756 source3/lib/charcnv.c bool pull_ascii_talloc(TALLOC_CTX *ctx, char **dest, const char *src, ctx 1762 source3/lib/charcnv.c return convert_string_talloc(ctx, CH_DOS, CH_UNIX, src, src_len, ctx 1866 source3/lib/charcnv.c TALLOC_CTX *ctx, ctx 1882 source3/lib/charcnv.c return pull_ucs2_base_talloc(ctx, ctx 1889 source3/lib/charcnv.c return pull_ascii_base_talloc(ctx, ctx 46 source3/lib/conn_tdb.c struct db_context *ctx = connections_db_ctx(True); ctx 48 source3/lib/conn_tdb.c if (ctx == NULL) { ctx 52 source3/lib/conn_tdb.c return ctx->fetch_locked(ctx, mem_ctx, key); ctx 100 source3/lib/conn_tdb.c struct db_context *ctx = connections_db_ctx(False); ctx 102 source3/lib/conn_tdb.c if (ctx == NULL) { ctx 106 source3/lib/conn_tdb.c return ctx->traverse(ctx, fn, private_data); ctx 27 source3/lib/dbwrap_ctdb.c struct db_ctdb_ctx *ctx; ctx 50 source3/lib/dbwrap_ctdb.c static struct db_record *fetch_locked_internal(struct db_ctdb_ctx *ctx, ctx 218 source3/lib/dbwrap_ctdb.c tdb_transaction_cancel(h->ctx->wtdb->tdb); ctx 230 source3/lib/dbwrap_ctdb.c struct db_ctdb_ctx *ctx = h->ctx; ctx 239 source3/lib/dbwrap_ctdb.c rh = fetch_locked_internal(ctx, tmp_ctx, key, true); ctx 247 source3/lib/dbwrap_ctdb.c ret = tdb_transaction_start(ctx->wtdb->tdb); ctx 254 source3/lib/dbwrap_ctdb.c data = tdb_fetch(ctx->wtdb->tdb, key); ctx 259 source3/lib/dbwrap_ctdb.c tdb_transaction_cancel(ctx->wtdb->tdb); ctx 276 source3/lib/dbwrap_ctdb.c struct db_ctdb_ctx *ctx = talloc_get_type_abort(db->private_data, ctx 281 source3/lib/dbwrap_ctdb.c ctx->db_id)); ctx 285 source3/lib/dbwrap_ctdb.c if (ctx->transaction) { ctx 286 source3/lib/dbwrap_ctdb.c ctx->transaction->nesting++; ctx 296 source3/lib/dbwrap_ctdb.c h->ctx = ctx; ctx 306 source3/lib/dbwrap_ctdb.c ctx->transaction = h; ctx 308 source3/lib/dbwrap_ctdb.c DEBUG(5,(__location__ " Started transaction on db 0x%08x\n", ctx->db_id)); ctx 324 source3/lib/dbwrap_ctdb.c *data = tdb_fetch(h->ctx->wtdb->tdb, key); ctx 344 source3/lib/dbwrap_ctdb.c h->m_all = db_ctdb_marshall_add(h, h->m_all, h->ctx->db_id, 1, key, NULL, *data); ctx 360 source3/lib/dbwrap_ctdb.c static struct db_record *db_ctdb_fetch_locked_transaction(struct db_ctdb_ctx *ctx, ctx 372 source3/lib/dbwrap_ctdb.c result->private_data = ctx->transaction; ctx 385 source3/lib/dbwrap_ctdb.c ctdb_data = tdb_fetch(ctx->wtdb->tdb, key); ctx 413 source3/lib/dbwrap_ctdb.c int ret = h->ctx->db->transaction_commit(h->ctx->db); ctx 423 source3/lib/dbwrap_ctdb.c static struct db_record *db_ctdb_fetch_locked_persistent(struct db_ctdb_ctx *ctx, ctx 430 source3/lib/dbwrap_ctdb.c res = db_ctdb_transaction_start(ctx->db); ctx 435 source3/lib/dbwrap_ctdb.c rec = db_ctdb_fetch_locked_transaction(ctx, mem_ctx, key); ctx 437 source3/lib/dbwrap_ctdb.c ctx->db->transaction_cancel(ctx->db); ctx 444 source3/lib/dbwrap_ctdb.c ctx->db->transaction_cancel(ctx->db); ctx 466 source3/lib/dbwrap_ctdb.c rec = tdb_fetch(h->ctx->wtdb->tdb, key); ctx 489 source3/lib/dbwrap_ctdb.c h->m_all = db_ctdb_marshall_add(h, h->m_all, h->ctx->db_id, 0, key, NULL, data); ctx 497 source3/lib/dbwrap_ctdb.c h->m_write = db_ctdb_marshall_add(h, h->m_write, h->ctx->db_id, 0, key, &header, data); ctx 514 source3/lib/dbwrap_ctdb.c ret = tdb_store(h->ctx->wtdb->tdb, key, rec, TDB_REPLACE); ctx 533 source3/lib/dbwrap_ctdb.c return tdb_error_to_ntstatus(h->ctx->wtdb->tdb); ctx 549 source3/lib/dbwrap_ctdb.c return tdb_error_to_ntstatus(h->ctx->wtdb->tdb); ctx 590 source3/lib/dbwrap_ctdb.c if (db_ctdb_transaction_fetch(h->ctx, tmp_ctx, key, &data2) != 0) { ctx 607 source3/lib/dbwrap_ctdb.c tdb_transaction_cancel(h->ctx->wtdb->tdb); ctx 617 source3/lib/dbwrap_ctdb.c struct db_ctdb_ctx *ctx = talloc_get_type_abort(db->private_data, ctx 623 source3/lib/dbwrap_ctdb.c struct db_ctdb_transaction_handle *h = ctx->transaction; ctx 627 source3/lib/dbwrap_ctdb.c DEBUG(0,(__location__ " transaction commit with no open transaction on db 0x%08x\n", ctx->db_id)); ctx 642 source3/lib/dbwrap_ctdb.c DEBUG(5,(__location__ " Commit transaction on db 0x%08x\n", ctx->db_id)); ctx 664 source3/lib/dbwrap_ctdb.c tdb_transaction_cancel(h->ctx->wtdb->tdb); ctx 666 source3/lib/dbwrap_ctdb.c ctx->transaction = NULL; ctx 673 source3/lib/dbwrap_ctdb.c h->ctx->db_id, 0, ctx 676 source3/lib/dbwrap_ctdb.c tdb_transaction_cancel(h->ctx->wtdb->tdb); ctx 698 source3/lib/dbwrap_ctdb.c h->ctx->db_id, retries, (unsigned)failure_control)); ctx 700 source3/lib/dbwrap_ctdb.c h->ctx->db_id, CTDB_CTRL_FLAG_NOREPLY, ctx 702 source3/lib/dbwrap_ctdb.c h->ctx->transaction = NULL; ctx 704 source3/lib/dbwrap_ctdb.c ctx->transaction = NULL; ctx 712 source3/lib/dbwrap_ctdb.c h->ctx->db_id, CTDB_CTRL_FLAG_NOREPLY, ctx 714 source3/lib/dbwrap_ctdb.c h->ctx->transaction = NULL; ctx 716 source3/lib/dbwrap_ctdb.c ctx->transaction = NULL; ctx 725 source3/lib/dbwrap_ctdb.c ret = tdb_transaction_commit(h->ctx->wtdb->tdb); ctx 729 source3/lib/dbwrap_ctdb.c ctdbd_control_local(messaging_ctdbd_connection(), failure_control, h->ctx->db_id, ctx 731 source3/lib/dbwrap_ctdb.c h->ctx->transaction = NULL; ctx 738 source3/lib/dbwrap_ctdb.c h->ctx->db_id, CTDB_CTRL_FLAG_NOREPLY, ctx 740 source3/lib/dbwrap_ctdb.c h->ctx->transaction = NULL; ctx 751 source3/lib/dbwrap_ctdb.c struct db_ctdb_ctx *ctx = talloc_get_type_abort(db->private_data, ctx 753 source3/lib/dbwrap_ctdb.c struct db_ctdb_transaction_handle *h = ctx->transaction; ctx 756 source3/lib/dbwrap_ctdb.c DEBUG(0,(__location__ " transaction cancel with no open transaction on db 0x%08x\n", ctx->db_id)); ctx 766 source3/lib/dbwrap_ctdb.c DEBUG(5,(__location__ " Cancel transaction on db 0x%08x\n", ctx->db_id)); ctx 768 source3/lib/dbwrap_ctdb.c ctx->transaction = NULL; ctx 835 source3/lib/dbwrap_ctdb.c static struct db_record *fetch_locked_internal(struct db_ctdb_ctx *ctx, ctx 858 source3/lib/dbwrap_ctdb.c crec->ctdb_ctx = ctx; ctx 882 source3/lib/dbwrap_ctdb.c if (tdb_chainlock(ctx->wtdb->tdb, key) != 0) { ctx 892 source3/lib/dbwrap_ctdb.c ctdb_data = tdb_fetch(ctx->wtdb->tdb, key); ctx 907 source3/lib/dbwrap_ctdb.c tdb_chainunlock(ctx->wtdb->tdb, key); ctx 917 source3/lib/dbwrap_ctdb.c status = ctdbd_migrate(messaging_ctdbd_connection(),ctx->db_id, key); ctx 955 source3/lib/dbwrap_ctdb.c struct db_ctdb_ctx *ctx = talloc_get_type_abort(db->private_data, ctx 958 source3/lib/dbwrap_ctdb.c if (ctx->transaction != NULL) { ctx 959 source3/lib/dbwrap_ctdb.c return db_ctdb_fetch_locked_transaction(ctx, mem_ctx, key); ctx 963 source3/lib/dbwrap_ctdb.c return db_ctdb_fetch_locked_persistent(ctx, mem_ctx, key); ctx 966 source3/lib/dbwrap_ctdb.c return fetch_locked_internal(ctx, mem_ctx, key, db->persistent); ctx 975 source3/lib/dbwrap_ctdb.c struct db_ctdb_ctx *ctx = talloc_get_type_abort(db->private_data, ctx 980 source3/lib/dbwrap_ctdb.c if (ctx->transaction) { ctx 981 source3/lib/dbwrap_ctdb.c return db_ctdb_transaction_fetch(ctx, mem_ctx, key, data); ctx 985 source3/lib/dbwrap_ctdb.c ctdb_data = tdb_fetch(ctx->wtdb->tdb, key); ctx 1020 source3/lib/dbwrap_ctdb.c status = ctdbd_fetch(messaging_ctdbd_connection(),ctx->db_id, key, mem_ctx, data); ctx 1069 source3/lib/dbwrap_ctdb.c struct db_ctdb_ctx *ctx = talloc_get_type_abort(db->private_data, ctx 1080 source3/lib/dbwrap_ctdb.c return tdb_traverse(ctx->wtdb->tdb, traverse_persistent_callback, &state); ctx 1084 source3/lib/dbwrap_ctdb.c ctdbd_traverse(ctx->db_id, traverse_callback, &state); ctx 1136 source3/lib/dbwrap_ctdb.c struct db_ctdb_ctx *ctx = talloc_get_type_abort(db->private_data, ctx 1147 source3/lib/dbwrap_ctdb.c return tdb_traverse_read(ctx->wtdb->tdb, traverse_persistent_callback_read, &state); ctx 1150 source3/lib/dbwrap_ctdb.c ctdbd_traverse(ctx->db_id, traverse_read_callback, &state); ctx 1156 source3/lib/dbwrap_ctdb.c struct db_ctdb_ctx *ctx = talloc_get_type_abort(db->private_data, ctx 1158 source3/lib/dbwrap_ctdb.c return tdb_get_seqnum(ctx->wtdb->tdb); ctx 1163 source3/lib/dbwrap_ctdb.c struct db_ctdb_ctx *ctx = talloc_get_type_abort(db->private_data, ctx 1165 source3/lib/dbwrap_ctdb.c return tdb_get_flags(ctx->wtdb->tdb); ctx 71 source3/lib/dbwrap_file.c struct db_file_ctx *ctx = talloc_get_type_abort(db->private_data, ctx 80 source3/lib/dbwrap_file.c SMB_ASSERT(ctx->locked_record == NULL); ctx 115 source3/lib/dbwrap_file.c file->path = talloc_asprintf(file, "%s/%2.2X/%s", ctx->dirname, ctx 188 source3/lib/dbwrap_file.c ctx->locked_record = result; ctx 189 source3/lib/dbwrap_file.c file->parent = (struct db_file_ctx *)talloc_reference(file, ctx); ctx 253 source3/lib/dbwrap_file.c struct db_file_ctx *ctx = talloc_get_type_abort(db->private_data, ctx 255 source3/lib/dbwrap_file.c TALLOC_CTX *mem_ctx = talloc_init("traversal %s\n", ctx->dirname); ctx 262 source3/lib/dbwrap_file.c ctx->dirname, i); ctx 301 source3/lib/dbwrap_file.c if ((ctx->locked_record != NULL) && ctx 302 source3/lib/dbwrap_file.c (key.dsize == ctx->locked_record->key.dsize) && ctx 303 source3/lib/dbwrap_file.c (memcmp(key.dptr, ctx->locked_record->key.dptr, ctx 306 source3/lib/dbwrap_file.c if (fn(ctx->locked_record, ctx 349 source3/lib/dbwrap_file.c struct db_file_ctx *ctx; ctx 356 source3/lib/dbwrap_file.c if (!(ctx = TALLOC_P(result, struct db_file_ctx))) { ctx 362 source3/lib/dbwrap_file.c result->private_data = ctx; ctx 368 source3/lib/dbwrap_file.c ctx->locked_record = NULL; ctx 369 source3/lib/dbwrap_file.c if (!(ctx->dirname = talloc_strdup(ctx, name))) { ctx 206 source3/lib/dbwrap_rbt.c struct db_rbt_ctx *ctx = talloc_get_type_abort( ctx 217 source3/lib/dbwrap_rbt.c n = ctx->tree.rb_node; ctx 263 source3/lib/dbwrap_rbt.c rec_priv->db_ctx = ctx; ctx 290 source3/lib/dbwrap_rbt.c struct db_rbt_ctx *ctx = talloc_get_type_abort( ctx 299 source3/lib/dbwrap_rbt.c n = ctx->tree.rb_node; ctx 31 source3/lib/dbwrap_tdb.c struct db_tdb_ctx *ctx = ctx 44 source3/lib/dbwrap_tdb.c if (tdb_chainunlock(ctx->wtdb->tdb, data->key) != 0) { ctx 91 source3/lib/dbwrap_tdb.c struct db_tdb_ctx *ctx = talloc_get_type_abort(db->private_data, ctx 104 source3/lib/dbwrap_tdb.c if (tdb_chainlock(ctx->wtdb->tdb, key) != 0) { ctx 112 source3/lib/dbwrap_tdb.c tdb_parse_record(ctx->wtdb->tdb, key, db_tdb_fetchlock_parse, &state); ctx 119 source3/lib/dbwrap_tdb.c tdb_chainunlock(ctx->wtdb->tdb, key); ctx 125 source3/lib/dbwrap_tdb.c state.result->private_data = talloc_reference(state.result, ctx); ctx 160 source3/lib/dbwrap_tdb.c struct db_tdb_ctx *ctx = talloc_get_type_abort( ctx 169 source3/lib/dbwrap_tdb.c tdb_parse_record(ctx->wtdb->tdb, key, db_tdb_fetch_parse, &state); ctx 184 source3/lib/dbwrap_tdb.c struct db_tdb_ctx *ctx = talloc_get_type_abort( ctx 187 source3/lib/dbwrap_tdb.c return tdb_parse_record(ctx->wtdb->tdb, key, parser, private_data); ctx 192 source3/lib/dbwrap_tdb.c struct db_tdb_ctx *ctx = talloc_get_type_abort(rec->private_data, ctx 201 source3/lib/dbwrap_tdb.c return (tdb_store(ctx->wtdb->tdb, rec->key, data, flag) == 0) ? ctx 207 source3/lib/dbwrap_tdb.c struct db_tdb_ctx *ctx = talloc_get_type_abort(rec->private_data, ctx 210 source3/lib/dbwrap_tdb.c if (tdb_delete(ctx->wtdb->tdb, rec->key) == 0) { ctx 214 source3/lib/dbwrap_tdb.c if (tdb_error(ctx->wtdb->tdb) == TDB_ERR_NOEXIST) { ctx 230 source3/lib/dbwrap_tdb.c struct db_tdb_traverse_ctx *ctx = ctx 238 source3/lib/dbwrap_tdb.c rec.private_data = ctx->db->private_data; ctx 240 source3/lib/dbwrap_tdb.c return ctx->f(&rec, ctx->private_data); ctx 249 source3/lib/dbwrap_tdb.c struct db_tdb_traverse_ctx ctx; ctx 251 source3/lib/dbwrap_tdb.c ctx.db = db; ctx 252 source3/lib/dbwrap_tdb.c ctx.f = f; ctx 253 source3/lib/dbwrap_tdb.c ctx.private_data = private_data; ctx 254 source3/lib/dbwrap_tdb.c return tdb_traverse(db_ctx->wtdb->tdb, db_tdb_traverse_func, &ctx); ctx 270 source3/lib/dbwrap_tdb.c struct db_tdb_traverse_ctx *ctx = ctx 278 source3/lib/dbwrap_tdb.c rec.private_data = ctx->db->private_data; ctx 280 source3/lib/dbwrap_tdb.c return ctx->f(&rec, ctx->private_data); ctx 289 source3/lib/dbwrap_tdb.c struct db_tdb_traverse_ctx ctx; ctx 291 source3/lib/dbwrap_tdb.c ctx.db = db; ctx 292 source3/lib/dbwrap_tdb.c ctx.f = f; ctx 293 source3/lib/dbwrap_tdb.c ctx.private_data = private_data; ctx 294 source3/lib/dbwrap_tdb.c return tdb_traverse_read(db_ctx->wtdb->tdb, db_tdb_traverse_read_func, &ctx); ctx 27 source3/lib/display_sec.c char *get_sec_mask_str(TALLOC_CTX *ctx, uint32 type) ctx 29 source3/lib/display_sec.c char *typestr = talloc_strdup(ctx, ""); ctx 66 source3/lib/eventlog/eventlog.c char *elog_tdbname(TALLOC_CTX *ctx, const char *name ) ctx 68 source3/lib/eventlog/eventlog.c char *path = talloc_asprintf(ctx, "%s/%s.tdb", ctx 324 source3/lib/eventlog/eventlog.c TALLOC_CTX *ctx = talloc_tos(); ctx 362 source3/lib/eventlog/eventlog.c tdbpath = elog_tdbname(ctx, logname); ctx 301 source3/lib/ldb/include/ldb.h char *ldb_binary_encode(void *ctx, struct ldb_val val); ctx 615 source3/lib/ldb/ldb_sqlite3/ldb_sqlite3.c static void lsqlite3_compare(sqlite3_context *ctx, int argc, ctx 618 source3/lib/ldb/ldb_sqlite3/ldb_sqlite3.c struct ldb_context *ldb = (struct ldb_context *)sqlite3_user_data(ctx); ctx 638 source3/lib/ldb/ldb_sqlite3/ldb_sqlite3.c sqlite3_result_int(ctx, 1); ctx 640 source3/lib/ldb/ldb_sqlite3/ldb_sqlite3.c sqlite3_result_int(ctx, 0); ctx 652 source3/lib/ldb/ldb_sqlite3/ldb_sqlite3.c sqlite3_result_int(ctx, 1); ctx 654 source3/lib/ldb/ldb_sqlite3/ldb_sqlite3.c sqlite3_result_int(ctx, 0); ctx 660 source3/lib/ldb/ldb_sqlite3/ldb_sqlite3.c sqlite3_result_int(ctx, 0); ctx 666 source3/lib/ldb/ldb_sqlite3/ldb_sqlite3.c sqlite3_result_int(ctx, 0); ctx 673 source3/lib/ldb/ldb_sqlite3/ldb_sqlite3.c sqlite3_result_error(ctx, "Value must start with a special operation char (<>~:)!", -1); ctx 69 source3/lib/ldb/modules/ldb_map.h int (*convert_operator)(struct ldb_module *, TALLOC_CTX *ctx, struct ldb_parse_tree **new, const struct ldb_parse_tree *); ctx 291 source3/lib/ldb/modules/operational.c static int operational_init(struct ldb_module *ctx) ctx 294 source3/lib/ldb/modules/operational.c ldb_set_attrib_handler_syntax(ctx->ldb, "whenCreated", LDB_SYNTAX_UTC_TIME); ctx 295 source3/lib/ldb/modules/operational.c ldb_set_attrib_handler_syntax(ctx->ldb, "whenChanged", LDB_SYNTAX_UTC_TIME); ctx 296 source3/lib/ldb/modules/operational.c ldb_set_attrib_handler_syntax(ctx->ldb, "subschemaSubentry", LDB_SYNTAX_DN); ctx 297 source3/lib/ldb/modules/operational.c ldb_set_attrib_handler_syntax(ctx->ldb, "structuralObjectClass", LDB_SYNTAX_OBJECTCLASS); ctx 299 source3/lib/ldb/modules/operational.c return ldb_next_init(ctx); ctx 89 source3/lib/ldb/modules/skel.c static int skel_destructor(struct ldb_module *ctx) ctx 91 source3/lib/ldb/modules/skel.c struct private_data *data = talloc_get_type(ctx->private_data, struct private_data); ctx 102 source3/lib/ldb/modules/skel.c static int skel_init(struct ldb_module *ctx) ctx 106 source3/lib/ldb/modules/skel.c data = talloc(ctx, struct private_data); ctx 112 source3/lib/ldb/modules/skel.c ctx->private_data = data; ctx 114 source3/lib/ldb/modules/skel.c talloc_set_destructor (ctx, skel_destructor); ctx 116 source3/lib/ldb/modules/skel.c return ldb_next_init(ctx); ctx 154 source3/lib/ldb/nssldb/ldb-grp.c TALLOC_CTX *ctx; ctx 163 source3/lib/ldb/nssldb/ldb-grp.c ctx = talloc_new(_ldb_nss_ctx->ldb); ctx 164 source3/lib/ldb/nssldb/ldb-grp.c if ( ! ctx) { ctx 182 source3/lib/ldb/nssldb/ldb-grp.c talloc_steal(ctx, gr_res); ctx 198 source3/lib/ldb/nssldb/ldb-grp.c mem_res = talloc_zero(ctx, struct ldb_result); ctx 228 source3/lib/ldb/nssldb/ldb-grp.c talloc_free(ctx); ctx 235 source3/lib/ldb/nssldb/ldb-grp.c TALLOC_CTX *ctx; ctx 249 source3/lib/ldb/nssldb/ldb-grp.c ctx = talloc_new(_ldb_nss_ctx->ldb); ctx 250 source3/lib/ldb/nssldb/ldb-grp.c if ( ! ctx) { ctx 268 source3/lib/ldb/nssldb/ldb-grp.c talloc_steal(ctx, gr_res); ctx 284 source3/lib/ldb/nssldb/ldb-grp.c mem_res = talloc_zero(ctx, struct ldb_result); ctx 314 source3/lib/ldb/nssldb/ldb-grp.c talloc_free(ctx); ctx 574 source3/lib/ldb/tools/ad2oLschema.c TALLOC_CTX *ctx; ctx 585 source3/lib/ldb/tools/ad2oLschema.c ctx = talloc_new(NULL); ctx 586 source3/lib/ldb/tools/ad2oLschema.c ldb = ldb_init(ctx); ctx 115 source3/lib/ldb/tools/oLschema2ldif.c static char *get_def_value(TALLOC_CTX *ctx, char **string) ctx 124 source3/lib/ldb/tools/oLschema2ldif.c value = talloc_strndup(ctx, c, n); ctx 129 source3/lib/ldb/tools/oLschema2ldif.c value = talloc_strndup(ctx, c, n); ctx 137 source3/lib/ldb/tools/oLschema2ldif.c static struct schema_token *get_next_schema_token(TALLOC_CTX *ctx, char **string) ctx 144 source3/lib/ldb/tools/oLschema2ldif.c token = talloc(ctx, struct schema_token); ctx 165 source3/lib/ldb/tools/oLschema2ldif.c token->value = get_def_value(ctx, &c); ctx 180 source3/lib/ldb/tools/oLschema2ldif.c token->value = talloc_strndup(ctx, c, n); ctx 184 source3/lib/ldb/tools/oLschema2ldif.c token->value = get_def_value(ctx, &c); ctx 220 source3/lib/ldb/tools/oLschema2ldif.c token->value = talloc_strndup(ctx, c, n); ctx 224 source3/lib/ldb/tools/oLschema2ldif.c token->value = get_def_value(ctx, &c); ctx 239 source3/lib/ldb/tools/oLschema2ldif.c token->value = talloc_strndup(ctx, c, n); ctx 243 source3/lib/ldb/tools/oLschema2ldif.c token->value = get_def_value(ctx, &c); ctx 262 source3/lib/ldb/tools/oLschema2ldif.c token->value = get_def_value(ctx, &c); ctx 273 source3/lib/ldb/tools/oLschema2ldif.c token->value = get_def_value(ctx, &c); ctx 284 source3/lib/ldb/tools/oLschema2ldif.c token->value = get_def_value(ctx, &c); ctx 295 source3/lib/ldb/tools/oLschema2ldif.c token->value = get_def_value(ctx, &c); ctx 306 source3/lib/ldb/tools/oLschema2ldif.c token->value = get_def_value(ctx, &c); ctx 333 source3/lib/ldb/tools/oLschema2ldif.c TALLOC_CTX *ctx; ctx 339 source3/lib/ldb/tools/oLschema2ldif.c ctx = talloc_new(mem_ctx); ctx 340 source3/lib/ldb/tools/oLschema2ldif.c msg = ldb_msg_new(ctx); ctx 344 source3/lib/ldb/tools/oLschema2ldif.c c = talloc_strdup(ctx, entry); ctx 455 source3/lib/ldb/tools/oLschema2ldif.c talloc_free(ctx); ctx 459 source3/lib/ldb/tools/oLschema2ldif.c talloc_free(ctx); ctx 465 source3/lib/ldb/tools/oLschema2ldif.c TALLOC_CTX *ctx; ctx 473 source3/lib/ldb/tools/oLschema2ldif.c ctx = talloc_new(NULL); ctx 493 source3/lib/ldb/tools/oLschema2ldif.c entry = talloc_array(ctx, char, 1024); ctx 501 source3/lib/ldb/tools/oLschema2ldif.c ldif.msg = process_entry(ctx, entry); ctx 516 source3/lib/ldb/tools/oLschema2ldif.c entry = talloc_realloc(ctx, entry, char, t + 1024); ctx 525 source3/lib/ldb/tools/oLschema2ldif.c ldif.msg = process_entry(ctx, entry); ctx 560 source3/lib/ldb/tools/oLschema2ldif.c TALLOC_CTX *ctx; ctx 567 source3/lib/ldb/tools/oLschema2ldif.c ctx = talloc_new(NULL); ctx 568 source3/lib/ldb/tools/oLschema2ldif.c ldb_ctx = ldb_init(ctx); ctx 577 source3/lib/ldb/tools/oLschema2ldif.c basedn = ldb_dn_explode(ctx, options->basedn); ctx 190 source3/lib/messages.c struct messaging_context *ctx; ctx 193 source3/lib/messages.c if (!(ctx = TALLOC_ZERO_P(mem_ctx, struct messaging_context))) { ctx 197 source3/lib/messages.c ctx->id = server_id; ctx 198 source3/lib/messages.c ctx->event_ctx = ev; ctx 200 source3/lib/messages.c status = messaging_tdb_init(ctx, ctx, &ctx->local); ctx 205 source3/lib/messages.c TALLOC_FREE(ctx); ctx 211 source3/lib/messages.c status = messaging_ctdbd_init(ctx, ctx, &ctx->remote); ctx 216 source3/lib/messages.c TALLOC_FREE(ctx); ctx 222 source3/lib/messages.c messaging_register(ctx, NULL, MSG_PING, ping_message); ctx 226 source3/lib/messages.c register_msg_pool_usage(ctx); ctx 227 source3/lib/messages.c register_dmalloc_msgs(ctx); ctx 228 source3/lib/messages.c debug_register_msgs(ctx); ctx 230 source3/lib/messages.c return ctx; ctx 319 source3/lib/messages.c void messaging_deregister(struct messaging_context *ctx, uint32_t msg_type, ctx 324 source3/lib/messages.c for (cb = ctx->callbacks; cb; cb = next) { ctx 330 source3/lib/messages.c DLIST_REMOVE(ctx->callbacks, cb); ctx 75 source3/lib/messages_ctdbd.c struct messaging_ctdbd_context *ctx = talloc_get_type_abort( ctx 86 source3/lib/messages_ctdbd.c return ctdbd_messaging_send(ctx->conn, pid.vnn, pid.pid, &msg); ctx 89 source3/lib/messages_ctdbd.c static int messaging_ctdbd_destructor(struct messaging_ctdbd_context *ctx) ctx 104 source3/lib/messages_ctdbd.c struct messaging_ctdbd_context *ctx; ctx 112 source3/lib/messages_ctdbd.c if (!(ctx = TALLOC_P(result, struct messaging_ctdbd_context))) { ctx 118 source3/lib/messages_ctdbd.c status = ctdbd_messaging_connection(ctx, &ctx->conn); ctx 127 source3/lib/messages_ctdbd.c status = ctdbd_register_msg_ctx(ctx->conn, msg_ctx); ctx 137 source3/lib/messages_ctdbd.c global_ctdbd_connection = ctx->conn; ctx 138 source3/lib/messages_ctdbd.c talloc_set_destructor(ctx, messaging_ctdbd_destructor); ctx 140 source3/lib/messages_ctdbd.c set_my_vnn(ctdbd_vnn(ctx->conn)); ctx 143 source3/lib/messages_ctdbd.c result->private_data = (void *)ctx; ctx 67 source3/lib/messages_local.c struct messaging_tdb_context *ctx = talloc_get_type(private_data, ctx 70 source3/lib/messages_local.c ctx->received_messages++; ctx 73 source3/lib/messages_local.c signum, count, ctx->received_messages)); ctx 75 source3/lib/messages_local.c message_dispatch(ctx->msg_ctx); ctx 87 source3/lib/messages_local.c struct messaging_tdb_context *ctx; ctx 94 source3/lib/messages_local.c ctx = TALLOC_ZERO_P(result, struct messaging_tdb_context); ctx 95 source3/lib/messages_local.c if (!ctx) { ctx 100 source3/lib/messages_local.c result->private_data = ctx; ctx 103 source3/lib/messages_local.c ctx->msg_ctx = msg_ctx; ctx 105 source3/lib/messages_local.c ctx->tdb = tdb_wrap_open(ctx, lock_path("messages.tdb"), ctx 109 source3/lib/messages_local.c if (!ctx->tdb) { ctx 117 source3/lib/messages_local.c ctx->se = tevent_add_signal(msg_ctx->event_ctx, ctx 118 source3/lib/messages_local.c ctx, ctx 121 source3/lib/messages_local.c ctx); ctx 122 source3/lib/messages_local.c if (!ctx->se) { ctx 133 source3/lib/messages_local.c tdb_set_max_dead(ctx->tdb->tdb, 5); ctx 314 source3/lib/messages_local.c struct messaging_tdb_context *ctx = talloc_get_type(backend->private_data, ctx 320 source3/lib/messages_local.c struct tdb_wrap *tdb = ctx->tdb; ctx 435 source3/lib/messages_local.c struct messaging_tdb_context *ctx = talloc_get_type(msg_ctx->local->private_data, ctx 438 source3/lib/messages_local.c struct tdb_wrap *tdb = ctx->tdb; ctx 442 source3/lib/messages_local.c if (ctx->received_messages == 0) { ctx 447 source3/lib/messages_local.c ctx->received_messages)); ctx 456 source3/lib/messages_local.c ctx->received_messages = 0; ctx 102 source3/lib/module.c TALLOC_CTX *ctx = talloc_stackframe(); ctx 115 source3/lib/module.c TALLOC_FREE(ctx); ctx 119 source3/lib/module.c full_path = talloc_asprintf(ctx, ctx 125 source3/lib/module.c TALLOC_FREE(ctx); ctx 134 source3/lib/module.c TALLOC_FREE(ctx); ctx 28 source3/lib/netapi/cm.c static WERROR libnetapi_open_ipc_connection(struct libnetapi_ctx *ctx, ctx 35 source3/lib/netapi/cm.c if (!ctx || !cli || !server_name) { ctx 44 source3/lib/netapi/cm.c set_cmdline_auth_info_use_kerberos(auth_info, ctx->use_kerberos); ctx 45 source3/lib/netapi/cm.c set_cmdline_auth_info_username(auth_info, ctx->username); ctx 46 source3/lib/netapi/cm.c if (ctx->password) { ctx 47 source3/lib/netapi/cm.c set_cmdline_auth_info_password(auth_info, ctx->password); ctx 52 source3/lib/netapi/cm.c if (ctx->username && ctx->username[0] && ctx 53 source3/lib/netapi/cm.c ctx->password && ctx->password[0] && ctx 54 source3/lib/netapi/cm.c ctx->use_kerberos) { ctx 58 source3/lib/netapi/cm.c cli_ipc = cli_cm_open(ctx, NULL, ctx 65 source3/lib/netapi/cm.c cli_set_username(cli_ipc, ctx->username); ctx 66 source3/lib/netapi/cm.c cli_set_password(cli_ipc, ctx->password); ctx 67 source3/lib/netapi/cm.c cli_set_domain(cli_ipc, ctx->workgroup); ctx 72 source3/lib/netapi/cm.c libnetapi_set_error_string(ctx, ctx 96 source3/lib/netapi/cm.c WERROR libnetapi_shutdown_cm(struct libnetapi_ctx *ctx) ctx 165 source3/lib/netapi/cm.c static NTSTATUS pipe_cm_open(TALLOC_CTX *ctx, ctx 174 source3/lib/netapi/cm.c return pipe_cm_connect(ctx, cli, interface, presult); ctx 180 source3/lib/netapi/cm.c WERROR libnetapi_open_pipe(struct libnetapi_ctx *ctx, ctx 194 source3/lib/netapi/cm.c werr = libnetapi_open_ipc_connection(ctx, server_name, &cli); ctx 199 source3/lib/netapi/cm.c status = pipe_cm_open(ctx, cli, interface, &result); ctx 201 source3/lib/netapi/cm.c libnetapi_set_error_string(ctx, "failed to open PIPE %s: %s", ctx 14 source3/lib/netapi/examples/common.c struct libnetapi_ctx *ctx = NULL; ctx 16 source3/lib/netapi/examples/common.c libnetapi_getctx(&ctx); ctx 35 source3/lib/netapi/examples/common.c libnetapi_set_username(ctx, puser); ctx 36 source3/lib/netapi/examples/common.c libnetapi_set_password(ctx, p+1); ctx 40 source3/lib/netapi/examples/common.c libnetapi_set_username(ctx, puser); ctx 46 source3/lib/netapi/examples/common.c libnetapi_set_debuglevel(ctx, arg); ctx 49 source3/lib/netapi/examples/common.c libnetapi_set_password(ctx, arg); ctx 52 source3/lib/netapi/examples/common.c libnetapi_set_use_kerberos(ctx); ctx 33 source3/lib/netapi/examples/dsgetdc/dsgetdc.c struct libnetapi_ctx *ctx = NULL; ctx 50 source3/lib/netapi/examples/dsgetdc/dsgetdc.c status = libnetapi_init(&ctx); ctx 97 source3/lib/netapi/examples/dsgetdc/dsgetdc.c libnetapi_free(ctx); ctx 33 source3/lib/netapi/examples/file/file_close.c struct libnetapi_ctx *ctx = NULL; ctx 46 source3/lib/netapi/examples/file/file_close.c status = libnetapi_init(&ctx); ctx 74 source3/lib/netapi/examples/file/file_close.c libnetapi_get_error_string(ctx, status)); ctx 79 source3/lib/netapi/examples/file/file_close.c libnetapi_free(ctx); ctx 33 source3/lib/netapi/examples/file/file_enum.c struct libnetapi_ctx *ctx = NULL; ctx 56 source3/lib/netapi/examples/file/file_enum.c status = libnetapi_init(&ctx); ctx 138 source3/lib/netapi/examples/file/file_enum.c libnetapi_get_error_string(ctx, status)); ctx 142 source3/lib/netapi/examples/file/file_enum.c libnetapi_free(ctx); ctx 33 source3/lib/netapi/examples/file/file_getinfo.c struct libnetapi_ctx *ctx = NULL; ctx 51 source3/lib/netapi/examples/file/file_getinfo.c status = libnetapi_init(&ctx); ctx 86 source3/lib/netapi/examples/file/file_getinfo.c libnetapi_get_error_string(ctx, status)); ctx 108 source3/lib/netapi/examples/file/file_getinfo.c libnetapi_free(ctx); ctx 33 source3/lib/netapi/examples/getdc/getdc.c struct libnetapi_ctx *ctx = NULL; ctx 48 source3/lib/netapi/examples/getdc/getdc.c status = libnetapi_init(&ctx); ctx 82 source3/lib/netapi/examples/getdc/getdc.c libnetapi_free(ctx); ctx 33 source3/lib/netapi/examples/group/group_add.c struct libnetapi_ctx *ctx = NULL; ctx 48 source3/lib/netapi/examples/group/group_add.c status = libnetapi_init(&ctx); ctx 82 source3/lib/netapi/examples/group/group_add.c libnetapi_get_error_string(ctx, status)); ctx 86 source3/lib/netapi/examples/group/group_add.c libnetapi_free(ctx); ctx 33 source3/lib/netapi/examples/group/group_adduser.c struct libnetapi_ctx *ctx = NULL; ctx 47 source3/lib/netapi/examples/group/group_adduser.c status = libnetapi_init(&ctx); ctx 83 source3/lib/netapi/examples/group/group_adduser.c libnetapi_get_error_string(ctx, status)); ctx 87 source3/lib/netapi/examples/group/group_adduser.c libnetapi_free(ctx); ctx 33 source3/lib/netapi/examples/group/group_del.c struct libnetapi_ctx *ctx = NULL; ctx 46 source3/lib/netapi/examples/group/group_del.c status = libnetapi_init(&ctx); ctx 74 source3/lib/netapi/examples/group/group_del.c libnetapi_get_error_string(ctx, status)); ctx 78 source3/lib/netapi/examples/group/group_del.c libnetapi_free(ctx); ctx 33 source3/lib/netapi/examples/group/group_deluser.c struct libnetapi_ctx *ctx = NULL; ctx 47 source3/lib/netapi/examples/group/group_deluser.c status = libnetapi_init(&ctx); ctx 83 source3/lib/netapi/examples/group/group_deluser.c libnetapi_get_error_string(ctx, status)); ctx 87 source3/lib/netapi/examples/group/group_deluser.c libnetapi_free(ctx); ctx 33 source3/lib/netapi/examples/group/group_enum.c struct libnetapi_ctx *ctx = NULL; ctx 57 source3/lib/netapi/examples/group/group_enum.c status = libnetapi_init(&ctx); ctx 145 source3/lib/netapi/examples/group/group_enum.c libnetapi_get_error_string(ctx, status)); ctx 149 source3/lib/netapi/examples/group/group_enum.c libnetapi_free(ctx); ctx 33 source3/lib/netapi/examples/group/group_getinfo.c struct libnetapi_ctx *ctx = NULL; ctx 53 source3/lib/netapi/examples/group/group_getinfo.c status = libnetapi_init(&ctx); ctx 88 source3/lib/netapi/examples/group/group_getinfo.c libnetapi_get_error_string(ctx, status)); ctx 123 source3/lib/netapi/examples/group/group_getinfo.c libnetapi_free(ctx); ctx 33 source3/lib/netapi/examples/group/group_getusers.c struct libnetapi_ctx *ctx = NULL; ctx 55 source3/lib/netapi/examples/group/group_getusers.c status = libnetapi_init(&ctx); ctx 124 source3/lib/netapi/examples/group/group_getusers.c libnetapi_get_error_string(ctx, status)); ctx 128 source3/lib/netapi/examples/group/group_getusers.c libnetapi_free(ctx); ctx 33 source3/lib/netapi/examples/group/group_setinfo.c struct libnetapi_ctx *ctx = NULL; ctx 56 source3/lib/netapi/examples/group/group_setinfo.c status = libnetapi_init(&ctx); ctx 133 source3/lib/netapi/examples/group/group_setinfo.c libnetapi_get_error_string(ctx, status)); ctx 138 source3/lib/netapi/examples/group/group_setinfo.c libnetapi_free(ctx); ctx 33 source3/lib/netapi/examples/group/group_setusers.c struct libnetapi_ctx *ctx = NULL; ctx 55 source3/lib/netapi/examples/group/group_setusers.c status = libnetapi_init(&ctx); ctx 95 source3/lib/netapi/examples/group/group_setusers.c libnetapi_get_error_string(ctx, status)); ctx 111 source3/lib/netapi/examples/group/group_setusers.c libnetapi_get_error_string(ctx, status)); ctx 134 source3/lib/netapi/examples/group/group_setusers.c libnetapi_get_error_string(ctx, status)); ctx 138 source3/lib/netapi/examples/group/group_setusers.c libnetapi_free(ctx); ctx 36 source3/lib/netapi/examples/join/getjoinableous.c struct libnetapi_ctx *ctx = NULL; ctx 49 source3/lib/netapi/examples/join/getjoinableous.c status = libnetapi_init(&ctx); ctx 75 source3/lib/netapi/examples/join/getjoinableous.c ctx->username, ctx 76 source3/lib/netapi/examples/join/getjoinableous.c ctx->password, ctx 81 source3/lib/netapi/examples/join/getjoinableous.c libnetapi_get_error_string(ctx, status)); ctx 91 source3/lib/netapi/examples/join/getjoinableous.c libnetapi_free(ctx); ctx 45 source3/lib/netapi/examples/join/netdomjoin.c struct libnetapi_ctx *ctx = NULL; ctx 61 source3/lib/netapi/examples/join/netdomjoin.c status = libnetapi_init(&ctx); ctx 93 source3/lib/netapi/examples/join/netdomjoin.c errstr = libnetapi_get_error_string(ctx, status); ctx 100 source3/lib/netapi/examples/join/netdomjoin.c libnetapi_free(ctx); ctx 35 source3/lib/netapi/examples/join/rename_machine.c struct libnetapi_ctx *ctx = NULL; ctx 46 source3/lib/netapi/examples/join/rename_machine.c status = libnetapi_init(&ctx); ctx 73 source3/lib/netapi/examples/join/rename_machine.c ctx->username, ctx 74 source3/lib/netapi/examples/join/rename_machine.c ctx->password, ctx 78 source3/lib/netapi/examples/join/rename_machine.c libnetapi_get_error_string(ctx, status)); ctx 82 source3/lib/netapi/examples/join/rename_machine.c libnetapi_free(ctx); ctx 33 source3/lib/netapi/examples/localgroup/localgroup_add.c struct libnetapi_ctx *ctx = NULL; ctx 52 source3/lib/netapi/examples/localgroup/localgroup_add.c status = libnetapi_init(&ctx); ctx 98 source3/lib/netapi/examples/localgroup/localgroup_add.c libnetapi_get_error_string(ctx, status)); ctx 102 source3/lib/netapi/examples/localgroup/localgroup_add.c libnetapi_free(ctx); ctx 33 source3/lib/netapi/examples/localgroup/localgroup_addmembers.c struct libnetapi_ctx *ctx = NULL; ctx 53 source3/lib/netapi/examples/localgroup/localgroup_addmembers.c status = libnetapi_init(&ctx); ctx 92 source3/lib/netapi/examples/localgroup/localgroup_addmembers.c libnetapi_get_error_string(ctx, status)); ctx 110 source3/lib/netapi/examples/localgroup/localgroup_addmembers.c libnetapi_get_error_string(ctx, status)); ctx 133 source3/lib/netapi/examples/localgroup/localgroup_addmembers.c libnetapi_get_error_string(ctx, status)); ctx 137 source3/lib/netapi/examples/localgroup/localgroup_addmembers.c libnetapi_free(ctx); ctx 33 source3/lib/netapi/examples/localgroup/localgroup_del.c struct libnetapi_ctx *ctx = NULL; ctx 46 source3/lib/netapi/examples/localgroup/localgroup_del.c status = libnetapi_init(&ctx); ctx 75 source3/lib/netapi/examples/localgroup/localgroup_del.c libnetapi_get_error_string(ctx, status)); ctx 79 source3/lib/netapi/examples/localgroup/localgroup_del.c libnetapi_free(ctx); ctx 33 source3/lib/netapi/examples/localgroup/localgroup_delmembers.c struct libnetapi_ctx *ctx = NULL; ctx 53 source3/lib/netapi/examples/localgroup/localgroup_delmembers.c status = libnetapi_init(&ctx); ctx 92 source3/lib/netapi/examples/localgroup/localgroup_delmembers.c libnetapi_get_error_string(ctx, status)); ctx 110 source3/lib/netapi/examples/localgroup/localgroup_delmembers.c libnetapi_get_error_string(ctx, status)); ctx 133 source3/lib/netapi/examples/localgroup/localgroup_delmembers.c libnetapi_get_error_string(ctx, status)); ctx 137 source3/lib/netapi/examples/localgroup/localgroup_delmembers.c libnetapi_free(ctx); ctx 33 source3/lib/netapi/examples/localgroup/localgroup_enum.c struct libnetapi_ctx *ctx = NULL; ctx 54 source3/lib/netapi/examples/localgroup/localgroup_enum.c status = libnetapi_init(&ctx); ctx 118 source3/lib/netapi/examples/localgroup/localgroup_enum.c libnetapi_get_error_string(ctx, status)); ctx 122 source3/lib/netapi/examples/localgroup/localgroup_enum.c libnetapi_free(ctx); ctx 33 source3/lib/netapi/examples/localgroup/localgroup_getinfo.c struct libnetapi_ctx *ctx = NULL; ctx 51 source3/lib/netapi/examples/localgroup/localgroup_getinfo.c status = libnetapi_init(&ctx); ctx 86 source3/lib/netapi/examples/localgroup/localgroup_getinfo.c libnetapi_get_error_string(ctx, status)); ctx 108 source3/lib/netapi/examples/localgroup/localgroup_getinfo.c libnetapi_free(ctx); ctx 33 source3/lib/netapi/examples/localgroup/localgroup_getmembers.c struct libnetapi_ctx *ctx = NULL; ctx 58 source3/lib/netapi/examples/localgroup/localgroup_getmembers.c status = libnetapi_init(&ctx); ctx 157 source3/lib/netapi/examples/localgroup/localgroup_getmembers.c libnetapi_get_error_string(ctx, status)); ctx 161 source3/lib/netapi/examples/localgroup/localgroup_getmembers.c libnetapi_free(ctx); ctx 33 source3/lib/netapi/examples/localgroup/localgroup_setinfo.c struct libnetapi_ctx *ctx = NULL; ctx 56 source3/lib/netapi/examples/localgroup/localgroup_setinfo.c status = libnetapi_init(&ctx); ctx 119 source3/lib/netapi/examples/localgroup/localgroup_setinfo.c libnetapi_get_error_string(ctx, status)); ctx 124 source3/lib/netapi/examples/localgroup/localgroup_setinfo.c libnetapi_free(ctx); ctx 33 source3/lib/netapi/examples/localgroup/localgroup_setmembers.c struct libnetapi_ctx *ctx = NULL; ctx 54 source3/lib/netapi/examples/localgroup/localgroup_setmembers.c status = libnetapi_init(&ctx); ctx 94 source3/lib/netapi/examples/localgroup/localgroup_setmembers.c libnetapi_get_error_string(ctx, status)); ctx 113 source3/lib/netapi/examples/localgroup/localgroup_setmembers.c libnetapi_get_error_string(ctx, status)); ctx 136 source3/lib/netapi/examples/localgroup/localgroup_setmembers.c libnetapi_get_error_string(ctx, status)); ctx 142 source3/lib/netapi/examples/localgroup/localgroup_setmembers.c libnetapi_free(ctx); ctx 46 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c struct libnetapi_ctx *ctx; ctx 182 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c libnetapi_free(state->ctx); ctx 209 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c libnetapi_get_error_string(state->ctx, status)); ctx 506 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c str = libnetapi_get_error_string(state->ctx, status); ctx 733 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c err_str = libnetapi_get_error_string(state->ctx, status); ctx 769 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c err_str = libnetapi_get_error_string(state->ctx, status); ctx 826 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c err_str = libnetapi_get_error_string(state->ctx, status); ctx 1047 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c err_str = libnetapi_get_error_string(state->ctx, status); ctx 1089 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c libnetapi_get_error_string(state->ctx, status)); ctx 1095 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c libnetapi_get_error_string(state->ctx, status)); ctx 1721 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c libnetapi_get_error_string(state->ctx, status)); ctx 1731 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c struct libnetapi_ctx *ctx = NULL; ctx 1734 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c status = libnetapi_init(&ctx); ctx 1740 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c libnetapi_set_debuglevel(ctx, debug_level); ctx 1757 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c libnetapi_set_username(ctx, puser); ctx 1758 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c libnetapi_set_password(ctx, p+1); ctx 1762 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c libnetapi_set_username(ctx, puser); ctx 1818 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c libnetapi_get_error_string(state->ctx, status)); ctx 1837 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c state->ctx = ctx; ctx 33 source3/lib/netapi/examples/server/remote_tod.c struct libnetapi_ctx *ctx = NULL; ctx 46 source3/lib/netapi/examples/server/remote_tod.c status = libnetapi_init(&ctx); ctx 70 source3/lib/netapi/examples/server/remote_tod.c libnetapi_get_error_string(ctx, status)); ctx 79 source3/lib/netapi/examples/server/remote_tod.c libnetapi_free(ctx); ctx 33 source3/lib/netapi/examples/server/server_getinfo.c struct libnetapi_ctx *ctx = NULL; ctx 56 source3/lib/netapi/examples/server/server_getinfo.c status = libnetapi_init(&ctx); ctx 84 source3/lib/netapi/examples/server/server_getinfo.c libnetapi_get_error_string(ctx, status)); ctx 140 source3/lib/netapi/examples/server/server_getinfo.c libnetapi_free(ctx); ctx 33 source3/lib/netapi/examples/share/share_add.c struct libnetapi_ctx *ctx = NULL; ctx 51 source3/lib/netapi/examples/share/share_add.c status = libnetapi_init(&ctx); ctx 101 source3/lib/netapi/examples/share/share_add.c libnetapi_get_error_string(ctx, status)); ctx 106 source3/lib/netapi/examples/share/share_add.c libnetapi_free(ctx); ctx 33 source3/lib/netapi/examples/share/share_del.c struct libnetapi_ctx *ctx = NULL; ctx 46 source3/lib/netapi/examples/share/share_del.c status = libnetapi_init(&ctx); ctx 76 source3/lib/netapi/examples/share/share_del.c libnetapi_get_error_string(ctx, status)); ctx 81 source3/lib/netapi/examples/share/share_del.c libnetapi_free(ctx); ctx 33 source3/lib/netapi/examples/share/share_enum.c struct libnetapi_ctx *ctx = NULL; ctx 55 source3/lib/netapi/examples/share/share_enum.c status = libnetapi_init(&ctx); ctx 134 source3/lib/netapi/examples/share/share_enum.c libnetapi_get_error_string(ctx, status)); ctx 138 source3/lib/netapi/examples/share/share_enum.c libnetapi_free(ctx); ctx 33 source3/lib/netapi/examples/share/share_getinfo.c struct libnetapi_ctx *ctx = NULL; ctx 54 source3/lib/netapi/examples/share/share_getinfo.c status = libnetapi_init(&ctx); ctx 89 source3/lib/netapi/examples/share/share_getinfo.c libnetapi_get_error_string(ctx, status)); ctx 148 source3/lib/netapi/examples/share/share_getinfo.c libnetapi_free(ctx); ctx 33 source3/lib/netapi/examples/share/share_setinfo.c struct libnetapi_ctx *ctx = NULL; ctx 52 source3/lib/netapi/examples/share/share_setinfo.c status = libnetapi_init(&ctx); ctx 96 source3/lib/netapi/examples/share/share_setinfo.c libnetapi_get_error_string(ctx, status)); ctx 101 source3/lib/netapi/examples/share/share_setinfo.c libnetapi_free(ctx); ctx 33 source3/lib/netapi/examples/shutdown/shutdown_abort.c struct libnetapi_ctx *ctx = NULL; ctx 45 source3/lib/netapi/examples/shutdown/shutdown_abort.c status = libnetapi_init(&ctx); ctx 67 source3/lib/netapi/examples/shutdown/shutdown_abort.c libnetapi_get_error_string(ctx, status)); ctx 72 source3/lib/netapi/examples/shutdown/shutdown_abort.c libnetapi_free(ctx); ctx 33 source3/lib/netapi/examples/shutdown/shutdown_init.c struct libnetapi_ctx *ctx = NULL; ctx 47 source3/lib/netapi/examples/shutdown/shutdown_init.c status = libnetapi_init(&ctx); ctx 85 source3/lib/netapi/examples/shutdown/shutdown_init.c libnetapi_get_error_string(ctx, status)); ctx 90 source3/lib/netapi/examples/shutdown/shutdown_init.c libnetapi_free(ctx); ctx 33 source3/lib/netapi/examples/user/user_add.c struct libnetapi_ctx *ctx = NULL; ctx 49 source3/lib/netapi/examples/user/user_add.c status = libnetapi_init(&ctx); ctx 95 source3/lib/netapi/examples/user/user_add.c libnetapi_get_error_string(ctx, status)); ctx 99 source3/lib/netapi/examples/user/user_add.c libnetapi_free(ctx); ctx 33 source3/lib/netapi/examples/user/user_chgpwd.c struct libnetapi_ctx *ctx = NULL; ctx 48 source3/lib/netapi/examples/user/user_chgpwd.c status = libnetapi_init(&ctx); ctx 91 source3/lib/netapi/examples/user/user_chgpwd.c libnetapi_get_error_string(ctx, status)); ctx 95 source3/lib/netapi/examples/user/user_chgpwd.c libnetapi_free(ctx); ctx 33 source3/lib/netapi/examples/user/user_del.c struct libnetapi_ctx *ctx = NULL; ctx 46 source3/lib/netapi/examples/user/user_del.c status = libnetapi_init(&ctx); ctx 74 source3/lib/netapi/examples/user/user_del.c libnetapi_get_error_string(ctx, status)); ctx 78 source3/lib/netapi/examples/user/user_del.c libnetapi_free(ctx); ctx 33 source3/lib/netapi/examples/user/user_dispinfo.c struct libnetapi_ctx *ctx = NULL; ctx 51 source3/lib/netapi/examples/user/user_dispinfo.c status = libnetapi_init(&ctx); ctx 92 source3/lib/netapi/examples/user/user_dispinfo.c libnetapi_get_error_string(ctx, status)); ctx 96 source3/lib/netapi/examples/user/user_dispinfo.c libnetapi_free(ctx); ctx 33 source3/lib/netapi/examples/user/user_enum.c struct libnetapi_ctx *ctx = NULL; ctx 57 source3/lib/netapi/examples/user/user_enum.c status = libnetapi_init(&ctx); ctx 149 source3/lib/netapi/examples/user/user_enum.c libnetapi_get_error_string(ctx, status)); ctx 153 source3/lib/netapi/examples/user/user_enum.c libnetapi_free(ctx); ctx 33 source3/lib/netapi/examples/user/user_getgroups.c struct libnetapi_ctx *ctx = NULL; ctx 54 source3/lib/netapi/examples/user/user_getgroups.c status = libnetapi_init(&ctx); ctx 125 source3/lib/netapi/examples/user/user_getgroups.c libnetapi_get_error_string(ctx, status)); ctx 129 source3/lib/netapi/examples/user/user_getgroups.c libnetapi_free(ctx); ctx 33 source3/lib/netapi/examples/user/user_getinfo.c struct libnetapi_ctx *ctx = NULL; ctx 60 source3/lib/netapi/examples/user/user_getinfo.c status = libnetapi_init(&ctx); ctx 95 source3/lib/netapi/examples/user/user_getinfo.c libnetapi_get_error_string(ctx, status)); ctx 289 source3/lib/netapi/examples/user/user_getinfo.c libnetapi_free(ctx); ctx 33 source3/lib/netapi/examples/user/user_getlocalgroups.c struct libnetapi_ctx *ctx = NULL; ctx 54 source3/lib/netapi/examples/user/user_getlocalgroups.c status = libnetapi_init(&ctx); ctx 114 source3/lib/netapi/examples/user/user_getlocalgroups.c libnetapi_get_error_string(ctx, status)); ctx 118 source3/lib/netapi/examples/user/user_getlocalgroups.c libnetapi_free(ctx); ctx 33 source3/lib/netapi/examples/user/user_modalsget.c struct libnetapi_ctx *ctx = NULL; ctx 53 source3/lib/netapi/examples/user/user_modalsget.c status = libnetapi_init(&ctx); ctx 81 source3/lib/netapi/examples/user/user_modalsget.c libnetapi_get_error_string(ctx, status)); ctx 127 source3/lib/netapi/examples/user/user_modalsget.c libnetapi_free(ctx); ctx 33 source3/lib/netapi/examples/user/user_modalsset.c struct libnetapi_ctx *ctx = NULL; ctx 61 source3/lib/netapi/examples/user/user_modalsset.c status = libnetapi_init(&ctx); ctx 133 source3/lib/netapi/examples/user/user_modalsset.c libnetapi_get_error_string(ctx, status)); ctx 138 source3/lib/netapi/examples/user/user_modalsset.c libnetapi_free(ctx); ctx 33 source3/lib/netapi/examples/user/user_setgroups.c struct libnetapi_ctx *ctx = NULL; ctx 55 source3/lib/netapi/examples/user/user_setgroups.c status = libnetapi_init(&ctx); ctx 95 source3/lib/netapi/examples/user/user_setgroups.c libnetapi_get_error_string(ctx, status)); ctx 111 source3/lib/netapi/examples/user/user_setgroups.c libnetapi_get_error_string(ctx, status)); ctx 135 source3/lib/netapi/examples/user/user_setgroups.c libnetapi_get_error_string(ctx, status)); ctx 140 source3/lib/netapi/examples/user/user_setgroups.c libnetapi_free(ctx); ctx 33 source3/lib/netapi/examples/user/user_setinfo.c struct libnetapi_ctx *ctx = NULL; ctx 74 source3/lib/netapi/examples/user/user_setinfo.c status = libnetapi_init(&ctx); ctx 198 source3/lib/netapi/examples/user/user_setinfo.c libnetapi_get_error_string(ctx, status)); ctx 203 source3/lib/netapi/examples/user/user_setinfo.c libnetapi_free(ctx); ctx 30 source3/lib/netapi/file.c WERROR NetFileClose_r(struct libnetapi_ctx *ctx, ctx 37 source3/lib/netapi/file.c werr = libnetapi_open_pipe(ctx, r->in.server_name, ctx 44 source3/lib/netapi/file.c status = rpccli_srvsvc_NetFileClose(pipe_cli, ctx, ctx 60 source3/lib/netapi/file.c WERROR NetFileClose_l(struct libnetapi_ctx *ctx, ctx 63 source3/lib/netapi/file.c LIBNETAPI_REDIRECT_TO_LOCALHOST(ctx, r, NetFileClose); ctx 110 source3/lib/netapi/file.c WERROR NetFileGetInfo_r(struct libnetapi_ctx *ctx, ctx 131 source3/lib/netapi/file.c werr = libnetapi_open_pipe(ctx, r->in.server_name, ctx 138 source3/lib/netapi/file.c status = rpccli_srvsvc_NetFileGetInfo(pipe_cli, ctx, ctx 148 source3/lib/netapi/file.c status = map_srvsvc_FileInfo_to_FILE_INFO_buffer(ctx, ctx 164 source3/lib/netapi/file.c WERROR NetFileGetInfo_l(struct libnetapi_ctx *ctx, ctx 167 source3/lib/netapi/file.c LIBNETAPI_REDIRECT_TO_LOCALHOST(ctx, r, NetFileGetInfo); ctx 173 source3/lib/netapi/file.c WERROR NetFileEnum_r(struct libnetapi_ctx *ctx, ctx 197 source3/lib/netapi/file.c werr = libnetapi_open_pipe(ctx, r->in.server_name, ctx 218 source3/lib/netapi/file.c status = rpccli_srvsvc_NetFileEnum(pipe_cli, ctx, ctx 242 source3/lib/netapi/file.c status = map_srvsvc_FileInfo_to_FILE_INFO_buffer(ctx, ctx 268 source3/lib/netapi/file.c WERROR NetFileEnum_l(struct libnetapi_ctx *ctx, ctx 271 source3/lib/netapi/file.c LIBNETAPI_REDIRECT_TO_LOCALHOST(ctx, r, NetFileEnum); ctx 31 source3/lib/netapi/getdc.c WERROR NetGetDCName_l(struct libnetapi_ctx *ctx, ctx 34 source3/lib/netapi/getdc.c LIBNETAPI_REDIRECT_TO_LOCALHOST(ctx, r, NetGetDCName); ctx 40 source3/lib/netapi/getdc.c WERROR NetGetDCName_r(struct libnetapi_ctx *ctx, ctx 47 source3/lib/netapi/getdc.c werr = libnetapi_open_pipe(ctx, r->in.server_name, ctx 54 source3/lib/netapi/getdc.c status = rpccli_netr_GetDcName(pipe_cli, ctx, ctx 71 source3/lib/netapi/getdc.c WERROR NetGetAnyDCName_l(struct libnetapi_ctx *ctx, ctx 74 source3/lib/netapi/getdc.c LIBNETAPI_REDIRECT_TO_LOCALHOST(ctx, r, NetGetAnyDCName); ctx 80 source3/lib/netapi/getdc.c WERROR NetGetAnyDCName_r(struct libnetapi_ctx *ctx, ctx 87 source3/lib/netapi/getdc.c werr = libnetapi_open_pipe(ctx, r->in.server_name, ctx 94 source3/lib/netapi/getdc.c status = rpccli_netr_GetAnyDCName(pipe_cli, ctx, ctx 111 source3/lib/netapi/getdc.c WERROR DsGetDcName_l(struct libnetapi_ctx *ctx, ctx 116 source3/lib/netapi/getdc.c status = dsgetdcname(ctx, ctx 124 source3/lib/netapi/getdc.c libnetapi_set_error_string(ctx, ctx 135 source3/lib/netapi/getdc.c WERROR DsGetDcName_r(struct libnetapi_ctx *ctx, ctx 142 source3/lib/netapi/getdc.c werr = libnetapi_open_pipe(ctx, r->in.server_name, ctx 150 source3/lib/netapi/getdc.c ctx, ctx 30 source3/lib/netapi/group.c WERROR NetGroupAdd_r(struct libnetapi_ctx *ctx, ctx 73 source3/lib/netapi/group.c werr = libnetapi_open_pipe(ctx, r->in.server_name, ctx 80 source3/lib/netapi/group.c werr = libnetapi_samr_open_domain(ctx, pipe_cli, ctx 107 source3/lib/netapi/group.c status = rpccli_samr_CreateDomainGroup(pipe_cli, ctx, ctx 126 source3/lib/netapi/group.c status = rpccli_samr_SetGroupInfo(pipe_cli, ctx, ctx 137 source3/lib/netapi/group.c status = rpccli_samr_SetGroupInfo(pipe_cli, ctx, ctx 149 source3/lib/netapi/group.c status = rpccli_samr_SetGroupInfo(pipe_cli, ctx, ctx 161 source3/lib/netapi/group.c status = rpccli_samr_SetGroupInfo(pipe_cli, ctx, ctx 173 source3/lib/netapi/group.c status = rpccli_samr_SetGroupInfo(pipe_cli, ctx, ctx 192 source3/lib/netapi/group.c rpccli_samr_DeleteDomainGroup(pipe_cli, ctx, ctx 197 source3/lib/netapi/group.c rpccli_samr_Close(pipe_cli, ctx, &group_handle); ctx 200 source3/lib/netapi/group.c if (ctx->disable_policy_handle_cache) { ctx 201 source3/lib/netapi/group.c libnetapi_samr_close_domain_handle(ctx, &domain_handle); ctx 202 source3/lib/netapi/group.c libnetapi_samr_close_connect_handle(ctx, &connect_handle); ctx 211 source3/lib/netapi/group.c WERROR NetGroupAdd_l(struct libnetapi_ctx *ctx, ctx 214 source3/lib/netapi/group.c LIBNETAPI_REDIRECT_TO_LOCALHOST(ctx, r, NetGroupAdd); ctx 220 source3/lib/netapi/group.c WERROR NetGroupDel_r(struct libnetapi_ctx *ctx, ctx 244 source3/lib/netapi/group.c werr = libnetapi_open_pipe(ctx, r->in.server_name, ctx 251 source3/lib/netapi/group.c werr = libnetapi_samr_open_domain(ctx, pipe_cli, ctx 264 source3/lib/netapi/group.c status = rpccli_samr_LookupNames(pipe_cli, ctx, ctx 280 source3/lib/netapi/group.c status = rpccli_samr_OpenGroup(pipe_cli, ctx, ctx 294 source3/lib/netapi/group.c status = rpccli_samr_QueryGroupInfo(pipe_cli, ctx, ctx 310 source3/lib/netapi/group.c status = rpccli_samr_QueryGroupMember(pipe_cli, ctx, ctx 322 source3/lib/netapi/group.c status = rpccli_samr_LookupRids(pipe_cli, ctx, ctx 336 source3/lib/netapi/group.c status = rpccli_samr_DeleteGroupMember(pipe_cli, ctx, ctx 345 source3/lib/netapi/group.c status = rpccli_samr_DeleteDomainGroup(pipe_cli, ctx, ctx 358 source3/lib/netapi/group.c rpccli_samr_Close(pipe_cli, ctx, &group_handle); ctx 361 source3/lib/netapi/group.c if (ctx->disable_policy_handle_cache) { ctx 362 source3/lib/netapi/group.c libnetapi_samr_close_domain_handle(ctx, &domain_handle); ctx 363 source3/lib/netapi/group.c libnetapi_samr_close_connect_handle(ctx, &connect_handle); ctx 372 source3/lib/netapi/group.c WERROR NetGroupDel_l(struct libnetapi_ctx *ctx, ctx 375 source3/lib/netapi/group.c LIBNETAPI_REDIRECT_TO_LOCALHOST(ctx, r, NetGroupDel); ctx 381 source3/lib/netapi/group.c WERROR NetGroupSetInfo_r(struct libnetapi_ctx *ctx, ctx 409 source3/lib/netapi/group.c werr = libnetapi_open_pipe(ctx, r->in.server_name, ctx 416 source3/lib/netapi/group.c werr = libnetapi_samr_open_domain(ctx, pipe_cli, ctx 429 source3/lib/netapi/group.c status = rpccli_samr_LookupNames(pipe_cli, ctx, ctx 445 source3/lib/netapi/group.c status = rpccli_samr_OpenGroup(pipe_cli, ctx, ctx 460 source3/lib/netapi/group.c status = rpccli_samr_SetGroupInfo(pipe_cli, ctx, ctx 468 source3/lib/netapi/group.c status = rpccli_samr_SetGroupInfo(pipe_cli, ctx, ctx 476 source3/lib/netapi/group.c status = rpccli_samr_SetGroupInfo(pipe_cli, ctx, ctx 485 source3/lib/netapi/group.c status = rpccli_samr_SetGroupInfo(pipe_cli, ctx, ctx 493 source3/lib/netapi/group.c status = rpccli_samr_SetGroupInfo(pipe_cli, ctx, ctx 502 source3/lib/netapi/group.c status = rpccli_samr_SetGroupInfo(pipe_cli, ctx, ctx 510 source3/lib/netapi/group.c status = rpccli_samr_SetGroupInfo(pipe_cli, ctx, ctx 518 source3/lib/netapi/group.c status = rpccli_samr_SetGroupInfo(pipe_cli, ctx, ctx 537 source3/lib/netapi/group.c rpccli_samr_Close(pipe_cli, ctx, &group_handle); ctx 540 source3/lib/netapi/group.c if (ctx->disable_policy_handle_cache) { ctx 541 source3/lib/netapi/group.c libnetapi_samr_close_domain_handle(ctx, &domain_handle); ctx 542 source3/lib/netapi/group.c libnetapi_samr_close_connect_handle(ctx, &connect_handle); ctx 551 source3/lib/netapi/group.c WERROR NetGroupSetInfo_l(struct libnetapi_ctx *ctx, ctx 554 source3/lib/netapi/group.c LIBNETAPI_REDIRECT_TO_LOCALHOST(ctx, r, NetGroupSetInfo); ctx 621 source3/lib/netapi/group.c WERROR NetGroupGetInfo_r(struct libnetapi_ctx *ctx, ctx 644 source3/lib/netapi/group.c werr = libnetapi_open_pipe(ctx, r->in.server_name, ctx 651 source3/lib/netapi/group.c werr = libnetapi_samr_open_domain(ctx, pipe_cli, ctx 664 source3/lib/netapi/group.c status = rpccli_samr_LookupNames(pipe_cli, ctx, ctx 680 source3/lib/netapi/group.c status = rpccli_samr_OpenGroup(pipe_cli, ctx, ctx 690 source3/lib/netapi/group.c status = rpccli_samr_QueryGroupInfo(pipe_cli, ctx, ctx 695 source3/lib/netapi/group.c status = rpccli_samr_QueryGroupInfo(pipe_cli, ctx, ctx 707 source3/lib/netapi/group.c werr = map_group_info_to_buffer(ctx, r->in.level, ctx 716 source3/lib/netapi/group.c rpccli_samr_Close(pipe_cli, ctx, &group_handle); ctx 719 source3/lib/netapi/group.c if (ctx->disable_policy_handle_cache) { ctx 720 source3/lib/netapi/group.c libnetapi_samr_close_domain_handle(ctx, &domain_handle); ctx 721 source3/lib/netapi/group.c libnetapi_samr_close_connect_handle(ctx, &connect_handle); ctx 730 source3/lib/netapi/group.c WERROR NetGroupGetInfo_l(struct libnetapi_ctx *ctx, ctx 733 source3/lib/netapi/group.c LIBNETAPI_REDIRECT_TO_LOCALHOST(ctx, r, NetGroupGetInfo); ctx 739 source3/lib/netapi/group.c WERROR NetGroupAddUser_r(struct libnetapi_ctx *ctx, ctx 760 source3/lib/netapi/group.c werr = libnetapi_open_pipe(ctx, r->in.server_name, ctx 767 source3/lib/netapi/group.c werr = libnetapi_samr_open_domain(ctx, pipe_cli, ctx 780 source3/lib/netapi/group.c status = rpccli_samr_LookupNames(pipe_cli, ctx, ctx 796 source3/lib/netapi/group.c status = rpccli_samr_OpenGroup(pipe_cli, ctx, ctx 808 source3/lib/netapi/group.c status = rpccli_samr_LookupNames(pipe_cli, ctx, ctx 824 source3/lib/netapi/group.c status = rpccli_samr_AddGroupMember(pipe_cli, ctx, ctx 837 source3/lib/netapi/group.c rpccli_samr_Close(pipe_cli, ctx, &group_handle); ctx 840 source3/lib/netapi/group.c if (ctx->disable_policy_handle_cache) { ctx 841 source3/lib/netapi/group.c libnetapi_samr_close_domain_handle(ctx, &domain_handle); ctx 842 source3/lib/netapi/group.c libnetapi_samr_close_connect_handle(ctx, &connect_handle); ctx 851 source3/lib/netapi/group.c WERROR NetGroupAddUser_l(struct libnetapi_ctx *ctx, ctx 854 source3/lib/netapi/group.c LIBNETAPI_REDIRECT_TO_LOCALHOST(ctx, r, NetGroupAddUser); ctx 860 source3/lib/netapi/group.c WERROR NetGroupDelUser_r(struct libnetapi_ctx *ctx, ctx 881 source3/lib/netapi/group.c werr = libnetapi_open_pipe(ctx, r->in.server_name, ctx 888 source3/lib/netapi/group.c werr = libnetapi_samr_open_domain(ctx, pipe_cli, ctx 901 source3/lib/netapi/group.c status = rpccli_samr_LookupNames(pipe_cli, ctx, ctx 917 source3/lib/netapi/group.c status = rpccli_samr_OpenGroup(pipe_cli, ctx, ctx 929 source3/lib/netapi/group.c status = rpccli_samr_LookupNames(pipe_cli, ctx, ctx 945 source3/lib/netapi/group.c status = rpccli_samr_DeleteGroupMember(pipe_cli, ctx, ctx 957 source3/lib/netapi/group.c rpccli_samr_Close(pipe_cli, ctx, &group_handle); ctx 960 source3/lib/netapi/group.c if (ctx->disable_policy_handle_cache) { ctx 961 source3/lib/netapi/group.c libnetapi_samr_close_domain_handle(ctx, &domain_handle); ctx 962 source3/lib/netapi/group.c libnetapi_samr_close_connect_handle(ctx, &connect_handle); ctx 971 source3/lib/netapi/group.c WERROR NetGroupDelUser_l(struct libnetapi_ctx *ctx, ctx 974 source3/lib/netapi/group.c LIBNETAPI_REDIRECT_TO_LOCALHOST(ctx, r, NetGroupDelUser); ctx 1130 source3/lib/netapi/group.c WERROR NetGroupEnum_r(struct libnetapi_ctx *ctx, ctx 1159 source3/lib/netapi/group.c werr = libnetapi_open_pipe(ctx, r->in.server_name, ctx 1166 source3/lib/netapi/group.c werr = libnetapi_samr_open_domain(ctx, pipe_cli, ctx 1179 source3/lib/netapi/group.c status = rpccli_samr_QueryDomainInfo(pipe_cli, ctx, ctx 1193 source3/lib/netapi/group.c ctx, ctx 1213 source3/lib/netapi/group.c tmp_werr = convert_samr_disp_groups_to_GROUP_INFO_buffer(ctx, ctx 1229 source3/lib/netapi/group.c if (ctx->disable_policy_handle_cache) { ctx 1230 source3/lib/netapi/group.c libnetapi_samr_close_domain_handle(ctx, &domain_handle); ctx 1231 source3/lib/netapi/group.c libnetapi_samr_close_connect_handle(ctx, &connect_handle); ctx 1241 source3/lib/netapi/group.c WERROR NetGroupEnum_l(struct libnetapi_ctx *ctx, ctx 1244 source3/lib/netapi/group.c LIBNETAPI_REDIRECT_TO_LOCALHOST(ctx, r, NetGroupEnum); ctx 1250 source3/lib/netapi/group.c WERROR NetGroupGetUsers_r(struct libnetapi_ctx *ctx, ctx 1290 source3/lib/netapi/group.c werr = libnetapi_open_pipe(ctx, r->in.server_name, ctx 1297 source3/lib/netapi/group.c werr = libnetapi_samr_open_domain(ctx, pipe_cli, ctx 1310 source3/lib/netapi/group.c status = rpccli_samr_LookupNames(pipe_cli, ctx, ctx 1321 source3/lib/netapi/group.c status = rpccli_samr_OpenGroup(pipe_cli, ctx, ctx 1331 source3/lib/netapi/group.c status = rpccli_samr_QueryGroupMember(pipe_cli, ctx, ctx 1339 source3/lib/netapi/group.c status = rpccli_samr_LookupRids(pipe_cli, ctx, ctx 1356 source3/lib/netapi/group.c status = add_GROUP_USERS_INFO_X_buffer(ctx, ctx 1375 source3/lib/netapi/group.c rpccli_samr_Close(pipe_cli, ctx, &group_handle); ctx 1378 source3/lib/netapi/group.c if (ctx->disable_policy_handle_cache) { ctx 1379 source3/lib/netapi/group.c libnetapi_samr_close_domain_handle(ctx, &domain_handle); ctx 1380 source3/lib/netapi/group.c libnetapi_samr_close_connect_handle(ctx, &connect_handle); ctx 1389 source3/lib/netapi/group.c WERROR NetGroupGetUsers_l(struct libnetapi_ctx *ctx, ctx 1392 source3/lib/netapi/group.c LIBNETAPI_REDIRECT_TO_LOCALHOST(ctx, r, NetGroupGetUsers); ctx 1398 source3/lib/netapi/group.c WERROR NetGroupSetUsers_r(struct libnetapi_ctx *ctx, ctx 1442 source3/lib/netapi/group.c werr = libnetapi_open_pipe(ctx, r->in.server_name, ctx 1449 source3/lib/netapi/group.c werr = libnetapi_samr_open_domain(ctx, pipe_cli, ctx 1462 source3/lib/netapi/group.c status = rpccli_samr_LookupNames(pipe_cli, ctx, ctx 1473 source3/lib/netapi/group.c status = rpccli_samr_OpenGroup(pipe_cli, ctx, ctx 1486 source3/lib/netapi/group.c status = rpccli_samr_QueryGroupInfo(pipe_cli, ctx, ctx 1504 source3/lib/netapi/group.c lsa_names = talloc_array(ctx, struct lsa_String, r->in.num_entries); ctx 1524 source3/lib/netapi/group.c status = rpccli_samr_LookupNames(pipe_cli, ctx, ctx 1538 source3/lib/netapi/group.c status = rpccli_samr_QueryGroupMember(pipe_cli, ctx, ctx 1557 source3/lib/netapi/group.c if (!add_rid_to_array_unique(ctx, ctx 1577 source3/lib/netapi/group.c if (!add_rid_to_array_unique(ctx, ctx 1589 source3/lib/netapi/group.c status = rpccli_samr_AddGroupMember(pipe_cli, ctx, ctx 1602 source3/lib/netapi/group.c status = rpccli_samr_DeleteGroupMember(pipe_cli, ctx, ctx 1615 source3/lib/netapi/group.c rpccli_samr_Close(pipe_cli, ctx, &group_handle); ctx 1618 source3/lib/netapi/group.c if (ctx->disable_policy_handle_cache) { ctx 1619 source3/lib/netapi/group.c libnetapi_samr_close_domain_handle(ctx, &domain_handle); ctx 1620 source3/lib/netapi/group.c libnetapi_samr_close_connect_handle(ctx, &connect_handle); ctx 1629 source3/lib/netapi/group.c WERROR NetGroupSetUsers_l(struct libnetapi_ctx *ctx, ctx 1632 source3/lib/netapi/group.c LIBNETAPI_REDIRECT_TO_LOCALHOST(ctx, r, NetGroupSetUsers); ctx 98 source3/lib/netapi/joindomain.c WERROR NetJoinDomain_r(struct libnetapi_ctx *ctx, ctx 107 source3/lib/netapi/joindomain.c werr = libnetapi_open_pipe(ctx, r->in.server, ctx 115 source3/lib/netapi/joindomain.c encode_wkssvc_join_password_buffer(ctx, ctx 123 source3/lib/netapi/joindomain.c status = rpccli_wkssvc_NetrJoinDomain2(pipe_cli, ctx, ctx 224 source3/lib/netapi/joindomain.c WERROR NetUnjoinDomain_r(struct libnetapi_ctx *ctx, ctx 233 source3/lib/netapi/joindomain.c werr = libnetapi_open_pipe(ctx, r->in.server_name, ctx 241 source3/lib/netapi/joindomain.c encode_wkssvc_join_password_buffer(ctx, ctx 249 source3/lib/netapi/joindomain.c status = rpccli_wkssvc_NetrUnjoinDomain2(pipe_cli, ctx, ctx 271 source3/lib/netapi/joindomain.c WERROR NetGetJoinInformation_r(struct libnetapi_ctx *ctx, ctx 279 source3/lib/netapi/joindomain.c werr = libnetapi_open_pipe(ctx, r->in.server_name, ctx 286 source3/lib/netapi/joindomain.c status = rpccli_wkssvc_NetrGetJoinInformation(pipe_cli, ctx, ctx 296 source3/lib/netapi/joindomain.c *r->out.name_buffer = talloc_strdup(ctx, buffer); ctx 306 source3/lib/netapi/joindomain.c WERROR NetGetJoinInformation_l(struct libnetapi_ctx *ctx, ctx 310 source3/lib/netapi/joindomain.c *r->out.name_buffer = talloc_strdup(ctx, lp_realm()); ctx 312 source3/lib/netapi/joindomain.c *r->out.name_buffer = talloc_strdup(ctx, lp_workgroup()); ctx 336 source3/lib/netapi/joindomain.c WERROR NetGetJoinableOUs_l(struct libnetapi_ctx *ctx, ctx 348 source3/lib/netapi/joindomain.c status = dsgetdcname(ctx, NULL, r->in.domain, ctx 351 source3/lib/netapi/joindomain.c libnetapi_set_error_string(ctx, "%s", ctx 366 source3/lib/netapi/joindomain.c } else if (ctx->username) { ctx 367 source3/lib/netapi/joindomain.c ads->auth.user_name = SMB_STRDUP(ctx->username); ctx 373 source3/lib/netapi/joindomain.c } else if (ctx->password) { ctx 374 source3/lib/netapi/joindomain.c ads->auth.password = SMB_STRDUP(ctx->password); ctx 383 source3/lib/netapi/joindomain.c ads_status = ads_get_joinable_ous(ads, ctx, ctx 401 source3/lib/netapi/joindomain.c WERROR NetGetJoinableOUs_r(struct libnetapi_ctx *ctx, ctx 409 source3/lib/netapi/joindomain.c werr = libnetapi_open_pipe(ctx, r->in.server_name, ctx 417 source3/lib/netapi/joindomain.c encode_wkssvc_join_password_buffer(ctx, ctx 423 source3/lib/netapi/joindomain.c status = rpccli_wkssvc_NetrGetJoinableOus2(pipe_cli, ctx, ctx 443 source3/lib/netapi/joindomain.c WERROR NetRenameMachineInDomain_r(struct libnetapi_ctx *ctx, ctx 451 source3/lib/netapi/joindomain.c werr = libnetapi_open_pipe(ctx, r->in.server_name, ctx 459 source3/lib/netapi/joindomain.c encode_wkssvc_join_password_buffer(ctx, ctx 465 source3/lib/netapi/joindomain.c status = rpccli_wkssvc_NetrRenameMachineInDomain2(pipe_cli, ctx, ctx 484 source3/lib/netapi/joindomain.c WERROR NetRenameMachineInDomain_l(struct libnetapi_ctx *ctx, ctx 487 source3/lib/netapi/joindomain.c LIBNETAPI_REDIRECT_TO_LOCALHOST(ctx, r, NetRenameMachineInDomain); ctx 39 source3/lib/netapi/libnetapi.c struct libnetapi_ctx *ctx = NULL; ctx 43 source3/lib/netapi/libnetapi.c status = libnetapi_getctx(&ctx); ctx 63 source3/lib/netapi/libnetapi.c werr = NetJoinDomain_l(ctx, &r); ctx 65 source3/lib/netapi/libnetapi.c werr = NetJoinDomain_r(ctx, &r); ctx 87 source3/lib/netapi/libnetapi.c struct libnetapi_ctx *ctx = NULL; ctx 91 source3/lib/netapi/libnetapi.c status = libnetapi_getctx(&ctx); ctx 109 source3/lib/netapi/libnetapi.c werr = NetUnjoinDomain_l(ctx, &r); ctx 111 source3/lib/netapi/libnetapi.c werr = NetUnjoinDomain_r(ctx, &r); ctx 132 source3/lib/netapi/libnetapi.c struct libnetapi_ctx *ctx = NULL; ctx 136 source3/lib/netapi/libnetapi.c status = libnetapi_getctx(&ctx); ctx 153 source3/lib/netapi/libnetapi.c werr = NetGetJoinInformation_l(ctx, &r); ctx 155 source3/lib/netapi/libnetapi.c werr = NetGetJoinInformation_r(ctx, &r); ctx 179 source3/lib/netapi/libnetapi.c struct libnetapi_ctx *ctx = NULL; ctx 183 source3/lib/netapi/libnetapi.c status = libnetapi_getctx(&ctx); ctx 203 source3/lib/netapi/libnetapi.c werr = NetGetJoinableOUs_l(ctx, &r); ctx 205 source3/lib/netapi/libnetapi.c werr = NetGetJoinableOUs_r(ctx, &r); ctx 228 source3/lib/netapi/libnetapi.c struct libnetapi_ctx *ctx = NULL; ctx 232 source3/lib/netapi/libnetapi.c status = libnetapi_getctx(&ctx); ctx 251 source3/lib/netapi/libnetapi.c werr = NetRenameMachineInDomain_l(ctx, &r); ctx 253 source3/lib/netapi/libnetapi.c werr = NetRenameMachineInDomain_r(ctx, &r); ctx 274 source3/lib/netapi/libnetapi.c struct libnetapi_ctx *ctx = NULL; ctx 278 source3/lib/netapi/libnetapi.c status = libnetapi_getctx(&ctx); ctx 295 source3/lib/netapi/libnetapi.c werr = NetServerGetInfo_l(ctx, &r); ctx 297 source3/lib/netapi/libnetapi.c werr = NetServerGetInfo_r(ctx, &r); ctx 319 source3/lib/netapi/libnetapi.c struct libnetapi_ctx *ctx = NULL; ctx 323 source3/lib/netapi/libnetapi.c status = libnetapi_getctx(&ctx); ctx 341 source3/lib/netapi/libnetapi.c werr = NetServerSetInfo_l(ctx, &r); ctx 343 source3/lib/netapi/libnetapi.c werr = NetServerSetInfo_r(ctx, &r); ctx 364 source3/lib/netapi/libnetapi.c struct libnetapi_ctx *ctx = NULL; ctx 368 source3/lib/netapi/libnetapi.c status = libnetapi_getctx(&ctx); ctx 385 source3/lib/netapi/libnetapi.c werr = NetGetDCName_l(ctx, &r); ctx 387 source3/lib/netapi/libnetapi.c werr = NetGetDCName_r(ctx, &r); ctx 408 source3/lib/netapi/libnetapi.c struct libnetapi_ctx *ctx = NULL; ctx 412 source3/lib/netapi/libnetapi.c status = libnetapi_getctx(&ctx); ctx 429 source3/lib/netapi/libnetapi.c werr = NetGetAnyDCName_l(ctx, &r); ctx 431 source3/lib/netapi/libnetapi.c werr = NetGetAnyDCName_r(ctx, &r); ctx 455 source3/lib/netapi/libnetapi.c struct libnetapi_ctx *ctx = NULL; ctx 459 source3/lib/netapi/libnetapi.c status = libnetapi_getctx(&ctx); ctx 479 source3/lib/netapi/libnetapi.c werr = DsGetDcName_l(ctx, &r); ctx 481 source3/lib/netapi/libnetapi.c werr = DsGetDcName_r(ctx, &r); ctx 503 source3/lib/netapi/libnetapi.c struct libnetapi_ctx *ctx = NULL; ctx 507 source3/lib/netapi/libnetapi.c status = libnetapi_getctx(&ctx); ctx 525 source3/lib/netapi/libnetapi.c werr = NetUserAdd_l(ctx, &r); ctx 527 source3/lib/netapi/libnetapi.c werr = NetUserAdd_r(ctx, &r); ctx 547 source3/lib/netapi/libnetapi.c struct libnetapi_ctx *ctx = NULL; ctx 551 source3/lib/netapi/libnetapi.c status = libnetapi_getctx(&ctx); ctx 567 source3/lib/netapi/libnetapi.c werr = NetUserDel_l(ctx, &r); ctx 569 source3/lib/netapi/libnetapi.c werr = NetUserDel_r(ctx, &r); ctx 595 source3/lib/netapi/libnetapi.c struct libnetapi_ctx *ctx = NULL; ctx 599 source3/lib/netapi/libnetapi.c status = libnetapi_getctx(&ctx); ctx 622 source3/lib/netapi/libnetapi.c werr = NetUserEnum_l(ctx, &r); ctx 624 source3/lib/netapi/libnetapi.c werr = NetUserEnum_r(ctx, &r); ctx 646 source3/lib/netapi/libnetapi.c struct libnetapi_ctx *ctx = NULL; ctx 650 source3/lib/netapi/libnetapi.c status = libnetapi_getctx(&ctx); ctx 668 source3/lib/netapi/libnetapi.c werr = NetUserChangePassword_l(ctx, &r); ctx 670 source3/lib/netapi/libnetapi.c werr = NetUserChangePassword_r(ctx, &r); ctx 692 source3/lib/netapi/libnetapi.c struct libnetapi_ctx *ctx = NULL; ctx 696 source3/lib/netapi/libnetapi.c status = libnetapi_getctx(&ctx); ctx 714 source3/lib/netapi/libnetapi.c werr = NetUserGetInfo_l(ctx, &r); ctx 716 source3/lib/netapi/libnetapi.c werr = NetUserGetInfo_r(ctx, &r); ctx 739 source3/lib/netapi/libnetapi.c struct libnetapi_ctx *ctx = NULL; ctx 743 source3/lib/netapi/libnetapi.c status = libnetapi_getctx(&ctx); ctx 762 source3/lib/netapi/libnetapi.c werr = NetUserSetInfo_l(ctx, &r); ctx 764 source3/lib/netapi/libnetapi.c werr = NetUserSetInfo_r(ctx, &r); ctx 789 source3/lib/netapi/libnetapi.c struct libnetapi_ctx *ctx = NULL; ctx 793 source3/lib/netapi/libnetapi.c status = libnetapi_getctx(&ctx); ctx 814 source3/lib/netapi/libnetapi.c werr = NetUserGetGroups_l(ctx, &r); ctx 816 source3/lib/netapi/libnetapi.c werr = NetUserGetGroups_r(ctx, &r); ctx 839 source3/lib/netapi/libnetapi.c struct libnetapi_ctx *ctx = NULL; ctx 843 source3/lib/netapi/libnetapi.c status = libnetapi_getctx(&ctx); ctx 862 source3/lib/netapi/libnetapi.c werr = NetUserSetGroups_l(ctx, &r); ctx 864 source3/lib/netapi/libnetapi.c werr = NetUserSetGroups_r(ctx, &r); ctx 890 source3/lib/netapi/libnetapi.c struct libnetapi_ctx *ctx = NULL; ctx 894 source3/lib/netapi/libnetapi.c status = libnetapi_getctx(&ctx); ctx 916 source3/lib/netapi/libnetapi.c werr = NetUserGetLocalGroups_l(ctx, &r); ctx 918 source3/lib/netapi/libnetapi.c werr = NetUserGetLocalGroups_r(ctx, &r); ctx 939 source3/lib/netapi/libnetapi.c struct libnetapi_ctx *ctx = NULL; ctx 943 source3/lib/netapi/libnetapi.c status = libnetapi_getctx(&ctx); ctx 960 source3/lib/netapi/libnetapi.c werr = NetUserModalsGet_l(ctx, &r); ctx 962 source3/lib/netapi/libnetapi.c werr = NetUserModalsGet_r(ctx, &r); ctx 984 source3/lib/netapi/libnetapi.c struct libnetapi_ctx *ctx = NULL; ctx 988 source3/lib/netapi/libnetapi.c status = libnetapi_getctx(&ctx); ctx 1006 source3/lib/netapi/libnetapi.c werr = NetUserModalsSet_l(ctx, &r); ctx 1008 source3/lib/netapi/libnetapi.c werr = NetUserModalsSet_r(ctx, &r); ctx 1033 source3/lib/netapi/libnetapi.c struct libnetapi_ctx *ctx = NULL; ctx 1037 source3/lib/netapi/libnetapi.c status = libnetapi_getctx(&ctx); ctx 1058 source3/lib/netapi/libnetapi.c werr = NetQueryDisplayInformation_l(ctx, &r); ctx 1060 source3/lib/netapi/libnetapi.c werr = NetQueryDisplayInformation_r(ctx, &r); ctx 1082 source3/lib/netapi/libnetapi.c struct libnetapi_ctx *ctx = NULL; ctx 1086 source3/lib/netapi/libnetapi.c status = libnetapi_getctx(&ctx); ctx 1104 source3/lib/netapi/libnetapi.c werr = NetGroupAdd_l(ctx, &r); ctx 1106 source3/lib/netapi/libnetapi.c werr = NetGroupAdd_r(ctx, &r); ctx 1126 source3/lib/netapi/libnetapi.c struct libnetapi_ctx *ctx = NULL; ctx 1130 source3/lib/netapi/libnetapi.c status = libnetapi_getctx(&ctx); ctx 1146 source3/lib/netapi/libnetapi.c werr = NetGroupDel_l(ctx, &r); ctx 1148 source3/lib/netapi/libnetapi.c werr = NetGroupDel_r(ctx, &r); ctx 1173 source3/lib/netapi/libnetapi.c struct libnetapi_ctx *ctx = NULL; ctx 1177 source3/lib/netapi/libnetapi.c status = libnetapi_getctx(&ctx); ctx 1199 source3/lib/netapi/libnetapi.c werr = NetGroupEnum_l(ctx, &r); ctx 1201 source3/lib/netapi/libnetapi.c werr = NetGroupEnum_r(ctx, &r); ctx 1224 source3/lib/netapi/libnetapi.c struct libnetapi_ctx *ctx = NULL; ctx 1228 source3/lib/netapi/libnetapi.c status = libnetapi_getctx(&ctx); ctx 1247 source3/lib/netapi/libnetapi.c werr = NetGroupSetInfo_l(ctx, &r); ctx 1249 source3/lib/netapi/libnetapi.c werr = NetGroupSetInfo_r(ctx, &r); ctx 1271 source3/lib/netapi/libnetapi.c struct libnetapi_ctx *ctx = NULL; ctx 1275 source3/lib/netapi/libnetapi.c status = libnetapi_getctx(&ctx); ctx 1293 source3/lib/netapi/libnetapi.c werr = NetGroupGetInfo_l(ctx, &r); ctx 1295 source3/lib/netapi/libnetapi.c werr = NetGroupGetInfo_r(ctx, &r); ctx 1316 source3/lib/netapi/libnetapi.c struct libnetapi_ctx *ctx = NULL; ctx 1320 source3/lib/netapi/libnetapi.c status = libnetapi_getctx(&ctx); ctx 1337 source3/lib/netapi/libnetapi.c werr = NetGroupAddUser_l(ctx, &r); ctx 1339 source3/lib/netapi/libnetapi.c werr = NetGroupAddUser_r(ctx, &r); ctx 1360 source3/lib/netapi/libnetapi.c struct libnetapi_ctx *ctx = NULL; ctx 1364 source3/lib/netapi/libnetapi.c status = libnetapi_getctx(&ctx); ctx 1381 source3/lib/netapi/libnetapi.c werr = NetGroupDelUser_l(ctx, &r); ctx 1383 source3/lib/netapi/libnetapi.c werr = NetGroupDelUser_r(ctx, &r); ctx 1409 source3/lib/netapi/libnetapi.c struct libnetapi_ctx *ctx = NULL; ctx 1413 source3/lib/netapi/libnetapi.c status = libnetapi_getctx(&ctx); ctx 1436 source3/lib/netapi/libnetapi.c werr = NetGroupGetUsers_l(ctx, &r); ctx 1438 source3/lib/netapi/libnetapi.c werr = NetGroupGetUsers_r(ctx, &r); ctx 1461 source3/lib/netapi/libnetapi.c struct libnetapi_ctx *ctx = NULL; ctx 1465 source3/lib/netapi/libnetapi.c status = libnetapi_getctx(&ctx); ctx 1484 source3/lib/netapi/libnetapi.c werr = NetGroupSetUsers_l(ctx, &r); ctx 1486 source3/lib/netapi/libnetapi.c werr = NetGroupSetUsers_r(ctx, &r); ctx 1508 source3/lib/netapi/libnetapi.c struct libnetapi_ctx *ctx = NULL; ctx 1512 source3/lib/netapi/libnetapi.c status = libnetapi_getctx(&ctx); ctx 1530 source3/lib/netapi/libnetapi.c werr = NetLocalGroupAdd_l(ctx, &r); ctx 1532 source3/lib/netapi/libnetapi.c werr = NetLocalGroupAdd_r(ctx, &r); ctx 1552 source3/lib/netapi/libnetapi.c struct libnetapi_ctx *ctx = NULL; ctx 1556 source3/lib/netapi/libnetapi.c status = libnetapi_getctx(&ctx); ctx 1572 source3/lib/netapi/libnetapi.c werr = NetLocalGroupDel_l(ctx, &r); ctx 1574 source3/lib/netapi/libnetapi.c werr = NetLocalGroupDel_r(ctx, &r); ctx 1596 source3/lib/netapi/libnetapi.c struct libnetapi_ctx *ctx = NULL; ctx 1600 source3/lib/netapi/libnetapi.c status = libnetapi_getctx(&ctx); ctx 1618 source3/lib/netapi/libnetapi.c werr = NetLocalGroupGetInfo_l(ctx, &r); ctx 1620 source3/lib/netapi/libnetapi.c werr = NetLocalGroupGetInfo_r(ctx, &r); ctx 1643 source3/lib/netapi/libnetapi.c struct libnetapi_ctx *ctx = NULL; ctx 1647 source3/lib/netapi/libnetapi.c status = libnetapi_getctx(&ctx); ctx 1666 source3/lib/netapi/libnetapi.c werr = NetLocalGroupSetInfo_l(ctx, &r); ctx 1668 source3/lib/netapi/libnetapi.c werr = NetLocalGroupSetInfo_r(ctx, &r); ctx 1693 source3/lib/netapi/libnetapi.c struct libnetapi_ctx *ctx = NULL; ctx 1697 source3/lib/netapi/libnetapi.c status = libnetapi_getctx(&ctx); ctx 1719 source3/lib/netapi/libnetapi.c werr = NetLocalGroupEnum_l(ctx, &r); ctx 1721 source3/lib/netapi/libnetapi.c werr = NetLocalGroupEnum_r(ctx, &r); ctx 1744 source3/lib/netapi/libnetapi.c struct libnetapi_ctx *ctx = NULL; ctx 1748 source3/lib/netapi/libnetapi.c status = libnetapi_getctx(&ctx); ctx 1767 source3/lib/netapi/libnetapi.c werr = NetLocalGroupAddMembers_l(ctx, &r); ctx 1769 source3/lib/netapi/libnetapi.c werr = NetLocalGroupAddMembers_r(ctx, &r); ctx 1792 source3/lib/netapi/libnetapi.c struct libnetapi_ctx *ctx = NULL; ctx 1796 source3/lib/netapi/libnetapi.c status = libnetapi_getctx(&ctx); ctx 1815 source3/lib/netapi/libnetapi.c werr = NetLocalGroupDelMembers_l(ctx, &r); ctx 1817 source3/lib/netapi/libnetapi.c werr = NetLocalGroupDelMembers_r(ctx, &r); ctx 1843 source3/lib/netapi/libnetapi.c struct libnetapi_ctx *ctx = NULL; ctx 1847 source3/lib/netapi/libnetapi.c status = libnetapi_getctx(&ctx); ctx 1870 source3/lib/netapi/libnetapi.c werr = NetLocalGroupGetMembers_l(ctx, &r); ctx 1872 source3/lib/netapi/libnetapi.c werr = NetLocalGroupGetMembers_r(ctx, &r); ctx 1895 source3/lib/netapi/libnetapi.c struct libnetapi_ctx *ctx = NULL; ctx 1899 source3/lib/netapi/libnetapi.c status = libnetapi_getctx(&ctx); ctx 1918 source3/lib/netapi/libnetapi.c werr = NetLocalGroupSetMembers_l(ctx, &r); ctx 1920 source3/lib/netapi/libnetapi.c werr = NetLocalGroupSetMembers_r(ctx, &r); ctx 1940 source3/lib/netapi/libnetapi.c struct libnetapi_ctx *ctx = NULL; ctx 1944 source3/lib/netapi/libnetapi.c status = libnetapi_getctx(&ctx); ctx 1960 source3/lib/netapi/libnetapi.c werr = NetRemoteTOD_l(ctx, &r); ctx 1962 source3/lib/netapi/libnetapi.c werr = NetRemoteTOD_r(ctx, &r); ctx 1984 source3/lib/netapi/libnetapi.c struct libnetapi_ctx *ctx = NULL; ctx 1988 source3/lib/netapi/libnetapi.c status = libnetapi_getctx(&ctx); ctx 2006 source3/lib/netapi/libnetapi.c werr = NetShareAdd_l(ctx, &r); ctx 2008 source3/lib/netapi/libnetapi.c werr = NetShareAdd_r(ctx, &r); ctx 2029 source3/lib/netapi/libnetapi.c struct libnetapi_ctx *ctx = NULL; ctx 2033 source3/lib/netapi/libnetapi.c status = libnetapi_getctx(&ctx); ctx 2050 source3/lib/netapi/libnetapi.c werr = NetShareDel_l(ctx, &r); ctx 2052 source3/lib/netapi/libnetapi.c werr = NetShareDel_r(ctx, &r); ctx 2077 source3/lib/netapi/libnetapi.c struct libnetapi_ctx *ctx = NULL; ctx 2081 source3/lib/netapi/libnetapi.c status = libnetapi_getctx(&ctx); ctx 2103 source3/lib/netapi/libnetapi.c werr = NetShareEnum_l(ctx, &r); ctx 2105 source3/lib/netapi/libnetapi.c werr = NetShareEnum_r(ctx, &r); ctx 2127 source3/lib/netapi/libnetapi.c struct libnetapi_ctx *ctx = NULL; ctx 2131 source3/lib/netapi/libnetapi.c status = libnetapi_getctx(&ctx); ctx 2149 source3/lib/netapi/libnetapi.c werr = NetShareGetInfo_l(ctx, &r); ctx 2151 source3/lib/netapi/libnetapi.c werr = NetShareGetInfo_r(ctx, &r); ctx 2174 source3/lib/netapi/libnetapi.c struct libnetapi_ctx *ctx = NULL; ctx 2178 source3/lib/netapi/libnetapi.c status = libnetapi_getctx(&ctx); ctx 2197 source3/lib/netapi/libnetapi.c werr = NetShareSetInfo_l(ctx, &r); ctx 2199 source3/lib/netapi/libnetapi.c werr = NetShareSetInfo_r(ctx, &r); ctx 2219 source3/lib/netapi/libnetapi.c struct libnetapi_ctx *ctx = NULL; ctx 2223 source3/lib/netapi/libnetapi.c status = libnetapi_getctx(&ctx); ctx 2239 source3/lib/netapi/libnetapi.c werr = NetFileClose_l(ctx, &r); ctx 2241 source3/lib/netapi/libnetapi.c werr = NetFileClose_r(ctx, &r); ctx 2263 source3/lib/netapi/libnetapi.c struct libnetapi_ctx *ctx = NULL; ctx 2267 source3/lib/netapi/libnetapi.c status = libnetapi_getctx(&ctx); ctx 2285 source3/lib/netapi/libnetapi.c werr = NetFileGetInfo_l(ctx, &r); ctx 2287 source3/lib/netapi/libnetapi.c werr = NetFileGetInfo_r(ctx, &r); ctx 2314 source3/lib/netapi/libnetapi.c struct libnetapi_ctx *ctx = NULL; ctx 2318 source3/lib/netapi/libnetapi.c status = libnetapi_getctx(&ctx); ctx 2342 source3/lib/netapi/libnetapi.c werr = NetFileEnum_l(ctx, &r); ctx 2344 source3/lib/netapi/libnetapi.c werr = NetFileEnum_r(ctx, &r); ctx 2367 source3/lib/netapi/libnetapi.c struct libnetapi_ctx *ctx = NULL; ctx 2371 source3/lib/netapi/libnetapi.c status = libnetapi_getctx(&ctx); ctx 2390 source3/lib/netapi/libnetapi.c werr = NetShutdownInit_l(ctx, &r); ctx 2392 source3/lib/netapi/libnetapi.c werr = NetShutdownInit_r(ctx, &r); ctx 2411 source3/lib/netapi/libnetapi.c struct libnetapi_ctx *ctx = NULL; ctx 2415 source3/lib/netapi/libnetapi.c status = libnetapi_getctx(&ctx); ctx 2430 source3/lib/netapi/libnetapi.c werr = NetShutdownAbort_l(ctx, &r); ctx 2432 source3/lib/netapi/libnetapi.c werr = NetShutdownAbort_r(ctx, &r); ctx 9 source3/lib/netapi/libnetapi.h WERROR NetJoinDomain_r(struct libnetapi_ctx *ctx, ctx 11 source3/lib/netapi/libnetapi.h WERROR NetJoinDomain_l(struct libnetapi_ctx *ctx, ctx 17 source3/lib/netapi/libnetapi.h WERROR NetUnjoinDomain_r(struct libnetapi_ctx *ctx, ctx 19 source3/lib/netapi/libnetapi.h WERROR NetUnjoinDomain_l(struct libnetapi_ctx *ctx, ctx 24 source3/lib/netapi/libnetapi.h WERROR NetGetJoinInformation_r(struct libnetapi_ctx *ctx, ctx 26 source3/lib/netapi/libnetapi.h WERROR NetGetJoinInformation_l(struct libnetapi_ctx *ctx, ctx 34 source3/lib/netapi/libnetapi.h WERROR NetGetJoinableOUs_r(struct libnetapi_ctx *ctx, ctx 36 source3/lib/netapi/libnetapi.h WERROR NetGetJoinableOUs_l(struct libnetapi_ctx *ctx, ctx 43 source3/lib/netapi/libnetapi.h WERROR NetRenameMachineInDomain_r(struct libnetapi_ctx *ctx, ctx 45 source3/lib/netapi/libnetapi.h WERROR NetRenameMachineInDomain_l(struct libnetapi_ctx *ctx, ctx 50 source3/lib/netapi/libnetapi.h WERROR NetServerGetInfo_r(struct libnetapi_ctx *ctx, ctx 52 source3/lib/netapi/libnetapi.h WERROR NetServerGetInfo_l(struct libnetapi_ctx *ctx, ctx 58 source3/lib/netapi/libnetapi.h WERROR NetServerSetInfo_r(struct libnetapi_ctx *ctx, ctx 60 source3/lib/netapi/libnetapi.h WERROR NetServerSetInfo_l(struct libnetapi_ctx *ctx, ctx 65 source3/lib/netapi/libnetapi.h WERROR NetGetDCName_r(struct libnetapi_ctx *ctx, ctx 67 source3/lib/netapi/libnetapi.h WERROR NetGetDCName_l(struct libnetapi_ctx *ctx, ctx 72 source3/lib/netapi/libnetapi.h WERROR NetGetAnyDCName_r(struct libnetapi_ctx *ctx, ctx 74 source3/lib/netapi/libnetapi.h WERROR NetGetAnyDCName_l(struct libnetapi_ctx *ctx, ctx 82 source3/lib/netapi/libnetapi.h WERROR DsGetDcName_r(struct libnetapi_ctx *ctx, ctx 84 source3/lib/netapi/libnetapi.h WERROR DsGetDcName_l(struct libnetapi_ctx *ctx, ctx 90 source3/lib/netapi/libnetapi.h WERROR NetUserAdd_r(struct libnetapi_ctx *ctx, ctx 92 source3/lib/netapi/libnetapi.h WERROR NetUserAdd_l(struct libnetapi_ctx *ctx, ctx 96 source3/lib/netapi/libnetapi.h WERROR NetUserDel_r(struct libnetapi_ctx *ctx, ctx 98 source3/lib/netapi/libnetapi.h WERROR NetUserDel_l(struct libnetapi_ctx *ctx, ctx 108 source3/lib/netapi/libnetapi.h WERROR NetUserEnum_r(struct libnetapi_ctx *ctx, ctx 110 source3/lib/netapi/libnetapi.h WERROR NetUserEnum_l(struct libnetapi_ctx *ctx, ctx 116 source3/lib/netapi/libnetapi.h WERROR NetUserChangePassword_r(struct libnetapi_ctx *ctx, ctx 118 source3/lib/netapi/libnetapi.h WERROR NetUserChangePassword_l(struct libnetapi_ctx *ctx, ctx 124 source3/lib/netapi/libnetapi.h WERROR NetUserGetInfo_r(struct libnetapi_ctx *ctx, ctx 126 source3/lib/netapi/libnetapi.h WERROR NetUserGetInfo_l(struct libnetapi_ctx *ctx, ctx 133 source3/lib/netapi/libnetapi.h WERROR NetUserSetInfo_r(struct libnetapi_ctx *ctx, ctx 135 source3/lib/netapi/libnetapi.h WERROR NetUserSetInfo_l(struct libnetapi_ctx *ctx, ctx 144 source3/lib/netapi/libnetapi.h WERROR NetUserGetGroups_r(struct libnetapi_ctx *ctx, ctx 146 source3/lib/netapi/libnetapi.h WERROR NetUserGetGroups_l(struct libnetapi_ctx *ctx, ctx 153 source3/lib/netapi/libnetapi.h WERROR NetUserSetGroups_r(struct libnetapi_ctx *ctx, ctx 155 source3/lib/netapi/libnetapi.h WERROR NetUserSetGroups_l(struct libnetapi_ctx *ctx, ctx 165 source3/lib/netapi/libnetapi.h WERROR NetUserGetLocalGroups_r(struct libnetapi_ctx *ctx, ctx 167 source3/lib/netapi/libnetapi.h WERROR NetUserGetLocalGroups_l(struct libnetapi_ctx *ctx, ctx 172 source3/lib/netapi/libnetapi.h WERROR NetUserModalsGet_r(struct libnetapi_ctx *ctx, ctx 174 source3/lib/netapi/libnetapi.h WERROR NetUserModalsGet_l(struct libnetapi_ctx *ctx, ctx 180 source3/lib/netapi/libnetapi.h WERROR NetUserModalsSet_r(struct libnetapi_ctx *ctx, ctx 182 source3/lib/netapi/libnetapi.h WERROR NetUserModalsSet_l(struct libnetapi_ctx *ctx, ctx 191 source3/lib/netapi/libnetapi.h WERROR NetQueryDisplayInformation_r(struct libnetapi_ctx *ctx, ctx 193 source3/lib/netapi/libnetapi.h WERROR NetQueryDisplayInformation_l(struct libnetapi_ctx *ctx, ctx 199 source3/lib/netapi/libnetapi.h WERROR NetGroupAdd_r(struct libnetapi_ctx *ctx, ctx 201 source3/lib/netapi/libnetapi.h WERROR NetGroupAdd_l(struct libnetapi_ctx *ctx, ctx 205 source3/lib/netapi/libnetapi.h WERROR NetGroupDel_r(struct libnetapi_ctx *ctx, ctx 207 source3/lib/netapi/libnetapi.h WERROR NetGroupDel_l(struct libnetapi_ctx *ctx, ctx 216 source3/lib/netapi/libnetapi.h WERROR NetGroupEnum_r(struct libnetapi_ctx *ctx, ctx 218 source3/lib/netapi/libnetapi.h WERROR NetGroupEnum_l(struct libnetapi_ctx *ctx, ctx 225 source3/lib/netapi/libnetapi.h WERROR NetGroupSetInfo_r(struct libnetapi_ctx *ctx, ctx 227 source3/lib/netapi/libnetapi.h WERROR NetGroupSetInfo_l(struct libnetapi_ctx *ctx, ctx 233 source3/lib/netapi/libnetapi.h WERROR NetGroupGetInfo_r(struct libnetapi_ctx *ctx, ctx 235 source3/lib/netapi/libnetapi.h WERROR NetGroupGetInfo_l(struct libnetapi_ctx *ctx, ctx 240 source3/lib/netapi/libnetapi.h WERROR NetGroupAddUser_r(struct libnetapi_ctx *ctx, ctx 242 source3/lib/netapi/libnetapi.h WERROR NetGroupAddUser_l(struct libnetapi_ctx *ctx, ctx 247 source3/lib/netapi/libnetapi.h WERROR NetGroupDelUser_r(struct libnetapi_ctx *ctx, ctx 249 source3/lib/netapi/libnetapi.h WERROR NetGroupDelUser_l(struct libnetapi_ctx *ctx, ctx 259 source3/lib/netapi/libnetapi.h WERROR NetGroupGetUsers_r(struct libnetapi_ctx *ctx, ctx 261 source3/lib/netapi/libnetapi.h WERROR NetGroupGetUsers_l(struct libnetapi_ctx *ctx, ctx 268 source3/lib/netapi/libnetapi.h WERROR NetGroupSetUsers_r(struct libnetapi_ctx *ctx, ctx 270 source3/lib/netapi/libnetapi.h WERROR NetGroupSetUsers_l(struct libnetapi_ctx *ctx, ctx 276 source3/lib/netapi/libnetapi.h WERROR NetLocalGroupAdd_r(struct libnetapi_ctx *ctx, ctx 278 source3/lib/netapi/libnetapi.h WERROR NetLocalGroupAdd_l(struct libnetapi_ctx *ctx, ctx 282 source3/lib/netapi/libnetapi.h WERROR NetLocalGroupDel_r(struct libnetapi_ctx *ctx, ctx 284 source3/lib/netapi/libnetapi.h WERROR NetLocalGroupDel_l(struct libnetapi_ctx *ctx, ctx 290 source3/lib/netapi/libnetapi.h WERROR NetLocalGroupGetInfo_r(struct libnetapi_ctx *ctx, ctx 292 source3/lib/netapi/libnetapi.h WERROR NetLocalGroupGetInfo_l(struct libnetapi_ctx *ctx, ctx 299 source3/lib/netapi/libnetapi.h WERROR NetLocalGroupSetInfo_r(struct libnetapi_ctx *ctx, ctx 301 source3/lib/netapi/libnetapi.h WERROR NetLocalGroupSetInfo_l(struct libnetapi_ctx *ctx, ctx 310 source3/lib/netapi/libnetapi.h WERROR NetLocalGroupEnum_r(struct libnetapi_ctx *ctx, ctx 312 source3/lib/netapi/libnetapi.h WERROR NetLocalGroupEnum_l(struct libnetapi_ctx *ctx, ctx 319 source3/lib/netapi/libnetapi.h WERROR NetLocalGroupAddMembers_r(struct libnetapi_ctx *ctx, ctx 321 source3/lib/netapi/libnetapi.h WERROR NetLocalGroupAddMembers_l(struct libnetapi_ctx *ctx, ctx 328 source3/lib/netapi/libnetapi.h WERROR NetLocalGroupDelMembers_r(struct libnetapi_ctx *ctx, ctx 330 source3/lib/netapi/libnetapi.h WERROR NetLocalGroupDelMembers_l(struct libnetapi_ctx *ctx, ctx 340 source3/lib/netapi/libnetapi.h WERROR NetLocalGroupGetMembers_r(struct libnetapi_ctx *ctx, ctx 342 source3/lib/netapi/libnetapi.h WERROR NetLocalGroupGetMembers_l(struct libnetapi_ctx *ctx, ctx 349 source3/lib/netapi/libnetapi.h WERROR NetLocalGroupSetMembers_r(struct libnetapi_ctx *ctx, ctx 351 source3/lib/netapi/libnetapi.h WERROR NetLocalGroupSetMembers_l(struct libnetapi_ctx *ctx, ctx 355 source3/lib/netapi/libnetapi.h WERROR NetRemoteTOD_r(struct libnetapi_ctx *ctx, ctx 357 source3/lib/netapi/libnetapi.h WERROR NetRemoteTOD_l(struct libnetapi_ctx *ctx, ctx 363 source3/lib/netapi/libnetapi.h WERROR NetShareAdd_r(struct libnetapi_ctx *ctx, ctx 365 source3/lib/netapi/libnetapi.h WERROR NetShareAdd_l(struct libnetapi_ctx *ctx, ctx 370 source3/lib/netapi/libnetapi.h WERROR NetShareDel_r(struct libnetapi_ctx *ctx, ctx 372 source3/lib/netapi/libnetapi.h WERROR NetShareDel_l(struct libnetapi_ctx *ctx, ctx 381 source3/lib/netapi/libnetapi.h WERROR NetShareEnum_r(struct libnetapi_ctx *ctx, ctx 383 source3/lib/netapi/libnetapi.h WERROR NetShareEnum_l(struct libnetapi_ctx *ctx, ctx 389 source3/lib/netapi/libnetapi.h WERROR NetShareGetInfo_r(struct libnetapi_ctx *ctx, ctx 391 source3/lib/netapi/libnetapi.h WERROR NetShareGetInfo_l(struct libnetapi_ctx *ctx, ctx 398 source3/lib/netapi/libnetapi.h WERROR NetShareSetInfo_r(struct libnetapi_ctx *ctx, ctx 400 source3/lib/netapi/libnetapi.h WERROR NetShareSetInfo_l(struct libnetapi_ctx *ctx, ctx 404 source3/lib/netapi/libnetapi.h WERROR NetFileClose_r(struct libnetapi_ctx *ctx, ctx 406 source3/lib/netapi/libnetapi.h WERROR NetFileClose_l(struct libnetapi_ctx *ctx, ctx 412 source3/lib/netapi/libnetapi.h WERROR NetFileGetInfo_r(struct libnetapi_ctx *ctx, ctx 414 source3/lib/netapi/libnetapi.h WERROR NetFileGetInfo_l(struct libnetapi_ctx *ctx, ctx 425 source3/lib/netapi/libnetapi.h WERROR NetFileEnum_r(struct libnetapi_ctx *ctx, ctx 427 source3/lib/netapi/libnetapi.h WERROR NetFileEnum_l(struct libnetapi_ctx *ctx, ctx 434 source3/lib/netapi/libnetapi.h WERROR NetShutdownInit_r(struct libnetapi_ctx *ctx, ctx 436 source3/lib/netapi/libnetapi.h WERROR NetShutdownInit_l(struct libnetapi_ctx *ctx, ctx 439 source3/lib/netapi/libnetapi.h WERROR NetShutdownAbort_r(struct libnetapi_ctx *ctx, ctx 441 source3/lib/netapi/libnetapi.h WERROR NetShutdownAbort_l(struct libnetapi_ctx *ctx, ctx 113 source3/lib/netapi/localgroup.c WERROR NetLocalGroupAdd_r(struct libnetapi_ctx *ctx, ctx 152 source3/lib/netapi/localgroup.c werr = libnetapi_open_pipe(ctx, r->in.server_name, ctx 159 source3/lib/netapi/localgroup.c werr = libnetapi_samr_open_builtin_domain(ctx, pipe_cli, ctx 169 source3/lib/netapi/localgroup.c status = libnetapi_samr_lookup_and_open_alias(ctx, pipe_cli, ctx 174 source3/lib/netapi/localgroup.c if (ctx->disable_policy_handle_cache) { ctx 175 source3/lib/netapi/localgroup.c libnetapi_samr_close_builtin_handle(ctx, &builtin_handle); ctx 183 source3/lib/netapi/localgroup.c werr = libnetapi_samr_open_domain(ctx, pipe_cli, ctx 197 source3/lib/netapi/localgroup.c status = rpccli_samr_CreateDomAlias(pipe_cli, ctx, ctx 215 source3/lib/netapi/localgroup.c status = rpccli_samr_SetAliasInfo(pipe_cli, ctx, ctx 229 source3/lib/netapi/localgroup.c rpccli_samr_Close(pipe_cli, ctx, &alias_handle); ctx 232 source3/lib/netapi/localgroup.c if (ctx->disable_policy_handle_cache) { ctx 233 source3/lib/netapi/localgroup.c libnetapi_samr_close_domain_handle(ctx, &domain_handle); ctx 234 source3/lib/netapi/localgroup.c libnetapi_samr_close_builtin_handle(ctx, &builtin_handle); ctx 235 source3/lib/netapi/localgroup.c libnetapi_samr_close_connect_handle(ctx, &connect_handle); ctx 244 source3/lib/netapi/localgroup.c WERROR NetLocalGroupAdd_l(struct libnetapi_ctx *ctx, ctx 247 source3/lib/netapi/localgroup.c LIBNETAPI_REDIRECT_TO_LOCALHOST(ctx, r, NetLocalGroupAdd); ctx 254 source3/lib/netapi/localgroup.c WERROR NetLocalGroupDel_r(struct libnetapi_ctx *ctx, ctx 272 source3/lib/netapi/localgroup.c werr = libnetapi_open_pipe(ctx, r->in.server_name, ctx 279 source3/lib/netapi/localgroup.c werr = libnetapi_samr_open_builtin_domain(ctx, pipe_cli, ctx 289 source3/lib/netapi/localgroup.c status = libnetapi_samr_lookup_and_open_alias(ctx, pipe_cli, ctx 295 source3/lib/netapi/localgroup.c if (ctx->disable_policy_handle_cache) { ctx 296 source3/lib/netapi/localgroup.c libnetapi_samr_close_builtin_handle(ctx, &builtin_handle); ctx 303 source3/lib/netapi/localgroup.c werr = libnetapi_samr_open_domain(ctx, pipe_cli, ctx 315 source3/lib/netapi/localgroup.c status = libnetapi_samr_lookup_and_open_alias(ctx, pipe_cli, ctx 321 source3/lib/netapi/localgroup.c if (ctx->disable_policy_handle_cache) { ctx 322 source3/lib/netapi/localgroup.c libnetapi_samr_close_domain_handle(ctx, &domain_handle); ctx 332 source3/lib/netapi/localgroup.c status = rpccli_samr_DeleteDomAlias(pipe_cli, ctx, ctx 345 source3/lib/netapi/localgroup.c rpccli_samr_Close(pipe_cli, ctx, &alias_handle); ctx 348 source3/lib/netapi/localgroup.c if (ctx->disable_policy_handle_cache) { ctx 349 source3/lib/netapi/localgroup.c libnetapi_samr_close_domain_handle(ctx, &domain_handle); ctx 350 source3/lib/netapi/localgroup.c libnetapi_samr_close_builtin_handle(ctx, &builtin_handle); ctx 351 source3/lib/netapi/localgroup.c libnetapi_samr_close_connect_handle(ctx, &connect_handle); ctx 360 source3/lib/netapi/localgroup.c WERROR NetLocalGroupDel_l(struct libnetapi_ctx *ctx, ctx 363 source3/lib/netapi/localgroup.c LIBNETAPI_REDIRECT_TO_LOCALHOST(ctx, r, NetLocalGroupDel); ctx 415 source3/lib/netapi/localgroup.c WERROR NetLocalGroupGetInfo_r(struct libnetapi_ctx *ctx, ctx 444 source3/lib/netapi/localgroup.c werr = libnetapi_open_pipe(ctx, r->in.server_name, ctx 451 source3/lib/netapi/localgroup.c werr = libnetapi_samr_open_builtin_domain(ctx, pipe_cli, ctx 461 source3/lib/netapi/localgroup.c status = libnetapi_samr_lookup_and_open_alias(ctx, pipe_cli, ctx 467 source3/lib/netapi/localgroup.c if (ctx->disable_policy_handle_cache) { ctx 468 source3/lib/netapi/localgroup.c libnetapi_samr_close_builtin_handle(ctx, &builtin_handle); ctx 475 source3/lib/netapi/localgroup.c werr = libnetapi_samr_open_domain(ctx, pipe_cli, ctx 487 source3/lib/netapi/localgroup.c status = libnetapi_samr_lookup_and_open_alias(ctx, pipe_cli, ctx 493 source3/lib/netapi/localgroup.c if (ctx->disable_policy_handle_cache) { ctx 494 source3/lib/netapi/localgroup.c libnetapi_samr_close_domain_handle(ctx, &domain_handle); ctx 503 source3/lib/netapi/localgroup.c status = rpccli_samr_QueryAliasInfo(pipe_cli, ctx, ctx 512 source3/lib/netapi/localgroup.c werr = map_alias_info_to_buffer(ctx, ctx 520 source3/lib/netapi/localgroup.c rpccli_samr_Close(pipe_cli, ctx, &alias_handle); ctx 523 source3/lib/netapi/localgroup.c if (ctx->disable_policy_handle_cache) { ctx 524 source3/lib/netapi/localgroup.c libnetapi_samr_close_domain_handle(ctx, &domain_handle); ctx 525 source3/lib/netapi/localgroup.c libnetapi_samr_close_builtin_handle(ctx, &builtin_handle); ctx 526 source3/lib/netapi/localgroup.c libnetapi_samr_close_connect_handle(ctx, &connect_handle); ctx 535 source3/lib/netapi/localgroup.c WERROR NetLocalGroupGetInfo_l(struct libnetapi_ctx *ctx, ctx 538 source3/lib/netapi/localgroup.c LIBNETAPI_REDIRECT_TO_LOCALHOST(ctx, r, NetLocalGroupGetInfo); ctx 585 source3/lib/netapi/localgroup.c WERROR NetLocalGroupSetInfo_r(struct libnetapi_ctx *ctx, ctx 615 source3/lib/netapi/localgroup.c werr = libnetapi_open_pipe(ctx, r->in.server_name, ctx 622 source3/lib/netapi/localgroup.c werr = libnetapi_samr_open_builtin_domain(ctx, pipe_cli, ctx 634 source3/lib/netapi/localgroup.c status = libnetapi_samr_lookup_and_open_alias(ctx, pipe_cli, ctx 640 source3/lib/netapi/localgroup.c if (ctx->disable_policy_handle_cache) { ctx 641 source3/lib/netapi/localgroup.c libnetapi_samr_close_builtin_handle(ctx, &builtin_handle); ctx 648 source3/lib/netapi/localgroup.c werr = libnetapi_samr_open_domain(ctx, pipe_cli, ctx 659 source3/lib/netapi/localgroup.c status = libnetapi_samr_lookup_and_open_alias(ctx, pipe_cli, ctx 669 source3/lib/netapi/localgroup.c if (ctx->disable_policy_handle_cache) { ctx 670 source3/lib/netapi/localgroup.c libnetapi_samr_close_domain_handle(ctx, &domain_handle); ctx 675 source3/lib/netapi/localgroup.c werr = map_buffer_to_alias_info(ctx, r->in.level, r->in.buffer, ctx 681 source3/lib/netapi/localgroup.c status = rpccli_samr_SetAliasInfo(pipe_cli, ctx, ctx 694 source3/lib/netapi/localgroup.c rpccli_samr_Close(pipe_cli, ctx, &alias_handle); ctx 697 source3/lib/netapi/localgroup.c if (ctx->disable_policy_handle_cache) { ctx 698 source3/lib/netapi/localgroup.c libnetapi_samr_close_domain_handle(ctx, &domain_handle); ctx 699 source3/lib/netapi/localgroup.c libnetapi_samr_close_builtin_handle(ctx, &builtin_handle); ctx 700 source3/lib/netapi/localgroup.c libnetapi_samr_close_connect_handle(ctx, &connect_handle); ctx 709 source3/lib/netapi/localgroup.c WERROR NetLocalGroupSetInfo_l(struct libnetapi_ctx *ctx, ctx 712 source3/lib/netapi/localgroup.c LIBNETAPI_REDIRECT_TO_LOCALHOST(ctx, r, NetLocalGroupSetInfo); ctx 718 source3/lib/netapi/localgroup.c WERROR NetLocalGroupEnum_r(struct libnetapi_ctx *ctx, ctx 757 source3/lib/netapi/localgroup.c werr = libnetapi_open_pipe(ctx, r->in.server_name, ctx 764 source3/lib/netapi/localgroup.c werr = libnetapi_samr_open_builtin_domain(ctx, pipe_cli, ctx 776 source3/lib/netapi/localgroup.c werr = libnetapi_samr_open_domain(ctx, pipe_cli, ctx 789 source3/lib/netapi/localgroup.c status = rpccli_samr_QueryDomainInfo(pipe_cli, ctx, ctx 802 source3/lib/netapi/localgroup.c status = rpccli_samr_QueryDomainInfo(pipe_cli, ctx, ctx 815 source3/lib/netapi/localgroup.c status = rpccli_samr_EnumDomainAliases(pipe_cli, ctx, ctx 831 source3/lib/netapi/localgroup.c status = libnetapi_samr_open_alias_queryinfo(ctx, pipe_cli, ctx 843 source3/lib/netapi/localgroup.c werr = map_alias_info_to_buffer(ctx, ctx 851 source3/lib/netapi/localgroup.c status = rpccli_samr_EnumDomainAliases(pipe_cli, ctx, ctx 867 source3/lib/netapi/localgroup.c status = libnetapi_samr_open_alias_queryinfo(ctx, pipe_cli, ctx 879 source3/lib/netapi/localgroup.c werr = map_alias_info_to_buffer(ctx, ctx 888 source3/lib/netapi/localgroup.c if (ctx->disable_policy_handle_cache) { ctx 889 source3/lib/netapi/localgroup.c libnetapi_samr_close_domain_handle(ctx, &domain_handle); ctx 890 source3/lib/netapi/localgroup.c libnetapi_samr_close_builtin_handle(ctx, &builtin_handle); ctx 891 source3/lib/netapi/localgroup.c libnetapi_samr_close_connect_handle(ctx, &connect_handle); ctx 900 source3/lib/netapi/localgroup.c WERROR NetLocalGroupEnum_l(struct libnetapi_ctx *ctx, ctx 903 source3/lib/netapi/localgroup.c LIBNETAPI_REDIRECT_TO_LOCALHOST(ctx, r, NetLocalGroupEnum); ctx 963 source3/lib/netapi/localgroup.c static WERROR NetLocalGroupModifyMembers_r(struct libnetapi_ctx *ctx, ctx 1025 source3/lib/netapi/localgroup.c member_sids = TALLOC_ZERO_ARRAY(ctx, struct dom_sid, ctx 1044 source3/lib/netapi/localgroup.c werr = libnetapi_open_pipe(ctx, r->in.server_name, ctx 1052 source3/lib/netapi/localgroup.c status = libnetapi_lsa_lookup_names3(ctx, lsa_pipe, ctx 1063 source3/lib/netapi/localgroup.c werr = libnetapi_open_pipe(ctx, r->in.server_name, ctx 1070 source3/lib/netapi/localgroup.c werr = libnetapi_samr_open_builtin_domain(ctx, pipe_cli, ctx 1082 source3/lib/netapi/localgroup.c status = libnetapi_samr_lookup_and_open_alias(ctx, pipe_cli, ctx 1091 source3/lib/netapi/localgroup.c if (ctx->disable_policy_handle_cache) { ctx 1092 source3/lib/netapi/localgroup.c libnetapi_samr_close_builtin_handle(ctx, &builtin_handle); ctx 1099 source3/lib/netapi/localgroup.c werr = libnetapi_samr_open_domain(ctx, pipe_cli, ctx 1110 source3/lib/netapi/localgroup.c status = libnetapi_samr_lookup_and_open_alias(ctx, pipe_cli, ctx 1123 source3/lib/netapi/localgroup.c if (ctx->disable_policy_handle_cache) { ctx 1124 source3/lib/netapi/localgroup.c libnetapi_samr_close_domain_handle(ctx, &domain_handle); ctx 1131 source3/lib/netapi/localgroup.c status = add_sid_to_array_unique(ctx, &member_sids[i], ctx 1143 source3/lib/netapi/localgroup.c status = add_sid_to_array_unique(ctx, &member_sids[i], ctx 1157 source3/lib/netapi/localgroup.c status = rpccli_samr_GetMembersInAlias(pipe_cli, ctx, ctx 1177 source3/lib/netapi/localgroup.c status = add_sid_to_array_unique(ctx, ctx 1199 source3/lib/netapi/localgroup.c status = add_sid_to_array_unique(ctx, ctx 1213 source3/lib/netapi/localgroup.c status = rpccli_samr_AddAliasMember(pipe_cli, ctx, ctx 1225 source3/lib/netapi/localgroup.c status = rpccli_samr_DeleteAliasMember(pipe_cli, ctx, ctx 1238 source3/lib/netapi/localgroup.c rpccli_samr_Close(pipe_cli, ctx, &alias_handle); ctx 1241 source3/lib/netapi/localgroup.c if (ctx->disable_policy_handle_cache) { ctx 1242 source3/lib/netapi/localgroup.c libnetapi_samr_close_domain_handle(ctx, &domain_handle); ctx 1243 source3/lib/netapi/localgroup.c libnetapi_samr_close_builtin_handle(ctx, &builtin_handle); ctx 1244 source3/lib/netapi/localgroup.c libnetapi_samr_close_connect_handle(ctx, &connect_handle); ctx 1253 source3/lib/netapi/localgroup.c WERROR NetLocalGroupAddMembers_r(struct libnetapi_ctx *ctx, ctx 1256 source3/lib/netapi/localgroup.c return NetLocalGroupModifyMembers_r(ctx, r, NULL, NULL); ctx 1262 source3/lib/netapi/localgroup.c WERROR NetLocalGroupAddMembers_l(struct libnetapi_ctx *ctx, ctx 1265 source3/lib/netapi/localgroup.c LIBNETAPI_REDIRECT_TO_LOCALHOST(ctx, r, NetLocalGroupAddMembers); ctx 1271 source3/lib/netapi/localgroup.c WERROR NetLocalGroupDelMembers_r(struct libnetapi_ctx *ctx, ctx 1274 source3/lib/netapi/localgroup.c return NetLocalGroupModifyMembers_r(ctx, NULL, r, NULL); ctx 1280 source3/lib/netapi/localgroup.c WERROR NetLocalGroupDelMembers_l(struct libnetapi_ctx *ctx, ctx 1283 source3/lib/netapi/localgroup.c LIBNETAPI_REDIRECT_TO_LOCALHOST(ctx, r, NetLocalGroupDelMembers); ctx 1289 source3/lib/netapi/localgroup.c WERROR NetLocalGroupGetMembers_r(struct libnetapi_ctx *ctx, ctx 1298 source3/lib/netapi/localgroup.c WERROR NetLocalGroupGetMembers_l(struct libnetapi_ctx *ctx, ctx 1301 source3/lib/netapi/localgroup.c LIBNETAPI_REDIRECT_TO_LOCALHOST(ctx, r, NetLocalGroupGetMembers); ctx 1307 source3/lib/netapi/localgroup.c WERROR NetLocalGroupSetMembers_r(struct libnetapi_ctx *ctx, ctx 1310 source3/lib/netapi/localgroup.c return NetLocalGroupModifyMembers_r(ctx, NULL, NULL, r); ctx 1316 source3/lib/netapi/localgroup.c WERROR NetLocalGroupSetMembers_l(struct libnetapi_ctx *ctx, ctx 1319 source3/lib/netapi/localgroup.c LIBNETAPI_REDIRECT_TO_LOCALHOST(ctx, r, NetLocalGroupSetMembers); ctx 33 source3/lib/netapi/netapi.c static NET_API_STATUS libnetapi_init_private_context(struct libnetapi_ctx *ctx) ctx 37 source3/lib/netapi/netapi.c if (!ctx) { ctx 41 source3/lib/netapi/netapi.c priv = TALLOC_ZERO_P(ctx, struct libnetapi_private_ctx); ctx 46 source3/lib/netapi/netapi.c ctx->private_data = priv; ctx 57 source3/lib/netapi/netapi.c struct libnetapi_ctx *ctx = NULL; ctx 70 source3/lib/netapi/netapi.c ctx = talloc_zero(frame, struct libnetapi_ctx); ctx 71 source3/lib/netapi/netapi.c if (!ctx) { ctx 106 source3/lib/netapi/netapi.c ctx->krb5_cc_env = talloc_strdup(frame, "MEMORY:libnetapi"); ctx 107 source3/lib/netapi/netapi.c setenv(KRB5_ENV_CCNAME, ctx->krb5_cc_env, 1); ctx 111 source3/lib/netapi/netapi.c ctx->username = talloc_strdup(frame, getenv("USER")); ctx 113 source3/lib/netapi/netapi.c ctx->username = talloc_strdup(frame, ""); ctx 115 source3/lib/netapi/netapi.c if (!ctx->username) { ctx 121 source3/lib/netapi/netapi.c status = libnetapi_init_private_context(ctx); ctx 129 source3/lib/netapi/netapi.c *context = stat_ctx = ctx; ctx 137 source3/lib/netapi/netapi.c NET_API_STATUS libnetapi_getctx(struct libnetapi_ctx **ctx) ctx 140 source3/lib/netapi/netapi.c *ctx = stat_ctx; ctx 144 source3/lib/netapi/netapi.c return libnetapi_init(ctx); ctx 150 source3/lib/netapi/netapi.c NET_API_STATUS libnetapi_free(struct libnetapi_ctx *ctx) ctx 152 source3/lib/netapi/netapi.c if (!ctx) { ctx 156 source3/lib/netapi/netapi.c libnetapi_samr_free(ctx); ctx 158 source3/lib/netapi/netapi.c libnetapi_shutdown_cm(ctx); ctx 160 source3/lib/netapi/netapi.c if (ctx->krb5_cc_env) { ctx 162 source3/lib/netapi/netapi.c if (env && (strequal(ctx->krb5_cc_env, env))) { ctx 176 source3/lib/netapi/netapi.c TALLOC_FREE(ctx); ctx 187 source3/lib/netapi/netapi.c NET_API_STATUS libnetapi_set_debuglevel(struct libnetapi_ctx *ctx, ctx 191 source3/lib/netapi/netapi.c ctx->debuglevel = talloc_strdup(ctx, debuglevel); ctx 201 source3/lib/netapi/netapi.c NET_API_STATUS libnetapi_get_debuglevel(struct libnetapi_ctx *ctx, ctx 204 source3/lib/netapi/netapi.c *debuglevel = ctx->debuglevel; ctx 211 source3/lib/netapi/netapi.c NET_API_STATUS libnetapi_set_username(struct libnetapi_ctx *ctx, ctx 214 source3/lib/netapi/netapi.c TALLOC_FREE(ctx->username); ctx 215 source3/lib/netapi/netapi.c ctx->username = talloc_strdup(ctx, username ? username : ""); ctx 217 source3/lib/netapi/netapi.c if (!ctx->username) { ctx 223 source3/lib/netapi/netapi.c NET_API_STATUS libnetapi_set_password(struct libnetapi_ctx *ctx, ctx 226 source3/lib/netapi/netapi.c TALLOC_FREE(ctx->password); ctx 227 source3/lib/netapi/netapi.c ctx->password = talloc_strdup(ctx, password); ctx 228 source3/lib/netapi/netapi.c if (!ctx->password) { ctx 234 source3/lib/netapi/netapi.c NET_API_STATUS libnetapi_set_workgroup(struct libnetapi_ctx *ctx, ctx 237 source3/lib/netapi/netapi.c TALLOC_FREE(ctx->workgroup); ctx 238 source3/lib/netapi/netapi.c ctx->workgroup = talloc_strdup(ctx, workgroup); ctx 239 source3/lib/netapi/netapi.c if (!ctx->workgroup) { ctx 248 source3/lib/netapi/netapi.c NET_API_STATUS libnetapi_set_use_kerberos(struct libnetapi_ctx *ctx) ctx 250 source3/lib/netapi/netapi.c ctx->use_kerberos = true; ctx 269 source3/lib/netapi/netapi.c NET_API_STATUS libnetapi_set_error_string(struct libnetapi_ctx *ctx, ctx 274 source3/lib/netapi/netapi.c TALLOC_FREE(ctx->error_string); ctx 277 source3/lib/netapi/netapi.c ctx->error_string = talloc_vasprintf(ctx, format, args); ctx 280 source3/lib/netapi/netapi.c if (!ctx->error_string) { ctx 289 source3/lib/netapi/netapi.c const char *libnetapi_get_error_string(struct libnetapi_ctx *ctx, ctx 293 source3/lib/netapi/netapi.c struct libnetapi_ctx *tmp_ctx = ctx; ctx 1281 source3/lib/netapi/netapi.h NET_API_STATUS libnetapi_init(struct libnetapi_ctx **ctx); ctx 1286 source3/lib/netapi/netapi.h NET_API_STATUS libnetapi_free(struct libnetapi_ctx *ctx); ctx 1291 source3/lib/netapi/netapi.h NET_API_STATUS libnetapi_getctx(struct libnetapi_ctx **ctx); ctx 1296 source3/lib/netapi/netapi.h NET_API_STATUS libnetapi_set_debuglevel(struct libnetapi_ctx *ctx, ctx 1302 source3/lib/netapi/netapi.h NET_API_STATUS libnetapi_set_username(struct libnetapi_ctx *ctx, ctx 1308 source3/lib/netapi/netapi.h NET_API_STATUS libnetapi_set_password(struct libnetapi_ctx *ctx, ctx 1314 source3/lib/netapi/netapi.h NET_API_STATUS libnetapi_set_workgroup(struct libnetapi_ctx *ctx, ctx 1320 source3/lib/netapi/netapi.h NET_API_STATUS libnetapi_set_use_kerberos(struct libnetapi_ctx *ctx); ctx 1330 source3/lib/netapi/netapi.h const char *libnetapi_get_error_string(struct libnetapi_ctx *ctx, ctx 23 source3/lib/netapi/netapi_private.h #define LIBNETAPI_REDIRECT_TO_LOCALHOST(ctx, r, fn) \ ctx 28 source3/lib/netapi/netapi_private.h return fn ## _r(ctx, r); ctx 48 source3/lib/netapi/netapi_private.h NET_API_STATUS libnetapi_get_password(struct libnetapi_ctx *ctx, char **password); ctx 49 source3/lib/netapi/netapi_private.h NET_API_STATUS libnetapi_get_username(struct libnetapi_ctx *ctx, char **username); ctx 50 source3/lib/netapi/netapi_private.h NET_API_STATUS libnetapi_set_error_string(struct libnetapi_ctx *ctx, const char *format, ...); ctx 51 source3/lib/netapi/netapi_private.h NET_API_STATUS libnetapi_get_debuglevel(struct libnetapi_ctx *ctx, char **debuglevel); ctx 53 source3/lib/netapi/netapi_private.h WERROR libnetapi_shutdown_cm(struct libnetapi_ctx *ctx); ctx 54 source3/lib/netapi/netapi_private.h WERROR libnetapi_open_pipe(struct libnetapi_ctx *ctx, ctx 71 source3/lib/netapi/netapi_private.h void libnetapi_samr_close_domain_handle(struct libnetapi_ctx *ctx, ctx 73 source3/lib/netapi/netapi_private.h void libnetapi_samr_close_builtin_handle(struct libnetapi_ctx *ctx, ctx 75 source3/lib/netapi/netapi_private.h void libnetapi_samr_close_connect_handle(struct libnetapi_ctx *ctx, ctx 77 source3/lib/netapi/netapi_private.h void libnetapi_samr_free(struct libnetapi_ctx *ctx); ctx 233 source3/lib/netapi/samr.c void libnetapi_samr_close_domain_handle(struct libnetapi_ctx *ctx, ctx 242 source3/lib/netapi/samr.c priv = talloc_get_type_abort(ctx->private_data, ctx 249 source3/lib/netapi/samr.c rpccli_samr_Close(priv->samr.cli, ctx, handle); ctx 257 source3/lib/netapi/samr.c void libnetapi_samr_close_builtin_handle(struct libnetapi_ctx *ctx, ctx 266 source3/lib/netapi/samr.c priv = talloc_get_type_abort(ctx->private_data, ctx 273 source3/lib/netapi/samr.c rpccli_samr_Close(priv->samr.cli, ctx, handle); ctx 281 source3/lib/netapi/samr.c void libnetapi_samr_close_connect_handle(struct libnetapi_ctx *ctx, ctx 290 source3/lib/netapi/samr.c priv = talloc_get_type_abort(ctx->private_data, ctx 297 source3/lib/netapi/samr.c rpccli_samr_Close(priv->samr.cli, ctx, handle); ctx 305 source3/lib/netapi/samr.c void libnetapi_samr_free(struct libnetapi_ctx *ctx) ctx 309 source3/lib/netapi/samr.c if (!ctx->private_data) { ctx 313 source3/lib/netapi/samr.c priv = talloc_get_type_abort(ctx->private_data, ctx 316 source3/lib/netapi/samr.c libnetapi_samr_close_domain_handle(ctx, &priv->samr.domain_handle); ctx 317 source3/lib/netapi/samr.c libnetapi_samr_close_builtin_handle(ctx, &priv->samr.builtin_handle); ctx 318 source3/lib/netapi/samr.c libnetapi_samr_close_connect_handle(ctx, &priv->samr.connect_handle); ctx 31 source3/lib/netapi/serverinfo.c static WERROR NetServerGetInfo_l_101(struct libnetapi_ctx *ctx, ctx 43 source3/lib/netapi/serverinfo.c *buffer = (uint8_t *)talloc_memdup(ctx, &i, sizeof(i)); ctx 54 source3/lib/netapi/serverinfo.c static WERROR NetServerGetInfo_l_1005(struct libnetapi_ctx *ctx, ctx 60 source3/lib/netapi/serverinfo.c *buffer = (uint8_t *)talloc_memdup(ctx, &info1005, sizeof(info1005)); ctx 71 source3/lib/netapi/serverinfo.c WERROR NetServerGetInfo_l(struct libnetapi_ctx *ctx, ctx 76 source3/lib/netapi/serverinfo.c return NetServerGetInfo_l_101(ctx, r->out.buffer); ctx 78 source3/lib/netapi/serverinfo.c return NetServerGetInfo_l_1005(ctx, r->out.buffer); ctx 478 source3/lib/netapi/serverinfo.c WERROR NetServerGetInfo_r(struct libnetapi_ctx *ctx, ctx 503 source3/lib/netapi/serverinfo.c werr = libnetapi_open_pipe(ctx, r->in.server_name, ctx 510 source3/lib/netapi/serverinfo.c status = rpccli_srvsvc_NetSrvGetInfo(pipe_cli, ctx, ctx 520 source3/lib/netapi/serverinfo.c status = map_server_info_to_SERVER_INFO_buffer(ctx, r->in.level, &info, ctx 534 source3/lib/netapi/serverinfo.c static WERROR NetServerSetInfo_l_1005(struct libnetapi_ctx *ctx, ctx 554 source3/lib/netapi/serverinfo.c libnetapi_set_error_string(ctx, ctx 560 source3/lib/netapi/serverinfo.c werr = smbconf_init_reg(ctx, &conf_ctx, NULL); ctx 576 source3/lib/netapi/serverinfo.c WERROR NetServerSetInfo_l(struct libnetapi_ctx *ctx, ctx 581 source3/lib/netapi/serverinfo.c return NetServerSetInfo_l_1005(ctx, r); ctx 592 source3/lib/netapi/serverinfo.c WERROR NetServerSetInfo_r(struct libnetapi_ctx *ctx, ctx 600 source3/lib/netapi/serverinfo.c werr = libnetapi_open_pipe(ctx, r->in.server_name, ctx 616 source3/lib/netapi/serverinfo.c status = rpccli_srvsvc_NetSrvSetInfo(pipe_cli, ctx, ctx 634 source3/lib/netapi/serverinfo.c WERROR NetRemoteTOD_r(struct libnetapi_ctx *ctx, ctx 642 source3/lib/netapi/serverinfo.c werr = libnetapi_open_pipe(ctx, r->in.server_name, ctx 649 source3/lib/netapi/serverinfo.c status = rpccli_srvsvc_NetRemoteTOD(pipe_cli, ctx, ctx 658 source3/lib/netapi/serverinfo.c *r->out.buffer = (uint8_t *)talloc_memdup(ctx, info, ctx 669 source3/lib/netapi/serverinfo.c WERROR NetRemoteTOD_l(struct libnetapi_ctx *ctx, ctx 672 source3/lib/netapi/serverinfo.c LIBNETAPI_REDIRECT_TO_LOCALHOST(ctx, r, NetRemoteTOD); ctx 179 source3/lib/netapi/share.c WERROR NetShareAdd_r(struct libnetapi_ctx *ctx, ctx 201 source3/lib/netapi/share.c werr = libnetapi_open_pipe(ctx, r->in.server_name, ctx 208 source3/lib/netapi/share.c status = map_SHARE_INFO_buffer_to_srvsvc_share_info(ctx, ctx 217 source3/lib/netapi/share.c status = rpccli_srvsvc_NetShareAdd(pipe_cli, ctx, ctx 234 source3/lib/netapi/share.c WERROR NetShareAdd_l(struct libnetapi_ctx *ctx, ctx 237 source3/lib/netapi/share.c LIBNETAPI_REDIRECT_TO_LOCALHOST(ctx, r, NetShareAdd); ctx 243 source3/lib/netapi/share.c WERROR NetShareDel_r(struct libnetapi_ctx *ctx, ctx 254 source3/lib/netapi/share.c werr = libnetapi_open_pipe(ctx, r->in.server_name, ctx 261 source3/lib/netapi/share.c status = rpccli_srvsvc_NetShareDel(pipe_cli, ctx, ctx 278 source3/lib/netapi/share.c WERROR NetShareDel_l(struct libnetapi_ctx *ctx, ctx 281 source3/lib/netapi/share.c LIBNETAPI_REDIRECT_TO_LOCALHOST(ctx, r, NetShareDel); ctx 287 source3/lib/netapi/share.c WERROR NetShareEnum_r(struct libnetapi_ctx *ctx, ctx 317 source3/lib/netapi/share.c werr = libnetapi_open_pipe(ctx, r->in.server_name, ctx 340 source3/lib/netapi/share.c status = rpccli_srvsvc_NetShareEnumAll(pipe_cli, ctx, ctx 365 source3/lib/netapi/share.c status = map_srvsvc_share_info_to_SHARE_INFO_buffer(ctx, ctx 382 source3/lib/netapi/share.c WERROR NetShareEnum_l(struct libnetapi_ctx *ctx, ctx 385 source3/lib/netapi/share.c LIBNETAPI_REDIRECT_TO_LOCALHOST(ctx, r, NetShareEnum); ctx 391 source3/lib/netapi/share.c WERROR NetShareGetInfo_r(struct libnetapi_ctx *ctx, ctx 418 source3/lib/netapi/share.c werr = libnetapi_open_pipe(ctx, r->in.server_name, ctx 425 source3/lib/netapi/share.c status = rpccli_srvsvc_NetShareGetInfo(pipe_cli, ctx, ctx 436 source3/lib/netapi/share.c status = map_srvsvc_share_info_to_SHARE_INFO_buffer(ctx, ctx 452 source3/lib/netapi/share.c WERROR NetShareGetInfo_l(struct libnetapi_ctx *ctx, ctx 455 source3/lib/netapi/share.c LIBNETAPI_REDIRECT_TO_LOCALHOST(ctx, r, NetShareGetInfo); ctx 461 source3/lib/netapi/share.c WERROR NetShareSetInfo_r(struct libnetapi_ctx *ctx, ctx 488 source3/lib/netapi/share.c werr = libnetapi_open_pipe(ctx, r->in.server_name, ctx 495 source3/lib/netapi/share.c status = map_SHARE_INFO_buffer_to_srvsvc_share_info(ctx, ctx 504 source3/lib/netapi/share.c status = rpccli_srvsvc_NetShareSetInfo(pipe_cli, ctx, ctx 522 source3/lib/netapi/share.c WERROR NetShareSetInfo_l(struct libnetapi_ctx *ctx, ctx 525 source3/lib/netapi/share.c LIBNETAPI_REDIRECT_TO_LOCALHOST(ctx, r, NetShareSetInfo); ctx 30 source3/lib/netapi/shutdown.c WERROR NetShutdownInit_r(struct libnetapi_ctx *ctx, ctx 38 source3/lib/netapi/shutdown.c werr = libnetapi_open_pipe(ctx, r->in.server_name, ctx 47 source3/lib/netapi/shutdown.c status = rpccli_initshutdown_Init(pipe_cli, ctx, ctx 66 source3/lib/netapi/shutdown.c WERROR NetShutdownInit_l(struct libnetapi_ctx *ctx, ctx 69 source3/lib/netapi/shutdown.c LIBNETAPI_REDIRECT_TO_LOCALHOST(ctx, r, NetShutdownInit); ctx 75 source3/lib/netapi/shutdown.c WERROR NetShutdownAbort_r(struct libnetapi_ctx *ctx, ctx 82 source3/lib/netapi/shutdown.c werr = libnetapi_open_pipe(ctx, r->in.server_name, ctx 89 source3/lib/netapi/shutdown.c status = rpccli_initshutdown_Abort(pipe_cli, ctx, ctx 104 source3/lib/netapi/shutdown.c WERROR NetShutdownAbort_l(struct libnetapi_ctx *ctx, ctx 107 source3/lib/netapi/shutdown.c LIBNETAPI_REDIRECT_TO_LOCALHOST(ctx, r, NetShutdownAbort); ctx 35 source3/lib/netapi/tests/common.c struct libnetapi_ctx *ctx = NULL; ctx 37 source3/lib/netapi/tests/common.c libnetapi_getctx(&ctx); ctx 56 source3/lib/netapi/tests/common.c libnetapi_set_username(ctx, puser); ctx 57 source3/lib/netapi/tests/common.c libnetapi_set_password(ctx, p+1); ctx 61 source3/lib/netapi/tests/common.c libnetapi_set_username(ctx, puser); ctx 67 source3/lib/netapi/tests/common.c libnetapi_set_debuglevel(ctx, arg); ctx 70 source3/lib/netapi/tests/common.c libnetapi_set_password(ctx, arg); ctx 73 source3/lib/netapi/tests/common.c libnetapi_set_use_kerberos(ctx); ctx 34 source3/lib/netapi/tests/common.h NET_API_STATUS netapitest_localgroup(struct libnetapi_ctx *ctx, ctx 36 source3/lib/netapi/tests/common.h NET_API_STATUS netapitest_user(struct libnetapi_ctx *ctx, ctx 38 source3/lib/netapi/tests/common.h NET_API_STATUS netapitest_group(struct libnetapi_ctx *ctx, ctx 40 source3/lib/netapi/tests/common.h NET_API_STATUS netapitest_display(struct libnetapi_ctx *ctx, ctx 42 source3/lib/netapi/tests/common.h NET_API_STATUS netapitest_share(struct libnetapi_ctx *ctx, ctx 44 source3/lib/netapi/tests/common.h NET_API_STATUS netapitest_file(struct libnetapi_ctx *ctx, ctx 46 source3/lib/netapi/tests/common.h NET_API_STATUS netapitest_server(struct libnetapi_ctx *ctx, ctx 33 source3/lib/netapi/tests/netapitest.c struct libnetapi_ctx *ctx = NULL; ctx 45 source3/lib/netapi/tests/netapitest.c status = libnetapi_init(&ctx); ctx 62 source3/lib/netapi/tests/netapitest.c status = netapitest_localgroup(ctx, hostname); ctx 67 source3/lib/netapi/tests/netapitest.c status = netapitest_user(ctx, hostname); ctx 72 source3/lib/netapi/tests/netapitest.c status = netapitest_group(ctx, hostname); ctx 77 source3/lib/netapi/tests/netapitest.c status = netapitest_display(ctx, hostname); ctx 82 source3/lib/netapi/tests/netapitest.c status = netapitest_share(ctx, hostname); ctx 87 source3/lib/netapi/tests/netapitest.c status = netapitest_file(ctx, hostname); ctx 92 source3/lib/netapi/tests/netapitest.c status = netapitest_server(ctx, hostname); ctx 100 source3/lib/netapi/tests/netapitest.c libnetapi_get_error_string(ctx, status)); ctx 103 source3/lib/netapi/tests/netapitest.c libnetapi_free(ctx); ctx 120 source3/lib/netapi/tests/netdisplay.c NET_API_STATUS netapitest_display(struct libnetapi_ctx *ctx, ctx 135 source3/lib/netapi/tests/netdisplay.c NETAPI_STATUS(ctx, status, "NetQueryDisplayInformation"); ctx 146 source3/lib/netapi/tests/netdisplay.c libnetapi_get_error_string(ctx, status)); ctx 97 source3/lib/netapi/tests/netfile.c NET_API_STATUS netapitest_file(struct libnetapi_ctx *ctx, ctx 112 source3/lib/netapi/tests/netfile.c NETAPI_STATUS(ctx, status, "NetFileEnum"); ctx 128 source3/lib/netapi/tests/netfile.c NETAPI_STATUS(ctx, status, "NetFileGetInfo"); ctx 141 source3/lib/netapi/tests/netfile.c libnetapi_get_error_string(ctx, status)); ctx 276 source3/lib/netapi/tests/netgroup.c NET_API_STATUS netapitest_group(struct libnetapi_ctx *ctx, ctx 308 source3/lib/netapi/tests/netgroup.c NETAPI_STATUS(ctx, status, "NetGroupAdd"); ctx 316 source3/lib/netapi/tests/netgroup.c NETAPI_STATUS(ctx, status, "NetGroupAdd"); ctx 326 source3/lib/netapi/tests/netgroup.c NETAPI_STATUS(ctx, status, "NetGroupEnum"); ctx 339 source3/lib/netapi/tests/netgroup.c NETAPI_STATUS(ctx, status, "NetGroupGetInfo"); ctx 359 source3/lib/netapi/tests/netgroup.c NETAPI_STATUS(ctx, status, "NetGroupSetInfo"); ctx 367 source3/lib/netapi/tests/netgroup.c NETAPI_STATUS(ctx, status, "NetGroupDel"); ctx 378 source3/lib/netapi/tests/netgroup.c NETAPI_STATUS(ctx, status, "NetGroupGetInfo"); ctx 387 source3/lib/netapi/tests/netgroup.c NETAPI_STATUS(ctx, status, "NetUserAdd"); ctx 397 source3/lib/netapi/tests/netgroup.c NETAPI_STATUS(ctx, status, "NetGroupGetUsers"); ctx 406 source3/lib/netapi/tests/netgroup.c NETAPI_STATUS(ctx, status, "NetGroupAddUser"); ctx 416 source3/lib/netapi/tests/netgroup.c NETAPI_STATUS(ctx, status, "NetGroupGetUsers"); ctx 425 source3/lib/netapi/tests/netgroup.c NETAPI_STATUS(ctx, status, "NetGroupDelUser"); ctx 433 source3/lib/netapi/tests/netgroup.c NETAPI_STATUS(ctx, status, "NetGroupGetUsers"); ctx 441 source3/lib/netapi/tests/netgroup.c NETAPI_STATUS(ctx, status, "NetGroupSetUsers"); ctx 449 source3/lib/netapi/tests/netgroup.c NETAPI_STATUS(ctx, status, "NetGroupGetUsers"); ctx 457 source3/lib/netapi/tests/netgroup.c NETAPI_STATUS(ctx, status, "NetGroupSetUsers"); ctx 465 source3/lib/netapi/tests/netgroup.c NETAPI_STATUS(ctx, status, "NetGroupGetUsers"); ctx 471 source3/lib/netapi/tests/netgroup.c NETAPI_STATUS(ctx, status, "NetUserDel"); ctx 481 source3/lib/netapi/tests/netgroup.c NETAPI_STATUS(ctx, status, "NetGroupDel"); ctx 489 source3/lib/netapi/tests/netgroup.c NETAPI_STATUS_MSG(ctx, status, "NetGroupGetInfo", "expected failure and error code"); ctx 499 source3/lib/netapi/tests/netgroup.c libnetapi_get_error_string(ctx, status)); ctx 110 source3/lib/netapi/tests/netlocalgroup.c NET_API_STATUS netapitest_localgroup(struct libnetapi_ctx *ctx, ctx 139 source3/lib/netapi/tests/netlocalgroup.c NETAPI_STATUS(ctx, status, "NetLocalGroupAdd"); ctx 149 source3/lib/netapi/tests/netlocalgroup.c NETAPI_STATUS(ctx, status, "NetLocalGroupEnum"); ctx 163 source3/lib/netapi/tests/netlocalgroup.c NETAPI_STATUS(ctx, status, "NetLocalGroupGetInfo"); ctx 176 source3/lib/netapi/tests/netlocalgroup.c NETAPI_STATUS(ctx, status, "NetLocalGroupSetInfo"); ctx 184 source3/lib/netapi/tests/netlocalgroup.c NETAPI_STATUS(ctx, status, "NetLocalGroupDel"); ctx 193 source3/lib/netapi/tests/netlocalgroup.c NETAPI_STATUS(ctx, status, "NetLocalGroupGetInfo"); ctx 204 source3/lib/netapi/tests/netlocalgroup.c NETAPI_STATUS(ctx, status, "NetLocalGroupDel"); ctx 212 source3/lib/netapi/tests/netlocalgroup.c NETAPI_STATUS(ctx, status, "NetLocalGroupGetInfo"); ctx 222 source3/lib/netapi/tests/netlocalgroup.c libnetapi_get_error_string(ctx, status)); ctx 30 source3/lib/netapi/tests/netserver.c NET_API_STATUS netapitest_server(struct libnetapi_ctx *ctx, ctx 46 source3/lib/netapi/tests/netserver.c NETAPI_STATUS(ctx, status, "NetServerGetInfo"); ctx 57 source3/lib/netapi/tests/netserver.c libnetapi_get_error_string(ctx, status)); ctx 120 source3/lib/netapi/tests/netshare.c NET_API_STATUS netapitest_share(struct libnetapi_ctx *ctx, ctx 152 source3/lib/netapi/tests/netshare.c NETAPI_STATUS(ctx, status, "NetShareAdd"); ctx 162 source3/lib/netapi/tests/netshare.c NETAPI_STATUS(ctx, status, "NetShareEnum"); ctx 175 source3/lib/netapi/tests/netshare.c NETAPI_STATUS(ctx, status, "NetShareGetInfo"); ctx 189 source3/lib/netapi/tests/netshare.c NETAPI_STATUS(ctx, status, "NetShareSetInfo"); ctx 195 source3/lib/netapi/tests/netshare.c NETAPI_STATUS(ctx, status, "NetShareGetInfo"); ctx 200 source3/lib/netapi/tests/netshare.c NETAPI_STATUS(ctx, status, "NetShareGetInfo"); ctx 210 source3/lib/netapi/tests/netshare.c NETAPI_STATUS(ctx, status, "NetShareDel"); ctx 218 source3/lib/netapi/tests/netshare.c NETAPI_STATUS(ctx, status, "NetShareGetInfo"); ctx 228 source3/lib/netapi/tests/netshare.c libnetapi_get_error_string(ctx, status)); ctx 205 source3/lib/netapi/tests/netuser.c static NET_API_STATUS test_netusermodals(struct libnetapi_ctx *ctx, ctx 222 source3/lib/netapi/tests/netuser.c NETAPI_STATUS(ctx, status, "NetUserModalsGet"); ctx 229 source3/lib/netapi/tests/netuser.c NETAPI_STATUS(ctx, status, "NetUserModalsGet"); ctx 237 source3/lib/netapi/tests/netuser.c NETAPI_STATUS(ctx, status, "NetUserModalsSet"); ctx 243 source3/lib/netapi/tests/netuser.c NETAPI_STATUS(ctx, status, "NetUserModalsGet"); ctx 337 source3/lib/netapi/tests/netuser.c NET_API_STATUS netapitest_user(struct libnetapi_ctx *ctx, ctx 364 source3/lib/netapi/tests/netuser.c NETAPI_STATUS(ctx, status, "NetUserAdd"); ctx 374 source3/lib/netapi/tests/netuser.c NETAPI_STATUS(ctx, status, "NetUserEnum"); ctx 387 source3/lib/netapi/tests/netuser.c NETAPI_STATUS(ctx, status, "NetUserGetInfo"); ctx 398 source3/lib/netapi/tests/netuser.c NETAPI_STATUS(ctx, status, "NetUserGetGroups"); ctx 411 source3/lib/netapi/tests/netuser.c NETAPI_STATUS(ctx, status, "NetUserSetInfo"); ctx 420 source3/lib/netapi/tests/netuser.c NETAPI_STATUS(ctx, status, "NetUserGetInfo"); ctx 431 source3/lib/netapi/tests/netuser.c NETAPI_STATUS(ctx, status, "NetUserDel"); ctx 439 source3/lib/netapi/tests/netuser.c NETAPI_STATUS(ctx, status, "NetUserGetInfo"); ctx 443 source3/lib/netapi/tests/netuser.c status = test_netusermodals(ctx, hostname); ctx 458 source3/lib/netapi/tests/netuser.c libnetapi_get_error_string(ctx, status)); ctx 289 source3/lib/netapi/user.c static NTSTATUS set_user_info_USER_INFO_X(TALLOC_CTX *ctx, ctx 315 source3/lib/netapi/user.c status = rpccli_samr_SetUserInfo2(pipe_cli, ctx, ctx 328 source3/lib/netapi/user.c status = rpccli_samr_SetUserInfo2(pipe_cli, ctx, ctx 337 source3/lib/netapi/user.c status = rpccli_samr_SetUserInfo(pipe_cli, ctx, ctx 349 source3/lib/netapi/user.c WERROR NetUserAdd_r(struct libnetapi_ctx *ctx, ctx 383 source3/lib/netapi/user.c werr = libnetapi_open_pipe(ctx, r->in.server_name, ctx 396 source3/lib/netapi/user.c werr = libnetapi_samr_open_domain(ctx, pipe_cli, ctx 411 source3/lib/netapi/user.c status = rpccli_samr_CreateUser2(pipe_cli, ctx, ctx 428 source3/lib/netapi/user.c status = rpccli_samr_QueryUserInfo(pipe_cli, ctx, ctx 442 source3/lib/netapi/user.c status = rpccli_samr_GetUserPwInfo(pipe_cli, ctx, ctx 452 source3/lib/netapi/user.c status = set_user_info_USER_INFO_X(ctx, pipe_cli, ctx 465 source3/lib/netapi/user.c rpccli_samr_DeleteUser(pipe_cli, ctx, ctx 470 source3/lib/netapi/user.c rpccli_samr_Close(pipe_cli, ctx, &user_handle); ctx 473 source3/lib/netapi/user.c if (ctx->disable_policy_handle_cache) { ctx 474 source3/lib/netapi/user.c libnetapi_samr_close_domain_handle(ctx, &domain_handle); ctx 475 source3/lib/netapi/user.c libnetapi_samr_close_connect_handle(ctx, &connect_handle); ctx 484 source3/lib/netapi/user.c WERROR NetUserAdd_l(struct libnetapi_ctx *ctx, ctx 487 source3/lib/netapi/user.c LIBNETAPI_REDIRECT_TO_LOCALHOST(ctx, r, NetUserAdd); ctx 493 source3/lib/netapi/user.c WERROR NetUserDel_r(struct libnetapi_ctx *ctx, ctx 510 source3/lib/netapi/user.c werr = libnetapi_open_pipe(ctx, r->in.server_name, ctx 518 source3/lib/netapi/user.c werr = libnetapi_samr_open_domain(ctx, pipe_cli, ctx 529 source3/lib/netapi/user.c status = rpccli_samr_OpenDomain(pipe_cli, ctx, ctx 541 source3/lib/netapi/user.c status = rpccli_samr_LookupNames(pipe_cli, ctx, ctx 552 source3/lib/netapi/user.c status = rpccli_samr_OpenUser(pipe_cli, ctx, ctx 564 source3/lib/netapi/user.c status = rpccli_samr_RemoveMemberFromForeignDomain(pipe_cli, ctx, ctx 572 source3/lib/netapi/user.c status = rpccli_samr_DeleteUser(pipe_cli, ctx, ctx 583 source3/lib/netapi/user.c rpccli_samr_Close(pipe_cli, ctx, &user_handle); ctx 586 source3/lib/netapi/user.c if (ctx->disable_policy_handle_cache) { ctx 587 source3/lib/netapi/user.c libnetapi_samr_close_builtin_handle(ctx, &builtin_handle); ctx 588 source3/lib/netapi/user.c libnetapi_samr_close_domain_handle(ctx, &domain_handle); ctx 589 source3/lib/netapi/user.c libnetapi_samr_close_connect_handle(ctx, &connect_handle); ctx 598 source3/lib/netapi/user.c WERROR NetUserDel_l(struct libnetapi_ctx *ctx, ctx 601 source3/lib/netapi/user.c LIBNETAPI_REDIRECT_TO_LOCALHOST(ctx, r, NetUserDel); ctx 1176 source3/lib/netapi/user.c WERROR NetUserEnum_r(struct libnetapi_ctx *ctx, ctx 1217 source3/lib/netapi/user.c werr = libnetapi_open_pipe(ctx, r->in.server_name, ctx 1224 source3/lib/netapi/user.c werr = libnetapi_samr_open_builtin_domain(ctx, pipe_cli, ctx 1235 source3/lib/netapi/user.c werr = libnetapi_samr_open_domain(ctx, pipe_cli, ctx 1269 source3/lib/netapi/user.c ctx, ctx 1283 source3/lib/netapi/user.c status = libnetapi_samr_lookup_user_map_USER_INFO(ctx, pipe_cli, ctx 1303 source3/lib/netapi/user.c if (ctx->disable_policy_handle_cache) { ctx 1304 source3/lib/netapi/user.c libnetapi_samr_close_domain_handle(ctx, &domain_handle); ctx 1305 source3/lib/netapi/user.c libnetapi_samr_close_builtin_handle(ctx, &builtin_handle); ctx 1306 source3/lib/netapi/user.c libnetapi_samr_close_connect_handle(ctx, &connect_handle); ctx 1316 source3/lib/netapi/user.c WERROR NetUserEnum_l(struct libnetapi_ctx *ctx, ctx 1319 source3/lib/netapi/user.c LIBNETAPI_REDIRECT_TO_LOCALHOST(ctx, r, NetUserEnum); ctx 1486 source3/lib/netapi/user.c WERROR NetQueryDisplayInformation_r(struct libnetapi_ctx *ctx, ctx 1516 source3/lib/netapi/user.c werr = libnetapi_open_pipe(ctx, r->in.server_name, ctx 1523 source3/lib/netapi/user.c werr = libnetapi_samr_open_domain(ctx, pipe_cli, ctx 1537 source3/lib/netapi/user.c ctx, ctx 1551 source3/lib/netapi/user.c werr_tmp = convert_samr_dispinfo_to_NET_DISPLAY(ctx, &info, ctx 1563 source3/lib/netapi/user.c if (ctx->disable_policy_handle_cache) { ctx 1564 source3/lib/netapi/user.c libnetapi_samr_close_domain_handle(ctx, &domain_handle); ctx 1565 source3/lib/netapi/user.c libnetapi_samr_close_connect_handle(ctx, &connect_handle); ctx 1577 source3/lib/netapi/user.c WERROR NetQueryDisplayInformation_l(struct libnetapi_ctx *ctx, ctx 1580 source3/lib/netapi/user.c LIBNETAPI_REDIRECT_TO_LOCALHOST(ctx, r, NetQueryDisplayInformation); ctx 1586 source3/lib/netapi/user.c WERROR NetUserChangePassword_r(struct libnetapi_ctx *ctx, ctx 1595 source3/lib/netapi/user.c WERROR NetUserChangePassword_l(struct libnetapi_ctx *ctx, ctx 1604 source3/lib/netapi/user.c WERROR NetUserGetInfo_r(struct libnetapi_ctx *ctx, ctx 1642 source3/lib/netapi/user.c werr = libnetapi_open_pipe(ctx, r->in.server_name, ctx 1649 source3/lib/netapi/user.c werr = libnetapi_samr_open_domain(ctx, pipe_cli, ctx 1660 source3/lib/netapi/user.c werr = libnetapi_samr_open_builtin_domain(ctx, pipe_cli, ctx 1673 source3/lib/netapi/user.c status = rpccli_samr_LookupNames(pipe_cli, ctx, ctx 1684 source3/lib/netapi/user.c status = libnetapi_samr_lookup_user_map_USER_INFO(ctx, pipe_cli, ctx 1700 source3/lib/netapi/user.c rpccli_samr_Close(pipe_cli, ctx, &user_handle); ctx 1703 source3/lib/netapi/user.c if (ctx->disable_policy_handle_cache) { ctx 1704 source3/lib/netapi/user.c libnetapi_samr_close_domain_handle(ctx, &domain_handle); ctx 1705 source3/lib/netapi/user.c libnetapi_samr_close_connect_handle(ctx, &connect_handle); ctx 1714 source3/lib/netapi/user.c WERROR NetUserGetInfo_l(struct libnetapi_ctx *ctx, ctx 1717 source3/lib/netapi/user.c LIBNETAPI_REDIRECT_TO_LOCALHOST(ctx, r, NetUserGetInfo); ctx 1723 source3/lib/netapi/user.c WERROR NetUserSetInfo_r(struct libnetapi_ctx *ctx, ctx 1796 source3/lib/netapi/user.c werr = libnetapi_open_pipe(ctx, r->in.server_name, ctx 1803 source3/lib/netapi/user.c werr = libnetapi_samr_open_domain(ctx, pipe_cli, ctx 1815 source3/lib/netapi/user.c werr = libnetapi_samr_open_builtin_domain(ctx, pipe_cli, ctx 1828 source3/lib/netapi/user.c status = rpccli_samr_LookupNames(pipe_cli, ctx, ctx 1839 source3/lib/netapi/user.c status = rpccli_samr_OpenUser(pipe_cli, ctx, ctx 1855 source3/lib/netapi/user.c status = set_user_info_USER_INFO_X(ctx, pipe_cli, ctx 1868 source3/lib/netapi/user.c rpccli_samr_Close(pipe_cli, ctx, &user_handle); ctx 1871 source3/lib/netapi/user.c if (ctx->disable_policy_handle_cache) { ctx 1872 source3/lib/netapi/user.c libnetapi_samr_close_domain_handle(ctx, &domain_handle); ctx 1873 source3/lib/netapi/user.c libnetapi_samr_close_builtin_handle(ctx, &builtin_handle); ctx 1874 source3/lib/netapi/user.c libnetapi_samr_close_connect_handle(ctx, &connect_handle); ctx 1883 source3/lib/netapi/user.c WERROR NetUserSetInfo_l(struct libnetapi_ctx *ctx, ctx 1886 source3/lib/netapi/user.c LIBNETAPI_REDIRECT_TO_LOCALHOST(ctx, r, NetUserSetInfo); ctx 2181 source3/lib/netapi/user.c WERROR NetUserModalsGet_r(struct libnetapi_ctx *ctx, ctx 2216 source3/lib/netapi/user.c werr = libnetapi_open_pipe(ctx, r->in.server_name, ctx 2223 source3/lib/netapi/user.c werr = libnetapi_samr_open_domain(ctx, pipe_cli, ctx 2239 source3/lib/netapi/user.c status = query_USER_MODALS_INFO_to_buffer(ctx, ctx 2251 source3/lib/netapi/user.c if (ctx->disable_policy_handle_cache) { ctx 2252 source3/lib/netapi/user.c libnetapi_samr_close_domain_handle(ctx, &domain_handle); ctx 2253 source3/lib/netapi/user.c libnetapi_samr_close_connect_handle(ctx, &connect_handle); ctx 2262 source3/lib/netapi/user.c WERROR NetUserModalsGet_l(struct libnetapi_ctx *ctx, ctx 2265 source3/lib/netapi/user.c LIBNETAPI_REDIRECT_TO_LOCALHOST(ctx, r, NetUserModalsGet); ctx 2646 source3/lib/netapi/user.c WERROR NetUserModalsSet_r(struct libnetapi_ctx *ctx, ctx 2694 source3/lib/netapi/user.c werr = libnetapi_open_pipe(ctx, r->in.server_name, ctx 2701 source3/lib/netapi/user.c werr = libnetapi_samr_open_domain(ctx, pipe_cli, ctx 2712 source3/lib/netapi/user.c status = set_USER_MODALS_INFO_buffer(ctx, ctx 2724 source3/lib/netapi/user.c if (ctx->disable_policy_handle_cache) { ctx 2725 source3/lib/netapi/user.c libnetapi_samr_close_domain_handle(ctx, &domain_handle); ctx 2726 source3/lib/netapi/user.c libnetapi_samr_close_connect_handle(ctx, &connect_handle); ctx 2735 source3/lib/netapi/user.c WERROR NetUserModalsSet_l(struct libnetapi_ctx *ctx, ctx 2738 source3/lib/netapi/user.c LIBNETAPI_REDIRECT_TO_LOCALHOST(ctx, r, NetUserModalsSet); ctx 2789 source3/lib/netapi/user.c WERROR NetUserGetGroups_r(struct libnetapi_ctx *ctx, ctx 2827 source3/lib/netapi/user.c werr = libnetapi_open_pipe(ctx, r->in.server_name, ctx 2834 source3/lib/netapi/user.c werr = libnetapi_samr_open_domain(ctx, pipe_cli, ctx 2847 source3/lib/netapi/user.c status = rpccli_samr_LookupNames(pipe_cli, ctx, ctx 2858 source3/lib/netapi/user.c status = rpccli_samr_OpenUser(pipe_cli, ctx, ctx 2868 source3/lib/netapi/user.c status = rpccli_samr_GetGroupsForUser(pipe_cli, ctx, ctx 2876 source3/lib/netapi/user.c rids = talloc_array(ctx, uint32_t, rid_array->count); ctx 2886 source3/lib/netapi/user.c status = rpccli_samr_LookupRids(pipe_cli, ctx, ctx 2899 source3/lib/netapi/user.c status = add_GROUP_USERS_INFO_X_buffer(ctx, ctx 2915 source3/lib/netapi/user.c if (ctx->disable_policy_handle_cache) { ctx 2916 source3/lib/netapi/user.c libnetapi_samr_close_domain_handle(ctx, &domain_handle); ctx 2917 source3/lib/netapi/user.c libnetapi_samr_close_connect_handle(ctx, &connect_handle); ctx 2926 source3/lib/netapi/user.c WERROR NetUserGetGroups_l(struct libnetapi_ctx *ctx, ctx 2929 source3/lib/netapi/user.c LIBNETAPI_REDIRECT_TO_LOCALHOST(ctx, r, NetUserGetGroups); ctx 2935 source3/lib/netapi/user.c WERROR NetUserSetGroups_r(struct libnetapi_ctx *ctx, ctx 2978 source3/lib/netapi/user.c werr = libnetapi_open_pipe(ctx, r->in.server_name, ctx 2985 source3/lib/netapi/user.c werr = libnetapi_samr_open_domain(ctx, pipe_cli, ctx 2998 source3/lib/netapi/user.c status = rpccli_samr_LookupNames(pipe_cli, ctx, ctx 3009 source3/lib/netapi/user.c status = rpccli_samr_OpenUser(pipe_cli, ctx, ctx 3028 source3/lib/netapi/user.c lsa_names = talloc_array(ctx, struct lsa_String, r->in.num_entries); ctx 3048 source3/lib/netapi/user.c status = rpccli_samr_LookupNames(pipe_cli, ctx, ctx 3062 source3/lib/netapi/user.c status = rpccli_samr_GetGroupsForUser(pipe_cli, ctx, ctx 3081 source3/lib/netapi/user.c if (!add_rid_to_array_unique(ctx, ctx 3101 source3/lib/netapi/user.c if (!add_rid_to_array_unique(ctx, ctx 3113 source3/lib/netapi/user.c status = rpccli_samr_OpenGroup(pipe_cli, ctx, ctx 3123 source3/lib/netapi/user.c status = rpccli_samr_AddGroupMember(pipe_cli, ctx, ctx 3133 source3/lib/netapi/user.c rpccli_samr_Close(pipe_cli, ctx, &group_handle); ctx 3140 source3/lib/netapi/user.c status = rpccli_samr_OpenGroup(pipe_cli, ctx, ctx 3150 source3/lib/netapi/user.c status = rpccli_samr_DeleteGroupMember(pipe_cli, ctx, ctx 3159 source3/lib/netapi/user.c rpccli_samr_Close(pipe_cli, ctx, &group_handle); ctx 3167 source3/lib/netapi/user.c rpccli_samr_Close(pipe_cli, ctx, &group_handle); ctx 3170 source3/lib/netapi/user.c if (ctx->disable_policy_handle_cache) { ctx 3171 source3/lib/netapi/user.c libnetapi_samr_close_domain_handle(ctx, &domain_handle); ctx 3172 source3/lib/netapi/user.c libnetapi_samr_close_connect_handle(ctx, &connect_handle); ctx 3181 source3/lib/netapi/user.c WERROR NetUserSetGroups_l(struct libnetapi_ctx *ctx, ctx 3184 source3/lib/netapi/user.c LIBNETAPI_REDIRECT_TO_LOCALHOST(ctx, r, NetUserSetGroups); ctx 3216 source3/lib/netapi/user.c WERROR NetUserGetLocalGroups_r(struct libnetapi_ctx *ctx, ctx 3260 source3/lib/netapi/user.c werr = libnetapi_open_pipe(ctx, r->in.server_name, ctx 3267 source3/lib/netapi/user.c werr = libnetapi_samr_open_domain(ctx, pipe_cli, ctx 3279 source3/lib/netapi/user.c werr = libnetapi_samr_open_builtin_domain(ctx, pipe_cli, ctx 3292 source3/lib/netapi/user.c status = rpccli_samr_LookupNames(pipe_cli, ctx, ctx 3303 source3/lib/netapi/user.c status = rpccli_samr_OpenUser(pipe_cli, ctx, ctx 3313 source3/lib/netapi/user.c status = rpccli_samr_GetGroupsForUser(pipe_cli, ctx, ctx 3327 source3/lib/netapi/user.c sid_array.sids = TALLOC_ARRAY(ctx, struct lsa_SidPtr, sid_array.num_sids); ctx 3333 source3/lib/netapi/user.c sid_array.sids[0].sid = sid_dup_talloc(ctx, &user_sid); ctx 3347 source3/lib/netapi/user.c sid_array.sids[i+1].sid = sid_dup_talloc(ctx, &sid); ctx 3354 source3/lib/netapi/user.c status = rpccli_samr_GetAliasMembership(pipe_cli, ctx, ctx 3364 source3/lib/netapi/user.c if (!add_rid_to_array_unique(ctx, domain_rids.ids[i], ctx 3371 source3/lib/netapi/user.c status = rpccli_samr_GetAliasMembership(pipe_cli, ctx, ctx 3381 source3/lib/netapi/user.c if (!add_rid_to_array_unique(ctx, builtin_rids.ids[i], ctx 3388 source3/lib/netapi/user.c status = rpccli_samr_LookupRids(pipe_cli, ctx, ctx 3400 source3/lib/netapi/user.c status = add_LOCALGROUP_USERS_INFO_X_buffer(ctx, ctx 3415 source3/lib/netapi/user.c if (ctx->disable_policy_handle_cache) { ctx 3416 source3/lib/netapi/user.c libnetapi_samr_close_domain_handle(ctx, &domain_handle); ctx 3417 source3/lib/netapi/user.c libnetapi_samr_close_connect_handle(ctx, &connect_handle); ctx 3426 source3/lib/netapi/user.c WERROR NetUserGetLocalGroups_l(struct libnetapi_ctx *ctx, ctx 3429 source3/lib/netapi/user.c LIBNETAPI_REDIRECT_TO_LOCALHOST(ctx, r, NetUserGetLocalGroups); ctx 30 source3/lib/packet.c static int packet_context_destructor(struct packet_context *ctx) ctx 32 source3/lib/packet.c return close(ctx->fd); ctx 55 source3/lib/packet.c NTSTATUS packet_fd_read(struct packet_context *ctx) ctx 61 source3/lib/packet.c res = ioctl(ctx->fd, FIONREAD, &available); ctx 74 source3/lib/packet.c new_size = ctx->in.length + available; ctx 76 source3/lib/packet.c if (new_size < ctx->in.length) { ctx 81 source3/lib/packet.c if (!(in = TALLOC_REALLOC_ARRAY(ctx, ctx->in.data, uint8, new_size))) { ctx 86 source3/lib/packet.c ctx->in.data = in; ctx 88 source3/lib/packet.c res = recv(ctx->fd, in + ctx->in.length, available, 0); ctx 99 source3/lib/packet.c ctx->in.length += res; ctx 104 source3/lib/packet.c NTSTATUS packet_fd_read_sync(struct packet_context *ctx) ctx 110 source3/lib/packet.c FD_SET(ctx->fd, &r_fds); ctx 112 source3/lib/packet.c res = sys_select(ctx->fd+1, &r_fds, NULL, NULL, NULL); ctx 119 source3/lib/packet.c return packet_fd_read(ctx); ctx 122 source3/lib/packet.c bool packet_handler(struct packet_context *ctx, ctx 134 source3/lib/packet.c if (!full_req(ctx->in.data, ctx->in.length, &length, priv)) { ctx 138 source3/lib/packet.c if (length > ctx->in.length) { ctx 143 source3/lib/packet.c if (length == ctx->in.length) { ctx 144 source3/lib/packet.c buf = ctx->in.data; ctx 145 source3/lib/packet.c ctx->in.data = NULL; ctx 146 source3/lib/packet.c ctx->in.length = 0; ctx 148 source3/lib/packet.c buf = (uint8_t *)TALLOC_MEMDUP(ctx, ctx->in.data, length); ctx 154 source3/lib/packet.c memmove(ctx->in.data, ctx->in.data + length, ctx 155 source3/lib/packet.c ctx->in.length - length); ctx 156 source3/lib/packet.c ctx->in.length -= length; ctx 166 source3/lib/packet.c size_t packet_outgoing_bytes(struct packet_context *ctx) ctx 168 source3/lib/packet.c return ctx->out.length; ctx 174 source3/lib/packet.c NTSTATUS packet_fd_write(struct packet_context *ctx) ctx 178 source3/lib/packet.c sent = send(ctx->fd, ctx->out.data, ctx->out.length, 0); ctx 185 source3/lib/packet.c memmove(ctx->out.data, ctx->out.data + sent, ctx 186 source3/lib/packet.c ctx->out.length - sent); ctx 187 source3/lib/packet.c ctx->out.length -= sent; ctx 195 source3/lib/packet.c NTSTATUS packet_flush(struct packet_context *ctx) ctx 197 source3/lib/packet.c while (ctx->out.length != 0) { ctx 198 source3/lib/packet.c NTSTATUS status = packet_fd_write(ctx); ctx 212 source3/lib/packet.c NTSTATUS packet_send(struct packet_context *ctx, int num_blobs, ...) ctx 219 source3/lib/packet.c len = ctx->out.length; ctx 240 source3/lib/packet.c if (!(out = TALLOC_REALLOC_ARRAY(ctx, ctx->out.data, uint8, len))) { ctx 245 source3/lib/packet.c ctx->out.data = out; ctx 251 source3/lib/packet.c memcpy(ctx->out.data+ctx->out.length, blob.data, blob.length); ctx 252 source3/lib/packet.c ctx->out.length += blob.length; ctx 256 source3/lib/packet.c SMB_ASSERT(ctx->out.length == len); ctx 263 source3/lib/packet.c int packet_get_fd(struct packet_context *ctx) ctx 265 source3/lib/packet.c return ctx->fd; ctx 134 source3/lib/secdesc.c SEC_DESC_BUF *sec_desc_merge(TALLOC_CTX *ctx, SEC_DESC_BUF *new_sdb, SEC_DESC_BUF *old_sdb) ctx 171 source3/lib/secdesc.c psd = make_sec_desc(ctx, new_sdb->sd->revision, secdesc_type, ctx 174 source3/lib/secdesc.c return_sdb = make_sec_desc_buf(ctx, secdesc_size, psd); ctx 183 source3/lib/secdesc.c SEC_DESC *make_sec_desc(TALLOC_CTX *ctx, ctx 194 source3/lib/secdesc.c if(( dst = TALLOC_ZERO_P(ctx, SEC_DESC)) == NULL) ctx 256 source3/lib/secdesc.c SEC_DESC *dup_sec_desc(TALLOC_CTX *ctx, const SEC_DESC *src) ctx 263 source3/lib/secdesc.c return make_sec_desc( ctx, src->revision, src->type, ctx 396 source3/lib/secdesc.c SEC_DESC *make_standard_sec_desc(TALLOC_CTX *ctx, const DOM_SID *owner_sid, const DOM_SID *grp_sid, ctx 399 source3/lib/secdesc.c return make_sec_desc(ctx, SECURITY_DESCRIPTOR_REVISION_1, ctx 408 source3/lib/secdesc.c SEC_DESC_BUF *make_sec_desc_buf(TALLOC_CTX *ctx, size_t len, SEC_DESC *sec_desc) ctx 412 source3/lib/secdesc.c if((dst = TALLOC_ZERO_P(ctx, SEC_DESC_BUF)) == NULL) ctx 418 source3/lib/secdesc.c if(sec_desc && ((dst->sd = dup_sec_desc(ctx, sec_desc)) == NULL)) { ctx 429 source3/lib/secdesc.c SEC_DESC_BUF *dup_sec_desc_buf(TALLOC_CTX *ctx, SEC_DESC_BUF *src) ctx 434 source3/lib/secdesc.c return make_sec_desc_buf( ctx, src->sd_size, src->sd); ctx 441 source3/lib/secdesc.c NTSTATUS sec_desc_add_sid(TALLOC_CTX *ctx, SEC_DESC **psd, DOM_SID *sid, uint32 mask, size_t *sd_size) ctx 448 source3/lib/secdesc.c if (!ctx || !psd || !sid || !sd_size) ctx 453 source3/lib/secdesc.c status = sec_ace_add_sid(ctx, &ace, psd[0]->dacl->aces, &psd[0]->dacl->num_aces, sid, mask); ctx 458 source3/lib/secdesc.c if (!(dacl = make_sec_acl(ctx, psd[0]->dacl->revision, psd[0]->dacl->num_aces, ace))) ctx 461 source3/lib/secdesc.c if (!(sd = make_sec_desc(ctx, psd[0]->revision, psd[0]->type, psd[0]->owner_sid, ctx 493 source3/lib/secdesc.c NTSTATUS sec_desc_del_sid(TALLOC_CTX *ctx, SEC_DESC **psd, DOM_SID *sid, size_t *sd_size) ctx 500 source3/lib/secdesc.c if (!ctx || !psd[0] || !sid || !sd_size) ctx 505 source3/lib/secdesc.c status = sec_ace_del_sid(ctx, &ace, psd[0]->dacl->aces, &psd[0]->dacl->num_aces, sid); ctx 510 source3/lib/secdesc.c if (!(dacl = make_sec_acl(ctx, psd[0]->dacl->revision, psd[0]->dacl->num_aces, ace))) ctx 513 source3/lib/secdesc.c if (!(sd = make_sec_desc(ctx, psd[0]->revision, psd[0]->type, psd[0]->owner_sid, ctx 549 source3/lib/secdesc.c NTSTATUS se_create_child_secdesc(TALLOC_CTX *ctx, ctx 575 source3/lib/secdesc.c if (!(new_ace_list = TALLOC_ARRAY(ctx, SEC_ACE, ctx 660 source3/lib/secdesc.c new_dacl = make_sec_acl(ctx, ctx 670 source3/lib/secdesc.c *ppsd = make_sec_desc(ctx, ctx 684 source3/lib/secdesc.c NTSTATUS se_create_child_secdesc_buf(TALLOC_CTX *ctx, ctx 694 source3/lib/secdesc.c status = se_create_child_secdesc(ctx, ctx 705 source3/lib/secdesc.c *ppsdb = make_sec_desc_buf(ctx, size, sd); ctx 125 source3/lib/sharesec.c SEC_DESC *get_share_security_default( TALLOC_CTX *ctx, size_t *psize, uint32 def_access) ctx 138 source3/lib/sharesec.c if ((psa = make_sec_acl(ctx, NT4_ACL_REVISION, 1, &ace)) != NULL) { ctx 139 source3/lib/sharesec.c psd = make_sec_desc(ctx, SECURITY_DESCRIPTOR_REVISION_1, ctx 156 source3/lib/sharesec.c SEC_DESC *get_share_security( TALLOC_CTX *ctx, const char *servicename, ctx 168 source3/lib/sharesec.c if (!(key = talloc_asprintf(ctx, "SECDESC/%s", servicename))) { ctx 178 source3/lib/sharesec.c return get_share_security_default(ctx, psize, ctx 182 source3/lib/sharesec.c status = unmarshall_sec_desc(ctx, data.dptr, data.dsize, &psd); ctx 304 source3/lib/sharesec.c bool parse_usershare_acl(TALLOC_CTX *ctx, const char *acl_str, SEC_DESC **ppsd) ctx 319 source3/lib/sharesec.c SEC_DESC *default_psd = get_share_security_default(ctx, &s_size, GENERIC_READ_ACCESS); ctx 332 source3/lib/sharesec.c ace_list = TALLOC_ARRAY(ctx, SEC_ACE, num_aces); ctx 345 source3/lib/sharesec.c if (!next_token_talloc(ctx, &pacl, &sidstr, ":")) { ctx 390 source3/lib/sharesec.c if ((psa = make_sec_acl(ctx, NT4_ACL_REVISION, num_aces, ace_list)) != NULL) { ctx 391 source3/lib/sharesec.c psd = make_sec_desc(ctx, SECURITY_DESCRIPTOR_REVISION_1, ctx 39 source3/lib/smbconf/smbconf_reg.c static struct reg_private_data *rpd(struct smbconf_ctx *ctx) ctx 41 source3/lib/smbconf/smbconf_reg.c return (struct reg_private_data *)(ctx->data); ctx 78 source3/lib/smbconf/smbconf_reg.c struct smbconf_ctx *ctx, ctx 86 source3/lib/smbconf/smbconf_reg.c *key = rpd(ctx)->base_key; ctx 89 source3/lib/smbconf/smbconf_reg.c werr = reg_openkey(mem_ctx, rpd(ctx)->base_key, servicename, ctx 106 source3/lib/smbconf/smbconf_reg.c TALLOC_CTX *ctx = talloc_stackframe(); ctx 109 source3/lib/smbconf/smbconf_reg.c werr = reg_queryvalue(ctx, key, param, &value); ctx 114 source3/lib/smbconf/smbconf_reg.c talloc_free(ctx); ctx 122 source3/lib/smbconf/smbconf_reg.c struct smbconf_ctx *ctx, ctx 135 source3/lib/smbconf/smbconf_reg.c werr = reg_createkey(mem_ctx, rpd(ctx)->base_key, subkeyname, ctx 535 source3/lib/smbconf/smbconf_reg.c static WERROR smbconf_reg_init(struct smbconf_ctx *ctx, const char *path) ctx 543 source3/lib/smbconf/smbconf_reg.c ctx->path = talloc_strdup(ctx, path); ctx 544 source3/lib/smbconf/smbconf_reg.c if (ctx->path == NULL) { ctx 549 source3/lib/smbconf/smbconf_reg.c ctx->data = TALLOC_ZERO_P(ctx, struct reg_private_data); ctx 551 source3/lib/smbconf/smbconf_reg.c werr = ntstatus_to_werror(registry_create_admin_token(ctx, &token)); ctx 556 source3/lib/smbconf/smbconf_reg.c rpd(ctx)->open = false; ctx 563 source3/lib/smbconf/smbconf_reg.c werr = ctx->ops->open_conf(ctx); ctx 569 source3/lib/smbconf/smbconf_reg.c werr = reg_open_path(ctx, ctx->path, ctx 571 source3/lib/smbconf/smbconf_reg.c token, &rpd(ctx)->base_key); ctx 580 source3/lib/smbconf/smbconf_reg.c static int smbconf_reg_shutdown(struct smbconf_ctx *ctx) ctx 582 source3/lib/smbconf/smbconf_reg.c return ctx->ops->close_conf(ctx); ctx 585 source3/lib/smbconf/smbconf_reg.c static bool smbconf_reg_requires_messaging(struct smbconf_ctx *ctx) ctx 595 source3/lib/smbconf/smbconf_reg.c static bool smbconf_reg_is_writeable(struct smbconf_ctx *ctx) ctx 606 source3/lib/smbconf/smbconf_reg.c static WERROR smbconf_reg_open(struct smbconf_ctx *ctx) ctx 610 source3/lib/smbconf/smbconf_reg.c if (rpd(ctx)->open) { ctx 616 source3/lib/smbconf/smbconf_reg.c rpd(ctx)->open = true; ctx 621 source3/lib/smbconf/smbconf_reg.c static int smbconf_reg_close(struct smbconf_ctx *ctx) ctx 625 source3/lib/smbconf/smbconf_reg.c if (!rpd(ctx)->open) { ctx 631 source3/lib/smbconf/smbconf_reg.c rpd(ctx)->open = false; ctx 640 source3/lib/smbconf/smbconf_reg.c static void smbconf_reg_get_csn(struct smbconf_ctx *ctx, ctx 648 source3/lib/smbconf/smbconf_reg.c if (!W_ERROR_IS_OK(ctx->ops->open_conf(ctx))) { ctx 658 source3/lib/smbconf/smbconf_reg.c static WERROR smbconf_reg_drop(struct smbconf_ctx *ctx) ctx 668 source3/lib/smbconf/smbconf_reg.c werr = ntstatus_to_werror(registry_create_admin_token(ctx, &token)); ctx 674 source3/lib/smbconf/smbconf_reg.c path = talloc_strdup(mem_ctx, ctx->path); ctx 706 source3/lib/smbconf/smbconf_reg.c static WERROR smbconf_reg_get_share_names(struct smbconf_ctx *ctx, ctx 727 source3/lib/smbconf/smbconf_reg.c if (smbconf_reg_key_has_values(rpd(ctx)->base_key)) { ctx 737 source3/lib/smbconf/smbconf_reg.c if (smbconf_share_exists(ctx, GLOBAL_NAME)) { ctx 747 source3/lib/smbconf/smbconf_reg.c werr = reg_enumkey(tmp_ctx, rpd(ctx)->base_key, count, ctx 785 source3/lib/smbconf/smbconf_reg.c static bool smbconf_reg_share_exists(struct smbconf_ctx *ctx, ctx 793 source3/lib/smbconf/smbconf_reg.c werr = smbconf_reg_open_service_key(mem_ctx, ctx, servicename, ctx 806 source3/lib/smbconf/smbconf_reg.c static WERROR smbconf_reg_create_share(struct smbconf_ctx *ctx, ctx 816 source3/lib/smbconf/smbconf_reg.c werr = smbconf_reg_create_service_key(talloc_tos(), ctx, ctx 826 source3/lib/smbconf/smbconf_reg.c static WERROR smbconf_reg_get_share(struct smbconf_ctx *ctx, ctx 836 source3/lib/smbconf/smbconf_reg.c werr = smbconf_reg_open_service_key(tmp_ctx, ctx, servicename, ctx 873 source3/lib/smbconf/smbconf_reg.c static WERROR smbconf_reg_delete_share(struct smbconf_ctx *ctx, ctx 880 source3/lib/smbconf/smbconf_reg.c werr = reg_deletekey_recursive(mem_ctx, rpd(ctx)->base_key, ctx 883 source3/lib/smbconf/smbconf_reg.c werr = smbconf_reg_delete_values(rpd(ctx)->base_key); ctx 893 source3/lib/smbconf/smbconf_reg.c static WERROR smbconf_reg_set_parameter(struct smbconf_ctx *ctx, ctx 902 source3/lib/smbconf/smbconf_reg.c werr = smbconf_reg_open_service_key(mem_ctx, ctx, service, ctx 918 source3/lib/smbconf/smbconf_reg.c static WERROR smbconf_reg_get_parameter(struct smbconf_ctx *ctx, ctx 928 source3/lib/smbconf/smbconf_reg.c werr = smbconf_reg_open_service_key(mem_ctx, ctx, service, ctx 964 source3/lib/smbconf/smbconf_reg.c static WERROR smbconf_reg_delete_parameter(struct smbconf_ctx *ctx, ctx 972 source3/lib/smbconf/smbconf_reg.c werr = smbconf_reg_open_service_key(mem_ctx, ctx, service, ctx 995 source3/lib/smbconf/smbconf_reg.c static WERROR smbconf_reg_get_includes(struct smbconf_ctx *ctx, ctx 1005 source3/lib/smbconf/smbconf_reg.c werr = smbconf_reg_open_service_key(tmp_ctx, ctx, service, ctx 1019 source3/lib/smbconf/smbconf_reg.c static WERROR smbconf_reg_set_includes(struct smbconf_ctx *ctx, ctx 1028 source3/lib/smbconf/smbconf_reg.c werr = smbconf_reg_open_service_key(tmp_ctx, ctx, service, ctx 1049 source3/lib/smbconf/smbconf_reg.c static WERROR smbconf_reg_delete_includes(struct smbconf_ctx *ctx, ctx 1056 source3/lib/smbconf/smbconf_reg.c werr = smbconf_reg_open_service_key(tmp_ctx, ctx, service, ctx 1074 source3/lib/smbconf/smbconf_reg.c static WERROR smbconf_reg_transaction_start(struct smbconf_ctx *ctx) ctx 1079 source3/lib/smbconf/smbconf_reg.c static WERROR smbconf_reg_transaction_commit(struct smbconf_ctx *ctx) ctx 1084 source3/lib/smbconf/smbconf_reg.c static WERROR smbconf_reg_transaction_cancel(struct smbconf_ctx *ctx) ctx 36 source3/lib/smbconf/testsuite.c static bool test_get_includes(struct smbconf_ctx *ctx) ctx 45 source3/lib/smbconf/testsuite.c werr = smbconf_get_global_includes(ctx, mem_ctx, ctx 64 source3/lib/smbconf/testsuite.c static bool test_set_get_includes(struct smbconf_ctx *ctx) ctx 80 source3/lib/smbconf/testsuite.c werr = smbconf_set_global_includes(ctx, set_num_includes, set_includes); ctx 87 source3/lib/smbconf/testsuite.c werr = smbconf_get_global_includes(ctx, mem_ctx, &get_num_includes, ctx 121 source3/lib/smbconf/testsuite.c static bool test_delete_includes(struct smbconf_ctx *ctx) ctx 135 source3/lib/smbconf/testsuite.c werr = smbconf_set_global_includes(ctx, set_num_includes, set_includes); ctx 142 source3/lib/smbconf/testsuite.c werr = smbconf_delete_global_includes(ctx); ctx 149 source3/lib/smbconf/testsuite.c werr = smbconf_get_global_includes(ctx, mem_ctx, &get_num_includes, ctx 162 source3/lib/smbconf/testsuite.c werr = smbconf_delete_global_includes(ctx); ctx 32 source3/lib/smbrun.c TALLOC_CTX *ctx = talloc_stackframe(); ctx 35 source3/lib/smbrun.c path = talloc_asprintf(ctx, ctx 39 source3/lib/smbrun.c TALLOC_FREE(ctx); ctx 50 source3/lib/smbrun.c TALLOC_FREE(ctx); ctx 58 source3/lib/smbrun.c TALLOC_FREE(ctx); ctx 414 source3/lib/substitute.c TALLOC_CTX *ctx = talloc_tos(); ctx 420 source3/lib/substitute.c server_path = talloc_strdup(ctx, get_user_home_dir(ctx, user_name)); ctx 429 source3/lib/substitute.c char *automount_value = automount_lookup(ctx, user_name); ctx 438 source3/lib/substitute.c server_path = talloc_strdup(ctx, ctx 465 source3/lib/substitute.c TALLOC_CTX *ctx = talloc_tos(); ctx 472 source3/lib/substitute.c server_name = talloc_strdup(ctx, local_machine_name); ctx 474 source3/lib/substitute.c server_name = talloc_strdup(ctx, global_myname()); ctx 485 source3/lib/substitute.c char *automount_value = automount_lookup(ctx, user_name); ctx 489 source3/lib/substitute.c srv = talloc_strdup(ctx, automount_value); ctx 904 source3/lib/substitute.c char *standard_sub_conn(TALLOC_CTX *ctx, connection_struct *conn, const char *str) ctx 906 source3/lib/substitute.c return talloc_sub_advanced(ctx, ctx 243 source3/lib/tdb_validate.c static int tdb_backup(TALLOC_CTX *ctx, const char *src_path, ctx 272 source3/lib/tdb_validate.c tmp_path = talloc_asprintf(ctx, "%s%s", dst_path, ".tmp"); ctx 340 source3/lib/tdb_validate.c static int rename_file_with_suffix(TALLOC_CTX *ctx, const char *path, ctx 346 source3/lib/tdb_validate.c dst_path = talloc_asprintf(ctx, "%s%s", path, suffix); ctx 367 source3/lib/tdb_validate.c static int tdb_backup_with_rotate(TALLOC_CTX *ctx, const char *src_path, ctx 375 source3/lib/tdb_validate.c rename_file_with_suffix(ctx, dst_path, rotate_suffix); ctx 377 source3/lib/tdb_validate.c ret = tdb_backup(ctx, src_path, dst_path, hash_size); ctx 384 source3/lib/tdb_validate.c char *rotate_path = talloc_asprintf(ctx, "%s%s", dst_path, ctx 394 source3/lib/tdb_validate.c ret = tdb_backup(ctx, src_path, dst_path, hash_size); ctx 433 source3/lib/tdb_validate.c TALLOC_CTX *ctx = NULL; ctx 435 source3/lib/tdb_validate.c ctx = talloc_new(NULL); ctx 436 source3/lib/tdb_validate.c if (ctx == NULL) { ctx 441 source3/lib/tdb_validate.c tdb_path_backup = talloc_asprintf(ctx, "%s%s", tdb_path, backup_suffix); ctx 447 source3/lib/tdb_validate.c ret = tdb_backup_with_rotate(ctx, tdb_path, tdb_path_backup, 0, ctx 476 source3/lib/tdb_validate.c int renamed = rename_file_with_suffix(ctx, tdb_path, ctx 489 source3/lib/tdb_validate.c ret = tdb_backup_with_rotate(ctx, tdb_path_backup, tdb_path, 0, ctx 501 source3/lib/tdb_validate.c TALLOC_FREE(ctx); ctx 191 source3/lib/time.c char *current_timestring(TALLOC_CTX *ctx, bool hires) ctx 243 source3/lib/time.c return talloc_strdup(ctx, TimeBuf); ctx 731 source3/lib/util.c static char *dos_clean_name(TALLOC_CTX *ctx, const char *s) ctx 739 source3/lib/util.c str = talloc_all_string_sub(ctx, s, "\\\\", "\\"); ctx 748 source3/lib/util.c str = talloc_strdup(ctx, ".\\"); ctx 766 source3/lib/util.c str = talloc_asprintf(ctx, ctx 776 source3/lib/util.c return talloc_all_string_sub(ctx, str, "\\.\\", "\\"); ctx 783 source3/lib/util.c char *unix_clean_name(TALLOC_CTX *ctx, const char *s) ctx 791 source3/lib/util.c str = talloc_all_string_sub(ctx, s, "//","/"); ctx 800 source3/lib/util.c str = talloc_strdup(ctx, "./"); ctx 818 source3/lib/util.c str = talloc_asprintf(ctx, ctx 828 source3/lib/util.c return talloc_all_string_sub(ctx, str, "/./", "/"); ctx 831 source3/lib/util.c char *clean_name(TALLOC_CTX *ctx, const char *s) ctx 833 source3/lib/util.c char *str = dos_clean_name(ctx, s); ctx 837 source3/lib/util.c return unix_clean_name(ctx, str); ctx 1188 source3/lib/util.c char *get_mydnsdomname(TALLOC_CTX *ctx) ctx 1201 source3/lib/util.c return talloc_strdup(ctx, p); ctx 1203 source3/lib/util.c return talloc_strdup(ctx, ""); ctx 1239 source3/lib/util.c static char *strip_mount_options(TALLOC_CTX *ctx, const char *str) ctx 1248 source3/lib/util.c return talloc_strdup(ctx, p); ctx 1262 source3/lib/util.c char *automount_lookup(TALLOC_CTX *ctx, const char *user_name) ctx 1286 source3/lib/util.c value = talloc_strdup(ctx, ctx 1292 source3/lib/util.c value = talloc_string_sub(ctx, ctx 1302 source3/lib/util.c value = strip_mount_options(ctx, value); ctx 1310 source3/lib/util.c char *automount_lookup(TALLOC_CTX *ctx, const char *user_name) ctx 1330 source3/lib/util.c value = talloc_strdup(ctx, nis_result); ctx 1334 source3/lib/util.c value = strip_mount_options(ctx, value); ctx 1380 source3/lib/util.c TALLOC_CTX *ctx = talloc_tos(); ctx 1384 source3/lib/util.c pass = getpwuid_alloc(ctx,uid); ctx 1386 source3/lib/util.c name = talloc_strdup(ctx,pass->pw_name); ctx 1389 source3/lib/util.c name = talloc_asprintf(ctx, ctx 2553 source3/lib/util.c TALLOC_CTX *ctx = talloc_stackframe(); ctx 2559 source3/lib/util.c p2 = talloc_strdup(ctx,pattern); ctx 2560 source3/lib/util.c s2 = talloc_strdup(ctx,string); ctx 2562 source3/lib/util.c TALLOC_FREE(ctx); ctx 2576 source3/lib/util.c TALLOC_FREE(ctx); ctx 2581 source3/lib/util.c TALLOC_FREE(ctx); ctx 2979 source3/lib/util.c void *_talloc_zero_zeronull(const void *ctx, size_t size, const char *name) ctx 2987 source3/lib/util.c p = talloc_named_const(ctx, size, name); ctx 3022 source3/lib/util.c void *_talloc_array_zeronull(const void *ctx, size_t el_size, unsigned count, const char *name) ctx 3032 source3/lib/util.c return talloc_named_const(ctx, el_size * count, name); ctx 3040 source3/lib/util.c void *_talloc_zero_array_zeronull(const void *ctx, size_t el_size, unsigned count, const char *name) ctx 3050 source3/lib/util.c return _talloc_zero(ctx, el_size * count, name); ctx 254 source3/lib/util_seaccess.c NTSTATUS samr_make_sam_obj_sd(TALLOC_CTX *ctx, SEC_DESC **psd, size_t *sd_size) ctx 279 source3/lib/util_seaccess.c if ((psa = make_sec_acl(ctx, NT4_ACL_REVISION, 3, ace)) == NULL) ctx 282 source3/lib/util_seaccess.c if ((*psd = make_sec_desc(ctx, SECURITY_DESCRIPTOR_REVISION_1, ctx 558 source3/lib/util_sid.c DOM_SID *sid_dup_talloc(TALLOC_CTX *ctx, const DOM_SID *src) ctx 565 source3/lib/util_sid.c if((dst = TALLOC_ZERO_P(ctx, DOM_SID)) != NULL) { ctx 150 source3/lib/util_sock.c char *print_canonical_sockaddr(TALLOC_CTX *ctx, ctx 171 source3/lib/util_sock.c dest = talloc_asprintf(ctx, "[%s]", addr); ctx 176 source3/lib/util_sock.c dest = talloc_asprintf(ctx, "%s", addr); ctx 391 source3/lib/util_sock.c TALLOC_CTX *ctx = talloc_stackframe(); ctx 394 source3/lib/util_sock.c while (next_token_talloc(ctx, &options, &tok," \t,")) { ctx 446 source3/lib/util_sock.c TALLOC_FREE(ctx); ctx 1897 source3/lib/util_sock.c TALLOC_CTX *ctx = talloc_tos(); ctx 1908 source3/lib/util_sock.c name = talloc_strdup(ctx, s); ctx 1104 source3/lib/util_str.c char *talloc_all_string_sub(TALLOC_CTX *ctx, ctx 1109 source3/lib/util_str.c return talloc_string_sub2(ctx, src, pattern, insert, ctx 1596 source3/lib/util_str.c TALLOC_CTX *ctx = list; ctx 1601 source3/lib/util_str.c tmpstr = talloc_sub_basic(ctx, smb_name, domain_name, s); ctx 1623 source3/lib/util_str.c TALLOC_CTX *ctx = list; ctx 1646 source3/lib/util_str.c t = TALLOC_ARRAY(ctx, char, ls +ld +1); ctx 279 source3/lib/util_unistr.c int rpcstr_pull_talloc(TALLOC_CTX *ctx, ctx 285 source3/lib/util_unistr.c return pull_ucs2_base_talloc(ctx, ctx 306 source3/lib/util_unistr.c int rpcstr_push_talloc(TALLOC_CTX *ctx, smb_ucs2_t **dest, const char *src) ctx 309 source3/lib/util_unistr.c if (push_ucs2_talloc(ctx, dest, src, &size)) ctx 103 source3/libaddns/dns.h void *_talloc_zero_zeronull(const void *ctx, size_t size, const char *name); ctx 105 source3/libaddns/dns.h void *_talloc_array_zeronull(const void *ctx, size_t el_size, unsigned count, const char *name); ctx 106 source3/libaddns/dns.h void *_talloc_zero_array_zeronull(const void *ctx, size_t el_size, unsigned count, const char *name); ctx 109 source3/libaddns/dns.h #define TALLOC(ctx, size) talloc_zeronull(ctx, size, __location__) ctx 110 source3/libaddns/dns.h #define TALLOC_P(ctx, type) (type *)talloc_zeronull(ctx, sizeof(type), #type) ctx 111 source3/libaddns/dns.h #define TALLOC_ARRAY(ctx, type, count) (type *)_talloc_array_zeronull(ctx, sizeof(type), count, #type) ctx 112 source3/libaddns/dns.h #define TALLOC_MEMDUP(ctx, ptr, size) _talloc_memdup_zeronull(ctx, ptr, size, __location__) ctx 113 source3/libaddns/dns.h #define TALLOC_ZERO(ctx, size) _talloc_zero_zeronull(ctx, size, __location__) ctx 114 source3/libaddns/dns.h #define TALLOC_ZERO_P(ctx, type) (type *)_talloc_zero_zeronull(ctx, sizeof(type), #type) ctx 115 source3/libaddns/dns.h #define TALLOC_ZERO_ARRAY(ctx, type, count) (type *)_talloc_zero_array_zeronull(ctx, sizeof(type), count, #type) ctx 116 source3/libaddns/dns.h #define TALLOC_SIZE(ctx, size) talloc_zeronull(ctx, size, __location__) ctx 117 source3/libaddns/dns.h #define TALLOC_ZERO_SIZE(ctx, size) _talloc_zero_zeronull(ctx, size, __location__) ctx 121 source3/libaddns/dns.h #define TALLOC(ctx, size) talloc_named_const(ctx, size, __location__) ctx 122 source3/libaddns/dns.h #define TALLOC_P(ctx, type) (type *)talloc_named_const(ctx, sizeof(type), #type) ctx 123 source3/libaddns/dns.h #define TALLOC_ARRAY(ctx, type, count) (type *)_talloc_array(ctx, sizeof(type), count, #type) ctx 124 source3/libaddns/dns.h #define TALLOC_MEMDUP(ctx, ptr, size) _talloc_memdup(ctx, ptr, size, __location__) ctx 125 source3/libaddns/dns.h #define TALLOC_ZERO(ctx, size) _talloc_zero(ctx, size, __location__) ctx 126 source3/libaddns/dns.h #define TALLOC_ZERO_P(ctx, type) (type *)_talloc_zero(ctx, sizeof(type), #type) ctx 127 source3/libaddns/dns.h #define TALLOC_ZERO_ARRAY(ctx, type, count) (type *)_talloc_zero_array(ctx, sizeof(type), count, #type) ctx 128 source3/libaddns/dns.h #define TALLOC_SIZE(ctx, size) talloc_named_const(ctx, size, __location__) ctx 129 source3/libaddns/dns.h #define TALLOC_ZERO_SIZE(ctx, size) _talloc_zero(ctx, size, __location__) ctx 133 source3/libaddns/dns.h #define TALLOC_REALLOC(ctx, ptr, count) _talloc_realloc(ctx, ptr, count, __location__) ctx 134 source3/libaddns/dns.h #define TALLOC_REALLOC_ARRAY(ctx, ptr, type, count) (type *)_talloc_realloc_array(ctx, ptr, sizeof(type), count, #type) ctx 135 source3/libaddns/dns.h #define talloc_destroy(ctx) talloc_free(ctx) ctx 137 source3/libaddns/dns.h #define TALLOC_FREE(ctx) do { talloc_free(ctx); ctx=NULL; } while(0) ctx 84 source3/libaddns/dnsgss.c gss_ctx_id_t *ctx, ctx 95 source3/libaddns/dnsgss.c *ctx = GSS_C_NO_CONTEXT; ctx 100 source3/libaddns/dnsgss.c &minor, NULL, ctx, target_name, &krb5_oid_desc, ctx 76 source3/libads/dns.c static bool ads_dns_parse_query( TALLOC_CTX *ctx, uint8 *start, uint8 *end, ctx 95 source3/libads/dns.c q->hostname = talloc_strdup( ctx, hostname ); ctx 114 source3/libads/dns.c static bool ads_dns_parse_rr( TALLOC_CTX *ctx, uint8 *start, uint8 *end, ctx 132 source3/libads/dns.c rr->hostname = talloc_strdup( ctx, hostname ); ctx 168 source3/libads/dns.c static bool ads_dns_parse_rr_srv( TALLOC_CTX *ctx, uint8 *start, uint8 *end, ctx 182 source3/libads/dns.c if ( !ads_dns_parse_rr( ctx, start, end, ptr, &rr ) ) { ctx 207 source3/libads/dns.c srv->hostname = talloc_strdup( ctx, dcname ); ctx 221 source3/libads/dns.c static bool ads_dns_parse_rr_ns( TALLOC_CTX *ctx, uint8 *start, uint8 *end, ctx 235 source3/libads/dns.c if ( !ads_dns_parse_rr( ctx, start, end, ptr, &rr ) ) { ctx 255 source3/libads/dns.c nsrec->hostname = talloc_strdup( ctx, nsname ); ctx 291 source3/libads/dns.c static NTSTATUS dns_send_req( TALLOC_CTX *ctx, const char *name, int q_type, ctx 329 source3/libads/dns.c if ((buffer = TALLOC_ARRAY(ctx, uint8, buf_len)) ctx 389 source3/libads/dns.c static NTSTATUS ads_dns_lookup_srv( TALLOC_CTX *ctx, ctx 403 source3/libads/dns.c if ( !ctx || !name || !dclist ) { ctx 410 source3/libads/dns.c status = dns_send_req( ctx, name, T_SRV, &buffer, &resp_len ); ctx 435 source3/libads/dns.c if ((dcs = TALLOC_ZERO_ARRAY(ctx, struct dns_rr_srv, ctx 455 source3/libads/dns.c if (!ads_dns_parse_query(ctx, buffer, ctx 466 source3/libads/dns.c if (!ads_dns_parse_rr_srv(ctx, buffer, buffer+resp_len, ctx 481 source3/libads/dns.c if (!ads_dns_parse_rr( ctx, buffer, ctx 495 source3/libads/dns.c if (!ads_dns_parse_rr(ctx, buffer, buffer+resp_len, ctx 577 source3/libads/dns.c NTSTATUS ads_dns_lookup_ns(TALLOC_CTX *ctx, ctx 591 source3/libads/dns.c if ( !ctx || !dnsdomain || !nslist ) { ctx 598 source3/libads/dns.c status = dns_send_req( ctx, dnsdomain, T_NS, &buffer, &resp_len ); ctx 623 source3/libads/dns.c if ((nsarray = TALLOC_ARRAY(ctx, struct dns_rr_ns, ctx 643 source3/libads/dns.c if (!ads_dns_parse_query(ctx, buffer, buffer+resp_len, ctx 654 source3/libads/dns.c if (!ads_dns_parse_rr_ns(ctx, buffer, buffer+resp_len, ctx 669 source3/libads/dns.c if ( !ads_dns_parse_rr(ctx, buffer, buffer+resp_len, ctx 683 source3/libads/dns.c if (!ads_dns_parse_rr(ctx, buffer, buffer+resp_len, ctx 853 source3/libads/dns.c static NTSTATUS ads_dns_query_internal(TALLOC_CTX *ctx, ctx 863 source3/libads/dns.c name = talloc_asprintf(ctx, "%s._tcp.%s._sites.%s._msdcs.%s", ctx 867 source3/libads/dns.c name = talloc_asprintf(ctx, "%s._tcp.%s._msdcs.%s", ctx 873 source3/libads/dns.c return ads_dns_lookup_srv( ctx, name, dclist, numdcs ); ctx 880 source3/libads/dns.c NTSTATUS ads_dns_query_dcs(TALLOC_CTX *ctx, ctx 888 source3/libads/dns.c status = ads_dns_query_internal(ctx, "_ldap", "dc", realm, sitename, ctx 900 source3/libads/dns.c status = ads_dns_query_internal(ctx, "_ldap", "dc", realm, ctx 910 source3/libads/dns.c NTSTATUS ads_dns_query_gcs(TALLOC_CTX *ctx, ctx 918 source3/libads/dns.c status = ads_dns_query_internal(ctx, "_ldap", "gc", realm, sitename, ctx 930 source3/libads/dns.c status = ads_dns_query_internal(ctx, "_ldap", "gc", realm, ctx 942 source3/libads/dns.c NTSTATUS ads_dns_query_kdcs(TALLOC_CTX *ctx, ctx 950 source3/libads/dns.c status = ads_dns_query_internal(ctx, "_kerberos", "dc", ctx 963 source3/libads/dns.c status = ads_dns_query_internal(ctx, "_kerberos", "dc", ctx 974 source3/libads/dns.c NTSTATUS ads_dns_query_pdc(TALLOC_CTX *ctx, ctx 979 source3/libads/dns.c return ads_dns_query_internal(ctx, "_ldap", "pdc", dns_domain_name, ctx 987 source3/libads/dns.c NTSTATUS ads_dns_query_dcs_guid(TALLOC_CTX *ctx, ctx 998 source3/libads/dns.c guid_string = GUID_string(ctx, domain_guid); ctx 1004 source3/libads/dns.c domains = talloc_asprintf(ctx, "%s.domains", guid_string); ctx 1009 source3/libads/dns.c return ads_dns_query_internal(ctx, "_ldap", domains, dns_forest_name, ctx 38 source3/libads/kerberos.c kerb_prompter(krb5_context ctx, void *data, ctx 112 source3/libads/kerberos.c static bool smb_krb5_get_ntstatus_from_krb5_error_init_creds_opt(krb5_context ctx, ctx 120 source3/libads/kerberos.c ret = krb5_get_init_creds_opt_get_error(ctx, opt, &error); ctx 139 source3/libads/kerberos.c krb5_free_error(ctx, error); ctx 145 source3/libads/kerberos.c krb5_free_error(ctx, error); ctx 166 source3/libads/kerberos.c krb5_context ctx = NULL; ctx 177 source3/libads/kerberos.c if ((code = krb5_init_context(&ctx))) ctx 181 source3/libads/kerberos.c krb5_set_real_time(ctx, time(NULL) + time_offset, 0); ctx 186 source3/libads/kerberos.c cache_name ? cache_name: krb5_cc_default_name(ctx), ctx 189 source3/libads/kerberos.c if ((code = krb5_cc_resolve(ctx, cache_name ? cache_name : krb5_cc_default_name(ctx), &cc))) { ctx 193 source3/libads/kerberos.c if ((code = smb_krb5_parse_name(ctx, principal, &me))) { ctx 197 source3/libads/kerberos.c if ((code = smb_krb5_get_init_creds_opt_alloc(ctx, &opt))) { ctx 210 source3/libads/kerberos.c if ((code = krb5_get_init_creds_opt_set_pac_request(ctx, opt, (krb5_boolean)request_pac))) { ctx 222 source3/libads/kerberos.c if ((code = krb5_get_init_creds_password(ctx, &my_creds, me, CONST_DISCARD(char *,password), ctx 228 source3/libads/kerberos.c if ((code = krb5_cc_initialize(ctx, cc, me))) { ctx 232 source3/libads/kerberos.c if ((code = krb5_cc_store_cred(ctx, cc, &my_creds))) { ctx 257 source3/libads/kerberos.c if (opt && smb_krb5_get_ntstatus_from_krb5_error_init_creds_opt(ctx, opt, &status)) { ctx 267 source3/libads/kerberos.c krb5_free_cred_contents(ctx, &my_creds); ctx 269 source3/libads/kerberos.c krb5_free_principal(ctx, me); ctx 272 source3/libads/kerberos.c smb_krb5_free_addresses(ctx, addr); ctx 275 source3/libads/kerberos.c smb_krb5_get_init_creds_opt_free(ctx, opt); ctx 278 source3/libads/kerberos.c krb5_cc_close(ctx, cc); ctx 280 source3/libads/kerberos.c if (ctx) { ctx 281 source3/libads/kerberos.c krb5_free_context(ctx); ctx 341 source3/libads/kerberos.c krb5_context ctx = NULL; ctx 345 source3/libads/kerberos.c if ((code = krb5_init_context (&ctx))) { ctx 352 source3/libads/kerberos.c if ((code = krb5_cc_default(ctx, &cc))) { ctx 353 source3/libads/kerberos.c krb5_free_context(ctx); ctx 357 source3/libads/kerberos.c if ((code = krb5_cc_resolve(ctx, cc_name, &cc))) { ctx 360 source3/libads/kerberos.c krb5_free_context(ctx); ctx 365 source3/libads/kerberos.c if ((code = krb5_cc_destroy (ctx, cc))) { ctx 370 source3/libads/kerberos.c krb5_free_context (ctx); ctx 480 source3/libads/kerberos.c krb5_context ctx = NULL; ctx 485 source3/libads/kerberos.c if (krb5_init_context(&ctx)) { ctx 491 source3/libads/kerberos.c krb5_cc_default_name(ctx))); ctx 492 source3/libads/kerberos.c if (krb5_cc_default(ctx, &cc)) { ctx 497 source3/libads/kerberos.c if (krb5_cc_get_principal(ctx, cc, &princ)) { ctx 504 source3/libads/kerberos.c realm = SMB_STRDUP(krb5_principal_get_realm(ctx, princ)); ctx 507 source3/libads/kerberos.c krb5_data *realm_data = krb5_princ_realm(ctx, princ); ctx 514 source3/libads/kerberos.c if (ctx) { ctx 516 source3/libads/kerberos.c krb5_free_principal(ctx, princ); ctx 519 source3/libads/kerberos.c krb5_cc_close(ctx, cc); ctx 521 source3/libads/kerberos.c krb5_free_context(ctx); ctx 240 source3/libads/kerberos_keytab.c TALLOC_CTX *ctx = NULL; ctx 278 source3/libads/kerberos_keytab.c if ( (ctx = talloc_init("ads_keytab_add_entry")) == NULL ) { ctx 284 source3/libads/kerberos_keytab.c if ( (my_fqdn = ads_get_dnshostname( ads, ctx, global_myname())) == NULL ) { ctx 290 source3/libads/kerberos_keytab.c if ( (machine_name = ads_get_samaccountname( ads, ctx, global_myname())) == NULL ) { ctx 369 source3/libads/kerberos_keytab.c TALLOC_FREE( ctx ); ctx 492 source3/libads/kerberos_keytab.c TALLOC_CTX *ctx = NULL; ctx 516 source3/libads/kerberos_keytab.c if ( (ctx = talloc_init("ads_keytab_create_default")) == NULL ) { ctx 523 source3/libads/kerberos_keytab.c if ( (sam_account_name = ads_get_samaccountname( ads, ctx, machine_name)) == NULL ) { ctx 525 source3/libads/kerberos_keytab.c TALLOC_FREE( ctx ); ctx 542 source3/libads/kerberos_keytab.c upn = ads_get_upn( ads, ctx, machine_name); ctx 547 source3/libads/kerberos_keytab.c TALLOC_FREE( ctx ); ctx 557 source3/libads/kerberos_keytab.c TALLOC_FREE(ctx); ctx 571 source3/libads/kerberos_keytab.c TALLOC_FREE(ctx); ctx 602 source3/libads/kerberos_keytab.c oldEntries = talloc_array(ctx, char *, found ); ctx 666 source3/libads/kerberos_keytab.c TALLOC_FREE(ctx); ctx 695 source3/libads/krb5_setpw.c kerb_prompter(krb5_context ctx, void *data, ctx 759 source3/libads/ldap.c static struct berval *dup_berval(TALLOC_CTX *ctx, const struct berval *in_val) ctx 765 source3/libads/ldap.c value = TALLOC_ZERO_P(ctx, struct berval); ctx 771 source3/libads/ldap.c value->bv_val = (char *)TALLOC_MEMDUP(ctx, in_val->bv_val, ctx 779 source3/libads/ldap.c static struct berval **ads_dup_values(TALLOC_CTX *ctx, ctx 788 source3/libads/ldap.c values = TALLOC_ZERO_ARRAY(ctx, struct berval *, i+1); ctx 792 source3/libads/ldap.c values[i] = dup_berval(ctx, in_vals[i]); ctx 800 source3/libads/ldap.c static char **ads_push_strvals(TALLOC_CTX *ctx, const char **in_vals) ctx 809 source3/libads/ldap.c values = TALLOC_ZERO_ARRAY(ctx, char *, i+1); ctx 813 source3/libads/ldap.c if (!push_utf8_talloc(ctx, &values[i], in_vals[i], &size)) { ctx 824 source3/libads/ldap.c static char **ads_pull_strvals(TALLOC_CTX *ctx, const char **in_vals) ctx 833 source3/libads/ldap.c values = TALLOC_ZERO_ARRAY(ctx, char *, i+1); ctx 837 source3/libads/ldap.c if (!pull_utf8_talloc(ctx, &values[i], in_vals[i], ctx 876 source3/libads/ldap.c TALLOC_CTX *ctx; ctx 881 source3/libads/ldap.c if (!(ctx = talloc_init("ads_do_paged_search_args"))) ctx 887 source3/libads/ldap.c if (!push_utf8_talloc(ctx, &utf8_expr, expr, &converted_size) || ctx 888 source3/libads/ldap.c !push_utf8_talloc(ctx, &utf8_path, bind_path, &converted_size)) ctx 1025 source3/libads/ldap.c talloc_destroy(ctx); ctx 1187 source3/libads/ldap.c TALLOC_CTX *ctx; ctx 1190 source3/libads/ldap.c if (!(ctx = talloc_init("ads_do_search"))) { ctx 1198 source3/libads/ldap.c if (!push_utf8_talloc(ctx, &utf8_expr, expr, &converted_size) || ctx 1199 source3/libads/ldap.c !push_utf8_talloc(ctx, &utf8_path, bind_path, &converted_size)) ctx 1233 source3/libads/ldap.c talloc_destroy(ctx); ctx 1361 source3/libads/ldap.c ADS_MODLIST ads_init_mods(TALLOC_CTX *ctx) ctx 1366 source3/libads/ldap.c if ((mods = TALLOC_ZERO_ARRAY(ctx, LDAPMod *, ADS_MODLIST_ALLOC_SIZE + 1))) ctx 1378 source3/libads/ldap.c static ADS_STATUS ads_modlist_add(TALLOC_CTX *ctx, ADS_MODLIST *mods, ctx 1392 source3/libads/ldap.c ber_values = ads_dup_values(ctx, ctx 1395 source3/libads/ldap.c char_values = ads_push_strvals(ctx, ctx 1403 source3/libads/ldap.c if (!(modlist = TALLOC_REALLOC_ARRAY(ctx, modlist, LDAPMod *, ctx 1412 source3/libads/ldap.c if (!(modlist[curmod] = TALLOC_ZERO_P(ctx, LDAPMod))) ctx 1414 source3/libads/ldap.c modlist[curmod]->mod_type = talloc_strdup(ctx, name); ctx 1435 source3/libads/ldap.c ADS_STATUS ads_mod_str(TALLOC_CTX *ctx, ADS_MODLIST *mods, ctx 1444 source3/libads/ldap.c return ads_modlist_add(ctx, mods, LDAP_MOD_DELETE, name, NULL); ctx 1445 source3/libads/ldap.c return ads_modlist_add(ctx, mods, LDAP_MOD_REPLACE, name, values); ctx 1456 source3/libads/ldap.c ADS_STATUS ads_mod_strlist(TALLOC_CTX *ctx, ADS_MODLIST *mods, ctx 1460 source3/libads/ldap.c return ads_modlist_add(ctx, mods, LDAP_MOD_DELETE, name, NULL); ctx 1461 source3/libads/ldap.c return ads_modlist_add(ctx, mods, LDAP_MOD_REPLACE, ctx 1474 source3/libads/ldap.c static ADS_STATUS ads_mod_ber(TALLOC_CTX *ctx, ADS_MODLIST *mods, ctx 1482 source3/libads/ldap.c return ads_modlist_add(ctx, mods, LDAP_MOD_DELETE, name, NULL); ctx 1483 source3/libads/ldap.c return ads_modlist_add(ctx, mods, LDAP_MOD_REPLACE|LDAP_MOD_BVALUES, ctx 1709 source3/libads/ldap.c ADS_STATUS ads_add_strlist(TALLOC_CTX *ctx, ADS_MODLIST *mods, ctx 1712 source3/libads/ldap.c return ads_modlist_add(ctx, mods, LDAP_MOD_ADD, name, ctx 1805 source3/libads/ldap.c TALLOC_CTX *ctx; ctx 1821 source3/libads/ldap.c ctx = talloc_init("ads_clear_service_principal_names"); ctx 1822 source3/libads/ldap.c if (!ctx) { ctx 1827 source3/libads/ldap.c if (!(mods = ads_init_mods(ctx))) { ctx 1828 source3/libads/ldap.c talloc_destroy(ctx); ctx 1832 source3/libads/ldap.c ret = ads_mod_strlist(ctx, &mods, "servicePrincipalName", servicePrincipalName); ctx 1836 source3/libads/ldap.c talloc_destroy(ctx); ctx 1841 source3/libads/ldap.c talloc_destroy(ctx); ctx 1851 source3/libads/ldap.c talloc_destroy(ctx); ctx 1856 source3/libads/ldap.c talloc_destroy(ctx); ctx 1874 source3/libads/ldap.c TALLOC_CTX *ctx; ctx 1892 source3/libads/ldap.c if (!(ctx = talloc_init("ads_add_service_principal_name"))) { ctx 1899 source3/libads/ldap.c if ( (psp1 = talloc_asprintf(ctx, "%s/%s", spn, machine_name)) == NULL ) { ctx 1900 source3/libads/ldap.c talloc_destroy(ctx); ctx 1914 source3/libads/ldap.c if ( (psp2 = talloc_asprintf(ctx, "%s/%s", spn, my_fqdn)) == NULL ) { ctx 1925 source3/libads/ldap.c if ( (mods = ads_init_mods(ctx)) == NULL ) { ctx 1930 source3/libads/ldap.c ret = ads_add_strlist(ctx, &mods, "servicePrincipalName", servicePrincipalName); ctx 1936 source3/libads/ldap.c if ( (dn_string = ads_get_dn(ads, ctx, res)) == NULL ) { ctx 1948 source3/libads/ldap.c TALLOC_FREE( ctx ); ctx 1967 source3/libads/ldap.c TALLOC_CTX *ctx; ctx 1978 source3/libads/ldap.c if (!(ctx = talloc_init("ads_add_machine_acct"))) ctx 1988 source3/libads/ldap.c new_dn = talloc_asprintf(ctx, "cn=%s,%s", machine_escaped, org_unit); ctx 1989 source3/libads/ldap.c samAccountName = talloc_asprintf(ctx, "%s$", machine_name); ctx 1999 source3/libads/ldap.c if (!(controlstr = talloc_asprintf(ctx, "%u", acct_control))) { ctx 2003 source3/libads/ldap.c if (!(mods = ads_init_mods(ctx))) { ctx 2007 source3/libads/ldap.c ads_mod_str(ctx, &mods, "cn", machine_name); ctx 2008 source3/libads/ldap.c ads_mod_str(ctx, &mods, "sAMAccountName", samAccountName); ctx 2009 source3/libads/ldap.c ads_mod_strlist(ctx, &mods, "objectClass", objectClass); ctx 2010 source3/libads/ldap.c ads_mod_str(ctx, &mods, "userAccountControl", controlstr); ctx 2017 source3/libads/ldap.c talloc_destroy(ctx); ctx 2247 source3/libads/ldap.c TALLOC_CTX *ctx; ctx 2250 source3/libads/ldap.c if (!(ctx = talloc_init("ads_process_results"))) ctx 2268 source3/libads/ldap.c if (!pull_utf8_talloc(ctx, &field, utf8_field, ctx 2281 source3/libads/ldap.c str_vals = ads_pull_strvals(ctx, ctx 2295 source3/libads/ldap.c talloc_free_children(ctx); ctx 2299 source3/libads/ldap.c talloc_destroy(ctx); ctx 2810 source3/libads/ldap.c TALLOC_CTX *ctx; ctx 2813 source3/libads/ldap.c if (!(ctx = talloc_init("ads_current_time"))) { ctx 2836 source3/libads/ldap.c timestr = ads_pull_string(ads_s, ctx, res, "currentTime"); ctx 2861 source3/libads/ldap.c talloc_destroy(ctx); ctx 3310 source3/libads/ldap.c char* ads_get_dnshostname( ADS_STRUCT *ads, TALLOC_CTX *ctx, const char *machine_name ) ctx 3329 source3/libads/ldap.c if ( (name = ads_pull_string(ads, ctx, res, "dNSHostName")) == NULL ) { ctx 3342 source3/libads/ldap.c char* ads_get_upn( ADS_STRUCT *ads, TALLOC_CTX *ctx, const char *machine_name ) ctx 3361 source3/libads/ldap.c if ( (name = ads_pull_string(ads, ctx, res, "userPrincipalName")) == NULL ) { ctx 3374 source3/libads/ldap.c char* ads_get_samaccountname( ADS_STRUCT *ads, TALLOC_CTX *ctx, const char *machine_name ) ctx 3393 source3/libads/ldap.c if ( (name = ads_pull_string(ads, ctx, res, "sAMAccountName")) == NULL ) { ctx 102 source3/libads/ldap_printer.c TALLOC_CTX *ctx, const ADS_MODLIST *mods) ctx 111 source3/libads/ldap_printer.c TALLOC_CTX *ctx, ADS_MODLIST *mods) ctx 113 source3/libads/ldap_printer.c ads_mod_str(ctx, mods, "objectClass", "printQueue"); ctx 120 source3/libads/ldap_printer.c static bool map_sz(TALLOC_CTX *ctx, ADS_MODLIST *mods, ctx 131 source3/libads/ldap_printer.c if (!pull_ucs2_talloc(ctx, &str_value, ctx 137 source3/libads/ldap_printer.c status = ads_mod_str(ctx, mods, value->valuename, str_value); ctx 147 source3/libads/ldap_printer.c static bool map_dword(TALLOC_CTX *ctx, ADS_MODLIST *mods, ctx 155 source3/libads/ldap_printer.c str_value = talloc_asprintf(ctx, "%d", *((uint32 *) value->data_p)); ctx 159 source3/libads/ldap_printer.c status = ads_mod_str(ctx, mods, value->valuename, str_value); ctx 166 source3/libads/ldap_printer.c static bool map_bool(TALLOC_CTX *ctx, ADS_MODLIST *mods, ctx 174 source3/libads/ldap_printer.c str_value = talloc_asprintf(ctx, "%s", ctx 179 source3/libads/ldap_printer.c status = ads_mod_str(ctx, mods, value->valuename, str_value); ctx 186 source3/libads/ldap_printer.c static bool map_multi_sz(TALLOC_CTX *ctx, ADS_MODLIST *mods, ctx 205 source3/libads/ldap_printer.c str_values = TALLOC_ARRAY(ctx, char *, num_vals + 1); ctx 214 source3/libads/ldap_printer.c cur_str += pull_ucs2_talloc(ctx, &str_values[i], ctx 219 source3/libads/ldap_printer.c status = ads_mod_strlist(ctx, mods, value->valuename, ctx 234 source3/libads/ldap_printer.c static void map_regval_to_ads(TALLOC_CTX *ctx, ADS_MODLIST *mods, ctx 296 source3/libads/ldap_printer.c if (!map[i].fn(ctx, mods, value)) { ctx 237 source3/libads/ldap_schema.c TALLOC_CTX *ctx = NULL; ctx 286 source3/libads/ldap_schema.c if ( (ctx = talloc_init("ads_check_posix_schema_mapping")) == NULL ) { ctx 291 source3/libads/ldap_schema.c TALLOC_FREE( ctx ); ctx 295 source3/libads/ldap_schema.c status = ads_schema_path(ads, ctx, &schema_path); ctx 303 source3/libads/ldap_schema.c status = ads_get_attrnames_by_oids(ads, ctx, schema_path, oids_sfu, ctx 308 source3/libads/ldap_schema.c status = ads_get_attrnames_by_oids(ads, ctx, schema_path, oids_sfu20, ctx 313 source3/libads/ldap_schema.c status = ads_get_attrnames_by_oids(ads, ctx, schema_path, oids_rfc2307, ctx 388 source3/libads/ldap_schema.c TALLOC_FREE(ctx); ctx 51 source3/libads/ldap_user.c TALLOC_CTX *ctx; ctx 62 source3/libads/ldap_user.c if (!(ctx = talloc_init("ads_add_user_acct"))) ctx 67 source3/libads/ldap_user.c if (!(upn = talloc_asprintf(ctx, "%s@%s", user, ads->config.realm))) ctx 71 source3/libads/ldap_user.c if (!(new_dn = talloc_asprintf(ctx, "cn=%s,%s,%s", name_escaped, container, ctx 74 source3/libads/ldap_user.c if (!(controlstr = talloc_asprintf(ctx, "%u", (UF_NORMAL_ACCOUNT | UF_ACCOUNTDISABLE)))) ctx 76 source3/libads/ldap_user.c if (!(mods = ads_init_mods(ctx))) ctx 79 source3/libads/ldap_user.c ads_mod_str(ctx, &mods, "cn", name); ctx 80 source3/libads/ldap_user.c ads_mod_strlist(ctx, &mods, "objectClass", objectClass); ctx 81 source3/libads/ldap_user.c ads_mod_str(ctx, &mods, "userPrincipalName", upn); ctx 82 source3/libads/ldap_user.c ads_mod_str(ctx, &mods, "name", name); ctx 83 source3/libads/ldap_user.c ads_mod_str(ctx, &mods, "displayName", name); ctx 84 source3/libads/ldap_user.c ads_mod_str(ctx, &mods, "sAMAccountName", user); ctx 85 source3/libads/ldap_user.c ads_mod_str(ctx, &mods, "userAccountControl", controlstr); ctx 90 source3/libads/ldap_user.c talloc_destroy(ctx); ctx 97 source3/libads/ldap_user.c TALLOC_CTX *ctx; ctx 104 source3/libads/ldap_user.c if (!(ctx = talloc_init("ads_add_group_acct"))) ctx 111 source3/libads/ldap_user.c if (!(new_dn = talloc_asprintf(ctx, "cn=%s,%s,%s", name_escaped, container, ctx 114 source3/libads/ldap_user.c if (!(mods = ads_init_mods(ctx))) ctx 117 source3/libads/ldap_user.c ads_mod_str(ctx, &mods, "cn", group); ctx 118 source3/libads/ldap_user.c ads_mod_strlist(ctx, &mods, "objectClass",objectClass); ctx 119 source3/libads/ldap_user.c ads_mod_str(ctx, &mods, "name", group); ctx 121 source3/libads/ldap_user.c ads_mod_str(ctx, &mods, "description", comment); ctx 122 source3/libads/ldap_user.c ads_mod_str(ctx, &mods, "sAMAccountName", group); ctx 127 source3/libads/ldap_user.c talloc_destroy(ctx); ctx 32 source3/libgpo/gpext/registry.c static TALLOC_CTX *ctx = NULL; ctx 610 source3/libgpo/gpext/registry.c TALLOC_FREE(ctx); ctx 632 source3/libgpo/gpext/registry.c ctx = talloc_init("gpext_registry_init"); ctx 633 source3/libgpo/gpext/registry.c NT_STATUS_HAVE_NO_MEMORY(ctx); ctx 635 source3/libgpo/gpext/registry.c status = register_gp_extension(ctx, SMB_GPEXT_INTERFACE_VERSION, ctx 639 source3/libgpo/gpext/registry.c TALLOC_FREE(ctx); ctx 41 source3/libgpo/gpext/scripts.c static TALLOC_CTX *ctx = NULL; ctx 410 source3/libgpo/gpext/scripts.c TALLOC_FREE(ctx); ctx 432 source3/libgpo/gpext/scripts.c ctx = talloc_init("gpext_scripts_init"); ctx 433 source3/libgpo/gpext/scripts.c NT_STATUS_HAVE_NO_MEMORY(ctx); ctx 435 source3/libgpo/gpext/scripts.c status = register_gp_extension(ctx, SMB_GPEXT_INTERFACE_VERSION, ctx 439 source3/libgpo/gpext/scripts.c TALLOC_FREE(ctx); ctx 42 source3/libgpo/gpext/security.c static TALLOC_CTX *ctx = NULL; ctx 234 source3/libgpo/gpext/security.c TALLOC_FREE(ctx); ctx 256 source3/libgpo/gpext/security.c ctx = talloc_init("gpext_security_init"); ctx 257 source3/libgpo/gpext/security.c NT_STATUS_HAVE_NO_MEMORY(ctx); ctx 259 source3/libgpo/gpext/security.c status = register_gp_extension(ctx, SMB_GPEXT_INTERFACE_VERSION, ctx 263 source3/libgpo/gpext/security.c TALLOC_FREE(ctx); ctx 109 source3/libgpo/gpo_filesync.c static bool gpo_sync_files(struct sync_context *ctx) ctx 111 source3/libgpo/gpo_filesync.c DEBUG(3,("calling cli_list with mask: %s\n", ctx->mask)); ctx 113 source3/libgpo/gpo_filesync.c if (cli_list(ctx->cli, ctx 114 source3/libgpo/gpo_filesync.c ctx->mask, ctx 115 source3/libgpo/gpo_filesync.c ctx->attribute, ctx 117 source3/libgpo/gpo_filesync.c ctx) == -1) { ctx 119 source3/libgpo/gpo_filesync.c ctx->mask, cli_errstr(ctx->cli))); ctx 136 source3/libgpo/gpo_filesync.c struct sync_context *ctx; ctx 141 source3/libgpo/gpo_filesync.c ctx = (struct sync_context *)state; ctx 154 source3/libgpo/gpo_filesync.c fstrcpy(nt_dir, ctx->remote_path); ctx 158 source3/libgpo/gpo_filesync.c fstrcpy(unix_dir, ctx->local_path); ctx 168 source3/libgpo/gpo_filesync.c old_nt_dir = ctx->remote_path; ctx 169 source3/libgpo/gpo_filesync.c ctx->remote_path = talloc_strdup(ctx->mem_ctx, nt_dir); ctx 171 source3/libgpo/gpo_filesync.c old_unix_dir = ctx->local_path; ctx 172 source3/libgpo/gpo_filesync.c ctx->local_path = talloc_strdup(ctx->mem_ctx, unix_dir); ctx 174 source3/libgpo/gpo_filesync.c ctx->mask = talloc_asprintf(ctx->mem_ctx, ctx 177 source3/libgpo/gpo_filesync.c if (!ctx->local_path || !ctx->mask || !ctx->remote_path) { ctx 181 source3/libgpo/gpo_filesync.c if (!gpo_sync_files(ctx)) { ctx 185 source3/libgpo/gpo_filesync.c ctx->remote_path = old_nt_dir; ctx 186 source3/libgpo/gpo_filesync.c ctx->local_path = old_unix_dir; ctx 192 source3/libgpo/gpo_filesync.c fstrcpy(nt_filename, ctx->remote_path); ctx 196 source3/libgpo/gpo_filesync.c fstrcpy(unix_filename, ctx->local_path); ctx 200 source3/libgpo/gpo_filesync.c result = gpo_copy_file(ctx->mem_ctx, ctx->cli, ctx 218 source3/libgpo/gpo_filesync.c struct sync_context ctx; ctx 220 source3/libgpo/gpo_filesync.c ctx.mem_ctx = mem_ctx; ctx 221 source3/libgpo/gpo_filesync.c ctx.cli = cli; ctx 222 source3/libgpo/gpo_filesync.c ctx.remote_path = CONST_DISCARD(char *, nt_path); ctx 223 source3/libgpo/gpo_filesync.c ctx.local_path = CONST_DISCARD(char *, local_path); ctx 224 source3/libgpo/gpo_filesync.c ctx.attribute = (aSYSTEM | aHIDDEN | aDIR); ctx 226 source3/libgpo/gpo_filesync.c ctx.mask = talloc_asprintf(mem_ctx, ctx 229 source3/libgpo/gpo_filesync.c if (!ctx.mask) { ctx 233 source3/libgpo/gpo_filesync.c if (!gpo_sync_files(&ctx)) { ctx 26 source3/libgpo/gpo_ini.c static int gp_inifile_free_context(struct gp_inifile_context *ctx) ctx 28 source3/libgpo/gpo_ini.c if (!ctx) { ctx 32 source3/libgpo/gpo_ini.c if (ctx->generated_filename) { ctx 33 source3/libgpo/gpo_ini.c unlink(ctx->generated_filename); ctx 34 source3/libgpo/gpo_ini.c ctx->generated_filename = NULL; ctx 37 source3/libgpo/gpo_ini.c if (ctx->dict) { ctx 38 source3/libgpo/gpo_ini.c iniparser_freedict(ctx->dict); ctx 39 source3/libgpo/gpo_ini.c ctx->dict = NULL; ctx 42 source3/libgpo/gpo_ini.c ctx = NULL; ctx 133 source3/libgpo/gpo_ini.c struct gp_inifile_context *ctx = NULL; ctx 143 source3/libgpo/gpo_ini.c ctx = TALLOC_ZERO_P(mem_ctx, struct gp_inifile_context); ctx 144 source3/libgpo/gpo_ini.c NT_STATUS_HAVE_NO_MEMORY(ctx); ctx 146 source3/libgpo/gpo_ini.c talloc_set_destructor(ctx, gp_inifile_free_context); ctx 167 source3/libgpo/gpo_ini.c ctx->generated_filename = tmp_filename; ctx 168 source3/libgpo/gpo_ini.c ctx->dict = dict; ctx 169 source3/libgpo/gpo_ini.c ctx->mem_ctx = mem_ctx; ctx 171 source3/libgpo/gpo_ini.c *ctx_ret = ctx; ctx 180 source3/libgpo/gpo_ini.c TALLOC_FREE(ctx); ctx 29 source3/libnet/libnet_dssync.c static int libnet_dssync_free_context(struct dssync_context *ctx) ctx 31 source3/libnet/libnet_dssync.c if (!ctx) { ctx 35 source3/libnet/libnet_dssync.c if (is_valid_policy_hnd(&ctx->bind_handle) && ctx->cli) { ctx 36 source3/libnet/libnet_dssync.c rpccli_drsuapi_DsUnbind(ctx->cli, ctx, &ctx->bind_handle, NULL); ctx 48 source3/libnet/libnet_dssync.c struct dssync_context *ctx; ctx 50 source3/libnet/libnet_dssync.c ctx = TALLOC_ZERO_P(mem_ctx, struct dssync_context); ctx 51 source3/libnet/libnet_dssync.c NT_STATUS_HAVE_NO_MEMORY(ctx); ctx 53 source3/libnet/libnet_dssync.c talloc_set_destructor(ctx, libnet_dssync_free_context); ctx 54 source3/libnet/libnet_dssync.c ctx->clean_old_entries = false; ctx 56 source3/libnet/libnet_dssync.c *ctx_p = ctx; ctx 184 source3/libnet/libnet_dssync.c struct dssync_context *ctx) ctx 232 source3/libnet/libnet_dssync.c status = rpccli_drsuapi_DsBind(ctx->cli, mem_ctx, ctx 235 source3/libnet/libnet_dssync.c &ctx->bind_handle, ctx 246 source3/libnet/libnet_dssync.c ZERO_STRUCT(ctx->remote_info28); ctx 251 source3/libnet/libnet_dssync.c ctx->remote_info28.site_guid = info24->site_guid; ctx 252 source3/libnet/libnet_dssync.c ctx->remote_info28.supported_extensions = info24->supported_extensions; ctx 253 source3/libnet/libnet_dssync.c ctx->remote_info28.pid = info24->pid; ctx 254 source3/libnet/libnet_dssync.c ctx->remote_info28.repl_epoch = 0; ctx 258 source3/libnet/libnet_dssync.c ctx->remote_info28 = bind_info.info.info28; ctx 263 source3/libnet/libnet_dssync.c ctx->remote_info28.site_guid = info48->site_guid; ctx 264 source3/libnet/libnet_dssync.c ctx->remote_info28.supported_extensions = info48->supported_extensions; ctx 265 source3/libnet/libnet_dssync.c ctx->remote_info28.pid = info48->pid; ctx 266 source3/libnet/libnet_dssync.c ctx->remote_info28.repl_epoch = info48->repl_epoch; ctx 282 source3/libnet/libnet_dssync.c struct dssync_context *ctx) ctx 292 source3/libnet/libnet_dssync.c names[0].str = talloc_asprintf(mem_ctx, "%s\\", ctx->domain_name); ctx 303 source3/libnet/libnet_dssync.c status = rpccli_drsuapi_DsCrackNames(ctx->cli, mem_ctx, ctx 304 source3/libnet/libnet_dssync.c &ctx->bind_handle, ctx 311 source3/libnet/libnet_dssync.c ctx->error_message = talloc_asprintf(ctx, ctx 329 source3/libnet/libnet_dssync.c ctx->nc_dn = talloc_strdup(mem_ctx, ctr.ctr1->array[0].result_name); ctx 330 source3/libnet/libnet_dssync.c NT_STATUS_HAVE_NO_MEMORY(ctx->nc_dn); ctx 332 source3/libnet/libnet_dssync.c if (!ctx->dns_domain_name) { ctx 333 source3/libnet/libnet_dssync.c ctx->dns_domain_name = talloc_strdup_upper(mem_ctx, ctx 335 source3/libnet/libnet_dssync.c NT_STATUS_HAVE_NO_MEMORY(ctx->dns_domain_name); ctx 345 source3/libnet/libnet_dssync.c struct dssync_context *ctx) ctx 349 source3/libnet/libnet_dssync.c status = libnet_dssync_bind(mem_ctx, ctx); ctx 354 source3/libnet/libnet_dssync.c if (!ctx->nc_dn) { ctx 355 source3/libnet/libnet_dssync.c status = libnet_dssync_lookup_nc(mem_ctx, ctx); ctx 365 source3/libnet/libnet_dssync.c struct dssync_context *ctx, ctx 389 source3/libnet/libnet_dssync.c if (ctx->remote_info28.supported_extensions ctx 406 source3/libnet/libnet_dssync.c if (!ctx->single_object_replication && ctx 407 source3/libnet/libnet_dssync.c !ctx->force_full_replication && utdv) ctx 440 source3/libnet/libnet_dssync.c if (ctx->single_object_replication) { ctx 482 source3/libnet/libnet_dssync.c struct dssync_context *ctx, ctx 498 source3/libnet/libnet_dssync.c if (!ctx->single_object_replication) { ctx 520 source3/libnet/libnet_dssync.c status = rpccli_drsuapi_DsGetNCChanges(ctx->cli, mem_ctx, ctx 521 source3/libnet/libnet_dssync.c &ctx->bind_handle, ctx 528 source3/libnet/libnet_dssync.c ctx->error_message = talloc_asprintf(ctx, ctx 575 source3/libnet/libnet_dssync.c !ctx->single_object_replication) ctx 597 source3/libnet/libnet_dssync.c !ctx->single_object_replication) ctx 608 source3/libnet/libnet_dssync.c status = cli_get_session_key(mem_ctx, ctx->cli, &ctx->session_key); ctx 610 source3/libnet/libnet_dssync.c ctx->error_message = talloc_asprintf(ctx, ctx 617 source3/libnet/libnet_dssync.c &ctx->session_key, ctx 620 source3/libnet/libnet_dssync.c if (ctx->ops->process_objects) { ctx 621 source3/libnet/libnet_dssync.c status = ctx->ops->process_objects(ctx, mem_ctx, ctx 625 source3/libnet/libnet_dssync.c ctx->error_message = talloc_asprintf(ctx, ctx 640 source3/libnet/libnet_dssync.c struct dssync_context *ctx) ctx 652 source3/libnet/libnet_dssync.c if (ctx->ops->startup) { ctx 653 source3/libnet/libnet_dssync.c status = ctx->ops->startup(ctx, mem_ctx, &old_utdv); ctx 655 source3/libnet/libnet_dssync.c ctx->error_message = talloc_asprintf(ctx, ctx 662 source3/libnet/libnet_dssync.c if (ctx->single_object_replication && ctx->object_dns) { ctx 663 source3/libnet/libnet_dssync.c dns = ctx->object_dns; ctx 664 source3/libnet/libnet_dssync.c dn_count = ctx->object_count; ctx 666 source3/libnet/libnet_dssync.c dns = &ctx->nc_dn; ctx 673 source3/libnet/libnet_dssync.c status = libnet_dssync_build_request(mem_ctx, ctx, ctx 681 source3/libnet/libnet_dssync.c status = libnet_dssync_getncchanges(mem_ctx, ctx, level, &req, ctx 684 source3/libnet/libnet_dssync.c ctx->error_message = talloc_asprintf(ctx, ctx 691 source3/libnet/libnet_dssync.c if (ctx->ops->finish) { ctx 692 source3/libnet/libnet_dssync.c status = ctx->ops->finish(ctx, mem_ctx, pnew_utdv); ctx 694 source3/libnet/libnet_dssync.c ctx->error_message = talloc_asprintf(ctx, ctx 709 source3/libnet/libnet_dssync.c struct dssync_context *ctx) ctx 719 source3/libnet/libnet_dssync.c status = libnet_dssync_init(tmp_ctx, ctx); ctx 724 source3/libnet/libnet_dssync.c status = libnet_dssync_process(tmp_ctx, ctx); ctx 24 source3/libnet/libnet_dssync.h NTSTATUS (*startup)(struct dssync_context *ctx, TALLOC_CTX *mem_ctx, ctx 26 source3/libnet/libnet_dssync.h NTSTATUS (*process_objects)(struct dssync_context *ctx, ctx 30 source3/libnet/libnet_dssync.h NTSTATUS (*finish)(struct dssync_context *ctx, TALLOC_CTX *mem_ctx, ctx 27 source3/libnet/libnet_dssync_keytab.c static NTSTATUS keytab_startup(struct dssync_context *ctx, TALLOC_CTX *mem_ctx, ctx 36 source3/libnet/libnet_dssync_keytab.c ret = libnet_keytab_init(mem_ctx, ctx->output_filename, &keytab_ctx); ctx 41 source3/libnet/libnet_dssync_keytab.c keytab_ctx->dns_domain_name = ctx->dns_domain_name; ctx 42 source3/libnet/libnet_dssync_keytab.c keytab_ctx->clean_old_entries = ctx->clean_old_entries; ctx 43 source3/libnet/libnet_dssync_keytab.c ctx->private_data = keytab_ctx; ctx 46 source3/libnet/libnet_dssync_keytab.c ctx->nc_dn, ctx->dns_domain_name); ctx 60 source3/libnet/libnet_dssync_keytab.c ctx->error_message = talloc_asprintf(ctx, ctx 78 source3/libnet/libnet_dssync_keytab.c static NTSTATUS keytab_finish(struct dssync_context *ctx, TALLOC_CTX *mem_ctx, ctx 84 source3/libnet/libnet_dssync_keytab.c (struct libnet_keytab_context *)ctx->private_data; ctx 98 source3/libnet/libnet_dssync_keytab.c ctx->error_message = talloc_asprintf(ctx, ctx 105 source3/libnet/libnet_dssync_keytab.c ctx->nc_dn, "UTDV", ctx 116 source3/libnet/libnet_dssync_keytab.c ctx->error_message = talloc_asprintf(ctx, ctx 122 source3/libnet/libnet_dssync_keytab.c ctx->result_message = talloc_asprintf(ctx, ctx 236 source3/libnet/libnet_dssync_keytab.c struct libnet_keytab_context *ctx, ctx 361 source3/libnet/libnet_dssync_keytab.c status = libnet_keytab_add_to_keytab_entries(mem_ctx, ctx, 0, object_dn, ctx 375 source3/libnet/libnet_dssync_keytab.c object_dn, ctx->dns_domain_name)); ctx 380 source3/libnet/libnet_dssync_keytab.c ctx->dns_domain_name); ctx 385 source3/libnet/libnet_dssync_keytab.c entry = libnet_keytab_search(ctx, principal, 0, ENCTYPE_NULL, ctx 409 source3/libnet/libnet_dssync_keytab.c DEBUG(1,("#%02d: %s:%d, ", ctx->count, name, kvno)); ctx 424 source3/libnet/libnet_dssync_keytab.c status = libnet_keytab_add_to_keytab_entries(mem_ctx, ctx, kvno, name, NULL, ctx 439 source3/libnet/libnet_dssync_keytab.c status = libnet_keytab_add_to_keytab_entries(mem_ctx, ctx, kvno, ctx 452 source3/libnet/libnet_dssync_keytab.c status = libnet_keytab_add_to_keytab_entries(mem_ctx, ctx, kvno - 1, ctx 465 source3/libnet/libnet_dssync_keytab.c status = libnet_keytab_add_to_keytab_entries(mem_ctx, ctx, kvno - 2, ctx 481 source3/libnet/libnet_dssync_keytab.c status = libnet_keytab_add_to_keytab_entries(mem_ctx, ctx, kvno, name, ctx 493 source3/libnet/libnet_dssync_keytab.c status = libnet_keytab_add_to_keytab_entries(mem_ctx, ctx, kvno - 1, ctx 519 source3/libnet/libnet_dssync_keytab.c status = libnet_keytab_add_to_keytab_entries(mem_ctx, ctx, kvno--, name, NULL, ctx 530 source3/libnet/libnet_dssync_keytab.c static bool dn_is_in_object_list(struct dssync_context *ctx, ctx 535 source3/libnet/libnet_dssync_keytab.c if (ctx->object_count == 0) { ctx 539 source3/libnet/libnet_dssync_keytab.c for (count = 0; count < ctx->object_count; count++) { ctx 540 source3/libnet/libnet_dssync_keytab.c if (strequal(ctx->object_dns[count], dn)) { ctx 551 source3/libnet/libnet_dssync_keytab.c static NTSTATUS keytab_process_objects(struct dssync_context *ctx, ctx 558 source3/libnet/libnet_dssync_keytab.c (struct libnet_keytab_context *)ctx->private_data; ctx 565 source3/libnet/libnet_dssync_keytab.c if (!ctx->single_object_replication && ctx 566 source3/libnet/libnet_dssync_keytab.c !dn_is_in_object_list(ctx, cur->object.identifier->dn)) ctx 583 source3/libnet/libnet_dssync_keytab.c static NTSTATUS keytab_startup(struct dssync_context *ctx, TALLOC_CTX *mem_ctx, ctx 589 source3/libnet/libnet_dssync_keytab.c static NTSTATUS keytab_finish(struct dssync_context *ctx, TALLOC_CTX *mem_ctx, ctx 595 source3/libnet/libnet_dssync_keytab.c static NTSTATUS keytab_process_objects(struct dssync_context *ctx, ctx 27 source3/libnet/libnet_join.c #define LIBNET_JOIN_DUMP_CTX(ctx, r, f) \ ctx 30 source3/libnet/libnet_join.c str = NDR_PRINT_FUNCTION_STRING(ctx, libnet_JoinCtx, f, r); \ ctx 35 source3/libnet/libnet_join.c #define LIBNET_JOIN_IN_DUMP_CTX(ctx, r) \ ctx 36 source3/libnet/libnet_join.c LIBNET_JOIN_DUMP_CTX(ctx, r, NDR_IN | NDR_SET_VALUES) ctx 37 source3/libnet/libnet_join.c #define LIBNET_JOIN_OUT_DUMP_CTX(ctx, r) \ ctx 38 source3/libnet/libnet_join.c LIBNET_JOIN_DUMP_CTX(ctx, r, NDR_OUT) ctx 40 source3/libnet/libnet_join.c #define LIBNET_UNJOIN_DUMP_CTX(ctx, r, f) \ ctx 43 source3/libnet/libnet_join.c str = NDR_PRINT_FUNCTION_STRING(ctx, libnet_UnjoinCtx, f, r); \ ctx 48 source3/libnet/libnet_join.c #define LIBNET_UNJOIN_IN_DUMP_CTX(ctx, r) \ ctx 49 source3/libnet/libnet_join.c LIBNET_UNJOIN_DUMP_CTX(ctx, r, NDR_IN | NDR_SET_VALUES) ctx 50 source3/libnet/libnet_join.c #define LIBNET_UNJOIN_OUT_DUMP_CTX(ctx, r) \ ctx 51 source3/libnet/libnet_join.c LIBNET_UNJOIN_DUMP_CTX(ctx, r, NDR_OUT) ctx 1269 source3/libnet/libnet_join.c struct smbconf_ctx *ctx; ctx 1271 source3/libnet/libnet_join.c werr = smbconf_init_reg(r, &ctx, NULL); ctx 1278 source3/libnet/libnet_join.c werr = smbconf_set_global_parameter(ctx, "security", "user"); ctx 1281 source3/libnet/libnet_join.c werr = smbconf_set_global_parameter(ctx, "workgroup", ctx 1284 source3/libnet/libnet_join.c smbconf_delete_global_parameter(ctx, "realm"); ctx 1288 source3/libnet/libnet_join.c werr = smbconf_set_global_parameter(ctx, "security", "domain"); ctx 1291 source3/libnet/libnet_join.c werr = smbconf_set_global_parameter(ctx, "workgroup", ctx 1296 source3/libnet/libnet_join.c werr = smbconf_set_global_parameter(ctx, "security", "ads"); ctx 1299 source3/libnet/libnet_join.c werr = smbconf_set_global_parameter(ctx, "realm", ctx 1305 source3/libnet/libnet_join.c smbconf_shutdown(ctx); ctx 1315 source3/libnet/libnet_join.c struct smbconf_ctx *ctx; ctx 1317 source3/libnet/libnet_join.c werr = smbconf_init_reg(r, &ctx, NULL); ctx 1324 source3/libnet/libnet_join.c werr = smbconf_set_global_parameter(ctx, "security", "user"); ctx 1327 source3/libnet/libnet_join.c werr = smbconf_delete_global_parameter(ctx, "workgroup"); ctx 1330 source3/libnet/libnet_join.c smbconf_delete_global_parameter(ctx, "realm"); ctx 1334 source3/libnet/libnet_join.c smbconf_shutdown(ctx); ctx 1586 source3/libnet/libnet_join.c struct libnet_JoinCtx *ctx; ctx 1589 source3/libnet/libnet_join.c ctx = talloc_zero(mem_ctx, struct libnet_JoinCtx); ctx 1590 source3/libnet/libnet_join.c if (!ctx) { ctx 1594 source3/libnet/libnet_join.c talloc_set_destructor(ctx, libnet_destroy_JoinCtx); ctx 1596 source3/libnet/libnet_join.c ctx->in.machine_name = talloc_strdup(mem_ctx, global_myname()); ctx 1597 source3/libnet/libnet_join.c W_ERROR_HAVE_NO_MEMORY(ctx->in.machine_name); ctx 1606 source3/libnet/libnet_join.c ctx->in.secure_channel_type = SEC_CHAN_WKSTA; ctx 1608 source3/libnet/libnet_join.c *r = ctx; ctx 1619 source3/libnet/libnet_join.c struct libnet_UnjoinCtx *ctx; ctx 1622 source3/libnet/libnet_join.c ctx = talloc_zero(mem_ctx, struct libnet_UnjoinCtx); ctx 1623 source3/libnet/libnet_join.c if (!ctx) { ctx 1627 source3/libnet/libnet_join.c talloc_set_destructor(ctx, libnet_destroy_UnjoinCtx); ctx 1629 source3/libnet/libnet_join.c ctx->in.machine_name = talloc_strdup(mem_ctx, global_myname()); ctx 1630 source3/libnet/libnet_join.c W_ERROR_HAVE_NO_MEMORY(ctx->in.machine_name); ctx 1639 source3/libnet/libnet_join.c *r = ctx; ctx 30 source3/libnet/libnet_keytab.c static int keytab_close(struct libnet_keytab_context *ctx) ctx 32 source3/libnet/libnet_keytab.c if (!ctx) { ctx 36 source3/libnet/libnet_keytab.c if (ctx->keytab && ctx->context) { ctx 37 source3/libnet/libnet_keytab.c krb5_kt_close(ctx->context, ctx->keytab); ctx 40 source3/libnet/libnet_keytab.c if (ctx->context) { ctx 41 source3/libnet/libnet_keytab.c krb5_free_context(ctx->context); ctx 44 source3/libnet/libnet_keytab.c if (ctx->ads) { ctx 45 source3/libnet/libnet_keytab.c ads_destroy(&ctx->ads); ctx 48 source3/libnet/libnet_keytab.c TALLOC_FREE(ctx); ctx 58 source3/libnet/libnet_keytab.c struct libnet_keytab_context **ctx) ctx 102 source3/libnet/libnet_keytab.c *ctx = r; ctx 259 source3/libnet/libnet_keytab.c krb5_error_code libnet_keytab_add(struct libnet_keytab_context *ctx) ctx 265 source3/libnet/libnet_keytab.c if (ctx->clean_old_entries) { ctx 267 source3/libnet/libnet_keytab.c for (i=0; i < ctx->count; i++) { ctx 268 source3/libnet/libnet_keytab.c struct libnet_keytab_entry *entry = &ctx->entries[i]; ctx 270 source3/libnet/libnet_keytab.c ret = libnet_keytab_remove_entries(ctx->context, ctx 271 source3/libnet/libnet_keytab.c ctx->keytab, ctx 286 source3/libnet/libnet_keytab.c for (i=0; i<ctx->count; i++) { ctx 288 source3/libnet/libnet_keytab.c struct libnet_keytab_entry *entry = &ctx->entries[i]; ctx 295 source3/libnet/libnet_keytab.c ret = libnet_keytab_add_entry(ctx->context, ctx 296 source3/libnet/libnet_keytab.c ctx->keytab, ctx 311 source3/libnet/libnet_keytab.c struct libnet_keytab_entry *libnet_keytab_search(struct libnet_keytab_context *ctx, ctx 325 source3/libnet/libnet_keytab.c ret = krb5_kt_start_seq_get(ctx->context, ctx->keytab, &cursor); ctx 332 source3/libnet/libnet_keytab.c while (krb5_kt_next_entry(ctx->context, ctx->keytab, &kt_entry, &cursor) == 0) ctx 355 source3/libnet/libnet_keytab.c ret = smb_krb5_unparse_name(entry, ctx->context, kt_entry.principal, ctx 382 source3/libnet/libnet_keytab.c smb_krb5_kt_free_entry(ctx->context, &kt_entry); ctx 386 source3/libnet/libnet_keytab.c smb_krb5_kt_free_entry(ctx->context, &kt_entry); ctx 391 source3/libnet/libnet_keytab.c smb_krb5_kt_free_entry(ctx->context, &kt_entry); ctx 396 source3/libnet/libnet_keytab.c krb5_kt_end_seq_get(ctx->context, ctx->keytab, &cursor); ctx 405 source3/libnet/libnet_keytab.c struct libnet_keytab_context *ctx, ctx 419 source3/libnet/libnet_keytab.c name, ctx->dns_domain_name); ctx 427 source3/libnet/libnet_keytab.c &ctx->entries, &ctx->count); ctx 428 source3/libnet/libnet_keytab.c NT_STATUS_HAVE_NO_MEMORY(ctx->entries); ctx 51 source3/libnet/libnet_proto.h struct libnet_keytab_context **ctx); ctx 52 source3/libnet/libnet_proto.h krb5_error_code libnet_keytab_add(struct libnet_keytab_context *ctx); ctx 54 source3/libnet/libnet_proto.h struct libnet_keytab_entry *libnet_keytab_search(struct libnet_keytab_context *ctx, ctx 59 source3/libnet/libnet_proto.h struct libnet_keytab_context *ctx, ctx 73 source3/libnet/libnet_proto.h struct samsync_context *ctx); ctx 83 source3/libnet/libnet_proto.h struct dssync_context *ctx); ctx 210 source3/libnet/libnet_samsync.c struct samsync_context *ctx; ctx 214 source3/libnet/libnet_samsync.c ctx = TALLOC_ZERO_P(mem_ctx, struct samsync_context); ctx 215 source3/libnet/libnet_samsync.c NT_STATUS_HAVE_NO_MEMORY(ctx); ctx 218 source3/libnet/libnet_samsync.c ctx->domain_sid = sid_dup_talloc(mem_ctx, domain_sid); ctx 219 source3/libnet/libnet_samsync.c NT_STATUS_HAVE_NO_MEMORY(ctx->domain_sid); ctx 221 source3/libnet/libnet_samsync.c ctx->domain_sid_str = sid_string_talloc(mem_ctx, ctx->domain_sid); ctx 222 source3/libnet/libnet_samsync.c NT_STATUS_HAVE_NO_MEMORY(ctx->domain_sid_str); ctx 225 source3/libnet/libnet_samsync.c *ctx_p = ctx; ctx 337 source3/libnet/libnet_samsync.c struct samsync_context *ctx, ctx 342 source3/libnet/libnet_samsync.c const char *logon_server = ctx->cli->desthost; ctx 355 source3/libnet/libnet_samsync.c netlogon_creds_client_step(ctx->cli->dc, &credential); ctx 357 source3/libnet/libnet_samsync.c if (ctx->single_object_replication && ctx 358 source3/libnet/libnet_samsync.c !ctx->force_full_replication) { ctx 359 source3/libnet/libnet_samsync.c result = rpccli_netr_DatabaseRedo(ctx->cli, mem_ctx, ctx 367 source3/libnet/libnet_samsync.c } else if (!ctx->force_full_replication && ctx 369 source3/libnet/libnet_samsync.c result = rpccli_netr_DatabaseDeltas(ctx->cli, mem_ctx, ctx 379 source3/libnet/libnet_samsync.c result = rpccli_netr_DatabaseSync2(ctx->cli, mem_ctx, ctx 396 source3/libnet/libnet_samsync.c if (!netlogon_creds_client_check(ctx->cli->dc, ctx 406 source3/libnet/libnet_samsync.c session_key = data_blob_const(ctx->cli->dc->sess_key, 16); ctx 414 source3/libnet/libnet_samsync.c callback_status = ctx->ops->process_objects(mem_ctx, database_id, ctx 417 source3/libnet/libnet_samsync.c ctx); ctx 437 source3/libnet/libnet_samsync.c struct samsync_context *ctx) ctx 446 source3/libnet/libnet_samsync.c if (!(mem_ctx = talloc_new(ctx))) { ctx 450 source3/libnet/libnet_samsync.c if (!ctx->ops) { ctx 454 source3/libnet/libnet_samsync.c if (ctx->ops->startup) { ctx 455 source3/libnet/libnet_samsync.c status = ctx->ops->startup(mem_ctx, ctx, ctx 462 source3/libnet/libnet_samsync.c debug_str = samsync_debug_str(mem_ctx, ctx->mode, database_id); ctx 467 source3/libnet/libnet_samsync.c if (!ctx->single_object_replication) { ctx 469 source3/libnet/libnet_samsync.c &sequence_num, ctx, NULL); ctx 473 source3/libnet/libnet_samsync.c for (i=0; i<ctx->num_objects; i++) { ctx 477 source3/libnet/libnet_samsync.c if (ctx->objects[i].database_id != database_id) { ctx 481 source3/libnet/libnet_samsync.c libnet_init_netr_ChangeLogEntry(&ctx->objects[i], &e); ctx 484 source3/libnet/libnet_samsync.c &sequence_num, ctx, &e); ctx 492 source3/libnet/libnet_samsync.c if (NT_STATUS_IS_OK(status) && ctx->ops->finish) { ctx 493 source3/libnet/libnet_samsync.c callback_status = ctx->ops->finish(mem_ctx, ctx, ctx 500 source3/libnet/libnet_samsync.c if (NT_STATUS_IS_ERR(status) && !ctx->error_message) { ctx 502 source3/libnet/libnet_samsync.c ctx->error_message = talloc_asprintf(ctx, ctx 509 source3/libnet/libnet_samsync.c ctx->error_message = ctx 510 source3/libnet/libnet_samsync.c talloc_asprintf_append(ctx->error_message, ctx 512 source3/libnet/libnet_samsync.c ctx->domain_name); ctx 32 source3/libnet/libnet_samsync.h struct samsync_context *ctx, ctx 39 source3/libnet/libnet_samsync.h struct samsync_context *ctx); ctx 41 source3/libnet/libnet_samsync.h struct samsync_context *ctx, ctx 166 source3/libnet/libnet_samsync_display.c struct samsync_context *ctx) ctx 291 source3/libnet/libnet_samsync_display.c struct samsync_context *ctx) ctx 297 source3/libnet/libnet_samsync_display.c ctx); ctx 33 source3/libnet/libnet_samsync_keytab.c struct libnet_keytab_context *ctx) ctx 63 source3/libnet/libnet_samsync_keytab.c ctx->ads = ads; ctx 65 source3/libnet/libnet_samsync_keytab.c ctx->dns_domain_name = talloc_strdup_upper(mem_ctx, ads->config.realm); ctx 66 source3/libnet/libnet_samsync_keytab.c NT_STATUS_HAVE_NO_MEMORY(ctx->dns_domain_name); ctx 78 source3/libnet/libnet_samsync_keytab.c struct libnet_keytab_context *ctx) ctx 84 source3/libnet/libnet_samsync_keytab.c if (memcmp(r->ntpassword.hash, ctx->zero_buf, 16) == 0) { ctx 88 source3/libnet/libnet_samsync_keytab.c kvno = ads_get_kvno(ctx->ads, r->account_name.string); ctx 91 source3/libnet/libnet_samsync_keytab.c status = libnet_keytab_add_to_keytab_entries(mem_ctx, ctx, ctx 108 source3/libnet/libnet_samsync_keytab.c struct samsync_context *ctx, ctx 119 source3/libnet/libnet_samsync_keytab.c ret = libnet_keytab_init(mem_ctx, ctx->output_filename, &keytab_ctx); ctx 124 source3/libnet/libnet_samsync_keytab.c keytab_ctx->clean_old_entries = ctx->clean_old_entries; ctx 125 source3/libnet/libnet_samsync_keytab.c ctx->private_data = keytab_ctx; ctx 128 source3/libnet/libnet_samsync_keytab.c ctx->domain_name, ctx 129 source3/libnet/libnet_samsync_keytab.c ctx->username, ctx 130 source3/libnet/libnet_samsync_keytab.c ctx->password, ctx 161 source3/libnet/libnet_samsync_keytab.c struct samsync_context *ctx) ctx 164 source3/libnet/libnet_samsync_keytab.c (struct libnet_keytab_context *)ctx->private_data; ctx 206 source3/libnet/libnet_samsync_keytab.c struct samsync_context *ctx, ctx 211 source3/libnet/libnet_samsync_keytab.c (struct libnet_keytab_context *)ctx->private_data; ctx 249 source3/libnet/libnet_samsync_keytab.c ctx->error_message = talloc_asprintf(ctx, ctx 256 source3/libnet/libnet_samsync_keytab.c ctx->result_message = talloc_asprintf(ctx, ctx 272 source3/libnet/libnet_samsync_keytab.c struct samsync_context *ctx, ctx 283 source3/libnet/libnet_samsync_keytab.c struct samsync_context *ctx) ctx 289 source3/libnet/libnet_samsync_keytab.c struct samsync_context *ctx, ctx 892 source3/libnet/libnet_samsync_ldif.c struct samsync_ldif_context **ctx) ctx 912 source3/libnet/libnet_samsync_ldif.c if (*ctx && (*ctx)->initialized) { ctx 998 source3/libnet/libnet_samsync_ldif.c *ctx = r; ctx 1089 source3/libnet/libnet_samsync_ldif.c struct samsync_context *ctx, ctx 1096 source3/libnet/libnet_samsync_ldif.c talloc_get_type_abort(ctx->private_data, struct samsync_ldif_context); ctx 1107 source3/libnet/libnet_samsync_ldif.c ctx->domain_sid_str, ctx 1118 source3/libnet/libnet_samsync_ldif.c ctx->domain_sid_str, ctx 1129 source3/libnet/libnet_samsync_ldif.c ctx->domain_sid_str, ctx 1201 source3/libnet/libnet_samsync_ldif.c struct samsync_context *ctx, ctx 1207 source3/libnet/libnet_samsync_ldif.c (struct samsync_ldif_context *)ctx->private_data; ctx 1211 source3/libnet/libnet_samsync_ldif.c ctx->output_filename, ctx 1212 source3/libnet/libnet_samsync_ldif.c ctx->domain_sid_str, ctx 1218 source3/libnet/libnet_samsync_ldif.c ctx->private_data = ldif_ctx; ctx 1230 source3/libnet/libnet_samsync_ldif.c struct samsync_context *ctx) ctx 1235 source3/libnet/libnet_samsync_ldif.c (struct samsync_ldif_context *)ctx->private_data; ctx 1244 source3/libnet/libnet_samsync_ldif.c &r->delta_enum[i], ctx, ctx 1255 source3/libnet/libnet_samsync_ldif.c ctx->private_data = NULL; ctx 1264 source3/libnet/libnet_samsync_ldif.c struct samsync_context *ctx, ctx 1269 source3/libnet/libnet_samsync_ldif.c (struct samsync_ldif_context *)ctx->private_data; ctx 1274 source3/libnet/libnet_samsync_ldif.c ctx->result_message = talloc_asprintf(ctx, ctx 1276 source3/libnet/libnet_samsync_ldif.c a_index, g_index, ctx->output_filename); ctx 1280 source3/libnet/libnet_samsync_ldif.c ctx->private_data = NULL; ctx 1288 source3/libnet/libnet_samsync_ldif.c struct samsync_context *ctx, ctx 1299 source3/libnet/libnet_samsync_ldif.c struct samsync_context *ctx) ctx 1305 source3/libnet/libnet_samsync_ldif.c struct samsync_context *ctx, ctx 669 source3/libnet/libnet_samsync_passdb.c struct samsync_context *ctx) ctx 693 source3/libnet/libnet_samsync_passdb.c ctx->domain_sid); ctx 699 source3/libnet/libnet_samsync_passdb.c ctx->domain_sid); ctx 771 source3/libnet/libnet_samsync_passdb.c struct samsync_context *ctx) ctx 776 source3/libnet/libnet_samsync_passdb.c fetch_sam_entry(mem_ctx, database_id, &r->delta_enum[i], ctx); ctx 436 source3/libsmb/async_smb.c static void request_timeout_handler(struct event_context *ctx, ctx 2325 source3/libsmb/cliconnect.c struct cli_state *get_ipc_connect_master_ip(TALLOC_CTX *ctx, ctx 2365 source3/libsmb/cliconnect.c *pp_workgroup_out = talloc_strdup(ctx, name); ctx 2380 source3/libsmb/cliconnect.c struct cli_state *get_ipc_connect_master_ip_bcast(TALLOC_CTX *ctx, ctx 2405 source3/libsmb/cliconnect.c cli = get_ipc_connect_master_ip(ctx, &ip_list[i], ctx 35 source3/libsmb/clidfs.c static bool cli_check_msdfs_proxy(TALLOC_CTX *ctx, ctx 85 source3/libsmb/clidfs.c static struct cli_state *do_connect(TALLOC_CTX *ctx, ctx 108 source3/libsmb/clidfs.c servicename = talloc_strdup(ctx,share); ctx 247 source3/libsmb/clidfs.c cli_check_msdfs_proxy(ctx, c, sharename, ctx 254 source3/libsmb/clidfs.c return do_connect(ctx, newserver, ctx 305 source3/libsmb/clidfs.c static struct cli_state *cli_cm_connect(TALLOC_CTX *ctx, ctx 318 source3/libsmb/clidfs.c cli = do_connect(ctx, server, share, ctx 383 source3/libsmb/clidfs.c struct cli_state *cli_cm_open(TALLOC_CTX *ctx, ctx 410 source3/libsmb/clidfs.c return cli_cm_connect(ctx, ctx 462 source3/libsmb/clidfs.c static void split_dfs_path(TALLOC_CTX *ctx, ctx 475 source3/libsmb/clidfs.c path = talloc_strdup(ctx, nodepath); ctx 497 source3/libsmb/clidfs.c *pp_extrapath = talloc_strdup(ctx, q); ctx 499 source3/libsmb/clidfs.c *pp_extrapath = talloc_strdup(ctx, ""); ctx 502 source3/libsmb/clidfs.c *pp_share = talloc_strdup(ctx, p); ctx 503 source3/libsmb/clidfs.c *pp_server = talloc_strdup(ctx, &path[1]); ctx 512 source3/libsmb/clidfs.c static char *clean_path(TALLOC_CTX *ctx, const char *path) ctx 523 source3/libsmb/clidfs.c path_out = talloc_strdup(ctx, path); ctx 563 source3/libsmb/clidfs.c static char *cli_dfs_make_full_path(TALLOC_CTX *ctx, ctx 577 source3/libsmb/clidfs.c return talloc_asprintf(ctx, "%c%s%c%s%c%s", ctx 610 source3/libsmb/clidfs.c bool cli_dfs_get_referral(TALLOC_CTX *ctx, ctx 698 source3/libsmb/clidfs.c referrals = TALLOC_ARRAY(ctx, CLIENT_DFS_REFERRAL, ctx 726 source3/libsmb/clidfs.c clistr_pull_talloc(ctx, cli->inbuf, ctx 758 source3/libsmb/clidfs.c bool cli_resolve_path(TALLOC_CTX *ctx, ctx 791 source3/libsmb/clidfs.c *pp_targetpath = talloc_strdup(ctx, path); ctx 802 source3/libsmb/clidfs.c cleanpath = clean_path(ctx, path); ctx 807 source3/libsmb/clidfs.c dfs_path = cli_dfs_make_full_path(ctx, rootcli, cleanpath); ctx 815 source3/libsmb/clidfs.c *pp_targetpath = talloc_strdup(ctx, path); ctx 826 source3/libsmb/clidfs.c *pp_targetpath = talloc_strdup(ctx, path); ctx 841 source3/libsmb/clidfs.c if (!(cli_ipc = cli_cm_open(ctx, ctx 854 source3/libsmb/clidfs.c if (!cli_dfs_get_referral(ctx, cli_ipc, dfs_path, &refs, ctx 864 source3/libsmb/clidfs.c split_dfs_path(ctx, refs[0].dfspath, &server, &share, &extrapath ); ctx 872 source3/libsmb/clidfs.c dfs_path = cli_dfs_make_full_path(ctx, rootcli, path); ctx 878 source3/libsmb/clidfs.c *pp_targetpath = talloc_strdup(ctx, &dfs_path[consumed]); ctx 891 source3/libsmb/clidfs.c if ((*targetcli = cli_cm_open(ctx, rootcli, ctx 906 source3/libsmb/clidfs.c *pp_targetpath = talloc_asprintf(ctx, ctx 941 source3/libsmb/clidfs.c newmount = talloc_asprintf(ctx, "%s\\%s", mountpt, ppath ); ctx 952 source3/libsmb/clidfs.c if (cli_resolve_path(ctx, ctx 974 source3/libsmb/clidfs.c dfs_path = talloc_strdup(ctx, *pp_targetpath); ctx 978 source3/libsmb/clidfs.c *pp_targetpath = cli_dfs_make_full_path(ctx, *targetcli, dfs_path); ctx 987 source3/libsmb/clidfs.c static bool cli_check_msdfs_proxy(TALLOC_CTX *ctx, ctx 1019 source3/libsmb/clidfs.c fullpath = talloc_asprintf(ctx, "\\%s\\%s", cli->desthost, sharename ); ctx 1041 source3/libsmb/clidfs.c res = cli_dfs_get_referral(ctx, cli, fullpath, &refs, &num_refs, &consumed); ctx 1057 source3/libsmb/clidfs.c split_dfs_path(ctx, refs[0].dfspath, pp_newserver, ctx 2040 source3/libsmb/clifile.c TALLOC_CTX *ctx, ctx 2118 source3/libsmb/clifile.c ea_list = TALLOC_ARRAY(ctx, struct ea_struct, num_eas); ctx 2135 source3/libsmb/clifile.c ea->name = talloc_strdup(ctx, unix_ea_name); ctx 2137 source3/libsmb/clifile.c ea->value = data_blob_talloc(ctx, NULL, ea_valuelen + 1); ctx 2164 source3/libsmb/clifile.c TALLOC_CTX *ctx, ctx 2186 source3/libsmb/clifile.c ret = cli_get_ea_list(cli, setup, param, param_len, ctx, pnum_eas, pea_list); ctx 2196 source3/libsmb/clifile.c TALLOC_CTX *ctx, ctx 2207 source3/libsmb/clifile.c return cli_get_ea_list(cli, setup, param, 6, ctx, pnum_eas, pea_list); ctx 152 source3/libsmb/clikrb5.c krb5_error_code krb5_set_default_tgs_ktypes(krb5_context ctx, const krb5_enctype *enc) ctx 154 source3/libsmb/clikrb5.c return krb5_set_default_tgs_enctypes(ctx, enc); ctx 160 source3/libsmb/clikrb5.c krb5_error_code krb5_set_default_tgs_ktypes(krb5_context ctx, const krb5_enctype *enc) ctx 162 source3/libsmb/clikrb5.c return krb5_set_default_in_tkt_etypes(ctx, enc); ctx 489 source3/libsmb/clikrb5.c krb5_error_code smb_krb5_locate_kdc(krb5_context ctx, const krb5_data *realm, struct sockaddr **addr_pp, int *naddrs, int get_masters) ctx 501 source3/libsmb/clikrb5.c rc = krb5_krbhst_init(ctx, realm->data, KRB5_KRBHST_KDC, &hnd); ctx 507 source3/libsmb/clikrb5.c for ( num_kdcs = 0; (rc = krb5_krbhst_next(ctx, hnd, &hinfo) == 0); num_kdcs++) ctx 510 source3/libsmb/clikrb5.c krb5_krbhst_reset(ctx, hnd); ctx 514 source3/libsmb/clikrb5.c krb5_krbhst_free(ctx, hnd); ctx 521 source3/libsmb/clikrb5.c krb5_krbhst_free(ctx, hnd); ctx 528 source3/libsmb/clikrb5.c for (i = 0; i < num_kdcs && (rc = krb5_krbhst_next(ctx, hnd, &hinfo) == 0); i++) { ctx 531 source3/libsmb/clikrb5.c rc = krb5_krbhst_get_addrinfo(ctx, hinfo, &ai); ctx 541 source3/libsmb/clikrb5.c krb5_krbhst_free(ctx, hnd); ctx 550 source3/libsmb/clikrb5.c krb5_error_code smb_krb5_locate_kdc(krb5_context ctx, const krb5_data *realm, ctx 561 source3/libsmb/clikrb5.c krb5_error_code smb_krb5_locate_kdc(krb5_context ctx, const krb5_data *realm, ctx 564 source3/libsmb/clikrb5.c return krb5_locate_kdc(ctx, realm, addr_pp, naddrs, get_masters); ctx 45 source3/libsmb/clilist.c static size_t interpret_long_filename(TALLOC_CTX *ctx, ctx 100 source3/libsmb/clilist.c ret = clistr_pull_talloc(ctx, ctx 129 source3/libsmb/clilist.c ret = clistr_pull_talloc(ctx, ctx 190 source3/libsmb/clilist.c ret = clistr_pull_talloc(ctx, ctx 496 source3/libsmb/clilist.c static bool interpret_short_filename(TALLOC_CTX *ctx, ctx 513 source3/libsmb/clilist.c ret = clistr_pull_talloc(ctx, ctx 146 source3/libsmb/clirap2.c static size_t rap_getstring(TALLOC_CTX *ctx, char *src, char **dest, const char *endp) ctx 157 source3/libsmb/clirap2.c pull_string_talloc(ctx,src,0,dest,src,len,STR_ASCII); ctx 187 source3/libsmb/clirap2.c static size_t rap_getstringp(TALLOC_CTX *ctx, char *p, char **dest, char *r, uint16_t c, char *endp) ctx 212 source3/libsmb/clirap2.c pull_string_talloc(ctx,src,0,dest,src,len,STR_ASCII); ctx 68 source3/libsmb/clistr.c TALLOC_CTX *ctx, ctx 77 source3/libsmb/clistr.c ctx, ctx 50 source3/libsmb/credentials.c HMACMD5Context ctx; ctx 60 source3/libsmb/credentials.c hmac_md5_init_rfc2104(mach_pw, 16, &ctx); ctx 66 source3/libsmb/credentials.c hmac_md5_update(tmp, sizeof(tmp), &ctx); ctx 67 source3/libsmb/credentials.c hmac_md5_final(dc->sess_key, &ctx); ctx 932 source3/libsmb/dsgetdcname.c static struct event_context *ctx; ctx 934 source3/libsmb/dsgetdcname.c if (!ctx && !(ctx = event_context_init(NULL))) { ctx 937 source3/libsmb/dsgetdcname.c return ctx; ctx 945 source3/libsmb/dsgetdcname.c static struct messaging_context *ctx; ctx 947 source3/libsmb/dsgetdcname.c if (!ctx && !(ctx = messaging_init(mem_ctx, server_id_self(), ctx 951 source3/libsmb/dsgetdcname.c return ctx; ctx 56 source3/libsmb/libsmb_path.c urldecode_talloc(TALLOC_CTX *ctx, char **pp_dest, const char *src) ctx 91 source3/libsmb/libsmb_path.c dest = TALLOC_ARRAY(ctx, char, newlen); ctx 222 source3/libsmb/libsmb_path.c SMBC_parse_path(TALLOC_CTX *ctx, ctx 240 source3/libsmb/libsmb_path.c *pp_server = talloc_strdup(ctx, ""); ctx 241 source3/libsmb/libsmb_path.c *pp_share = talloc_strdup(ctx, ""); ctx 242 source3/libsmb/libsmb_path.c *pp_path = talloc_strdup(ctx, ""); ctx 243 source3/libsmb/libsmb_path.c *pp_user = talloc_strdup(ctx, ""); ctx 244 source3/libsmb/libsmb_path.c *pp_password = talloc_strdup(ctx, ""); ctx 257 source3/libsmb/libsmb_path.c talloc_strdup(ctx, smbc_getWorkgroup(context)); ctx 261 source3/libsmb/libsmb_path.c *pp_options = talloc_strdup(ctx, ""); ctx 263 source3/libsmb/libsmb_path.c s = talloc_strdup(ctx, fname); ctx 292 source3/libsmb/libsmb_path.c *pp_options = talloc_strdup(ctx, q); ctx 307 source3/libsmb/libsmb_path.c *pp_server = talloc_strdup(ctx, smbc_getWorkgroup(context)); ctx 329 source3/libsmb/libsmb_path.c next_token_no_ltrim_talloc(ctx, &p, &userinfo, "@"); ctx 336 source3/libsmb/libsmb_path.c next_token_no_ltrim_talloc(ctx, &u, &workgroup, ";"); ctx 346 source3/libsmb/libsmb_path.c next_token_no_ltrim_talloc(ctx, &u, pp_user, ":"); ctx 350 source3/libsmb/libsmb_path.c *pp_password = talloc_strdup(ctx, u); ctx 355 source3/libsmb/libsmb_path.c *pp_user = talloc_strdup(ctx, u); ctx 362 source3/libsmb/libsmb_path.c if (!next_token_talloc(ctx, &p, pp_server, "/")) { ctx 370 source3/libsmb/libsmb_path.c if (!next_token_talloc(ctx, &p, pp_share, "/")) { ctx 379 source3/libsmb/libsmb_path.c *pp_path = talloc_asprintf(ctx, ctx 383 source3/libsmb/libsmb_path.c *pp_path = talloc_strdup(ctx, ""); ctx 392 source3/libsmb/libsmb_path.c (void) urldecode_talloc(ctx, pp_path, *pp_path); ctx 393 source3/libsmb/libsmb_path.c (void) urldecode_talloc(ctx, pp_server, *pp_server); ctx 394 source3/libsmb/libsmb_path.c (void) urldecode_talloc(ctx, pp_share, *pp_share); ctx 395 source3/libsmb/libsmb_path.c (void) urldecode_talloc(ctx, pp_user, *pp_user); ctx 396 source3/libsmb/libsmb_path.c (void) urldecode_talloc(ctx, pp_password, *pp_password); ctx 399 source3/libsmb/libsmb_path.c workgroup = talloc_strdup(ctx, smbc_getWorkgroup(context)); ctx 93 source3/libsmb/libsmb_server.c SMBC_call_auth_fn(TALLOC_CTX *ctx, ctx 132 source3/libsmb/libsmb_server.c *pp_workgroup = talloc_strdup(ctx, workgroup); ctx 133 source3/libsmb/libsmb_server.c *pp_username = talloc_strdup(ctx, username); ctx 134 source3/libsmb/libsmb_server.c *pp_password = talloc_strdup(ctx, password); ctx 150 source3/libsmb/libsmb_server.c SMBC_find_server(TALLOC_CTX *ctx, ctx 174 source3/libsmb/libsmb_server.c SMBC_call_auth_fn(ctx, context, server, share, ctx 231 source3/libsmb/libsmb_server.c SMBC_server(TALLOC_CTX *ctx, ctx 263 source3/libsmb/libsmb_server.c srv = SMBC_find_server(ctx, context, server, share, ctx 284 source3/libsmb/libsmb_server.c SMBC_call_auth_fn(ctx, context, server, share, ctx 615 source3/libsmb/libsmb_server.c workgroup = talloc_strdup(ctx, smbc_getWorkgroup(context)); ctx 646 source3/libsmb/libsmb_server.c SMBC_attr_server(TALLOC_CTX *ctx, ctx 666 source3/libsmb/libsmb_server.c ipc_srv = SMBC_find_server(ctx, context, server, "*IPC$", ctx 673 source3/libsmb/libsmb_server.c SMBC_call_auth_fn(ctx, context, server, share, ctx 178 source3/libsmb/libsmb_xattr.c TALLOC_CTX *ctx; ctx 192 source3/libsmb/libsmb_xattr.c ctx = talloc_stackframe(); ctx 194 source3/libsmb/libsmb_xattr.c if (!NT_STATUS_IS_OK(rpccli_lsa_lookup_sids(pipe_hnd, ctx, ctx 198 source3/libsmb/libsmb_xattr.c TALLOC_FREE(ctx); ctx 208 source3/libsmb/libsmb_xattr.c TALLOC_FREE(ctx); ctx 222 source3/libsmb/libsmb_xattr.c TALLOC_CTX *ctx = NULL; ctx 238 source3/libsmb/libsmb_xattr.c ctx = talloc_stackframe(); ctx 239 source3/libsmb/libsmb_xattr.c if (!NT_STATUS_IS_OK(rpccli_lsa_lookup_names(pipe_hnd, ctx, ctx 250 source3/libsmb/libsmb_xattr.c TALLOC_FREE(ctx); ctx 397 source3/libsmb/libsmb_xattr.c TALLOC_CTX *ctx) ctx 403 source3/libsmb/libsmb_xattr.c (*the_acl) = make_sec_acl(ctx, 3, 1, ace); ctx 413 source3/libsmb/libsmb_xattr.c newacl = make_sec_acl(ctx, (*the_acl)->revision, ctx 423 source3/libsmb/libsmb_xattr.c sec_desc_parse(TALLOC_CTX *ctx, ctx 438 source3/libsmb/libsmb_xattr.c while (next_token_talloc(ctx, &p, &tok, "\t,\r\n")) { ctx 515 source3/libsmb/libsmb_xattr.c if(!add_ace(&dacl, &ace, ctx)) { ctx 528 source3/libsmb/libsmb_xattr.c if(!add_ace(&dacl, &ace, ctx)) { ctx 539 source3/libsmb/libsmb_xattr.c ret = make_sec_desc(ctx, revision, SEC_DESC_SELF_RELATIVE, ctx 553 source3/libsmb/libsmb_xattr.c TALLOC_CTX *ctx, ctx 566 source3/libsmb/libsmb_xattr.c ret = TALLOC_P(ctx, DOS_ATTR_DESC); ctx 702 source3/libsmb/libsmb_xattr.c TALLOC_CTX *ctx, ctx 894 source3/libsmb/libsmb_xattr.c if (!cli_resolve_path(ctx, "", context->internal->auth_info, ctx 913 source3/libsmb/libsmb_xattr.c sd = cli_query_secdesc(targetcli, fnum, ctx); ctx 927 source3/libsmb/libsmb_xattr.c p = talloc_asprintf(ctx, ctx 942 source3/libsmb/libsmb_xattr.c p = talloc_asprintf(ctx, "%d", ctx 978 source3/libsmb/libsmb_xattr.c p = talloc_asprintf(ctx, ",OWNER:%s", ctx 991 source3/libsmb/libsmb_xattr.c p = talloc_asprintf(ctx, "%s", sidstr); ctx 1024 source3/libsmb/libsmb_xattr.c p = talloc_asprintf(ctx, ",GROUP:%s", ctx 1037 source3/libsmb/libsmb_xattr.c p = talloc_asprintf(ctx, "%s", sidstr); ctx 1071 source3/libsmb/libsmb_xattr.c ctx, ctx 1098 source3/libsmb/libsmb_xattr.c ctx, ctx 1118 source3/libsmb/libsmb_xattr.c ctx, ctx 1180 source3/libsmb/libsmb_xattr.c p = talloc_asprintf(ctx, ctx 1203 source3/libsmb/libsmb_xattr.c p = talloc_asprintf(ctx, "0x%x", mode); ctx 1229 source3/libsmb/libsmb_xattr.c ctx, ctx 1245 source3/libsmb/libsmb_xattr.c ctx, ctx 1274 source3/libsmb/libsmb_xattr.c p = talloc_asprintf(ctx, ctx 1291 source3/libsmb/libsmb_xattr.c p = talloc_asprintf(ctx, "%lu", (unsigned long) create_time); ctx 1316 source3/libsmb/libsmb_xattr.c p = talloc_asprintf(ctx, ctx 1333 source3/libsmb/libsmb_xattr.c p = talloc_asprintf(ctx, "%lu", (unsigned long) access_time); ctx 1358 source3/libsmb/libsmb_xattr.c p = talloc_asprintf(ctx, ctx 1375 source3/libsmb/libsmb_xattr.c p = talloc_asprintf(ctx, "%lu", (unsigned long) write_time); ctx 1400 source3/libsmb/libsmb_xattr.c p = talloc_asprintf(ctx, ctx 1417 source3/libsmb/libsmb_xattr.c p = talloc_asprintf(ctx, "%lu", (unsigned long) change_time); ctx 1443 source3/libsmb/libsmb_xattr.c ctx, ctx 1459 source3/libsmb/libsmb_xattr.c ctx, ctx 1501 source3/libsmb/libsmb_xattr.c TALLOC_CTX *ctx, ctx 1536 source3/libsmb/libsmb_xattr.c sd = sec_desc_parse(ctx, ipc_cli, pol, numeric, the_acl); ctx 1552 source3/libsmb/libsmb_xattr.c if (!cli_resolve_path(ctx, "", context->internal->auth_info, ctx 1572 source3/libsmb/libsmb_xattr.c old = cli_query_secdesc(targetcli, fnum, ctx); ctx 1640 source3/libsmb/libsmb_xattr.c add_ace(&old->dacl, &sd->dacl->aces[i], ctx); ctx 1666 source3/libsmb/libsmb_xattr.c sd = make_sec_desc(ctx, old->revision, SEC_DESC_SELF_RELATIVE, ctx 118 source3/libsmb/namecache.c TALLOC_CTX *ctx = talloc_stackframe(); ctx 125 source3/libsmb/namecache.c addr = print_canonical_sockaddr(ctx, ctx 135 source3/libsmb/namecache.c TALLOC_FREE(ctx); ctx 849 source3/libsmb/namequery.c bool getlmhostsent(TALLOC_CTX *ctx, XFILE *fp, char **pp_name, int *name_type, ctx 877 source3/libsmb/namequery.c if (next_token_talloc(ctx, &ptr, &ip, NULL)) ctx 879 source3/libsmb/namequery.c if (next_token_talloc(ctx, &ptr, &name, NULL)) ctx 881 source3/libsmb/namequery.c if (next_token_talloc(ctx, &ptr, &flags, NULL)) ctx 883 source3/libsmb/namequery.c if (next_token_talloc(ctx, &ptr, &extra, NULL)) ctx 902 source3/libsmb/namequery.c flags = talloc_strdup(ctx, ""); ctx 938 source3/libsmb/namequery.c *pp_name = talloc_strdup(ctx, name); ctx 1218 source3/libsmb/namequery.c TALLOC_CTX *ctx = NULL; ctx 1232 source3/libsmb/namequery.c ctx = talloc_init("resolve_lmhosts"); ctx 1233 source3/libsmb/namequery.c if (!ctx) { ctx 1238 source3/libsmb/namequery.c while (getlmhostsent(ctx, fp, &lmhost_name, &name_type2, &return_ss)) { ctx 1255 source3/libsmb/namequery.c TALLOC_FREE(ctx); ctx 1273 source3/libsmb/namequery.c TALLOC_FREE(ctx); ctx 1374 source3/libsmb/namequery.c TALLOC_CTX *ctx; ctx 1384 source3/libsmb/namequery.c if ( (ctx = talloc_init("resolve_ads")) == NULL ) { ctx 1395 source3/libsmb/namequery.c status = ads_dns_query_pdc(ctx, name, &dcs, &numdcs); ctx 1401 source3/libsmb/namequery.c status = ads_dns_query_dcs(ctx, name, sitename, &dcs, ctx 1407 source3/libsmb/namequery.c status = ads_dns_query_kdcs(ctx, name, sitename, &dcs, ctx 1416 source3/libsmb/namequery.c talloc_destroy(ctx); ctx 1428 source3/libsmb/namequery.c talloc_destroy(ctx); ctx 1474 source3/libsmb/namequery.c talloc_destroy(ctx); ctx 1720 source3/libsmb/namequery.c NTSTATUS resolve_name_list(TALLOC_CTX *ctx, ctx 1737 source3/libsmb/namequery.c *return_ss_arr = TALLOC_P(ctx, struct sockaddr_storage); ctx 1772 source3/libsmb/namequery.c *return_ss_arr = TALLOC_ARRAY(ctx, ctx 1899 source3/libsmb/namequery.c TALLOC_CTX *ctx = talloc_init("get_dc_list"); ctx 1904 source3/libsmb/namequery.c if (!ctx) { ctx 1916 source3/libsmb/namequery.c resolve_order = talloc_strdup(ctx, lp_name_resolve_order()); ctx 1924 source3/libsmb/namequery.c resolve_order = talloc_strdup(ctx, "ads"); ctx 1930 source3/libsmb/namequery.c resolve_order = talloc_strdup(ctx, "NULL"); ctx 1936 source3/libsmb/namequery.c resolve_order = talloc_strdup(ctx, "kdc"); ctx 1982 source3/libsmb/namequery.c while (next_token_talloc(ctx, &p, &name, LIST_SEP)) { ctx 2026 source3/libsmb/namequery.c next_token_talloc(ctx, &p, &name, LIST_SEP)) { ctx 2131 source3/libsmb/namequery.c TALLOC_FREE(ctx); ctx 68 source3/libsmb/ntlmssp_sign.c HMACMD5Context ctx; ctx 86 source3/libsmb/ntlmssp_sign.c hmac_md5_init_limK_to_64(ntlmssp_state->send_sign_key, 16, &ctx); ctx 97 source3/libsmb/ntlmssp_sign.c hmac_md5_init_limK_to_64(ntlmssp_state->recv_sign_key, 16, &ctx); ctx 103 source3/libsmb/ntlmssp_sign.c hmac_md5_update(seq_num, 4, &ctx); ctx 104 source3/libsmb/ntlmssp_sign.c hmac_md5_update(whole_pdu, pdu_length, &ctx); ctx 105 source3/libsmb/ntlmssp_sign.c hmac_md5_final(digest, &ctx); ctx 173 source3/libsmb/smbencrypt.c HMACMD5Context ctx; ctx 200 source3/libsmb/smbencrypt.c hmac_md5_init_limK_to_64(owf, 16, &ctx); ctx 201 source3/libsmb/smbencrypt.c hmac_md5_update((const unsigned char *)user, user_byte_len, &ctx); ctx 202 source3/libsmb/smbencrypt.c hmac_md5_update((const unsigned char *)domain, domain_byte_len, &ctx); ctx 203 source3/libsmb/smbencrypt.c hmac_md5_final(kr_buf, &ctx); ctx 281 source3/libsmb/smbencrypt.c HMACMD5Context ctx; ctx 283 source3/libsmb/smbencrypt.c hmac_md5_init_limK_to_64(kr, 16, &ctx); ctx 284 source3/libsmb/smbencrypt.c hmac_md5_update(srv_chal->data, srv_chal->length, &ctx); ctx 285 source3/libsmb/smbencrypt.c hmac_md5_update(cli_chal->data, cli_chal->length, &ctx); ctx 286 source3/libsmb/smbencrypt.c hmac_md5_final(resp_buf, &ctx); ctx 301 source3/libsmb/smbencrypt.c HMACMD5Context ctx; ctx 303 source3/libsmb/smbencrypt.c hmac_md5_init_limK_to_64(kr, 16, &ctx); ctx 304 source3/libsmb/smbencrypt.c hmac_md5_update(nt_resp, 16, &ctx); ctx 305 source3/libsmb/smbencrypt.c hmac_md5_final((unsigned char *)sess_key, &ctx); ctx 526 source3/libsmb/smbencrypt.c bool decode_pw_buffer(TALLOC_CTX *ctx, ctx 563 source3/libsmb/smbencrypt.c *new_pw_len = pull_string_talloc(ctx, ctx 707 source3/libsmb/smbencrypt.c struct MD5Context ctx; ctx 724 source3/libsmb/smbencrypt.c MD5Init(&ctx); ctx 725 source3/libsmb/smbencrypt.c MD5Update(&ctx, session_key->data, session_key->length); ctx 726 source3/libsmb/smbencrypt.c MD5Update(&ctx, confounder, confounder_len); ctx 727 source3/libsmb/smbencrypt.c MD5Final(confounded_session_key.data, &ctx); ctx 745 source3/libsmb/smbencrypt.c struct MD5Context ctx; ctx 769 source3/libsmb/smbencrypt.c MD5Init(&ctx); ctx 770 source3/libsmb/smbencrypt.c MD5Update(&ctx, session_key->data, session_key->length); ctx 771 source3/libsmb/smbencrypt.c MD5Update(&ctx, confounder, confounder_len); ctx 772 source3/libsmb/smbencrypt.c MD5Final(confounded_session_key.data, &ctx); ctx 479 source3/locking/locking.c char *share_mode_str(TALLOC_CTX *ctx, int num, const struct share_mode_entry *e) ctx 481 source3/locking/locking.c return talloc_asprintf(ctx, "share_mode_entry[%d]: %s " ctx 1319 source3/locking/locking.c static UNIX_USER_TOKEN *copy_unix_token(TALLOC_CTX *ctx, const UNIX_USER_TOKEN *tok) ctx 1327 source3/locking/locking.c cpy = TALLOC_P(ctx, UNIX_USER_TOKEN); ctx 707 source3/locking/posix.c static struct lock_list *posix_lock_list(TALLOC_CTX *ctx, ctx 874 source3/locking/posix.c struct lock_list *l_new = TALLOC_P(ctx, struct lock_list); ctx 118 source3/modules/onefs.h struct sys_notify_context *ctx, ctx 120 source3/modules/onefs.h void (*callback)(struct sys_notify_context *ctx, ctx 50 source3/modules/onefs_notify.c struct sys_notify_context *ctx; ctx 57 source3/modules/onefs_notify.c void (*callback)(struct sys_notify_context *ctx, ctx 384 source3/modules/onefs_notify.c wc->callback(wc->ctx, wc->private_data, &ne); ctx 424 source3/modules/onefs_notify.c wc->callback(wc->ctx, wc->private_data, &ne); ctx 439 source3/modules/onefs_notify.c wc->callback(wc->ctx, wc->private_data, &ne); ctx 541 source3/modules/onefs_notify.c struct sys_notify_context *ctx, ctx 543 source3/modules/onefs_notify.c void (*callback)(struct sys_notify_context *ctx, ctx 626 source3/modules/onefs_notify.c wc = talloc(ctx, struct onefs_notify_watch_context); ctx 645 source3/modules/onefs_notify.c wc->ctx = ctx; ctx 665 source3/modules/onefs_notify.c event_add_fd(ctx->ev, wc, wc->ifs_event_fd, EVENT_FD_READ, ctx 141 source3/modules/vfs_acl_tdb.c TALLOC_CTX *ctx = talloc_tos(); ctx 146 source3/modules/vfs_acl_tdb.c ndr_err = ndr_pull_struct_blob(pblob, ctx, NULL, &xacl, ctx 159 source3/modules/vfs_acl_tdb.c *ppdesc = make_sec_desc(ctx, SEC_DESC_REVISION, xacl.info.sd_hs->sd->type | SEC_DESC_SELF_RELATIVE, ctx 179 source3/modules/vfs_acl_tdb.c static NTSTATUS get_acl_blob(TALLOC_CTX *ctx, ctx 215 source3/modules/vfs_acl_tdb.c ctx, ctx 242 source3/modules/vfs_acl_tdb.c TALLOC_CTX *ctx = talloc_tos(); ctx 253 source3/modules/vfs_acl_tdb.c pblob, ctx, NULL, &xacl, ctx 377 source3/modules/vfs_acl_tdb.c TALLOC_CTX *ctx = talloc_tos(); ctx 387 source3/modules/vfs_acl_tdb.c status = get_acl_blob(ctx, handle, fsp, name, &blob); ctx 455 source3/modules/vfs_acl_tdb.c TALLOC_CTX *ctx = talloc_tos(); ctx 463 source3/modules/vfs_acl_tdb.c if (!parent_dirname(ctx, fname, &parent_name, NULL)) { ctx 485 source3/modules/vfs_acl_tdb.c status = se_create_child_secdesc(ctx, ctx 525 source3/modules/vfs_acl_tdb.c psd = default_file_sd(ctx, &sbuf); ctx 38 source3/modules/vfs_acl_xattr.c TALLOC_CTX *ctx = talloc_tos(); ctx 43 source3/modules/vfs_acl_xattr.c ndr_err = ndr_pull_struct_blob(pblob, ctx, NULL, &xacl, ctx 56 source3/modules/vfs_acl_xattr.c *ppdesc = make_sec_desc(ctx, SEC_DESC_REVISION, xacl.info.sd_hs->sd->type | SEC_DESC_SELF_RELATIVE, ctx 76 source3/modules/vfs_acl_xattr.c static NTSTATUS get_acl_blob(TALLOC_CTX *ctx, ctx 92 source3/modules/vfs_acl_xattr.c tmp = TALLOC_REALLOC_ARRAY(ctx, val, uint8_t, size); ctx 139 source3/modules/vfs_acl_xattr.c TALLOC_CTX *ctx = talloc_tos(); ctx 150 source3/modules/vfs_acl_xattr.c pblob, ctx, NULL, &xacl, ctx 245 source3/modules/vfs_acl_xattr.c TALLOC_CTX *ctx = talloc_tos(); ctx 255 source3/modules/vfs_acl_xattr.c status = get_acl_blob(ctx, handle, fsp, name, &blob); ctx 323 source3/modules/vfs_acl_xattr.c TALLOC_CTX *ctx = talloc_tos(); ctx 331 source3/modules/vfs_acl_xattr.c if (!parent_dirname(ctx, fname, &parent_name, NULL)) { ctx 353 source3/modules/vfs_acl_xattr.c status = se_create_child_secdesc(ctx, ctx 393 source3/modules/vfs_acl_xattr.c psd = default_file_sd(ctx, &sbuf); ctx 56 source3/modules/vfs_afsacl.c TALLOC_CTX *ctx; ctx 71 source3/modules/vfs_afsacl.c acl->ctx = talloc_init("afs_acl"); ctx 72 source3/modules/vfs_afsacl.c if (acl->ctx == NULL) { ctx 81 source3/modules/vfs_afsacl.c if (acl->ctx != NULL) ctx 82 source3/modules/vfs_afsacl.c talloc_destroy(acl->ctx); ctx 83 source3/modules/vfs_afsacl.c acl->ctx = NULL; ctx 204 source3/modules/vfs_afsacl.c ace = new_afs_ace(acl->ctx, positive, name, rights); ctx 879 source3/modules/vfs_afsacl.c copy = clone_afs_ace(dst->ctx, ace); ctx 28 source3/modules/vfs_cap.c static char *capencode(TALLOC_CTX *ctx, const char *from); ctx 29 source3/modules/vfs_cap.c static char *capdecode(TALLOC_CTX *ctx, const char *from); ctx 554 source3/modules/vfs_cap.c static char *capencode(TALLOC_CTX *ctx, const char *from) ctx 570 source3/modules/vfs_cap.c to = TALLOC_ARRAY(ctx, char, len); ctx 595 source3/modules/vfs_cap.c static char *capdecode(TALLOC_CTX *ctx, const char *from) ctx 610 source3/modules/vfs_cap.c to = TALLOC_ARRAY(ctx, char, len); ctx 30 source3/modules/vfs_catia.c static char *catia_string_replace(TALLOC_CTX *ctx, ctx 45 source3/modules/vfs_catia.c if (!push_ucs2_talloc(ctx, &tmpbuf, s, &converted_size)) { ctx 57 source3/modules/vfs_catia.c if (!pull_ucs2_talloc(ctx, &ret, tmpbuf, &converted_size)) { ctx 65 source3/modules/vfs_catia.c static char *from_unix(TALLOC_CTX *ctx, const char *s) ctx 67 source3/modules/vfs_catia.c char *ret = catia_string_replace(ctx, s, '\x22', '\xa8'); ctx 68 source3/modules/vfs_catia.c ret = catia_string_replace(ctx, ret, '\x2a', '\xa4'); ctx 69 source3/modules/vfs_catia.c ret = catia_string_replace(ctx, ret, '\x2f', '\xf8'); ctx 70 source3/modules/vfs_catia.c ret = catia_string_replace(ctx, ret, '\x3a', '\xf7'); ctx 71 source3/modules/vfs_catia.c ret = catia_string_replace(ctx, ret, '\x3c', '\xab'); ctx 72 source3/modules/vfs_catia.c ret = catia_string_replace(ctx, ret, '\x3e', '\xbb'); ctx 73 source3/modules/vfs_catia.c ret = catia_string_replace(ctx, ret, '\x3f', '\xbf'); ctx 74 source3/modules/vfs_catia.c ret = catia_string_replace(ctx, ret, '\x5c', '\xff'); ctx 75 source3/modules/vfs_catia.c ret = catia_string_replace(ctx, ret, '\x7c', '\xa6'); ctx 76 source3/modules/vfs_catia.c return catia_string_replace(ctx, ret, ' ', '\xb1'); ctx 79 source3/modules/vfs_catia.c static char *to_unix(TALLOC_CTX *ctx, const char *s) ctx 81 source3/modules/vfs_catia.c char *ret = catia_string_replace(ctx, s, '\xa8', '\x22'); ctx 82 source3/modules/vfs_catia.c ret = catia_string_replace(ctx, ret, '\xa4', '\x2a'); ctx 83 source3/modules/vfs_catia.c ret = catia_string_replace(ctx, ret, '\xf8', '\x2f'); ctx 84 source3/modules/vfs_catia.c ret = catia_string_replace(ctx, ret, '\xf7', '\x3a'); ctx 85 source3/modules/vfs_catia.c ret = catia_string_replace(ctx, ret, '\xab', '\x3c'); ctx 86 source3/modules/vfs_catia.c ret = catia_string_replace(ctx, ret, '\xbb', '\x3e'); ctx 87 source3/modules/vfs_catia.c ret = catia_string_replace(ctx, ret, '\xbf', '\x3f'); ctx 88 source3/modules/vfs_catia.c ret = catia_string_replace(ctx, ret, '\xff', '\x5c'); ctx 89 source3/modules/vfs_catia.c ret = catia_string_replace(ctx, ret, '\xa6', '\x7c'); ctx 90 source3/modules/vfs_catia.c return catia_string_replace(ctx, ret, '\xb1', ' '); ctx 153 source3/modules/vfs_catia.c TALLOC_CTX *ctx = talloc_tos(); ctx 154 source3/modules/vfs_catia.c char *oname = to_unix(ctx, oldname); ctx 155 source3/modules/vfs_catia.c char *nname = to_unix(ctx, newname); ctx 1058 source3/modules/vfs_default.c struct sys_notify_context *ctx, ctx 1060 source3/modules/vfs_default.c void (*callback)(struct sys_notify_context *ctx, ctx 1074 source3/modules/vfs_default.c if (lp_kernel_change_notify(ctx->conn->params)) { ctx 1075 source3/modules/vfs_default.c return inotify_watch(ctx, e, callback, private_data, handle); ctx 38 source3/modules/vfs_expand_msdfs.c static char *read_target_host(TALLOC_CTX *ctx, const char *mapfile) ctx 90 source3/modules/vfs_expand_msdfs.c return talloc_strdup(ctx, space); ctx 106 source3/modules/vfs_expand_msdfs.c static char *expand_msdfs_target(TALLOC_CTX *ctx, ctx 130 source3/modules/vfs_expand_msdfs.c mapfilename = talloc_strdup(ctx, filename_start+1); ctx 138 source3/modules/vfs_expand_msdfs.c if ((targethost = read_target_host(ctx, mapfilename)) == NULL) { ctx 144 source3/modules/vfs_expand_msdfs.c targethost = talloc_sub_advanced(ctx, ctx 157 source3/modules/vfs_expand_msdfs.c new_target = talloc_asprintf(ctx, ctx 173 source3/modules/vfs_expand_msdfs.c TALLOC_CTX *ctx = talloc_tos(); ctx 175 source3/modules/vfs_expand_msdfs.c char *target = TALLOC_ARRAY(ctx, char, PATH_MAX+1); ctx 191 source3/modules/vfs_expand_msdfs.c target = expand_msdfs_target(ctx, handle->conn, target); ctx 203 source3/modules/vfs_full_audit.c struct sys_notify_context *ctx, ctx 205 source3/modules/vfs_full_audit.c void (*callback)(struct sys_notify_context *ctx, ctx 772 source3/modules/vfs_full_audit.c static char *audit_prefix(TALLOC_CTX *ctx, connection_struct *conn) ctx 777 source3/modules/vfs_full_audit.c prefix = talloc_strdup(ctx, ctx 783 source3/modules/vfs_full_audit.c result = talloc_sub_advanced(ctx, ctx 1650 source3/modules/vfs_full_audit.c struct sys_notify_context *ctx, ctx 1652 source3/modules/vfs_full_audit.c void (*callback)(struct sys_notify_context *ctx, ctx 1659 source3/modules/vfs_full_audit.c result = SMB_VFS_NEXT_NOTIFY_WATCH(handle, ctx, e, callback, private_data, handle_p); ctx 31 source3/modules/vfs_netatalk.c static int atalk_build_paths(TALLOC_CTX *ctx, const char *path, ctx 55 source3/modules/vfs_netatalk.c static int atalk_build_paths(TALLOC_CTX *ctx, const char *path, const char *fname, ctx 64 source3/modules/vfs_netatalk.c if (!ctx || !path || !fname || !adbl_path || !orig_path || ctx 78 source3/modules/vfs_netatalk.c *orig_path = talloc_asprintf(ctx, "%s/%s", path, &fname[ptr0]); ctx 86 source3/modules/vfs_netatalk.c *adbl_path = talloc_asprintf(ctx, "%s/%s/%s/", ctx 89 source3/modules/vfs_netatalk.c dname = talloc_strdup(ctx, *orig_path); ctx 92 source3/modules/vfs_netatalk.c *adbl_path = talloc_asprintf(ctx, "%s/%s/%s", ctx 146 source3/modules/vfs_netatalk.c static void atalk_rrmdir(TALLOC_CTX *ctx, char *path) ctx 161 source3/modules/vfs_netatalk.c if (!(dpath = talloc_asprintf(ctx, "%s/%s", ctx 198 source3/modules/vfs_netatalk.c TALLOC_CTX *ctx = 0; ctx 209 source3/modules/vfs_netatalk.c if (!(ctx = talloc_init("remove_directory"))) ctx 212 source3/modules/vfs_netatalk.c if (!(dpath = talloc_asprintf(ctx, "%s/%s%s", ctx 216 source3/modules/vfs_netatalk.c atalk_rrmdir(ctx, dpath); ctx 219 source3/modules/vfs_netatalk.c talloc_destroy(ctx); ctx 232 source3/modules/vfs_netatalk.c TALLOC_CTX *ctx; ctx 238 source3/modules/vfs_netatalk.c if (!(ctx = talloc_init("rename_file"))) ctx 241 source3/modules/vfs_netatalk.c if (atalk_build_paths(ctx, handle->conn->origpath, oldname, &adbl_path, &orig_path, ctx 253 source3/modules/vfs_netatalk.c talloc_destroy(ctx); ctx 264 source3/modules/vfs_netatalk.c TALLOC_CTX *ctx; ctx 294 source3/modules/vfs_netatalk.c if (!(ctx = talloc_init("unlink_file"))) ctx 297 source3/modules/vfs_netatalk.c if (atalk_build_paths(ctx, handle->conn->origpath, path, &adbl_path, &orig_path, ctx 309 source3/modules/vfs_netatalk.c talloc_destroy(ctx); ctx 320 source3/modules/vfs_netatalk.c TALLOC_CTX *ctx; ctx 326 source3/modules/vfs_netatalk.c if (!(ctx = talloc_init("chmod_file"))) ctx 329 source3/modules/vfs_netatalk.c if (atalk_build_paths(ctx, handle->conn->origpath, path, &adbl_path, &orig_path, ctx 341 source3/modules/vfs_netatalk.c talloc_destroy(ctx); ctx 352 source3/modules/vfs_netatalk.c TALLOC_CTX *ctx; ctx 358 source3/modules/vfs_netatalk.c if (!(ctx = talloc_init("chown_file"))) ctx 361 source3/modules/vfs_netatalk.c if (atalk_build_paths(ctx, handle->conn->origpath, path, &adbl_path, &orig_path, ctx 375 source3/modules/vfs_netatalk.c talloc_destroy(ctx); ctx 386 source3/modules/vfs_netatalk.c TALLOC_CTX *ctx; ctx 392 source3/modules/vfs_netatalk.c if (!(ctx = talloc_init("lchown_file"))) ctx 395 source3/modules/vfs_netatalk.c if (atalk_build_paths(ctx, handle->conn->origpath, path, &adbl_path, &orig_path, ctx 409 source3/modules/vfs_netatalk.c talloc_destroy(ctx); ctx 51 source3/modules/vfs_notify_fam.c void (*callback)(struct sys_notify_context *ctx, ctx 116 source3/modules/vfs_notify_fam.c struct fam_watch_context *ctx; ctx 127 source3/modules/vfs_notify_fam.c for (ctx = notify_list; ctx; ctx = ctx->next) { ctx 128 source3/modules/vfs_notify_fam.c FAMMonitorDirectory(fam_conn, ctx->path, &ctx->fr, NULL); ctx 139 source3/modules/vfs_notify_fam.c struct fam_watch_context *ctx; ctx 173 source3/modules/vfs_notify_fam.c for (ctx = fam_notify_list; ctx; ctx = ctx->next) { ctx 174 source3/modules/vfs_notify_fam.c if (memcmp(&fam_event.fr, &ctx->fr, sizeof(FAMRequest)) == 0) { ctx 179 source3/modules/vfs_notify_fam.c if (ctx == NULL) { ctx 189 source3/modules/vfs_notify_fam.c ctx->callback(ctx->sys_ctx, ctx->private_data, &ne); ctx 192 source3/modules/vfs_notify_fam.c static int fam_watch_context_destructor(struct fam_watch_context *ctx) ctx 194 source3/modules/vfs_notify_fam.c if (FAMCONNECTION_GETFD(ctx->fam_connection) != -1) { ctx 195 source3/modules/vfs_notify_fam.c FAMCancelMonitor(&fam_connection, &ctx->fr); ctx 197 source3/modules/vfs_notify_fam.c DLIST_REMOVE(fam_notify_list, ctx); ctx 206 source3/modules/vfs_notify_fam.c struct sys_notify_context *ctx, ctx 208 source3/modules/vfs_notify_fam.c void (*callback)(struct sys_notify_context *ctx, ctx 226 source3/modules/vfs_notify_fam.c ctx->ev))) { ctx 235 source3/modules/vfs_notify_fam.c if (!(watch = TALLOC_P(ctx, struct fam_watch_context))) { ctx 243 source3/modules/vfs_notify_fam.c watch->sys_ctx = ctx; ctx 276 source3/modules/vfs_notify_fam.c fam_reopen(watch->fam_connection, ctx->ev, fam_notify_list); ctx 39 source3/modules/vfs_streams_xattr.c struct MD5Context ctx; ctx 51 source3/modules/vfs_streams_xattr.c MD5Init(&ctx); ctx 52 source3/modules/vfs_streams_xattr.c MD5Update(&ctx, (unsigned char *)&(sbuf->st_dev), ctx 54 source3/modules/vfs_streams_xattr.c MD5Update(&ctx, (unsigned char *)&(sbuf->st_ino), ctx 56 source3/modules/vfs_streams_xattr.c MD5Update(&ctx, (unsigned char *)upper_sname, ctx 58 source3/modules/vfs_streams_xattr.c MD5Final(hash, &ctx); ctx 43 source3/nmbd/nmbd.c static struct event_context *ctx; ctx 45 source3/nmbd/nmbd.c if (!ctx && !(ctx = event_context_init(NULL))) { ctx 48 source3/nmbd/nmbd.c return ctx; ctx 53 source3/nmbd/nmbd.c static struct messaging_context *ctx; ctx 55 source3/nmbd/nmbd.c if (ctx == NULL) { ctx 56 source3/nmbd/nmbd.c ctx = messaging_init(NULL, server_id_self(), ctx 59 source3/nmbd/nmbd.c if (ctx == NULL) { ctx 62 source3/nmbd/nmbd.c return ctx; ctx 36 source3/nmbd/nmbd_lmhosts.c TALLOC_CTX *ctx = talloc_init("load_lmhosts_file"); ctx 42 source3/nmbd/nmbd_lmhosts.c TALLOC_FREE(ctx); ctx 46 source3/nmbd/nmbd_lmhosts.c while (getlmhostsent(ctx, fp, &name, &name_type, &ss) ) { ctx 79 source3/nmbd/nmbd_lmhosts.c TALLOC_FREE(ctx); ctx 303 source3/nmbd/nmbd_serverlistdb.c TALLOC_CTX *ctx = talloc_tos(); ctx 333 source3/nmbd/nmbd_serverlistdb.c fnamenew = talloc_asprintf(ctx, "%s.", ctx 444 source3/nmbd/nmbd_winsserver.c TALLOC_CTX *ctx = talloc_tos(); ctx 466 source3/nmbd/nmbd_winsserver.c command = talloc_asprintf(ctx, ctx 5126 source3/param/loadparm.c TALLOC_CTX *ctx = talloc_tos(); ctx 5137 source3/param/loadparm.c ret = talloc_sub_basic(ctx, ctx 5144 source3/param/loadparm.c ret = talloc_sub_basic(ctx, ctx 8341 source3/param/loadparm.c enum usershare_err parse_usershare_file(TALLOC_CTX *ctx, ctx 8384 source3/param/loadparm.c sharepath = talloc_strdup(ctx, &lines[1][5]); ctx 8394 source3/param/loadparm.c comment = talloc_strdup(ctx, &lines[2][8]); ctx 8405 source3/param/loadparm.c if (!parse_usershare_acl(ctx, &lines[3][14], ppsd)) { ctx 8532 source3/param/loadparm.c TALLOC_CTX *ctx = NULL; ctx 8640 source3/param/loadparm.c ctx = talloc_init("usershare_sd_xctx"); ctx 8641 source3/param/loadparm.c if (!ctx) { ctx 8646 source3/param/loadparm.c if (parse_usershare_file(ctx, &sbuf, service_name, ctx 8649 source3/param/loadparm.c talloc_destroy(ctx); ctx 8666 source3/param/loadparm.c talloc_destroy(ctx); ctx 8680 source3/param/loadparm.c talloc_destroy(ctx); ctx 8700 source3/param/loadparm.c talloc_destroy(ctx); ctx 66 source3/passdb/passdb.c struct samu *samu_new( TALLOC_CTX *ctx ) ctx 70 source3/passdb/passdb.c if ( !(user = TALLOC_ZERO_P( ctx, struct samu )) ) { ctx 1065 source3/passdb/pdb_interface.c TALLOC_CTX *ctx; ctx 1082 source3/passdb/pdb_interface.c if ( (ctx = talloc_init("pdb_new_rid")) == NULL ) { ctx 1099 source3/passdb/pdb_interface.c if ( lookup_global_sam_rid( ctx, allocated_rid, &name, &type, NULL ) ) { ctx 1104 source3/passdb/pdb_interface.c TALLOC_FREE( ctx ); ctx 546 source3/passdb/pdb_ldap.c TALLOC_CTX *ctx = talloc_init("init_sam_from_ldap"); ctx 548 source3/passdb/pdb_ldap.c if (!ctx) { ctx 565 source3/passdb/pdb_ldap.c ctx))) { ctx 573 source3/passdb/pdb_ldap.c nt_username = talloc_strdup(ctx, username); ctx 578 source3/passdb/pdb_ldap.c domain = talloc_strdup(ctx, ldap_state->domain_name); ctx 596 source3/passdb/pdb_ldap.c ctx))!=NULL) { ctx 605 source3/passdb/pdb_ldap.c ctx))!=NULL) { ctx 626 source3/passdb/pdb_ldap.c ctx); ctx 638 source3/passdb/pdb_ldap.c ctx); ctx 649 source3/passdb/pdb_ldap.c ctx); ctx 660 source3/passdb/pdb_ldap.c ctx); ctx 671 source3/passdb/pdb_ldap.c ctx); ctx 683 source3/passdb/pdb_ldap.c ctx); ctx 701 source3/passdb/pdb_ldap.c ctx); ctx 710 source3/passdb/pdb_ldap.c ctx); ctx 721 source3/passdb/pdb_ldap.c ctx); ctx 733 source3/passdb/pdb_ldap.c ctx); ctx 736 source3/passdb/pdb_ldap.c homedir = talloc_sub_basic(ctx, ctx 747 source3/passdb/pdb_ldap.c talloc_sub_basic(ctx, username, domain, ctx 757 source3/passdb/pdb_ldap.c ctx); ctx 760 source3/passdb/pdb_ldap.c logon_script = talloc_sub_basic(ctx, ctx 771 source3/passdb/pdb_ldap.c talloc_sub_basic(ctx, username, domain, ctx 781 source3/passdb/pdb_ldap.c ctx); ctx 784 source3/passdb/pdb_ldap.c profile_path = talloc_sub_basic(ctx, ctx 795 source3/passdb/pdb_ldap.c talloc_sub_basic(ctx, username, domain, ctx 805 source3/passdb/pdb_ldap.c ctx); ctx 815 source3/passdb/pdb_ldap.c ctx); ctx 825 source3/passdb/pdb_ldap.c ctx); ctx 843 source3/passdb/pdb_ldap.c user_dn = smbldap_talloc_dn(ctx, ldap_state->smbldap_state->ldap_struct, entry); ctx 876 source3/passdb/pdb_ldap.c ctx); ctx 891 source3/passdb/pdb_ldap.c ctx); ctx 908 source3/passdb/pdb_ldap.c char *history_string = TALLOC_ARRAY(ctx, char, ctx 917 source3/passdb/pdb_ldap.c if ((pwhist = TALLOC_ARRAY(ctx, uint8, ctx 964 source3/passdb/pdb_ldap.c ctx); ctx 985 source3/passdb/pdb_ldap.c ctx); ctx 997 source3/passdb/pdb_ldap.c ctx); ctx 1009 source3/passdb/pdb_ldap.c ctx); ctx 1022 source3/passdb/pdb_ldap.c ctx); ctx 1035 source3/passdb/pdb_ldap.c ctx); ctx 1087 source3/passdb/pdb_ldap.c TALLOC_FREE(ctx); ctx 2093 source3/passdb/pdb_ldap.c TALLOC_CTX *ctx = talloc_init("ldapsam_add_sam_account"); ctx 2095 source3/passdb/pdb_ldap.c if (!ctx) { ctx 2106 source3/passdb/pdb_ldap.c attr_list = get_userattr_list(ctx, ldap_state->schema_ver); ctx 2171 source3/passdb/pdb_ldap.c dn = smbldap_talloc_dn(ctx, ldap_state->smbldap_state->ldap_struct, entry); ctx 2181 source3/passdb/pdb_ldap.c filter = talloc_asprintf(ctx, ctx 2185 source3/passdb/pdb_ldap.c sid_string_talloc(ctx, sid), ctx 2218 source3/passdb/pdb_ldap.c dn = smbldap_talloc_dn (ctx, ldap_state->smbldap_state->ldap_struct, entry); ctx 2239 source3/passdb/pdb_ldap.c dn = talloc_asprintf(ctx, ctx 2244 source3/passdb/pdb_ldap.c dn = talloc_asprintf(ctx, ctx 2297 source3/passdb/pdb_ldap.c TALLOC_FREE(ctx); ctx 2332 source3/passdb/pdb_ldap.c TALLOC_CTX *ctx = talloc_init("init_group_from_ldap"); ctx 2337 source3/passdb/pdb_ldap.c TALLOC_FREE(ctx); ctx 2346 source3/passdb/pdb_ldap.c ctx); ctx 2350 source3/passdb/pdb_ldap.c TALLOC_FREE(ctx); ctx 2363 source3/passdb/pdb_ldap.c ctx); ctx 2367 source3/passdb/pdb_ldap.c TALLOC_FREE(ctx); ctx 2373 source3/passdb/pdb_ldap.c TALLOC_FREE(ctx); ctx 2383 source3/passdb/pdb_ldap.c ctx); ctx 2387 source3/passdb/pdb_ldap.c TALLOC_FREE(ctx); ctx 2395 source3/passdb/pdb_ldap.c TALLOC_FREE(ctx); ctx 2405 source3/passdb/pdb_ldap.c ctx); ctx 2412 source3/passdb/pdb_ldap.c ctx); ctx 2416 source3/passdb/pdb_ldap.c TALLOC_FREE(ctx); ctx 2428 source3/passdb/pdb_ldap.c ctx); ctx 2430 source3/passdb/pdb_ldap.c temp = talloc_strdup(ctx, ""); ctx 2432 source3/passdb/pdb_ldap.c TALLOC_FREE(ctx); ctx 2442 source3/passdb/pdb_ldap.c TALLOC_FREE(ctx); ctx 1439 source3/passdb/pdb_smbpasswd.c TALLOC_CTX *ctx = talloc_tos(); ctx 1462 source3/passdb/pdb_smbpasswd.c rename_script = talloc_strdup(ctx, ctx 1472 source3/passdb/pdb_smbpasswd.c rename_script = talloc_string_sub2(ctx, ctx 1483 source3/passdb/pdb_smbpasswd.c rename_script = talloc_string_sub2(ctx, ctx 128 source3/printing/lpq_parse.c TALLOC_CTX *ctx = talloc_tos(); ctx 132 source3/printing/lpq_parse.c line2 = talloc_strdup(ctx, line); ctx 224 source3/printing/nt_printing.c static TDB_DATA make_printer_tdbkey(TALLOC_CTX *ctx, const char *sharename ) ctx 233 source3/printing/nt_printing.c keystr = talloc_asprintf(ctx, "%s%s", PRINTERS_PREFIX, share); ctx 243 source3/printing/nt_printing.c static TDB_DATA make_printers_secdesc_tdbkey(TALLOC_CTX *ctx, ctx 253 source3/printing/nt_printing.c keystr = talloc_asprintf(ctx, "%s%s", SECDESC_PREFIX, share); ctx 336 source3/printing/nt_printing.c TALLOC_CTX *ctx = state; ctx 351 source3/printing/nt_printing.c status = unmarshall_sec_desc_buf(ctx, data.dptr, data.dsize, &sd_orig); ctx 393 source3/printing/nt_printing.c new_sec = make_sec_desc( ctx, SEC_DESC_REVISION, SEC_DESC_SELF_RELATIVE, ctx 400 source3/printing/nt_printing.c sd_new = make_sec_desc_buf( ctx, size_new_sec, new_sec ); ctx 405 source3/printing/nt_printing.c if ( !(sd_store = sec_desc_merge( ctx, sd_new, sd_orig )) ) { ctx 415 source3/printing/nt_printing.c status = marshall_sec_desc_buf(ctx, sd_store, &data.dptr, &data.dsize); ctx 433 source3/printing/nt_printing.c TALLOC_CTX *ctx; ctx 438 source3/printing/nt_printing.c if ( !(ctx = talloc_init( "upgrade_to_version_4" )) ) ctx 441 source3/printing/nt_printing.c result = tdb_traverse( tdb_printers, sec_desc_upg_fn, ctx ); ctx 443 source3/printing/nt_printing.c talloc_destroy( ctx ); ctx 459 source3/printing/nt_printing.c TALLOC_CTX *ctx = talloc_tos(); ctx 468 source3/printing/nt_printing.c new_key = make_printer_tdbkey(ctx, (const char *)key.dptr+strlen(PRINTERS_PREFIX) ); ctx 471 source3/printing/nt_printing.c new_key = make_printers_secdesc_tdbkey(ctx, (const char *)key.dptr+strlen(SECDESC_PREFIX) ); ctx 500 source3/printing/nt_printing.c TALLOC_CTX *ctx; ctx 505 source3/printing/nt_printing.c if ( !(ctx = talloc_init( "upgrade_to_version_5" )) ) ctx 510 source3/printing/nt_printing.c talloc_destroy( ctx ); ctx 641 source3/printing/nt_printing.c TALLOC_CTX *ctx = talloc_tos(); ctx 642 source3/printing/nt_printing.c char *name = talloc_strdup(ctx, old_name); ctx 649 source3/printing/nt_printing.c name = unix_clean_name(ctx, name); ctx 654 source3/printing/nt_printing.c unix_convert(ctx,conn, name, false, &new_name, NULL, pst); ctx 808 source3/printing/nt_printing.c TALLOC_CTX *ctx = talloc_tos(); ctx 824 source3/printing/nt_printing.c buf = TALLOC_ARRAY(ctx, char, len); ctx 832 source3/printing/nt_printing.c key = talloc_asprintf(ctx, "%s%s", FORMS_PREFIX, (*list)[i].name); ctx 1847 source3/printing/nt_printing.c TALLOC_CTX *ctx = talloc_tos(); ctx 1891 source3/printing/nt_printing.c new_dir = talloc_asprintf(ctx, ctx 1930 source3/printing/nt_printing.c *perr = move_driver_file_to_download_area(ctx, ctx 1947 source3/printing/nt_printing.c *perr = move_driver_file_to_download_area(ctx, ctx 1966 source3/printing/nt_printing.c *perr = move_driver_file_to_download_area(ctx, ctx 1986 source3/printing/nt_printing.c *perr = move_driver_file_to_download_area(ctx, ctx 2014 source3/printing/nt_printing.c *perr = move_driver_file_to_download_area(ctx, ctx 2052 source3/printing/nt_printing.c TALLOC_CTX *ctx = talloc_tos(); ctx 2072 source3/printing/nt_printing.c directory = talloc_asprintf(ctx, "\\print$\\%s\\%d\\", ctx 2111 source3/printing/nt_printing.c key = talloc_asprintf(ctx, "%s%s/%d/%s", DRIVERS_PREFIX, ctx 2485 source3/printing/nt_printing.c TALLOC_CTX *ctx = talloc_tos(); ctx 2487 source3/printing/nt_printing.c kbuf = make_printer_tdbkey(ctx, sharename); ctx 2490 source3/printing/nt_printing.c kbuf= make_printers_secdesc_tdbkey(ctx, sharename); ctx 3155 source3/printing/nt_printing.c TALLOC_CTX *ctx; ctx 3163 source3/printing/nt_printing.c ctx = talloc_init("nt_printer_publish_ads"); ctx 3164 source3/printing/nt_printing.c if (ctx == NULL) { ctx 3178 source3/printing/nt_printing.c TALLOC_FREE(ctx); ctx 3184 source3/printing/nt_printing.c TALLOC_FREE(ctx); ctx 3189 source3/printing/nt_printing.c if (!pull_utf8_talloc(ctx, &srv_dn, srv_dn_utf8, &converted_size)) { ctx 3190 source3/printing/nt_printing.c TALLOC_FREE(ctx); ctx 3195 source3/printing/nt_printing.c if (!pull_utf8_talloc(ctx, &srv_cn_0, srv_cn_utf8[0], &converted_size)) { ctx 3196 source3/printing/nt_printing.c TALLOC_FREE(ctx); ctx 3208 source3/printing/nt_printing.c TALLOC_FREE(ctx); ctx 3214 source3/printing/nt_printing.c TALLOC_FREE(ctx); ctx 3218 source3/printing/nt_printing.c prt_dn = talloc_asprintf(ctx, "cn=%s-%s,%s", srv_cn_escaped, sharename_escaped, srv_dn); ctx 3223 source3/printing/nt_printing.c mods = ads_init_mods(ctx); ctx 3227 source3/printing/nt_printing.c TALLOC_FREE(ctx); ctx 3231 source3/printing/nt_printing.c get_local_printer_publishing_data(ctx, &mods, printer->info_2->data); ctx 3232 source3/printing/nt_printing.c ads_mod_str(ctx, &mods, SPOOL_REG_PRINTERNAME, ctx 3236 source3/printing/nt_printing.c ads_rc = ads_mod_printer_entry(ads, prt_dn, ctx, &mods); ctx 3242 source3/printing/nt_printing.c ads_rc = ads_add_printer_entry(ads, prt_dn, ctx, &mods); ctx 3256 source3/printing/nt_printing.c TALLOC_FREE(ctx); ctx 4520 source3/printing/nt_printing.c TALLOC_CTX *ctx = NULL; ctx 4535 source3/printing/nt_printing.c if ((ctx = talloc_init("save_driver_init_2")) == NULL) ctx 4549 source3/printing/nt_printing.c if ( !convert_driver_init( ctx, nt_devmode, data, data_len )) { ctx 4582 source3/printing/nt_printing.c talloc_destroy(ctx); ctx 5396 source3/printing/nt_printing.c static SEC_DESC_BUF *construct_default_printer_sdb(TALLOC_CTX *ctx) ctx 5456 source3/printing/nt_printing.c if ((psa = make_sec_acl(ctx, NT4_ACL_REVISION, i, ace)) != NULL) { ctx 5457 source3/printing/nt_printing.c psd = make_sec_desc(ctx, SEC_DESC_REVISION, SEC_DESC_SELF_RELATIVE, ctx 5468 source3/printing/nt_printing.c sdb = make_sec_desc_buf(ctx, sd_size, psd); ctx 5480 source3/printing/nt_printing.c bool nt_printing_getsec(TALLOC_CTX *ctx, const char *sharename, SEC_DESC_BUF **secdesc_ctr) ctx 5494 source3/printing/nt_printing.c kbuf = make_printers_secdesc_tdbkey(ctx, sharename); ctx 5499 source3/printing/nt_printing.c status = unmarshall_sec_desc_buf(ctx, dbuf.dptr, dbuf.dsize, ctx 5508 source3/printing/nt_printing.c *secdesc_ctr = construct_default_printer_sdb(ctx); ctx 5513 source3/printing/nt_printing.c status = marshall_sec_desc_buf(ctx, *secdesc_ctr, ctx 5540 source3/printing/nt_printing.c psd = make_sec_desc(ctx, (*secdesc_ctr)->sd->revision, (*secdesc_ctr)->sd->type, ctx 5551 source3/printing/nt_printing.c new_secdesc_ctr = make_sec_desc_buf(ctx, size, psd); ctx 36 source3/printing/print_aix.c TALLOC_CTX *ctx = talloc_init("aix_cache_reload"); ctx 38 source3/printing/print_aix.c if (!ctx) { ctx 46 source3/printing/print_aix.c TALLOC_FREE(ctx); ctx 66 source3/printing/print_aix.c name = talloc_strdup(ctx, p); ctx 70 source3/printing/print_aix.c TALLOC_FREE(ctx); ctx 90 source3/printing/print_aix.c TALLOC_FREE(ctx); ctx 105 source3/printing/print_aix.c TALLOC_FREE(ctx); ctx 115 source3/printing/print_aix.c TALLOC_FREE(ctx); ctx 37 source3/printing/print_generic.c TALLOC_CTX *ctx = talloc_tos(); ctx 53 source3/printing/print_generic.c syscmd = talloc_strdup(ctx, command); ctx 61 source3/printing/print_generic.c syscmd = talloc_string_sub(ctx, syscmd, arg, value); ctx 69 source3/printing/print_generic.c syscmd = talloc_string_sub(ctx, syscmd, "%p", printername); ctx 75 source3/printing/print_generic.c syscmd = talloc_sub_advanced(ctx, ctx 153 source3/printing/print_generic.c TALLOC_CTX *ctx = talloc_tos(); ctx 158 source3/printing/print_generic.c current_directory = TALLOC_ARRAY(ctx, ctx 169 source3/printing/print_generic.c print_directory = talloc_strdup(ctx, pjob->filename); ctx 183 source3/printing/print_generic.c jobname = talloc_strdup(ctx, pjob->jobname); ctx 188 source3/printing/print_generic.c jobname = talloc_string_sub(ctx, jobname, "'", "_"); ctx 1495 source3/printing/printing.c TALLOC_CTX *ctx = talloc_tos(); ctx 1501 source3/printing/printing.c lpqcommand = talloc_string_sub2(ctx, ctx 1509 source3/printing/printing.c lpqcommand = talloc_sub_advanced(ctx, ctx 1521 source3/printing/printing.c lprmcommand = talloc_string_sub2(ctx, ctx 1529 source3/printing/printing.c lprmcommand = talloc_sub_advanced(ctx, ctx 451 source3/registry/reg_api.c WERROR reg_createkey(TALLOC_CTX *ctx, struct registry_key *parent, ctx 472 source3/registry/reg_api.c if (!(mem_ctx = talloc_new(ctx))) return WERR_NOMEM; ctx 504 source3/registry/reg_api.c err = reg_openkey(ctx, key, path, desired_access, pkey); ctx 544 source3/registry/reg_api.c err = reg_openkey(ctx, create_parent, path, desired_access, pkey); ctx 1066 source3/registry/reg_api.c static WERROR reg_deletekey_recursive_internal(TALLOC_CTX *ctx, ctx 1077 source3/registry/reg_api.c mem_ctx = talloc_new(ctx); ctx 1114 source3/registry/reg_api.c static WERROR reg_deletekey_recursive_trans(TALLOC_CTX *ctx, ctx 1129 source3/registry/reg_api.c werr = reg_deletekey_recursive_internal(ctx, parent, path, del_key); ctx 1153 source3/registry/reg_api.c WERROR reg_deletekey_recursive(TALLOC_CTX *ctx, ctx 1157 source3/registry/reg_api.c return reg_deletekey_recursive_trans(ctx, parent, path, true); ctx 1160 source3/registry/reg_api.c WERROR reg_deletesubkeys_recursive(TALLOC_CTX *ctx, ctx 1164 source3/registry/reg_api.c return reg_deletekey_recursive_trans(ctx, parent, path, false); ctx 43 source3/registry/reg_backend_current_version.c TALLOC_CTX *ctx = talloc_tos(); ctx 45 source3/registry/reg_backend_current_version.c path = talloc_strdup(ctx, key); ctx 49 source3/registry/reg_backend_current_version.c path = normalize_reg_path(ctx, path); ctx 612 source3/registry/reg_backend_db.c TALLOC_CTX *ctx = talloc_stackframe(); ctx 619 source3/registry/reg_backend_db.c keyname = talloc_strdup(ctx, key); ctx 623 source3/registry/reg_backend_db.c keyname = normalize_reg_path(ctx, keyname); ctx 687 source3/registry/reg_backend_db.c keyname = talloc_asprintf(ctx, "%s/%s", REG_SORTED_SUBKEYS_PREFIX, ctx 694 source3/registry/reg_backend_db.c TALLOC_FREE(ctx); ctx 710 source3/registry/reg_backend_db.c TALLOC_CTX *ctx = talloc_stackframe(); ctx 722 source3/registry/reg_backend_db.c werr = regsubkey_ctr_init(ctx, &old_subkeys); ctx 764 source3/registry/reg_backend_db.c werr = regsubkey_ctr_init(ctx, &old_subkeys); ctx 807 source3/registry/reg_backend_db.c path = talloc_asprintf(ctx, "%s/%s", key, oldkeyname); ctx 833 source3/registry/reg_backend_db.c werr = regsubkey_ctr_init(ctx, &subkeys); ctx 849 source3/registry/reg_backend_db.c path = talloc_asprintf(ctx, "%s/%s", ctx 855 source3/registry/reg_backend_db.c werr = regsubkey_ctr_init(ctx, &subkeys); ctx 879 source3/registry/reg_backend_db.c TALLOC_FREE(ctx); ctx 888 source3/registry/reg_backend_db.c TALLOC_FREE(ctx); ctx 1484 source3/registry/reg_backend_db.c TALLOC_CTX *ctx = talloc_stackframe(); ctx 1494 source3/registry/reg_backend_db.c keystr = talloc_asprintf(ctx, "%s/%s", REG_VALUE_PREFIX, key); ctx 1501 source3/registry/reg_backend_db.c value = regdb_fetch_key_internal(ctx, keystr); ctx 1512 source3/registry/reg_backend_db.c TALLOC_FREE(ctx); ctx 1520 source3/registry/reg_backend_db.c TALLOC_CTX *ctx = talloc_stackframe(); ctx 1539 source3/registry/reg_backend_db.c data.dptr = TALLOC_ARRAY(ctx, uint8, len); ctx 1546 source3/registry/reg_backend_db.c keystr = talloc_asprintf(ctx, "%s/%s", REG_VALUE_PREFIX, key ); ctx 1550 source3/registry/reg_backend_db.c keystr = normalize_reg_path(ctx, keystr); ctx 1555 source3/registry/reg_backend_db.c old_data = dbwrap_fetch_bystring(regdb, ctx, keystr); ctx 1570 source3/registry/reg_backend_db.c TALLOC_FREE(ctx); ctx 77 source3/registry/reg_backend_perflib.c TALLOC_CTX *ctx = talloc_tos(); ctx 79 source3/registry/reg_backend_perflib.c path = talloc_strdup(ctx, key); ctx 83 source3/registry/reg_backend_perflib.c path = normalize_reg_path(ctx, path); ctx 173 source3/registry/reg_backend_printing.c TALLOC_CTX *ctx = talloc_tos(); ctx 175 source3/registry/reg_backend_printing.c path = talloc_strdup(ctx, key); ctx 179 source3/registry/reg_backend_printing.c path = normalize_reg_path(ctx, path); ctx 187 source3/registry/reg_backend_printing.c subkeypath = reg_remaining_path(ctx, key + strlen(KEY_WINNT_PRINTERS)); ctx 189 source3/registry/reg_backend_printing.c subkeypath = reg_remaining_path(ctx, key + strlen(KEY_CONTROL_PRINTERS)); ctx 756 source3/registry/reg_backend_printing.c TALLOC_CTX *ctx = talloc_tos(); ctx 760 source3/registry/reg_backend_printing.c keystr = reg_remaining_path(ctx, key + strlen(KEY_ENVIRONMENTS) ); ctx 772 source3/registry/reg_backend_printing.c key2 = talloc_strdup(ctx, keystr); ctx 1061 source3/registry/reg_backend_printing.c TALLOC_CTX *ctx = talloc_tos(); ctx 1067 source3/registry/reg_backend_printing.c if (!(keystr = reg_remaining_path(ctx, key + strlen(KEY_ENVIRONMENTS)))) ctx 1070 source3/registry/reg_backend_printing.c subkey = talloc_strdup(ctx, keystr); ctx 1168 source3/registry/reg_backend_printing.c TALLOC_CTX *ctx = talloc_tos(); ctx 1173 source3/registry/reg_backend_printing.c path = talloc_strdup(ctx, key); ctx 1177 source3/registry/reg_backend_printing.c path = normalize_reg_path(ctx, path); ctx 37 source3/registry/reg_dispatcher.c static WERROR construct_registry_sd(TALLOC_CTX *ctx, SEC_DESC **psd) ctx 62 source3/registry/reg_dispatcher.c theacl = make_sec_acl(ctx, NT4_ACL_REVISION, i, ace); ctx 67 source3/registry/reg_dispatcher.c sd = make_sec_desc(ctx, SEC_DESC_REVISION, SEC_DESC_SELF_RELATIVE, ctx 44 source3/registry/reg_eventlog.c TALLOC_CTX *ctx = talloc_tos(); ctx 48 source3/registry/reg_eventlog.c werr = regsubkey_ctr_init(ctx, &subkeys); ctx 66 source3/registry/reg_eventlog.c evtlogpath = talloc_asprintf(ctx, "%s\\%s", ctx 75 source3/registry/reg_eventlog.c werr = regsubkey_ctr_init(ctx, &subkeys); ctx 90 source3/registry/reg_eventlog.c if (!(values = TALLOC_ZERO_P(ctx, REGVAL_CTR))) { ctx 130 source3/registry/reg_eventlog.c evtfilepath = talloc_asprintf(ctx, ctx 147 source3/registry/reg_eventlog.c evtlogpath = talloc_asprintf(ctx, "%s\\%s\\%s", ctx 152 source3/registry/reg_eventlog.c if (!(values = TALLOC_ZERO_P(ctx, REGVAL_CTR))) { ctx 212 source3/registry/reg_eventlog.c TALLOC_CTX *ctx = talloc_tos(); ctx 236 source3/registry/reg_eventlog.c if (!( values = TALLOC_ZERO_P(ctx, REGVAL_CTR))) { ctx 241 source3/registry/reg_eventlog.c evtlogpath = talloc_asprintf(ctx, "%s\\%s", KEY_EVENTLOG, eventlog); ctx 299 source3/registry/reg_eventlog.c wp = TALLOC_ARRAY(ctx, char *, numsources + 2 ); ctx 322 source3/registry/reg_eventlog.c werr = regsubkey_ctr_init(ctx, &subkeys); ctx 328 source3/registry/reg_eventlog.c evtlogpath = talloc_asprintf(ctx, "%s\\%s", KEY_EVENTLOG, eventlog ); ctx 350 source3/registry/reg_eventlog.c werr = regsubkey_ctr_init(ctx, &subkeys); ctx 356 source3/registry/reg_eventlog.c evtlogpath = talloc_asprintf(ctx, "%s\\%s\\%s", ctx 366 source3/registry/reg_eventlog.c if ( !( values = TALLOC_ZERO_P(ctx, REGVAL_CTR ) ) ) { ctx 400 source3/registry/reg_objects.c REGISTRY_VALUE *regval_compose(TALLOC_CTX *ctx, const char *name, uint16 type, ctx 403 source3/registry/reg_objects.c REGISTRY_VALUE *regval = TALLOC_P(ctx, REGISTRY_VALUE); ctx 42 source3/registry/reg_perfcount.c TALLOC_CTX *ctx = talloc_tos(); ctx 44 source3/registry/reg_perfcount.c path = talloc_asprintf(ctx, "%s/%s", PERFCOUNTDIR, dbname); ctx 49 source3/registry/reg_perfcount.c ret = talloc_strdup(ctx, state_path(path)); ctx 93 source3/registry/reg_util.c char *normalize_reg_path(TALLOC_CTX *ctx, const char *keyname ) ctx 104 source3/registry/reg_util.c nkeyname = talloc_string_sub(ctx, p, "\\", "/"); ctx 135 source3/registry/reg_util.c char *reg_remaining_path(TALLOC_CTX *ctx, const char *key) ctx 144 source3/registry/reg_util.c new_path = talloc_strdup(ctx, key); ctx 31 source3/registry/reg_util_legacy.c WERROR regkey_open_internal( TALLOC_CTX *ctx, REGISTRY_KEY **regkey, ctx 44 source3/registry/reg_util_legacy.c *regkey = talloc_move(ctx, &key->key); ctx 100 source3/rpc_parse/parse_prs.c bool prs_init(prs_struct *ps, uint32 size, TALLOC_CTX *ctx, bool io) ctx 110 source3/rpc_parse/parse_prs.c ps->mem_ctx = ctx; ctx 49 source3/rpc_server/srv_dfs_nt.c TALLOC_CTX *ctx = talloc_tos(); ctx 56 source3/rpc_server/srv_dfs_nt.c jn = TALLOC_ZERO_P(ctx, struct junction_map); ctx 64 source3/rpc_server/srv_dfs_nt.c altpath = talloc_asprintf(ctx, "%s\\%s", ctx 72 source3/rpc_server/srv_dfs_nt.c status = get_referred_path(ctx, r->in.path, jn, ctx 85 source3/rpc_server/srv_dfs_nt.c jn->referral_list = TALLOC_ARRAY(ctx, struct referral, jn->referral_count); ctx 113 source3/rpc_server/srv_dfs_nt.c TALLOC_CTX *ctx = talloc_tos(); ctx 121 source3/rpc_server/srv_dfs_nt.c jn = TALLOC_ZERO_P(ctx, struct junction_map); ctx 127 source3/rpc_server/srv_dfs_nt.c altpath = talloc_asprintf(ctx, "%s\\%s", ctx 138 source3/rpc_server/srv_dfs_nt.c if(!NT_STATUS_IS_OK(get_referred_path(ctx, r->in.dfs_entry_path, jn, ctx 153 source3/rpc_server/srv_dfs_nt.c char *refpath = talloc_strdup(ctx, ctx 274 source3/rpc_server/srv_dfs_nt.c TALLOC_CTX *ctx = talloc_tos(); ctx 276 source3/rpc_server/srv_dfs_nt.c jn = enum_msdfs_links(ctx, &num_jn); ctx 291 source3/rpc_server/srv_dfs_nt.c if ((r->out.info->e.info1->s = TALLOC_ARRAY(ctx, struct dfs_Info1, num_jn)) == NULL) { ctx 301 source3/rpc_server/srv_dfs_nt.c if ((r->out.info->e.info2->s = TALLOC_ARRAY(ctx, struct dfs_Info2, num_jn)) == NULL) { ctx 311 source3/rpc_server/srv_dfs_nt.c if ((r->out.info->e.info3->s = TALLOC_ARRAY(ctx, struct dfs_Info3, num_jn)) == NULL) { ctx 326 source3/rpc_server/srv_dfs_nt.c init_reply_dfs_info_1(ctx, &jn[i], &r->out.info->e.info1->s[i]); ctx 329 source3/rpc_server/srv_dfs_nt.c init_reply_dfs_info_2(ctx, &jn[i], &r->out.info->e.info2->s[i]); ctx 332 source3/rpc_server/srv_dfs_nt.c init_reply_dfs_info_3(ctx, &jn[i], &r->out.info->e.info3->s[i]); ctx 347 source3/rpc_server/srv_dfs_nt.c TALLOC_CTX *ctx = talloc_tos(); ctx 350 source3/rpc_server/srv_dfs_nt.c jn = TALLOC_ZERO_P(ctx, struct junction_map); ctx 355 source3/rpc_server/srv_dfs_nt.c if(!create_junction(ctx, r->in.dfs_entry_path, jn)) { ctx 360 source3/rpc_server/srv_dfs_nt.c if(!NT_STATUS_IS_OK(get_referred_path(ctx, r->in.dfs_entry_path, ctx 368 source3/rpc_server/srv_dfs_nt.c r->out.info->info1 = TALLOC_ZERO_P(ctx,struct dfs_Info1); ctx 372 source3/rpc_server/srv_dfs_nt.c ret = init_reply_dfs_info_1(ctx, jn, r->out.info->info1); ctx 375 source3/rpc_server/srv_dfs_nt.c r->out.info->info2 = TALLOC_ZERO_P(ctx,struct dfs_Info2); ctx 379 source3/rpc_server/srv_dfs_nt.c ret = init_reply_dfs_info_2(ctx, jn, r->out.info->info2); ctx 382 source3/rpc_server/srv_dfs_nt.c r->out.info->info3 = TALLOC_ZERO_P(ctx,struct dfs_Info3); ctx 386 source3/rpc_server/srv_dfs_nt.c ret = init_reply_dfs_info_3(ctx, jn, r->out.info->info3); ctx 389 source3/rpc_server/srv_dfs_nt.c r->out.info->info100 = TALLOC_ZERO_P(ctx,struct dfs_Info100); ctx 393 source3/rpc_server/srv_dfs_nt.c ret = init_reply_dfs_info_100(ctx, jn, r->out.info->info100); ctx 34 source3/rpc_server/srv_dssetup_nt.c static WERROR fill_dsrole_dominfo_basic(TALLOC_CTX *ctx, ctx 42 source3/rpc_server/srv_dssetup_nt.c basic = TALLOC_ZERO_P(ctx, struct dssetup_DsRolePrimaryDomInfoBasic); ctx 74 source3/rpc_server/srv_dssetup_nt.c dnsdomain = talloc_strdup(ctx, lp_realm()); ctx 293 source3/rpc_server/srv_eventlog_nt.c TALLOC_CTX *ctx = talloc_stackframe(); ctx 312 source3/rpc_server/srv_eventlog_nt.c path = talloc_asprintf(ctx, "%s/%s", KEY_EVENTLOG, elogname ); ctx 317 source3/rpc_server/srv_eventlog_nt.c wresult = reg_open_path(ctx, path, REG_KEY_READ, get_root_nt_token(), ctx 349 source3/rpc_server/srv_eventlog_nt.c TALLOC_FREE(ctx); ctx 112 source3/rpc_server/srv_samr_nt.c static NTSTATUS make_samr_object_sd( TALLOC_CTX *ctx, SEC_DESC **psd, size_t *sd_size, ctx 151 source3/rpc_server/srv_samr_nt.c if ((psa = make_sec_acl(ctx, NT4_ACL_REVISION, i, ace)) == NULL) ctx 154 source3/rpc_server/srv_samr_nt.c if ((*psd = make_sec_desc(ctx, SECURITY_DESCRIPTOR_REVISION_1, ctx 925 source3/rpc_server/srv_samr_nt.c static NTSTATUS make_user_sam_entry_list(TALLOC_CTX *ctx, ctx 940 source3/rpc_server/srv_samr_nt.c sam = TALLOC_ZERO_ARRAY(ctx, struct samr_SamEntry, num_entries); ctx 1084 source3/rpc_server/srv_samr_nt.c static void make_group_sam_entry_list(TALLOC_CTX *ctx, ctx 1098 source3/rpc_server/srv_samr_nt.c sam = TALLOC_ZERO_ARRAY(ctx, struct samr_SamEntry, num_sam_entries); ctx 1272 source3/rpc_server/srv_samr_nt.c static NTSTATUS init_samr_dispinfo_1(TALLOC_CTX *ctx, ctx 1288 source3/rpc_server/srv_samr_nt.c r->entries = TALLOC_ZERO_ARRAY(ctx, struct samr_DispEntryGeneral, num_entries); ctx 1316 source3/rpc_server/srv_samr_nt.c static NTSTATUS init_samr_dispinfo_2(TALLOC_CTX *ctx, ctx 1332 source3/rpc_server/srv_samr_nt.c r->entries = TALLOC_ZERO_ARRAY(ctx, struct samr_DispEntryFull, num_entries); ctx 1357 source3/rpc_server/srv_samr_nt.c static NTSTATUS init_samr_dispinfo_3(TALLOC_CTX *ctx, ctx 1373 source3/rpc_server/srv_samr_nt.c r->entries = TALLOC_ZERO_ARRAY(ctx, struct samr_DispEntryFullGroup, num_entries); ctx 1398 source3/rpc_server/srv_samr_nt.c static NTSTATUS init_samr_dispinfo_4(TALLOC_CTX *ctx, ctx 1414 source3/rpc_server/srv_samr_nt.c r->entries = TALLOC_ZERO_ARRAY(ctx, struct samr_DispEntryAscii, num_entries); ctx 1434 source3/rpc_server/srv_samr_nt.c static NTSTATUS init_samr_dispinfo_5(TALLOC_CTX *ctx, ctx 1450 source3/rpc_server/srv_samr_nt.c r->entries = TALLOC_ZERO_ARRAY(ctx, struct samr_DispEntryAscii, num_entries); ctx 2211 source3/rpc_server/srv_samr_nt.c static bool make_samr_lookup_rids(TALLOC_CTX *ctx, uint32 num_names, ctx 2221 source3/rpc_server/srv_samr_nt.c lsa_name_array = TALLOC_ZERO_ARRAY(ctx, struct lsa_String, num_names); ctx 264 source3/rpc_server/srv_spoolss_nt.c WERROR delete_printer_hook(TALLOC_CTX *ctx, NT_USER_TOKEN *token, const char *sharename ) ctx 277 source3/rpc_server/srv_spoolss_nt.c command = talloc_asprintf(ctx, ctx 813 source3/rpc_server/srv_spoolss_nt.c ctr->ctx = talloc_init("notify_msg_ctr_init %p", ctr); ctx 827 source3/rpc_server/srv_spoolss_nt.c if ( ctr->ctx ) ctx 828 source3/rpc_server/srv_spoolss_nt.c talloc_destroy(ctr->ctx); ctx 843 source3/rpc_server/srv_spoolss_nt.c return ctr->ctx; ctx 899 source3/rpc_server/srv_spoolss_nt.c if ( !(groups = TALLOC_REALLOC_ARRAY( ctr->ctx, ctr->msg_groups, SPOOLSS_NOTIFY_MSG_GROUP, ctr->num_groups)) ) { ctx 917 source3/rpc_server/srv_spoolss_nt.c if ( !(msg_list = TALLOC_REALLOC_ARRAY( ctr->ctx, msg_grp->msgs, SPOOLSS_NOTIFY_MSG, msg_grp->num_msgs )) ) { ctx 930 source3/rpc_server/srv_spoolss_nt.c TALLOC_MEMDUP( ctr->ctx, msg->notify.data, msg->len ); ctx 5922 source3/rpc_server/srv_spoolss_nt.c WERROR add_port_hook(TALLOC_CTX *ctx, NT_USER_TOKEN *token, const char *portname, const char *uri ) ctx 5934 source3/rpc_server/srv_spoolss_nt.c command = talloc_asprintf(ctx, ctx 5971 source3/rpc_server/srv_spoolss_nt.c bool add_printer_hook(TALLOC_CTX *ctx, NT_USER_TOKEN *token, NT_PRINTER_INFO_LEVEL *printer) ctx 5981 source3/rpc_server/srv_spoolss_nt.c char *remote_machine = talloc_strdup(ctx, "%m"); ctx 5986 source3/rpc_server/srv_spoolss_nt.c remote_machine = talloc_sub_basic(ctx, ctx 5994 source3/rpc_server/srv_spoolss_nt.c command = talloc_asprintf(ctx, ctx 7260 source3/rpc_server/srv_spoolss_nt.c WERROR enumports_hook(TALLOC_CTX *ctx, int *count, char ***lines ) ctx 7288 source3/rpc_server/srv_spoolss_nt.c command = talloc_asprintf(ctx, "%s \"%d\"", cmd, 1); ctx 38 source3/rpc_server/srv_srvsvc_nt.c TALLOC_CTX *ctx; ctx 78 source3/rpc_server/srv_srvsvc_nt.c fullpath = talloc_asprintf(fenum->ctx, "\\PIPE\\%s", prec.name ); ctx 83 source3/rpc_server/srv_srvsvc_nt.c f = TALLOC_REALLOC_ARRAY(fenum->ctx, fenum->ctr3->array, ctx 107 source3/rpc_server/srv_srvsvc_nt.c static WERROR net_enum_pipes(TALLOC_CTX *ctx, ctx 114 source3/rpc_server/srv_srvsvc_nt.c fenum.ctx = ctx; ctx 161 source3/rpc_server/srv_srvsvc_nt.c f = TALLOC_REALLOC_ARRAY(fenum->ctx, fenum->ctr3->array, ctx 180 source3/rpc_server/srv_srvsvc_nt.c fullpath = talloc_asprintf(fenum->ctx, "C:%s", sharepath ); ctx 182 source3/rpc_server/srv_srvsvc_nt.c fullpath = talloc_asprintf(fenum->ctx, "C:%s/%s", ctx 208 source3/rpc_server/srv_srvsvc_nt.c static WERROR net_enum_files(TALLOC_CTX *ctx, ctx 215 source3/rpc_server/srv_srvsvc_nt.c f_enum_cnt.ctx = ctx; ctx 377 source3/rpc_server/srv_srvsvc_nt.c TALLOC_CTX *ctx = p->mem_ctx; ctx 378 source3/rpc_server/srv_srvsvc_nt.c char *remark = talloc_strdup(ctx, lp_comment(snum));; ctx 387 source3/rpc_server/srv_srvsvc_nt.c path = talloc_asprintf(ctx, "C:%s", lp_pathname(snum)); ctx 396 source3/rpc_server/srv_srvsvc_nt.c sd = get_share_security(ctx, lp_servicename(snum), &sd_size); ctx 474 source3/rpc_server/srv_srvsvc_nt.c TALLOC_CTX *ctx = p->mem_ctx; ctx 476 source3/rpc_server/srv_srvsvc_nt.c sd = get_share_security(ctx, lp_servicename(snum), &sd_size); ctx 519 source3/rpc_server/srv_srvsvc_nt.c TALLOC_CTX *ctx = p->mem_ctx; ctx 535 source3/rpc_server/srv_srvsvc_nt.c allowed = TALLOC_ZERO_ARRAY(ctx, bool, num_services); ctx 559 source3/rpc_server/srv_srvsvc_nt.c ctr.ctr0 = TALLOC_ZERO_P(ctx, struct srvsvc_NetShareCtr0); ctx 563 source3/rpc_server/srv_srvsvc_nt.c ctr.ctr0->array = TALLOC_ZERO_ARRAY(ctx, struct srvsvc_NetShareInfo0, alloc_entries); ctx 576 source3/rpc_server/srv_srvsvc_nt.c ctr.ctr1 = TALLOC_ZERO_P(ctx, struct srvsvc_NetShareCtr1); ctx 580 source3/rpc_server/srv_srvsvc_nt.c ctr.ctr1->array = TALLOC_ZERO_ARRAY(ctx, struct srvsvc_NetShareInfo1, alloc_entries); ctx 593 source3/rpc_server/srv_srvsvc_nt.c ctr.ctr2 = TALLOC_ZERO_P(ctx, struct srvsvc_NetShareCtr2); ctx 597 source3/rpc_server/srv_srvsvc_nt.c ctr.ctr2->array = TALLOC_ZERO_ARRAY(ctx, struct srvsvc_NetShareInfo2, alloc_entries); ctx 610 source3/rpc_server/srv_srvsvc_nt.c ctr.ctr501 = TALLOC_ZERO_P(ctx, struct srvsvc_NetShareCtr501); ctx 614 source3/rpc_server/srv_srvsvc_nt.c ctr.ctr501->array = TALLOC_ZERO_ARRAY(ctx, struct srvsvc_NetShareInfo501, alloc_entries); ctx 627 source3/rpc_server/srv_srvsvc_nt.c ctr.ctr502 = TALLOC_ZERO_P(ctx, struct srvsvc_NetShareCtr502); ctx 631 source3/rpc_server/srv_srvsvc_nt.c ctr.ctr502->array = TALLOC_ZERO_ARRAY(ctx, struct srvsvc_NetShareInfo502, alloc_entries); ctx 644 source3/rpc_server/srv_srvsvc_nt.c ctr.ctr1004 = TALLOC_ZERO_P(ctx, struct srvsvc_NetShareCtr1004); ctx 648 source3/rpc_server/srv_srvsvc_nt.c ctr.ctr1004->array = TALLOC_ZERO_ARRAY(ctx, struct srvsvc_NetShareInfo1004, alloc_entries); ctx 661 source3/rpc_server/srv_srvsvc_nt.c ctr.ctr1005 = TALLOC_ZERO_P(ctx, struct srvsvc_NetShareCtr1005); ctx 665 source3/rpc_server/srv_srvsvc_nt.c ctr.ctr1005->array = TALLOC_ZERO_ARRAY(ctx, struct srvsvc_NetShareInfo1005, alloc_entries); ctx 678 source3/rpc_server/srv_srvsvc_nt.c ctr.ctr1006 = TALLOC_ZERO_P(ctx, struct srvsvc_NetShareCtr1006); ctx 682 source3/rpc_server/srv_srvsvc_nt.c ctr.ctr1006->array = TALLOC_ZERO_ARRAY(ctx, struct srvsvc_NetShareInfo1006, alloc_entries); ctx 695 source3/rpc_server/srv_srvsvc_nt.c ctr.ctr1007 = TALLOC_ZERO_P(ctx, struct srvsvc_NetShareCtr1007); ctx 699 source3/rpc_server/srv_srvsvc_nt.c ctr.ctr1007->array = TALLOC_ZERO_ARRAY(ctx, struct srvsvc_NetShareInfo1007, alloc_entries); ctx 712 source3/rpc_server/srv_srvsvc_nt.c ctr.ctr1501 = TALLOC_ZERO_P(ctx, struct srvsvc_NetShareCtr1501); ctx 716 source3/rpc_server/srv_srvsvc_nt.c ctr.ctr1501->array = TALLOC_ZERO_ARRAY(ctx, struct sec_desc_buf, alloc_entries); ctx 1021 source3/rpc_server/srv_srvsvc_nt.c TALLOC_CTX *ctx = NULL; ctx 1033 source3/rpc_server/srv_srvsvc_nt.c ctx = talloc_tos(); ctx 1044 source3/rpc_server/srv_srvsvc_nt.c werr = net_enum_files(ctx, r->in.user, &ctr3, resume_hnd); ctx 1049 source3/rpc_server/srv_srvsvc_nt.c werr = net_enum_pipes(ctx, r->in.user, &ctr3, resume_hnd); ctx 1448 source3/rpc_server/srv_srvsvc_nt.c char *valid_share_pathname(TALLOC_CTX *ctx, const char *dos_pathname) ctx 1456 source3/rpc_server/srv_srvsvc_nt.c ptr = talloc_strdup(ctx, dos_pathname); ctx 1462 source3/rpc_server/srv_srvsvc_nt.c ptr = unix_clean_name(ctx, ptr); ctx 1497 source3/rpc_server/srv_srvsvc_nt.c TALLOC_CTX *ctx = p->mem_ctx; ctx 1546 source3/rpc_server/srv_srvsvc_nt.c pathname = talloc_strdup(ctx, lp_pathname(snum)); ctx 1547 source3/rpc_server/srv_srvsvc_nt.c comment = talloc_strdup(ctx, info->info1->comment); ctx 1552 source3/rpc_server/srv_srvsvc_nt.c comment = talloc_strdup(ctx, info->info2->comment); ctx 1562 source3/rpc_server/srv_srvsvc_nt.c comment = talloc_strdup(ctx, info->info501->comment); ctx 1568 source3/rpc_server/srv_srvsvc_nt.c comment = talloc_strdup(ctx, info->info502->comment); ctx 1575 source3/rpc_server/srv_srvsvc_nt.c pathname = talloc_strdup(ctx, lp_pathname(snum)); ctx 1576 source3/rpc_server/srv_srvsvc_nt.c comment = talloc_strdup(ctx, info->info1004->comment); ctx 1596 source3/rpc_server/srv_srvsvc_nt.c pathname = talloc_strdup(ctx, lp_pathname(snum)); ctx 1597 source3/rpc_server/srv_srvsvc_nt.c comment = talloc_strdup(ctx, lp_comment(snum)); ctx 1727 source3/rpc_server/srv_srvsvc_nt.c TALLOC_CTX *ctx = p->mem_ctx; ctx 1753 source3/rpc_server/srv_srvsvc_nt.c share_name = talloc_strdup(ctx, r->in.info->info2->name); ctx 1754 source3/rpc_server/srv_srvsvc_nt.c comment = talloc_strdup(ctx, r->in.info->info2->comment); ctx 1755 source3/rpc_server/srv_srvsvc_nt.c pathname = talloc_strdup(ctx, r->in.info->info2->path); ctx 1764 source3/rpc_server/srv_srvsvc_nt.c share_name = talloc_strdup(ctx, r->in.info->info502->name); ctx 1765 source3/rpc_server/srv_srvsvc_nt.c comment = talloc_strdup(ctx, r->in.info->info502->comment); ctx 1766 source3/rpc_server/srv_srvsvc_nt.c pathname = talloc_strdup(ctx, r->in.info->info502->path); ctx 1830 source3/rpc_server/srv_srvsvc_nt.c command = talloc_asprintf(ctx, ctx 1904 source3/rpc_server/srv_srvsvc_nt.c TALLOC_CTX *ctx = p->mem_ctx; ctx 1939 source3/rpc_server/srv_srvsvc_nt.c command = talloc_asprintf(ctx, ctx 2333 source3/rpc_server/srv_srvsvc_nt.c TALLOC_CTX *ctx = p->mem_ctx; ctx 2341 source3/rpc_server/srv_srvsvc_nt.c r->out.info->disks = TALLOC_ZERO_ARRAY(ctx, struct srvsvc_NetDiskInfo0, ctx 2355 source3/rpc_server/srv_srvsvc_nt.c r->out.info->disks[i].disk = talloc_strdup(ctx, disk_name); ctx 2363 source3/rpc_server/srv_srvsvc_nt.c r->out.info->disks[i].disk = talloc_strdup(ctx, ""); ctx 135 source3/rpc_server/srv_svcctl_nt.c static SEC_DESC* construct_scm_sd( TALLOC_CTX *ctx ) ctx 156 source3/rpc_server/srv_svcctl_nt.c if ( !(theacl = make_sec_acl(ctx, NT4_ACL_REVISION, i, ace)) ) ctx 159 source3/rpc_server/srv_svcctl_nt.c if ( !(sd = make_sec_desc(ctx, SECURITY_DESCRIPTOR_REVISION_1, ctx 381 source3/rpc_server/srv_svcctl_nt.c static int enumerate_status( TALLOC_CTX *ctx, struct ENUM_SERVICE_STATUSW **status, NT_USER_TOKEN *token ) ctx 392 source3/rpc_server/srv_svcctl_nt.c if ( !(st = TALLOC_ARRAY( ctx, struct ENUM_SERVICE_STATUSW, num_services )) ) { ctx 400 source3/rpc_server/srv_svcctl_nt.c display_name = svcctl_lookup_dispname(ctx, svcctl_ops[i].name, token ); ctx 635 source3/rpc_server/srv_svcctl_nt.c static WERROR fill_svc_config( TALLOC_CTX *ctx, const char *name, ctx 612 source3/rpc_server/srv_winreg_nt.c static int validate_reg_filename(TALLOC_CTX *ctx, char **pp_fname ) ctx 622 source3/rpc_server/srv_winreg_nt.c if (!(p = valid_share_pathname(ctx, fname))) { ctx 2145 source3/rpcclient/cmd_samr.c TALLOC_CTX *ctx = NULL; ctx 2149 source3/rpcclient/cmd_samr.c ctx=talloc_init("cmd_samr_query_sec_obj"); ctx 2154 source3/rpcclient/cmd_samr.c talloc_destroy(ctx); ctx 2222 source3/rpcclient/cmd_samr.c talloc_destroy(ctx); ctx 89 source3/services/services_db.c static SEC_DESC* construct_service_sd( TALLOC_CTX *ctx ) ctx 112 source3/services/services_db.c if ( !(theacl = make_sec_acl(ctx, NT4_ACL_REVISION, i, ace)) ) ctx 115 source3/services/services_db.c if ( !(sd = make_sec_desc(ctx, SECURITY_DESCRIPTOR_REVISION_1, ctx 155 source3/services/services_db.c TALLOC_CTX *ctx = talloc_tos(); ctx 157 source3/services/services_db.c clean = talloc_strdup(ctx, string); ctx 505 source3/services/services_db.c SEC_DESC *svcctl_get_secdesc( TALLOC_CTX *ctx, const char *name, NT_USER_TOKEN *token ) ctx 544 source3/services/services_db.c status = unmarshall_sec_desc(ctx, regval_data_p(val), ctx 554 source3/services/services_db.c ret_sd = construct_service_sd(ctx); ctx 566 source3/services/services_db.c bool svcctl_set_secdesc( TALLOC_CTX *ctx, const char *name, SEC_DESC *sec_desc, NT_USER_TOKEN *token ) ctx 599 source3/services/services_db.c status = marshall_sec_desc(ctx, sec_desc, &blob.data, &blob.length); ctx 619 source3/services/services_db.c const char *svcctl_lookup_dispname(TALLOC_CTX *ctx, const char *name, NT_USER_TOKEN *token ) ctx 654 source3/services/services_db.c rpcstr_pull_talloc(ctx, &display_name, regval_data_p(val), regval_size(val), 0 ); ctx 663 source3/services/services_db.c return talloc_strdup(ctx, name); ctx 669 source3/services/services_db.c const char *svcctl_lookup_description(TALLOC_CTX *ctx, const char *name, NT_USER_TOKEN *token ) ctx 705 source3/services/services_db.c rpcstr_pull_talloc(ctx, &description, regval_data_p(val), regval_size(val), 0 ); ctx 747 source3/smbd/blocking.c static void process_blocking_lock_cancel_message(struct messaging_context *ctx, ctx 499 source3/smbd/chgpasswd.c TALLOC_CTX *ctx = talloc_tos(); ctx 575 source3/smbd/chgpasswd.c passwordprogram = talloc_strdup(ctx, lp_passwd_program()); ctx 580 source3/smbd/chgpasswd.c chatsequence = talloc_strdup(ctx, lp_passwd_chat()); ctx 595 source3/smbd/chgpasswd.c passwordprogram = talloc_string_sub(ctx, passwordprogram, "%u", name); ctx 604 source3/smbd/chgpasswd.c chatsequence = talloc_string_sub(ctx, chatsequence, "%u", name); ctx 608 source3/smbd/chgpasswd.c chatsequence = talloc_all_string_sub(ctx, ctx 615 source3/smbd/chgpasswd.c chatsequence = talloc_all_string_sub(ctx, ctx 36 source3/smbd/close.c TALLOC_CTX *ctx = NULL; ctx 56 source3/smbd/close.c ctx = talloc_stackframe(); ctx 61 source3/smbd/close.c magic_output = talloc_asprintf(ctx, ctx 66 source3/smbd/close.c TALLOC_FREE(ctx); ctx 71 source3/smbd/close.c p = talloc_asprintf(ctx, "./%s", fsp->fsp_name); ctx 73 source3/smbd/close.c TALLOC_FREE(ctx); ctx 78 source3/smbd/close.c TALLOC_FREE(ctx); ctx 90 source3/smbd/close.c TALLOC_FREE(ctx); ctx 96 source3/smbd/close.c TALLOC_FREE(ctx); ctx 109 source3/smbd/close.c TALLOC_FREE(ctx); ctx 72 source3/smbd/dir.c bool make_dir_struct(TALLOC_CTX *ctx, ctx 82 source3/smbd/dir.c char *mask2 = talloc_strdup(ctx, mask); ctx 572 source3/smbd/dir.c char *dptr_ReadDirName(TALLOC_CTX *ctx, ctx 587 source3/smbd/dir.c name = talloc_strdup(ctx, name_temp); ctx 616 source3/smbd/dir.c name = talloc_strdup(ctx, dptr->wcard); ctx 620 source3/smbd/dir.c pathreal = talloc_asprintf(ctx, ctx 628 source3/smbd/dir.c name = talloc_strdup(ctx, dptr->wcard); ctx 634 source3/smbd/dir.c name = talloc_strdup(ctx, dptr->wcard); ctx 654 source3/smbd/dir.c ctx, &found_name); ctx 666 source3/smbd/dir.c name = talloc_strdup(ctx, name_temp); ctx 820 source3/smbd/dir.c bool get_dir_entry(TALLOC_CTX *ctx, ctx 848 source3/smbd/dir.c dname = dptr_ReadDirName(ctx, conn->dirptr, &curoff, &sbuf); ctx 874 source3/smbd/dir.c filename = talloc_strdup(ctx, mname); ctx 881 source3/smbd/dir.c pathreal = talloc_asprintf(ctx, ctx 886 source3/smbd/dir.c pathreal = talloc_asprintf(ctx, ctx 60 source3/smbd/dmapi.c static int dmapi_init_session(struct smbd_dmapi_context *ctx) ctx 72 source3/smbd/dmapi.c if (ctx->session_num == 0) { ctx 76 source3/smbd/dmapi.c ctx->session_num); ctx 122 source3/smbd/dmapi.c ctx->session = sessions[i]; ctx 131 source3/smbd/dmapi.c if (ctx->session == DM_NO_SESSION) { ctx 134 source3/smbd/dmapi.c &ctx->session); ctx 139 source3/smbd/dmapi.c ctx->session = DM_NO_SESSION; ctx 148 source3/smbd/dmapi.c if (ctx->session != DM_NO_SESSION) { ctx 62 source3/smbd/dnsregister.c static void dns_register_smbd_retry(struct tevent_context *ctx, ctx 88 source3/smbd/dnsregister.c static void dns_register_smbd_retry(struct tevent_context *ctx, ctx 66 source3/smbd/file_access.c TALLOC_CTX *ctx = talloc_tos(); ctx 74 source3/smbd/file_access.c if (!parent_dirname(ctx, fname, &dname, NULL)) { ctx 172 source3/smbd/fileio.c static void update_write_time_handler(struct event_context *ctx, ctx 114 source3/smbd/filename.c NTSTATUS unix_convert(TALLOC_CTX *ctx, ctx 142 source3/smbd/filename.c if (!(*pp_conv_path = talloc_strdup(ctx,orig_path))) { ctx 173 source3/smbd/filename.c if (!(name = talloc_strdup(ctx,"."))) { ctx 197 source3/smbd/filename.c if (!(name = talloc_strdup(ctx, orig_path))) { ctx 223 source3/smbd/filename.c *pp_saved_last_component = talloc_strdup(ctx, end + 1); ctx 225 source3/smbd/filename.c *pp_saved_last_component = talloc_strdup(ctx, ctx 236 source3/smbd/filename.c char *tmp = talloc_strdup(ctx, stream); ctx 265 source3/smbd/filename.c if ((dirpath == NULL) && (!(dirpath = talloc_strdup(ctx,"")))) { ctx 351 source3/smbd/filename.c *pp_saved_last_component = talloc_strdup(ctx, ctx 538 source3/smbd/filename.c && mangle_lookup_name_from_8_3(ctx, ctx 546 source3/smbd/filename.c tmp = talloc_asprintf(ctx, ctx 578 source3/smbd/filename.c tmp = talloc_asprintf(ctx, ctx 583 source3/smbd/filename.c tmp = talloc_asprintf(ctx, ctx 601 source3/smbd/filename.c tmp = talloc_asprintf(ctx, ctx 605 source3/smbd/filename.c tmp = talloc_strdup(ctx, ctx 660 source3/smbd/filename.c char *tmp = talloc_asprintf(ctx, ctx 671 source3/smbd/filename.c if (!(dirpath = talloc_strdup(ctx,start))) { ctx 714 source3/smbd/filename.c result = build_stream_path(ctx, conn, orig_path, name, stream, ctx 731 source3/smbd/filename.c *pp_conv_path = talloc_asprintf(ctx, ctx 734 source3/smbd/filename.c *pp_conv_path = talloc_strdup(ctx, start); ctx 80 source3/smbd/lanman.c TALLOC_CTX *ctx = talloc_tos(); ctx 89 source3/smbd/lanman.c buf = talloc_strdup(ctx, src); ctx 94 source3/smbd/lanman.c buf = talloc_string_sub(ctx, buf,"%S",lp_servicename(snum)); ctx 99 source3/smbd/lanman.c buf = talloc_sub_advanced(ctx, ctx 137 source3/smbd/lanman.c TALLOC_CTX *ctx = talloc_tos(); ctx 142 source3/smbd/lanman.c buf = talloc_strdup(ctx,s); ctx 146 source3/smbd/lanman.c buf = talloc_string_sub(ctx,buf,"%S",lp_servicename(snum)); ctx 150 source3/smbd/lanman.c buf = talloc_sub_advanced(ctx, ctx 166 source3/smbd/lanman.c TALLOC_CTX *ctx = talloc_tos(); ctx 172 source3/smbd/lanman.c buf = talloc_strdup(ctx,s); ctx 176 source3/smbd/lanman.c buf = talloc_string_sub(ctx,buf,"%S",lp_servicename(snum)); ctx 180 source3/smbd/lanman.c return talloc_sub_advanced(ctx, ctx 3097 source3/smbd/lanman.c TALLOC_CTX *ctx = talloc_tos(); ctx 3100 source3/smbd/lanman.c comment = talloc_strdup(ctx,lp_serverstring()); ctx 3110 source3/smbd/lanman.c comment = talloc_strdup(ctx, ctx 3130 source3/smbd/lanman.c ctx, ctx 3664 source3/smbd/lanman.c TALLOC_CTX *ctx = talloc_tos(); ctx 3671 source3/smbd/lanman.c tmp = talloc_strdup(ctx, "\\\\%L"); ctx 3675 source3/smbd/lanman.c tmp = talloc_sub_basic(ctx, ctx 117 source3/smbd/mangle.c bool mangle_lookup_name_from_8_3(TALLOC_CTX *ctx, ctx 122 source3/smbd/mangle.c return mangle_fns->lookup_name_from_8_3(ctx, in, out, p); ctx 460 source3/smbd/mangle_hash.c static bool lookup_name_from_8_3(TALLOC_CTX *ctx, ctx 467 source3/smbd/mangle_hash.c char *s = talloc_strdup(ctx, in); ctx 484 source3/smbd/mangle_hash.c if((saved_ext = talloc_strdup(ctx,ext_start)) == NULL) { ctx 508 source3/smbd/mangle_hash.c *out = talloc_asprintf(ctx, "%s%s", ctx 512 source3/smbd/mangle_hash.c *out = talloc_strdup(ctx, (char *)data_val.dptr); ctx 350 source3/smbd/mangle_hash2.c static bool lookup_name_from_8_3(TALLOC_CTX *ctx, ctx 377 source3/smbd/mangle_hash2.c prefix = cache_lookup(ctx, hash); ctx 395 source3/smbd/mangle_hash2.c *pp_out = talloc_asprintf(ctx, "%s.%s", prefix, extension); ctx 398 source3/smbd/mangle_hash2.c *pp_out = talloc_strdup(ctx, prefix); ctx 734 source3/smbd/mangle_hash2.c static bool posix_lookup_name_from_8_3(TALLOC_CTX *ctx, ctx 217 source3/smbd/msdfs.c NTSTATUS create_conn_struct(TALLOC_CTX *ctx, ctx 228 source3/smbd/msdfs.c conn = TALLOC_ZERO_P(ctx, connection_struct); ctx 283 source3/smbd/msdfs.c oldcwd = vfs_GetWd(ctx, conn); ctx 325 source3/smbd/msdfs.c static bool parse_msdfs_symlink(TALLOC_CTX *ctx, ctx 337 source3/smbd/msdfs.c temp = talloc_strdup(ctx, target); ctx 347 source3/smbd/msdfs.c alt_path = TALLOC_ARRAY(ctx, char *, MAX_REFERRAL_COUNT); ctx 361 source3/smbd/msdfs.c reflist = *preflist = TALLOC_ZERO_ARRAY(ctx, ctx 384 source3/smbd/msdfs.c reflist[i].alternate_path = talloc_asprintf(ctx, ctx 408 source3/smbd/msdfs.c static bool is_msdfs_link_internal(TALLOC_CTX *ctx, ctx 426 source3/smbd/msdfs.c link_target = TALLOC_ARRAY(ctx, char, bufsize); ctx 507 source3/smbd/msdfs.c static NTSTATUS dfs_path_lookup(TALLOC_CTX *ctx, ctx 539 source3/smbd/msdfs.c status = unix_convert(ctx, conn, pdp->reqpath, search_flag, &localpath, ctx 548 source3/smbd/msdfs.c if (is_msdfs_link_internal(ctx, conn, localpath, pp_targetpath, NULL)) { ctx 569 source3/smbd/msdfs.c canon_dfspath = talloc_strdup(ctx, dfspath); ctx 604 source3/smbd/msdfs.c if (is_msdfs_link_internal(ctx, conn, ctx 647 source3/smbd/msdfs.c static NTSTATUS dfs_redirect(TALLOC_CTX *ctx, ctx 655 source3/smbd/msdfs.c struct dfs_path *pdp = TALLOC_P(ctx, struct dfs_path); ctx 670 source3/smbd/msdfs.c *pp_path_out = talloc_strdup(ctx, ""); ctx 682 source3/smbd/msdfs.c *pp_path_out = talloc_strdup(ctx, pdp->reqpath); ctx 694 source3/smbd/msdfs.c *pp_path_out = talloc_strdup(ctx, pdp->reqpath); ctx 713 source3/smbd/msdfs.c status = dfs_path_lookup(ctx, conn, path_in, pdp, ctx 729 source3/smbd/msdfs.c *pp_path_out = talloc_strdup(ctx, pdp->reqpath); ctx 746 source3/smbd/msdfs.c static NTSTATUS self_ref(TALLOC_CTX *ctx, ctx 757 source3/smbd/msdfs.c if((ref = TALLOC_ZERO_P(ctx, struct referral)) == NULL) { ctx 761 source3/smbd/msdfs.c ref->alternate_path = talloc_strdup(ctx, dfs_path); ctx 777 source3/smbd/msdfs.c NTSTATUS get_referred_path(TALLOC_CTX *ctx, ctx 788 source3/smbd/msdfs.c struct dfs_path *pdp = TALLOC_P(ctx, struct dfs_path); ctx 802 source3/smbd/msdfs.c jucn->service_name = talloc_strdup(ctx, pdp->servicename); ctx 803 source3/smbd/msdfs.c jucn->volume_name = talloc_strdup(ctx, pdp->reqpath); ctx 818 source3/smbd/msdfs.c jucn->service_name = talloc_strdup(ctx, service_name); ctx 847 source3/smbd/msdfs.c return self_ref(ctx, ctx 860 source3/smbd/msdfs.c if ((ref = TALLOC_ZERO_P(ctx, struct referral)) == NULL) { ctx 865 source3/smbd/msdfs.c if (!(tmp = talloc_strdup(ctx, lp_msdfs_proxy(snum)))) { ctx 872 source3/smbd/msdfs.c ref->alternate_path = talloc_asprintf(ctx, "\\%s", tmp); ctx 898 source3/smbd/msdfs.c status = create_conn_struct(ctx, &conn, snum, lp_pathname(snum), ctx 908 source3/smbd/msdfs.c status = dfs_path_lookup(ctx, conn, dfs_path, pdp, ctx 921 source3/smbd/msdfs.c if (!parse_msdfs_symlink(ctx, targetpath, ctx 1165 source3/smbd/msdfs.c TALLOC_CTX *ctx; ctx 1167 source3/smbd/msdfs.c if (!(ctx=talloc_init("setup_dfs_referral"))) { ctx 1174 source3/smbd/msdfs.c talloc_destroy(ctx); ctx 1184 source3/smbd/msdfs.c local_dfs_path = talloc_strdup(ctx,dfs_path); ctx 1187 source3/smbd/msdfs.c talloc_destroy(ctx); ctx 1196 source3/smbd/msdfs.c junction = TALLOC_ZERO_P(ctx, struct junction_map); ctx 1199 source3/smbd/msdfs.c talloc_destroy(ctx); ctx 1204 source3/smbd/msdfs.c *pstatus = get_referred_path(ctx, pathnamep, junction, ctx 1208 source3/smbd/msdfs.c talloc_destroy(ctx); ctx 1252 source3/smbd/msdfs.c talloc_destroy(ctx); ctx 1262 source3/smbd/msdfs.c talloc_destroy(ctx); ctx 1275 source3/smbd/msdfs.c bool create_junction(TALLOC_CTX *ctx, ctx 1281 source3/smbd/msdfs.c struct dfs_path *pdp = TALLOC_P(ctx,struct dfs_path); ctx 1311 source3/smbd/msdfs.c jucn->service_name = talloc_strdup(ctx, pdp->servicename); ctx 1312 source3/smbd/msdfs.c jucn->volume_name = talloc_strdup(ctx, pdp->reqpath); ctx 1313 source3/smbd/msdfs.c jucn->comment = talloc_strdup(ctx, lp_comment(snum)); ctx 1453 source3/smbd/msdfs.c static int count_dfs_links(TALLOC_CTX *ctx, int snum) ctx 1513 source3/smbd/msdfs.c static int form_junctions(TALLOC_CTX *ctx, ctx 1541 source3/smbd/msdfs.c status = create_conn_struct(ctx, &conn, snum, connect_path, NULL, ctx 1553 source3/smbd/msdfs.c jucn[cnt].service_name = talloc_strdup(ctx,service_name); ctx 1554 source3/smbd/msdfs.c jucn[cnt].volume_name = talloc_strdup(ctx, ""); ctx 1561 source3/smbd/msdfs.c ref = jucn[cnt].referral_list = TALLOC_ZERO_P(ctx, struct referral); ctx 1569 source3/smbd/msdfs.c ref->alternate_path = talloc_strdup(ctx, ctx 1572 source3/smbd/msdfs.c ref->alternate_path = talloc_asprintf(ctx, ctx 1601 source3/smbd/msdfs.c if (is_msdfs_link_internal(ctx, ctx 1605 source3/smbd/msdfs.c if (parse_msdfs_symlink(ctx, ctx 1610 source3/smbd/msdfs.c jucn[cnt].service_name = talloc_strdup(ctx, ctx 1612 source3/smbd/msdfs.c jucn[cnt].volume_name = talloc_strdup(ctx, ctx 1636 source3/smbd/msdfs.c struct junction_map *enum_msdfs_links(TALLOC_CTX *ctx, size_t *p_num_jn) ctx 1656 source3/smbd/msdfs.c jn_count += count_dfs_links(ctx, i); ctx 1662 source3/smbd/msdfs.c jn = TALLOC_ARRAY(ctx, struct junction_map, jn_count); ctx 1671 source3/smbd/msdfs.c *p_num_jn += form_junctions(ctx, i, ctx 1683 source3/smbd/msdfs.c NTSTATUS resolve_dfspath(TALLOC_CTX *ctx, ctx 1692 source3/smbd/msdfs.c status = dfs_redirect(ctx, ctx 1716 source3/smbd/msdfs.c NTSTATUS resolve_dfspath_wcard(TALLOC_CTX *ctx, ctx 1725 source3/smbd/msdfs.c status = dfs_redirect(ctx, ctx 493 source3/smbd/notify.c struct sys_notify_context *ctx; ctx 495 source3/smbd/notify.c if (!(ctx = TALLOC_P(mem_ctx, struct sys_notify_context))) { ctx 500 source3/smbd/notify.c ctx->ev = ev; ctx 501 source3/smbd/notify.c ctx->conn = conn; ctx 502 source3/smbd/notify.c ctx->private_data = NULL; ctx 503 source3/smbd/notify.c return ctx; ctx 506 source3/smbd/notify.c NTSTATUS sys_notify_watch(struct sys_notify_context *ctx, ctx 508 source3/smbd/notify.c void (*callback)(struct sys_notify_context *ctx, ctx 513 source3/smbd/notify.c return SMB_VFS_NOTIFY_WATCH(ctx->conn, ctx, e, callback, private_data, ctx 75 source3/smbd/notify_inotify.c struct sys_notify_context *ctx; ctx 84 source3/smbd/notify_inotify.c void (*callback)(struct sys_notify_context *ctx, ctx 200 source3/smbd/notify_inotify.c w->callback(in->ctx, w->private_data, &ne); ctx 219 source3/smbd/notify_inotify.c w->callback(in->ctx, w->private_data, &ne); ctx 281 source3/smbd/notify_inotify.c static NTSTATUS inotify_setup(struct sys_notify_context *ctx) ctx 289 source3/smbd/notify_inotify.c in = talloc(ctx, struct inotify_private); ctx 297 source3/smbd/notify_inotify.c in->ctx = ctx; ctx 300 source3/smbd/notify_inotify.c ctx->private_data = in; ctx 304 source3/smbd/notify_inotify.c event_add_fd(ctx->ev, in, in->fd, EVENT_FD_READ, inotify_handler, in); ctx 369 source3/smbd/notify_inotify.c NTSTATUS inotify_watch(struct sys_notify_context *ctx, ctx 371 source3/smbd/notify_inotify.c void (*callback)(struct sys_notify_context *ctx, ctx 385 source3/smbd/notify_inotify.c if (ctx->private_data == NULL) { ctx 387 source3/smbd/notify_inotify.c status = inotify_setup(ctx); ctx 391 source3/smbd/notify_inotify.c in = talloc_get_type(ctx->private_data, struct inotify_private); ctx 281 source3/smbd/notify_internal.c static void sys_notify_callback(struct sys_notify_context *ctx, ctx 346 source3/smbd/nttrans.c TALLOC_CTX *ctx = talloc_tos(); ctx 348 source3/smbd/nttrans.c srvstr_pull_req_talloc(ctx, req, &fname, req->buf, STR_TERMINATE); ctx 439 source3/smbd/nttrans.c TALLOC_CTX *ctx = talloc_tos(); ctx 463 source3/smbd/nttrans.c srvstr_get_path_req(ctx, req, &fname, (const char *)req->buf, ctx 674 source3/smbd/nttrans.c TALLOC_CTX *ctx = talloc_tos(); ctx 688 source3/smbd/nttrans.c srvstr_get_path(ctx, params, req->flags2, &fname, params+53, ctx 800 source3/smbd/nttrans.c static struct ea_list *read_nttrans_ea_list(TALLOC_CTX *ctx, const char *pdata, size_t data_size) ctx 811 source3/smbd/nttrans.c struct ea_list *eal = read_ea_list_entry(ctx, pdata + offset + 4, data_size - offset - 4, NULL); ctx 867 source3/smbd/nttrans.c TALLOC_CTX *ctx = talloc_tos(); ctx 935 source3/smbd/nttrans.c status = unmarshall_sec_desc(ctx, (uint8_t *)data, sd_len, ctx 972 source3/smbd/nttrans.c srvstr_get_path(ctx, params, req->flags2, &fname, ctx 1150 source3/smbd/nttrans.c static NTSTATUS copy_internals(TALLOC_CTX *ctx, ctx 1176 source3/smbd/nttrans.c status = unix_convert(ctx, conn, oldname_in, False, &oldname, ctx 1197 source3/smbd/nttrans.c status = unix_convert(ctx, conn, newname_in, False, &newname, ctx 1328 source3/smbd/nttrans.c TALLOC_CTX *ctx = talloc_tos(); ctx 1342 source3/smbd/nttrans.c p += srvstr_get_path_req_wcard(ctx, req, &oldname, p, STR_TERMINATE, ctx 1357 source3/smbd/nttrans.c p += srvstr_get_path_req_wcard(ctx, req, &newname, p, STR_TERMINATE, ctx 1365 source3/smbd/nttrans.c status = resolve_dfspath(ctx, conn, ctx 1381 source3/smbd/nttrans.c status = resolve_dfspath(ctx, conn, ctx 1408 source3/smbd/nttrans.c status = rename_internals(ctx, conn, req, oldname, ctx 1417 source3/smbd/nttrans.c status = hardlink_internals(ctx, ctx 1428 source3/smbd/nttrans.c status = copy_internals(ctx, conn, req, oldname, ctx 1578 source3/smbd/nttrans.c TALLOC_CTX *ctx = talloc_tos(); ctx 1589 source3/smbd/nttrans.c srvstr_get_path_wcard(ctx, params, req->flags2, &new_name, params+4, ctx 232 source3/smbd/open.c TALLOC_CTX *ctx = talloc_tos(); ctx 252 source3/smbd/open.c saved_dir = vfs_GetWd(ctx,conn); ctx 308 source3/smbd/oplock.c static void oplock_timeout_handler(struct event_context *ctx, ctx 27 source3/smbd/oplock_irix.c struct kernel_oplocks *ctx; ctx 42 source3/smbd/oplock_irix.c TALLOC_CTX *ctx = talloc_stackframe(); ctx 47 source3/smbd/oplock_irix.c tmpname = talloc_asprintf(ctx, ctx 52 source3/smbd/oplock_irix.c TALLOC_FREE(ctx); ctx 60 source3/smbd/oplock_irix.c TALLOC_FREE(ctx); ctx 71 source3/smbd/oplock_irix.c TALLOC_FREE(ctx); ctx 77 source3/smbd/oplock_irix.c TALLOC_FREE(ctx); ctx 131 source3/smbd/oplock_irix.c struct irix_oplocks_context *ctx = talloc_get_type(_ctx->private_data, ctx 142 source3/smbd/oplock_irix.c ctx->pending = false; ctx 149 source3/smbd/oplock_irix.c if(read(ctx->read_fd, &dummy, 1) != 1) { ctx 162 source3/smbd/oplock_irix.c if(sys_fcntl_ptr(ctx->read_fd, F_OPLKSTAT, &os) < 0) { ctx 207 source3/smbd/oplock_irix.c struct irix_oplocks_context *ctx = talloc_get_type(_ctx->private_data, ctx 210 source3/smbd/oplock_irix.c if (sys_fcntl_long(fsp->fh->fd, F_OPLKREG, ctx->write_fd) == -1) { ctx 278 source3/smbd/oplock_irix.c struct irix_oplocks_context *ctx = talloc_get_type(private_data, ctx 282 source3/smbd/oplock_irix.c fsp = irix_oplock_receive_message(ctx->ctx); ctx 300 source3/smbd/oplock_irix.c struct irix_oplocks_context *ctx; ctx 311 source3/smbd/oplock_irix.c ctx = talloc_zero(_ctx, struct irix_oplocks_context); ctx 312 source3/smbd/oplock_irix.c if (!ctx) { ctx 317 source3/smbd/oplock_irix.c _ctx->private_data = ctx; ctx 318 source3/smbd/oplock_irix.c ctx->ctx = _ctx; ctx 327 source3/smbd/oplock_irix.c ctx->read_fd = pfd[0]; ctx 328 source3/smbd/oplock_irix.c ctx->write_fd = pfd[1]; ctx 330 source3/smbd/oplock_irix.c ctx->read_fde = event_add_fd(smbd_event_context(), ctx 331 source3/smbd/oplock_irix.c ctx, ctx 332 source3/smbd/oplock_irix.c ctx->read_fd, ctx 335 source3/smbd/oplock_irix.c ctx); ctx 112 source3/smbd/oplock_linux.c static bool linux_set_kernel_oplock(struct kernel_oplocks *ctx, ctx 136 source3/smbd/oplock_linux.c static void linux_release_kernel_oplock(struct kernel_oplocks *ctx, ctx 194 source3/smbd/oplock_linux.c struct kernel_oplocks *ctx; ctx 202 source3/smbd/oplock_linux.c ctx = talloc_zero(mem_ctx, struct kernel_oplocks); ctx 203 source3/smbd/oplock_linux.c if (!ctx) { ctx 208 source3/smbd/oplock_linux.c ctx->ops = &linux_koplocks; ctx 211 source3/smbd/oplock_linux.c ctx, ctx 214 source3/smbd/oplock_linux.c ctx); ctx 217 source3/smbd/oplock_linux.c TALLOC_FREE(ctx); ctx 221 source3/smbd/oplock_linux.c ctx->private_data = se; ctx 225 source3/smbd/oplock_linux.c return ctx; ctx 35 source3/smbd/oplock_onefs.c struct kernel_oplocks *ctx; ctx 638 source3/smbd/oplock_onefs.c struct onefs_oplocks_context *ctx = ctx 641 source3/smbd/oplock_onefs.c if (oplocks_event_dispatcher(ctx->onefs_ops)) { ctx 668 source3/smbd/oplock_onefs.c struct onefs_oplocks_context *ctx = NULL; ctx 686 source3/smbd/oplock_onefs.c ctx = talloc_zero(_ctx, struct onefs_oplocks_context); ctx 687 source3/smbd/oplock_onefs.c if (!ctx) { ctx 696 source3/smbd/oplock_onefs.c _ctx->private_data = ctx; ctx 697 source3/smbd/oplock_onefs.c ctx->ctx = _ctx; ctx 698 source3/smbd/oplock_onefs.c ctx->onefs_ops = &onefs_dispatch_ops; ctx 701 source3/smbd/oplock_onefs.c ctx->onefs_event_fd = oplocks_event_register(); ctx 702 source3/smbd/oplock_onefs.c if (ctx->onefs_event_fd == -1) { ctx 708 source3/smbd/oplock_onefs.c DEBUG(10, ("oplock event_fd = %d\n", ctx->onefs_event_fd)); ctx 711 source3/smbd/oplock_onefs.c ctx->read_fde = event_add_fd(smbd_event_context(), ctx 712 source3/smbd/oplock_onefs.c ctx, ctx 713 source3/smbd/oplock_onefs.c ctx->onefs_event_fd, ctx 716 source3/smbd/oplock_onefs.c ctx); ctx 737 source3/smbd/password.c TALLOC_CTX *ctx = talloc_tos(); ctx 739 source3/smbd/password.c char *user_list = talloc_strdup(ctx, lp_username(snum)); ctx 746 source3/smbd/password.c user_list = talloc_string_sub(ctx, ctx 80 source3/smbd/pipes.c TALLOC_CTX *ctx = talloc_tos(); ctx 84 source3/smbd/pipes.c srvstr_pull_req_talloc(ctx, req, &pipe_name, req->buf, STR_TERMINATE); ctx 4538 source3/smbd/posix_acls.c SEC_DESC *get_nt_acl_no_snum( TALLOC_CTX *ctx, const char *fname) ctx 4545 source3/smbd/posix_acls.c conn = TALLOC_ZERO_P(ctx, connection_struct); ctx 4582 source3/smbd/posix_acls.c ret_sd = dup_sec_desc( ctx, psd ); ctx 652 source3/smbd/process.c static void smbd_idle_event_handler(struct event_context *ctx, ctx 676 source3/smbd/process.c event->te = event_add_timed(ctx, event, ctx 245 source3/smbd/reply.c size_t srvstr_get_path_wcard(TALLOC_CTX *ctx, ctx 259 source3/smbd/reply.c ret = srvstr_pull_talloc(ctx, base_ptr, smb_flags2, pp_dest, src, ctx 291 source3/smbd/reply.c size_t srvstr_get_path(TALLOC_CTX *ctx, ctx 301 source3/smbd/reply.c return srvstr_get_path_wcard(ctx, base_ptr, smb_flags2, pp_dest, src, ctx 520 source3/smbd/reply.c TALLOC_CTX *ctx = talloc_tos(); ctx 531 source3/smbd/reply.c p += srvstr_pull_req_talloc(ctx, req, &service_buf, p, STR_TERMINATE); ctx 533 source3/smbd/reply.c pwlen = srvstr_pull_req_talloc(ctx, req, &password, p, STR_TERMINATE); ctx 535 source3/smbd/reply.c p += srvstr_pull_req_talloc(ctx, req, &dev, p, STR_TERMINATE); ctx 585 source3/smbd/reply.c TALLOC_CTX *ctx = talloc_tos(); ctx 638 source3/smbd/reply.c p += srvstr_pull_req_talloc(ctx, req, &path, p, STR_TERMINATE); ctx 664 source3/smbd/reply.c p += srvstr_pull_talloc(ctx, req->inbuf, req->flags2, ctx 880 source3/smbd/reply.c TALLOC_CTX *ctx = talloc_tos(); ctx 884 source3/smbd/reply.c srvstr_get_path_req(ctx, req, &name, (const char *)req->buf + 1, ctx 894 source3/smbd/reply.c status = resolve_dfspath(ctx, conn, ctx 910 source3/smbd/reply.c status = unix_convert(ctx, conn, name, False, &name, NULL, &sbuf); ctx 988 source3/smbd/reply.c TALLOC_CTX *ctx = talloc_tos(); ctx 993 source3/smbd/reply.c p += srvstr_get_path_req(ctx, req, &fname, p, STR_TERMINATE, &status); ctx 1000 source3/smbd/reply.c status = resolve_dfspath(ctx, conn, ctx 1026 source3/smbd/reply.c status = unix_convert(ctx, conn, fname, False, &fname, NULL,&sbuf); ctx 1098 source3/smbd/reply.c TALLOC_CTX *ctx = talloc_tos(); ctx 1110 source3/smbd/reply.c p += srvstr_get_path_req(ctx, req, &fname, p, STR_TERMINATE, &status); ctx 1117 source3/smbd/reply.c status = resolve_dfspath(ctx, conn, ctx 1133 source3/smbd/reply.c status = unix_convert(ctx, conn, fname, False, &fname, NULL, &sbuf); ctx 1270 source3/smbd/reply.c TALLOC_CTX *ctx = talloc_tos(); ctx 1296 source3/smbd/reply.c p += srvstr_get_path_req_wcard(ctx, req, &path, p, STR_TERMINATE, ctx 1304 source3/smbd/reply.c nt_status = resolve_dfspath_wcard(ctx, conn, ctx 1330 source3/smbd/reply.c nt_status = unix_convert(ctx, conn, path, True, ctx 1348 source3/smbd/reply.c directory = talloc_strndup(ctx, directory, ctx 1352 source3/smbd/reply.c directory = talloc_strdup(ctx,"."); ctx 1413 source3/smbd/reply.c if (!make_dir_struct(ctx,buf,"???????????",volume_label(SNUM(conn)), ctx 1447 source3/smbd/reply.c finished = !get_dir_entry(ctx, ctx 1460 source3/smbd/reply.c if (!make_dir_struct(ctx, ctx 1558 source3/smbd/reply.c TALLOC_CTX *ctx = talloc_tos(); ctx 1569 source3/smbd/reply.c p += srvstr_get_path_req_wcard(ctx, req, &path, p, STR_TERMINATE, ctx 1624 source3/smbd/reply.c TALLOC_CTX *ctx = talloc_tos(); ctx 1640 source3/smbd/reply.c srvstr_get_path_req(ctx, req, &fname, (const char *)req->buf+1, ctx 1755 source3/smbd/reply.c TALLOC_CTX *ctx = talloc_tos(); ctx 1788 source3/smbd/reply.c srvstr_get_path_req(ctx, req, &fname, (const char *)req->buf, ctx 1968 source3/smbd/reply.c TALLOC_CTX *ctx = talloc_tos(); ctx 1986 source3/smbd/reply.c srvstr_get_path_req(ctx, req, &fname, (const char *)req->buf + 1, ctx 2080 source3/smbd/reply.c TALLOC_CTX *ctx = talloc_tos(); ctx 2093 source3/smbd/reply.c srvstr_get_path_req(ctx, req, &fname, (const char *)req->buf+1, ctx 2101 source3/smbd/reply.c fname = talloc_asprintf(ctx, ctx 2105 source3/smbd/reply.c fname = talloc_strdup(ctx, "TMXXXXXX"); ctx 2114 source3/smbd/reply.c status = resolve_dfspath(ctx, conn, ctx 2130 source3/smbd/reply.c status = unix_convert(ctx, conn, fname, False, &fname, NULL, &sbuf); ctx 2425 source3/smbd/reply.c TALLOC_CTX *ctx = talloc_tos(); ctx 2427 source3/smbd/reply.c status = unix_convert(ctx, conn, name_in, has_wild, &name, NULL, &sbuf); ctx 2434 source3/smbd/reply.c directory = talloc_strdup(ctx, "."); ctx 2456 source3/smbd/reply.c mangle_lookup_name_from_8_3(ctx, ctx 2466 source3/smbd/reply.c directory = talloc_asprintf(ctx, ctx 2538 source3/smbd/reply.c fname = talloc_asprintf(ctx, "%s/%s", ctx 2584 source3/smbd/reply.c TALLOC_CTX *ctx = talloc_tos(); ctx 2596 source3/smbd/reply.c srvstr_get_path_req_wcard(ctx, req, &name, (const char *)req->buf + 1, ctx 2605 source3/smbd/reply.c status = resolve_dfspath_wcard(ctx, conn, ctx 5077 source3/smbd/reply.c TALLOC_CTX *ctx = talloc_tos(); ctx 5081 source3/smbd/reply.c srvstr_get_path_req(ctx, req, &directory, (const char *)req->buf + 1, ctx 5089 source3/smbd/reply.c status = resolve_dfspath(ctx, conn, ctx 5105 source3/smbd/reply.c status = unix_convert(ctx, conn, directory, False, &directory, NULL, &sbuf); ctx 5154 source3/smbd/reply.c static bool recursive_rmdir(TALLOC_CTX *ctx, ctx 5180 source3/smbd/reply.c fullname = talloc_asprintf(ctx, ctx 5196 source3/smbd/reply.c if(!recursive_rmdir(ctx, conn, fullname)) { ctx 5218 source3/smbd/reply.c NTSTATUS rmdir_internals(TALLOC_CTX *ctx, ctx 5299 source3/smbd/reply.c fullname = talloc_asprintf(ctx, ctx 5313 source3/smbd/reply.c if(!recursive_rmdir(ctx, conn, fullname)) { ctx 5354 source3/smbd/reply.c TALLOC_CTX *ctx = talloc_tos(); ctx 5358 source3/smbd/reply.c srvstr_get_path_req(ctx, req, &directory, (const char *)req->buf + 1, ctx 5366 source3/smbd/reply.c status = resolve_dfspath(ctx, conn, ctx 5382 source3/smbd/reply.c status = unix_convert(ctx, conn, directory, False, &directory, ctx 5398 source3/smbd/reply.c status = rmdir_internals(ctx, conn, directory); ctx 5417 source3/smbd/reply.c static bool resolve_wildcards(TALLOC_CTX *ctx, ctx 5429 source3/smbd/reply.c name2_copy = talloc_strdup(ctx, name2); ctx 5448 source3/smbd/reply.c root1 = talloc_strdup(ctx, pname1); ctx 5449 source3/smbd/reply.c root2 = talloc_strdup(ctx, pname2); ctx 5458 source3/smbd/reply.c ext1 = talloc_strdup(ctx, p+1); ctx 5460 source3/smbd/reply.c ext1 = talloc_strdup(ctx, ""); ctx 5465 source3/smbd/reply.c ext2 = talloc_strdup(ctx, p+1); ctx 5467 source3/smbd/reply.c ext2 = talloc_strdup(ctx, ""); ctx 5483 source3/smbd/reply.c root2 = talloc_asprintf(ctx, "%s%s", ctx 5507 source3/smbd/reply.c ext2 = talloc_asprintf(ctx, "%s%s", ctx 5523 source3/smbd/reply.c *pp_newname = talloc_asprintf(ctx, "%s/%s.%s", ctx 5528 source3/smbd/reply.c *pp_newname = talloc_asprintf(ctx, "%s/%s", ctx 5660 source3/smbd/reply.c TALLOC_CTX *ctx = talloc_tos(); ctx 5675 source3/smbd/reply.c newname = talloc_asprintf(ctx, ctx 5702 source3/smbd/reply.c newname_modified_last_component = talloc_strdup(ctx, ctx 5715 source3/smbd/reply.c newname = talloc_asprintf(ctx, ctx 5858 source3/smbd/reply.c NTSTATUS rename_internals(TALLOC_CTX *ctx, ctx 5888 source3/smbd/reply.c status = unix_convert(ctx, conn, name_in, src_has_wild, &name, ctx 5894 source3/smbd/reply.c status = unix_convert(ctx, conn, newname_in, dest_has_wild, &newname, ctx 5911 source3/smbd/reply.c directory = talloc_strdup(ctx, "."); ctx 5918 source3/smbd/reply.c directory = talloc_strdup(ctx, name); ctx 5937 source3/smbd/reply.c mangle_lookup_name_from_8_3(ctx, ctx 5962 source3/smbd/reply.c newname = talloc_asprintf(ctx, ctx 5981 source3/smbd/reply.c if (!resolve_wildcards(ctx, ctx 6093 source3/smbd/reply.c fname = talloc_asprintf(ctx, ctx 6101 source3/smbd/reply.c if (!resolve_wildcards(ctx, ctx 6195 source3/smbd/reply.c TALLOC_CTX *ctx = talloc_tos(); ctx 6208 source3/smbd/reply.c p += srvstr_get_path_req_wcard(ctx, req, &name, p, STR_TERMINATE, ctx 6216 source3/smbd/reply.c p += srvstr_get_path_req_wcard(ctx, req, &newname, p, STR_TERMINATE, ctx 6224 source3/smbd/reply.c status = resolve_dfspath_wcard(ctx, conn, ctx 6241 source3/smbd/reply.c status = resolve_dfspath_wcard(ctx, conn, ctx 6260 source3/smbd/reply.c status = rename_internals(ctx, conn, req, name, newname, attrs, False, ctx 6287 source3/smbd/reply.c NTSTATUS copy_file(TALLOC_CTX *ctx, ctx 6303 source3/smbd/reply.c dest = talloc_strdup(ctx, dest1); ctx 6455 source3/smbd/reply.c TALLOC_CTX *ctx = talloc_tos(); ctx 6470 source3/smbd/reply.c p += srvstr_get_path_req_wcard(ctx, req, &name, p, STR_TERMINATE, ctx 6477 source3/smbd/reply.c p += srvstr_get_path_req_wcard(ctx, req, &newname, p, STR_TERMINATE, ctx 6495 source3/smbd/reply.c status = resolve_dfspath_wcard(ctx, conn, ctx 6512 source3/smbd/reply.c status = resolve_dfspath_wcard(ctx, conn, ctx 6529 source3/smbd/reply.c status = unix_convert(ctx, conn, name, source_has_wild, ctx 6537 source3/smbd/reply.c status = unix_convert(ctx, conn, newname, dest_has_wild, ctx 6569 source3/smbd/reply.c directory = talloc_strndup(ctx, name, PTR_DIFF(p, name)); ctx 6572 source3/smbd/reply.c directory = talloc_strdup(ctx, "./"); ctx 6593 source3/smbd/reply.c mangle_lookup_name_from_8_3(ctx, ctx 6608 source3/smbd/reply.c if (!resolve_wildcards(ctx, ctx 6631 source3/smbd/reply.c status = copy_file(ctx,conn,directory,newname,ofun, ctx 6684 source3/smbd/reply.c fname = talloc_asprintf(ctx, ctx 6695 source3/smbd/reply.c if (!resolve_wildcards(ctx, ctx 6724 source3/smbd/reply.c status = copy_file(ctx,conn,fname,destname,ofun, ctx 1020 source3/smbd/service.c TALLOC_CTX *ctx = talloc_tos(); ctx 1021 source3/smbd/service.c char *s = vfs_GetWd(ctx,s); ctx 68 source3/smbd/session.c struct db_context *ctx; ctx 81 source3/smbd/session.c if (!(ctx = session_db_ctx())) { ctx 103 source3/smbd/session.c rec = ctx->fetch_locked(ctx, NULL, key); ctx 144 source3/smbd/session.c rec = ctx->fetch_locked(ctx, NULL, key); ctx 224 source3/smbd/session.c struct db_context *ctx; ctx 227 source3/smbd/session.c if (!(ctx = session_db_ctx())) return; ctx 235 source3/smbd/session.c if (!(rec = ctx->fetch_locked(ctx, NULL, key))) { ctx 265 source3/smbd/session.c struct db_context *ctx; ctx 267 source3/smbd/session.c if (!(ctx = session_db_ctx())) { ctx 272 source3/smbd/session.c ctx->traverse_read(ctx, fn, private_data); ctx 49 source3/smbd/statcache.c TALLOC_CTX *ctx = talloc_tos(); ctx 86 source3/smbd/statcache.c original_path = talloc_strdup(ctx,full_orig_name); ctx 88 source3/smbd/statcache.c original_path = talloc_strdup_upper(ctx,full_orig_name); ctx 177 source3/smbd/statcache.c TALLOC_CTX *ctx = talloc_tos(); ctx 199 source3/smbd/statcache.c chk_name = talloc_strdup(ctx,name); ctx 206 source3/smbd/statcache.c chk_name = talloc_strdup_upper(ctx,name); ctx 267 source3/smbd/statcache.c translated_path = talloc_strdup(ctx,(char *)data_val.data); ctx 291 source3/smbd/statcache.c name = talloc_strndup(ctx, translated_path, ctx 298 source3/smbd/statcache.c name = talloc_asprintf(ctx,"%.*s%s", ctx 302 source3/smbd/statcache.c name = talloc_strndup(ctx, ctx 477 source3/smbd/trans2.c static struct ea_list *read_ea_name_list(TALLOC_CTX *ctx, const char *pdata, size_t data_size) ctx 483 source3/smbd/trans2.c struct ea_list *eal = TALLOC_ZERO_P(ctx, struct ea_list); ctx 498 source3/smbd/trans2.c if (!pull_ascii_talloc(ctx, &eal->ea.name, &pdata[offset], ctx 519 source3/smbd/trans2.c struct ea_list *read_ea_list_entry(TALLOC_CTX *ctx, const char *pdata, size_t data_size, size_t *pbytes_used) ctx 521 source3/smbd/trans2.c struct ea_list *eal = TALLOC_ZERO_P(ctx, struct ea_list); ctx 546 source3/smbd/trans2.c if (!pull_ascii_talloc(ctx, &eal->ea.name, pdata + 4, &converted_size)) { ctx 580 source3/smbd/trans2.c static struct ea_list *read_ea_list(TALLOC_CTX *ctx, const char *pdata, size_t data_size) ctx 587 source3/smbd/trans2.c struct ea_list *eal = read_ea_list_entry(ctx, pdata + offset, data_size - offset, &bytes_used); ctx 895 source3/smbd/trans2.c TALLOC_CTX *ctx = talloc_tos(); ctx 930 source3/smbd/trans2.c srvstr_get_path(ctx, params, req->flags2, &fname, pname, ctx 1221 source3/smbd/trans2.c static bool get_lanman2_dir_entry(TALLOC_CTX *ctx, ctx 1276 source3/smbd/trans2.c mask = talloc_strdup(ctx,"*.*"); ctx 1290 source3/smbd/trans2.c dname = dptr_ReadDirName(ctx,conn->dirptr,&curr_dirpos,&sbuf); ctx 1323 source3/smbd/trans2.c fname = talloc_strdup(ctx, mangled_name); ctx 1362 source3/smbd/trans2.c pathreal = talloc_asprintf(ctx, ctx 1367 source3/smbd/trans2.c pathreal = talloc_asprintf(ctx, ctx 1558 source3/smbd/trans2.c file_list = get_ea_list_from_file(ctx, conn, NULL, pathreal, &ea_len); ctx 1572 source3/smbd/trans2.c p += fill_ea_buffer(ctx, p, space_remaining, conn, name_list); ctx 1909 source3/smbd/trans2.c TALLOC_CTX *ctx = talloc_tos(); ctx 1959 source3/smbd/trans2.c srvstr_get_path_wcard(ctx, params, req->flags2, &directory, ctx 1967 source3/smbd/trans2.c ntstatus = resolve_dfspath_wcard(ctx, conn, ctx 1982 source3/smbd/trans2.c ntstatus = unix_convert(ctx, conn, directory, True, &directory, &mask, &sbuf); ctx 1998 source3/smbd/trans2.c mask = talloc_strdup(ctx,"*"); ctx 2038 source3/smbd/trans2.c ea_list = read_ea_name_list(ctx, pdata + 4, ea_size - 4); ctx 2106 source3/smbd/trans2.c finished = !get_lanman2_dir_entry(ctx, ctx 2249 source3/smbd/trans2.c TALLOC_CTX *ctx = talloc_tos(); ctx 2266 source3/smbd/trans2.c srvstr_get_path_wcard(ctx, params, req->flags2, &resume_name, ctx 2275 source3/smbd/trans2.c srvstr_pull_talloc(ctx, params, req->flags2, ctx 2344 source3/smbd/trans2.c ea_list = read_ea_name_list(ctx, pdata + 4, ea_size - 4); ctx 2427 source3/smbd/trans2.c mangle_lookup_name_from_8_3(ctx, ctx 2457 source3/smbd/trans2.c finished = !get_lanman2_dir_entry(ctx, ctx 3852 source3/smbd/trans2.c TALLOC_CTX *ctx = talloc_tos(); ctx 3962 source3/smbd/trans2.c srvstr_get_path(ctx, params, req->flags2, &fname, ¶ms[6], ctx 3970 source3/smbd/trans2.c status = resolve_dfspath(ctx, ctx 3985 source3/smbd/trans2.c status = unix_convert(ctx, conn, fname, False, &fname, NULL, &sbuf); ctx 4128 source3/smbd/trans2.c ea_list = read_ea_name_list(ctx, pdata + 4, ea_size - 4); ctx 4152 source3/smbd/trans2.c ctx, pdata, total_data); ctx 4212 source3/smbd/trans2.c dos_fname = talloc_strdup(ctx, "\\"); ctx 4218 source3/smbd/trans2.c dos_fname = talloc_asprintf(ctx, ctx 4273 source3/smbd/trans2.c ea_file_list = get_ea_list_from_file(ctx, conn, fsp, fname, &total_ea_len); ctx 4282 source3/smbd/trans2.c data_size = fill_ea_buffer(ctx, pdata, data_size, conn, ea_list); ctx 4293 source3/smbd/trans2.c ea_list = get_ea_list_from_file(ctx, conn, fsp, fname, &total_ea_len); ctx 4300 source3/smbd/trans2.c data_size = fill_ea_buffer(ctx, pdata, data_size, conn, ea_list); ctx 4599 source3/smbd/trans2.c char *buffer = TALLOC_ARRAY(ctx, char, PATH_MAX+1); ctx 4820 source3/smbd/trans2.c NTSTATUS hardlink_internals(TALLOC_CTX *ctx, ctx 4835 source3/smbd/trans2.c status = unix_convert(ctx, conn, oldname_in, False, &oldname, ctx 4851 source3/smbd/trans2.c status = unix_convert(ctx, conn, newname_in, False, &newname, ctx 5129 source3/smbd/trans2.c TALLOC_CTX *ctx = NULL; ctx 5151 source3/smbd/trans2.c ctx = talloc_tos(); ctx 5152 source3/smbd/trans2.c ea_list = read_ea_list(ctx, pdata + 4, total_data - 4); ctx 5276 source3/smbd/trans2.c TALLOC_CTX *ctx = talloc_tos(); ctx 5289 source3/smbd/trans2.c srvstr_pull_talloc(ctx, pdata, req->flags2, &link_target, pdata, ctx 5316 source3/smbd/trans2.c TALLOC_CTX *ctx = talloc_tos(); ctx 5324 source3/smbd/trans2.c srvstr_get_path(ctx, pdata, req->flags2, &oldname, pdata, ctx 5330 source3/smbd/trans2.c status = resolve_dfspath(ctx, conn, ctx 5341 source3/smbd/trans2.c return hardlink_internals(ctx, conn, oldname, fname); ctx 5365 source3/smbd/trans2.c TALLOC_CTX *ctx = talloc_tos(); ctx 5381 source3/smbd/trans2.c srvstr_get_path_wcard(ctx, pdata, req->flags2, &newname, &pdata[12], ctx 5391 source3/smbd/trans2.c status = resolve_dfspath_wcard(ctx, conn, ctx 5410 source3/smbd/trans2.c base_name = talloc_asprintf(ctx, "%s%s", ctx 5423 source3/smbd/trans2.c base_name = talloc_strdup(ctx, fname); ctx 5431 source3/smbd/trans2.c base_name = talloc_strdup(ctx, "./"); ctx 5444 source3/smbd/trans2.c status = unix_convert(ctx, conn, newname, False, ctx 5468 source3/smbd/trans2.c status = rename_internals(ctx, conn, req, fname, base_name, 0, ctx 6709 source3/smbd/trans2.c TALLOC_CTX *ctx = talloc_tos(); ctx 6797 source3/smbd/trans2.c srvstr_get_path(ctx, params, req->flags2, &fname, ¶ms[6], ctx 6805 source3/smbd/trans2.c status = resolve_dfspath(ctx, conn, ctx 6820 source3/smbd/trans2.c status = unix_convert(ctx, conn, fname, False, ctx 7145 source3/smbd/trans2.c TALLOC_CTX *ctx = talloc_tos(); ctx 7157 source3/smbd/trans2.c srvstr_get_path(ctx, params, req->flags2, &directory, ¶ms[4], ctx 7167 source3/smbd/trans2.c status = resolve_dfspath(ctx, ctx 7182 source3/smbd/trans2.c status = unix_convert(ctx, conn, directory, False, &directory, NULL, &sbuf); ctx 7362 source3/smbd/trans2.c TALLOC_CTX *ctx = talloc_tos(); ctx 7378 source3/smbd/trans2.c srvstr_pull_talloc(ctx, params, req->flags2, &pathname, ¶ms[2], ctx 211 source3/smbd/utmp.c static char *uw_pathname(TALLOC_CTX *ctx, ctx 219 source3/smbd/utmp.c dirname = talloc_strdup(ctx, lp_wtmpdir()); ctx 228 source3/smbd/utmp.c dirname = talloc_strdup(ctx, lp_utmpdir()); ctx 237 source3/smbd/utmp.c return talloc_asprintf(ctx, ctx 250 source3/smbd/utmp.c return talloc_strdup(ctx, uw_default); ctx 769 source3/smbd/vfs.c char *vfs_GetWd(TALLOC_CTX *ctx, connection_struct *conn) ctx 812 source3/smbd/vfs.c result = talloc_strdup(ctx, (char *)cache_value.data); ctx 841 source3/smbd/vfs.c result = talloc_strdup(ctx, s); ctx 880 source3/smbd/vfs.c TALLOC_CTX *ctx = talloc_tos(); ctx 885 source3/smbd/vfs.c tmp_fname = talloc_strdup(ctx, fname); ctx 895 source3/smbd/vfs.c tmp_fname = talloc_strdup(ctx, ctx 911 source3/smbd/vfs.c tmp_fname = talloc_asprintf(ctx, ctx 366 source3/torture/masktest.c TALLOC_CTX *ctx = talloc_tos(); ctx 374 source3/torture/masktest.c mask = talloc_asprintf(ctx, ctx 377 source3/torture/masktest.c file = talloc_asprintf(ctx, ctx 393 source3/torture/masktest.c mask = TALLOC_ARRAY(ctx, char, strlen("\\masktest\\")+1+22); ctx 394 source3/torture/masktest.c file = TALLOC_ARRAY(ctx, char, strlen("\\masktest\\")+1+22); ctx 226 source3/torture/pdbtest.c TALLOC_CTX *ctx; ctx 273 source3/torture/pdbtest.c ctx = talloc_init("PDBTEST"); ctx 275 source3/torture/pdbtest.c if (!(out = samu_new(ctx))) { ctx 280 source3/torture/pdbtest.c if ((pwd = getpwnam_alloc(ctx, unix_user)) == NULL) { ctx 293 source3/torture/pdbtest.c buf = (uint8 *)TALLOC(ctx, NT_HASH_LEN); ctx 295 source3/torture/pdbtest.c buf = (uint8 *)TALLOC(ctx, history * PW_HISTORY_ENTRY_LEN); ctx 337 source3/torture/pdbtest.c if (!(in = samu_new(ctx))) { ctx 350 source3/torture/pdbtest.c TALLOC_FREE(ctx); ctx 367 source3/torture/pdbtest.c TALLOC_FREE(ctx); ctx 92 source3/torture/vfstest.c static char *next_command(TALLOC_CTX *ctx, char **cmdstr) ctx 103 source3/torture/vfstest.c command = talloc_strdup(ctx, *cmdstr); ctx 479 source3/torture/vfstest.c static struct event_context *ctx; ctx 481 source3/torture/vfstest.c if (!ctx && !(ctx = event_context_init(NULL))) { ctx 484 source3/torture/vfstest.c return ctx; ctx 489 source3/torture/vfstest.c static struct messaging_context *ctx; ctx 491 source3/torture/vfstest.c if (!ctx && !(ctx = messaging_init(NULL, server_id_self(), ctx 495 source3/torture/vfstest.c return ctx; ctx 131 source3/utils/net.h struct rpc_sh_ctx *ctx); ctx 134 source3/utils/net.h struct rpc_sh_ctx *ctx, ctx 875 source3/utils/net_ads.c TALLOC_CTX *ctx; ctx 891 source3/utils/net_ads.c if (!(ctx = talloc_init("net_ads_leave"))) { ctx 900 source3/utils/net_ads.c werr = libnet_init_UnjoinCtx(ctx, &r); ctx 920 source3/utils/net_ads.c werr = libnet_Unjoin(ctx, r); ctx 950 source3/utils/net_ads.c TALLOC_FREE(ctx); ctx 1045 source3/utils/net_ads.c static NTSTATUS net_update_dns_internal(TALLOC_CTX *ctx, ADS_STRUCT *ads, ctx 1066 source3/utils/net_ads.c status = ads_dns_lookup_ns( ctx, dnsdomain, &nameservers, &ns_count ); ctx 1091 source3/utils/net_ads.c root_dn = ads_pull_string(ads, ctx, msg, "rootDomainNamingContext"); ctx 1104 source3/utils/net_ads.c status = ads_dns_lookup_ns( ctx, root_domain, &nameservers, &ns_count ); ctx 1189 source3/utils/net_ads.c TALLOC_CTX *ctx = NULL; ctx 1213 source3/utils/net_ads.c if (!(ctx = talloc_init("net_ads_join"))) { ctx 1223 source3/utils/net_ads.c werr = libnet_init_JoinCtx(ctx, &r); ctx 1285 source3/utils/net_ads.c werr = libnet_Join(ctx, r); ctx 1329 source3/utils/net_ads.c if ( !ads_dns || !NT_STATUS_IS_OK(net_update_dns( ctx, ads_dns )) ) { ctx 1338 source3/utils/net_ads.c TALLOC_FREE( ctx ); ctx 1347 source3/utils/net_ads.c TALLOC_FREE( ctx ); ctx 1360 source3/utils/net_ads.c TALLOC_CTX *ctx; ctx 1373 source3/utils/net_ads.c if (!(ctx = talloc_init("net_ads_dns"))) { ctx 1381 source3/utils/net_ads.c TALLOC_FREE(ctx); ctx 1385 source3/utils/net_ads.c if ( !NT_STATUS_IS_OK(net_update_dns(ctx, ads)) ) { ctx 1388 source3/utils/net_ads.c TALLOC_FREE( ctx ); ctx 1395 source3/utils/net_ads.c TALLOC_FREE( ctx ); ctx 1091 source3/utils/net_conf.c int (*fn)(struct net_context *c, struct smbconf_ctx *ctx, int argc, ctx 39 source3/utils/net_eventlog.c TALLOC_CTX *ctx = talloc_stackframe(); ctx 50 source3/utils/net_eventlog.c blob.data = (uint8_t *)file_load(argv[0], &blob.length, 0, ctx); ctx 56 source3/utils/net_eventlog.c ndr_err = ndr_pull_struct_blob(&blob, ctx, NULL, &evt, ctx 63 source3/utils/net_eventlog.c s = NDR_PRINT_STRUCT_STRING(ctx, EVENTLOG_EVT_FILE, &evt); ctx 70 source3/utils/net_eventlog.c TALLOC_FREE(ctx); ctx 88 source3/utils/net_eventlog.c TALLOC_CTX *ctx = talloc_stackframe(); ctx 104 source3/utils/net_eventlog.c blob.data = (uint8_t *)file_load(argv[0], &blob.length, 0, ctx); ctx 111 source3/utils/net_eventlog.c ndr_err = ndr_pull_struct_blob(&blob, ctx, NULL, &evt_header, ctx 123 source3/utils/net_eventlog.c ndr_err = ndr_pull_struct_blob(&blob, ctx, NULL, &evt, ctx 144 source3/utils/net_eventlog.c status = evlog_evt_entry_to_tdb_entry(ctx, &evt.records[i], &e); ctx 149 source3/utils/net_eventlog.c status = evlog_push_record_tdb(ctx, ELOG_TDB_CTX(etdb), ctx 165 source3/utils/net_eventlog.c TALLOC_FREE(ctx); ctx 184 source3/utils/net_eventlog.c TALLOC_CTX *ctx = talloc_stackframe(); ctx 200 source3/utils/net_eventlog.c status = evlog_convert_tdb_to_evt(ctx, etdb, &blob, &num_records); ctx 215 source3/utils/net_eventlog.c TALLOC_FREE(ctx); ctx 26 source3/utils/net_idmap.c talloc_free(ctx); \ ctx 90 source3/utils/net_idmap.c TALLOC_CTX *ctx; ctx 107 source3/utils/net_idmap.c ctx = talloc_new(NULL); ctx 108 source3/utils/net_idmap.c ALLOC_CHECK(ctx); ctx 182 source3/utils/net_idmap.c talloc_free(ctx); ctx 226 source3/utils/net_idmap.c TALLOC_CTX *ctx; ctx 247 source3/utils/net_idmap.c ctx = talloc_new(NULL); ctx 248 source3/utils/net_idmap.c ALLOC_CHECK(ctx); ctx 254 source3/utils/net_idmap.c domain = talloc_strdup(ctx, argv[0]); ctx 257 source3/utils/net_idmap.c opt = talloc_asprintf(ctx, "idmap config %s", domain); ctx 260 source3/utils/net_idmap.c backend = talloc_strdup(ctx, lp_parm_const_string(-1, opt, "backend", "tdb")); ctx 266 source3/utils/net_idmap.c talloc_free(ctx); ctx 275 source3/utils/net_idmap.c talloc_free(ctx); ctx 284 source3/utils/net_idmap.c talloc_free(ctx); ctx 293 source3/utils/net_idmap.c talloc_free(ctx); ctx 99 source3/utils/net_lookup.c TALLOC_CTX *ctx; ctx 111 source3/utils/net_lookup.c if ( (ctx = talloc_init("net_lookup_ldap")) == NULL ) { ctx 119 source3/utils/net_lookup.c status = ads_dns_query_dcs( ctx, domain, sitename, &dcs, &numdcs ); ctx 122 source3/utils/net_lookup.c TALLOC_FREE( ctx ); ctx 129 source3/utils/net_lookup.c TALLOC_FREE( ctx ); ctx 141 source3/utils/net_lookup.c TALLOC_FREE( ctx ); ctx 149 source3/utils/net_lookup.c TALLOC_FREE( ctx ); ctx 157 source3/utils/net_lookup.c status = ads_dns_query_dcs( ctx, domain, sitename, &dcs, &numdcs ); ctx 160 source3/utils/net_lookup.c TALLOC_FREE( ctx ); ctx 165 source3/utils/net_lookup.c TALLOC_FREE( ctx ); ctx 354 source3/utils/net_lookup.c krb5_context ctx; ctx 361 source3/utils/net_lookup.c rc = krb5_init_context(&ctx); ctx 375 source3/utils/net_lookup.c rc = krb5_get_host_realm(ctx, NULL, &realms); ctx 385 source3/utils/net_lookup.c rc = smb_krb5_locate_kdc(ctx, &realm, (struct sockaddr **)(void *)&addrs, &num_kdcs, 0); ctx 181 source3/utils/net_proto.h struct rpc_sh_ctx *ctx); ctx 184 source3/utils/net_proto.h struct rpc_sh_ctx *ctx); ctx 193 source3/utils/net_proto.h struct rpc_sh_ctx *ctx); ctx 341 source3/utils/net_proto.h struct rpc_sh_ctx *ctx); ctx 390 source3/utils/net_proto.h struct rpc_sh_ctx *ctx); ctx 492 source3/utils/net_proto.h TALLOC_CTX *ctx, ctx 496 source3/utils/net_proto.h NTSTATUS net_lookup_sid_from_name(struct net_context *c, TALLOC_CTX *ctx, ctx 36 source3/utils/net_registry.c static WERROR open_hive(TALLOC_CTX *ctx, const char *path, ctx 56 source3/utils/net_registry.c *subkeyname = talloc_strdup(ctx, tmp_subkeyname); ctx 67 source3/utils/net_registry.c werr = reg_openhive(ctx, hivename, desired_access, token, hive); ctx 79 source3/utils/net_registry.c static WERROR open_key(TALLOC_CTX *ctx, const char *path, ctx 98 source3/utils/net_registry.c werr = reg_openkey(ctx, hive, subkey_name, desired_access, key); ctx 123 source3/utils/net_registry.c TALLOC_CTX *ctx = talloc_stackframe(); ctx 138 source3/utils/net_registry.c werr = open_key(ctx, argv[0], REG_KEY_READ, &key); ctx 145 source3/utils/net_registry.c werr = reg_enumkey(ctx, key, count, &subkey_name, &modtime), ctx 156 source3/utils/net_registry.c werr = reg_enumvalue(ctx, key, count, &valname, &valvalue), ctx 168 source3/utils/net_registry.c TALLOC_FREE(ctx); ctx 180 source3/utils/net_registry.c TALLOC_CTX *ctx = talloc_stackframe(); ctx 194 source3/utils/net_registry.c werr = open_hive(ctx, argv[0], REG_KEY_WRITE, &hivekey, &subkeyname); ctx 200 source3/utils/net_registry.c werr = reg_createkey(ctx, hivekey, subkeyname, REG_KEY_WRITE, ctx 222 source3/utils/net_registry.c TALLOC_FREE(ctx); ctx 232 source3/utils/net_registry.c TALLOC_CTX *ctx = talloc_stackframe(); ctx 246 source3/utils/net_registry.c werr = open_hive(ctx, argv[0], REG_KEY_WRITE, &hivekey, &subkeyname); ctx 262 source3/utils/net_registry.c TALLOC_FREE(ctx); ctx 273 source3/utils/net_registry.c TALLOC_CTX *ctx = talloc_stackframe(); ctx 281 source3/utils/net_registry.c werr = open_key(ctx, argv[0], REG_KEY_READ, &key); ctx 287 source3/utils/net_registry.c werr = reg_queryvalue(ctx, key, argv[1], &value); ctx 299 source3/utils/net_registry.c TALLOC_FREE(ctx); ctx 322 source3/utils/net_registry.c TALLOC_CTX *ctx = talloc_stackframe(); ctx 351 source3/utils/net_registry.c werr = open_key(ctx, argv[0], REG_KEY_WRITE, &key); ctx 367 source3/utils/net_registry.c TALLOC_FREE(ctx); ctx 376 source3/utils/net_registry.c TALLOC_CTX *ctx = talloc_stackframe(); ctx 385 source3/utils/net_registry.c werr = open_key(ctx, argv[0], REG_KEY_WRITE, &key); ctx 401 source3/utils/net_registry.c TALLOC_FREE(ctx); ctx 412 source3/utils/net_registry.c TALLOC_CTX *ctx = talloc_stackframe(); ctx 434 source3/utils/net_registry.c werr = open_key(ctx, argv[0], access_mask, &key); ctx 440 source3/utils/net_registry.c werr = reg_getkeysecurity(ctx, key, &secdesc); ctx 452 source3/utils/net_registry.c TALLOC_FREE(ctx); ctx 102 source3/utils/net_registry_util.c WERROR split_hive_key(TALLOC_CTX *ctx, const char *path, char **hivename, ctx 116 source3/utils/net_registry_util.c *hivename = talloc_string_sub(ctx, path, "/", "\\"); ctx 137 source3/utils/net_registry_util.c *subkeyname = talloc_strdup(ctx, tmp_subkeyname); ctx 38 source3/utils/net_registry_util.h WERROR split_hive_key(TALLOC_CTX *ctx, const char *path, char **hivename, ctx 967 source3/utils/net_rpc.c struct rpc_sh_ctx *ctx, ctx 976 source3/utils/net_rpc.c struct rpc_sh_ctx *ctx, ctx 985 source3/utils/net_rpc.c struct rpc_sh_ctx *ctx, ctx 991 source3/utils/net_rpc.c struct rpc_sh_ctx *ctx, ctx 1003 source3/utils/net_rpc.c d_fprintf(stderr, "usage: %s <username>\n", ctx->whoami); ctx 1026 source3/utils/net_rpc.c if (!sid_peek_check_rid(ctx->domain_sid, &sid, &rid)) { ctx 1043 source3/utils/net_rpc.c ctx->domain_sid, ctx 1058 source3/utils/net_rpc.c result = fn(c, mem_ctx, ctx, pipe_hnd, &user_pol, argc-1, argv+1); ctx 1075 source3/utils/net_rpc.c struct rpc_sh_ctx *ctx, ctx 1084 source3/utils/net_rpc.c d_fprintf(stderr, "usage: %s show <username>\n", ctx->whoami); ctx 1105 source3/utils/net_rpc.c struct rpc_sh_ctx *ctx, ctx 1109 source3/utils/net_rpc.c return rpc_sh_handle_user(c, mem_ctx, ctx, pipe_hnd, argc, argv, ctx 1114 source3/utils/net_rpc.c do { if (strequal(ctx->thiscmd, name)) { \ ctx 1119 source3/utils/net_rpc.c do { if (strequal(ctx->thiscmd, name)) { \ ctx 1126 source3/utils/net_rpc.c struct rpc_sh_ctx *ctx, ctx 1138 source3/utils/net_rpc.c ctx->whoami); ctx 1160 source3/utils/net_rpc.c d_printf("%s's %s: [%s]\n", username, ctx->thiscmd, oldval); ctx 1183 source3/utils/net_rpc.c ctx->thiscmd, oldval, argv[0]); ctx 1191 source3/utils/net_rpc.c do { if (strequal(ctx->thiscmd, name)) { \ ctx 1201 source3/utils/net_rpc.c struct rpc_sh_ctx *ctx, ctx 1205 source3/utils/net_rpc.c return rpc_sh_handle_user(c, mem_ctx, ctx, pipe_hnd, argc, argv, ctx 1211 source3/utils/net_rpc.c struct rpc_sh_ctx *ctx, ctx 1227 source3/utils/net_rpc.c ctx->whoami); ctx 1251 source3/utils/net_rpc.c d_printf("%s's %s flag: %s\n", username, ctx->thiscmd, oldval); ctx 1267 source3/utils/net_rpc.c ctx->thiscmd, oldval, argv[0]); ctx 1277 source3/utils/net_rpc.c struct rpc_sh_ctx *ctx, ctx 1281 source3/utils/net_rpc.c return rpc_sh_handle_user(c, mem_ctx, ctx, pipe_hnd, argc, argv, ctx 1287 source3/utils/net_rpc.c struct rpc_sh_ctx *ctx) ctx 1329 source3/utils/net_rpc.c struct rpc_sh_ctx *ctx) ctx 4593 source3/utils/net_rpc.c struct rpc_sh_ctx *ctx, ctx 4603 source3/utils/net_rpc.c struct rpc_sh_ctx *ctx, ctx 4613 source3/utils/net_rpc.c ctx->whoami); ctx 4636 source3/utils/net_rpc.c struct rpc_sh_ctx *ctx, ctx 4641 source3/utils/net_rpc.c d_fprintf(stderr, "usage: %s <share>\n", ctx->whoami); ctx 4650 source3/utils/net_rpc.c struct rpc_sh_ctx *ctx, ctx 4659 source3/utils/net_rpc.c d_fprintf(stderr, "usage: %s <share>\n", ctx->whoami); ctx 4683 source3/utils/net_rpc.c struct rpc_sh_ctx *ctx) ctx 26 source3/utils/net_rpc_registry.c static bool reg_hive_key(TALLOC_CTX *ctx, const char *fullname, ctx 40 source3/utils/net_rpc_registry.c *key_name = talloc_strdup(ctx, tmp_keyname); ctx 110 source3/utils/net_rpc_registry.c static NTSTATUS registry_enumkeys(TALLOC_CTX *ctx, ctx 127 source3/utils/net_rpc_registry.c if (!(mem_ctx = talloc_new(ctx))) { ctx 208 source3/utils/net_rpc_registry.c *pnames = talloc_move(ctx, &names); ctx 211 source3/utils/net_rpc_registry.c *pclasses = talloc_move(ctx, &classes); ctx 214 source3/utils/net_rpc_registry.c *pmodtimes = talloc_move(ctx, &modtimes); ctx 224 source3/utils/net_rpc_registry.c static NTSTATUS registry_enumvalues(TALLOC_CTX *ctx, ctx 241 source3/utils/net_rpc_registry.c if (!(mem_ctx = talloc_new(ctx))) { ctx 322 source3/utils/net_rpc_registry.c *pvalnames = talloc_move(ctx, &names); ctx 325 source3/utils/net_rpc_registry.c *pvalues = talloc_move(ctx, &values); ctx 92 source3/utils/net_rpc_rights.c TALLOC_CTX *ctx, ctx 105 source3/utils/net_rpc_rights.c result = rpccli_lsa_EnumPrivs(pipe_hnd, ctx, ctx 127 source3/utils/net_rpc_rights.c result = rpccli_lsa_LookupPrivDisplayName(pipe_hnd, ctx, ctx 150 source3/utils/net_rpc_rights.c TALLOC_CTX *ctx, ctx 159 source3/utils/net_rpc_rights.c result = rpccli_lsa_EnumAccountRights(pipe_hnd, ctx, ctx 185 source3/utils/net_rpc_rights.c TALLOC_CTX *ctx, ctx 193 source3/utils/net_rpc_rights.c result = rpccli_lsa_EnumAccountRights(pipe_hnd, ctx, ctx 216 source3/utils/net_rpc_rights.c TALLOC_CTX *ctx, ctx 227 source3/utils/net_rpc_rights.c result = rpccli_lsa_EnumAccounts(pipe_hnd, ctx, ctx 240 source3/utils/net_rpc_rights.c result = check_privilege_for_user(pipe_hnd, ctx, pol, ctx 253 source3/utils/net_rpc_rights.c result = sid_to_name( pipe_hnd, ctx, sid_array.sids[i].sid, name ); ctx 267 source3/utils/net_rpc_rights.c TALLOC_CTX *ctx, ctx 277 source3/utils/net_rpc_rights.c result = rpccli_lsa_EnumAccounts(pipe_hnd, ctx, ctx 291 source3/utils/net_rpc_rights.c result = sid_to_name(pipe_hnd, ctx, sid_array.sids[i].sid, name); ctx 297 source3/utils/net_rpc_rights.c result = enum_privileges_for_user(pipe_hnd, ctx, pol, ctx 661 source3/utils/net_rpc_rights.c TALLOC_CTX *mem_ctx, struct rpc_sh_ctx *ctx, ctx 665 source3/utils/net_rpc_rights.c return rpc_rights_list_internal(c, ctx->domain_sid, ctx->domain_name, ctx 666 source3/utils/net_rpc_rights.c ctx->cli, pipe_hnd, mem_ctx, ctx 672 source3/utils/net_rpc_rights.c struct rpc_sh_ctx *ctx, ctx 676 source3/utils/net_rpc_rights.c return rpc_rights_grant_internal(c, ctx->domain_sid, ctx->domain_name, ctx 677 source3/utils/net_rpc_rights.c ctx->cli, pipe_hnd, mem_ctx, ctx 683 source3/utils/net_rpc_rights.c struct rpc_sh_ctx *ctx, ctx 687 source3/utils/net_rpc_rights.c return rpc_rights_revoke_internal(c, ctx->domain_sid, ctx->domain_name, ctx 688 source3/utils/net_rpc_rights.c ctx->cli, pipe_hnd, mem_ctx, ctx 693 source3/utils/net_rpc_rights.c struct rpc_sh_ctx *ctx) ctx 114 source3/utils/net_rpc_samsync.c struct samsync_context *ctx = NULL; ctx 119 source3/utils/net_rpc_samsync.c &ctx); ctx 124 source3/utils/net_rpc_samsync.c ctx->mode = NET_SAMSYNC_MODE_DUMP; ctx 125 source3/utils/net_rpc_samsync.c ctx->cli = pipe_hnd; ctx 126 source3/utils/net_rpc_samsync.c ctx->ops = &libnet_samsync_display_ops; ctx 127 source3/utils/net_rpc_samsync.c ctx->domain_name = domain_name; ctx 129 source3/utils/net_rpc_samsync.c ctx->force_full_replication = c->opt_force_full_repl ? true : false; ctx 130 source3/utils/net_rpc_samsync.c ctx->clean_old_entries = c->opt_clean_old_entries ? true : false; ctx 132 source3/utils/net_rpc_samsync.c parse_samsync_partial_replication_objects(ctx, argc, argv, ctx 133 source3/utils/net_rpc_samsync.c &ctx->single_object_replication, ctx 134 source3/utils/net_rpc_samsync.c &ctx->objects, ctx 135 source3/utils/net_rpc_samsync.c &ctx->num_objects); ctx 137 source3/utils/net_rpc_samsync.c libnet_samsync(SAM_DATABASE_DOMAIN, ctx); ctx 139 source3/utils/net_rpc_samsync.c libnet_samsync(SAM_DATABASE_BUILTIN, ctx); ctx 141 source3/utils/net_rpc_samsync.c libnet_samsync(SAM_DATABASE_PRIVS, ctx); ctx 143 source3/utils/net_rpc_samsync.c TALLOC_FREE(ctx); ctx 183 source3/utils/net_rpc_samsync.c struct samsync_context *ctx = NULL; ctx 202 source3/utils/net_rpc_samsync.c &ctx); ctx 207 source3/utils/net_rpc_samsync.c ctx->mode = NET_SAMSYNC_MODE_FETCH_PASSDB; ctx 208 source3/utils/net_rpc_samsync.c ctx->cli = pipe_hnd; ctx 209 source3/utils/net_rpc_samsync.c ctx->ops = &libnet_samsync_passdb_ops; ctx 210 source3/utils/net_rpc_samsync.c ctx->domain_name = domain_name; ctx 212 source3/utils/net_rpc_samsync.c ctx->force_full_replication = c->opt_force_full_repl ? true : false; ctx 213 source3/utils/net_rpc_samsync.c ctx->clean_old_entries = c->opt_clean_old_entries ? true : false; ctx 215 source3/utils/net_rpc_samsync.c parse_samsync_partial_replication_objects(ctx, argc, argv, ctx 216 source3/utils/net_rpc_samsync.c &ctx->single_object_replication, ctx 217 source3/utils/net_rpc_samsync.c &ctx->objects, ctx 218 source3/utils/net_rpc_samsync.c &ctx->num_objects); ctx 221 source3/utils/net_rpc_samsync.c result = libnet_samsync(SAM_DATABASE_DOMAIN, ctx); ctx 223 source3/utils/net_rpc_samsync.c if (!NT_STATUS_IS_OK(result) && ctx->error_message) { ctx 224 source3/utils/net_rpc_samsync.c d_fprintf(stderr, "%s\n", ctx->error_message); ctx 228 source3/utils/net_rpc_samsync.c if (ctx->result_message) { ctx 229 source3/utils/net_rpc_samsync.c d_fprintf(stdout, "%s\n", ctx->result_message); ctx 233 source3/utils/net_rpc_samsync.c ctx->domain_sid = sid_dup_talloc(mem_ctx, &global_sid_Builtin); ctx 234 source3/utils/net_rpc_samsync.c ctx->domain_sid_str = sid_string_talloc(mem_ctx, ctx->domain_sid); ctx 235 source3/utils/net_rpc_samsync.c result = libnet_samsync(SAM_DATABASE_BUILTIN, ctx); ctx 237 source3/utils/net_rpc_samsync.c if (!NT_STATUS_IS_OK(result) && ctx->error_message) { ctx 238 source3/utils/net_rpc_samsync.c d_fprintf(stderr, "%s\n", ctx->error_message); ctx 242 source3/utils/net_rpc_samsync.c if (ctx->result_message) { ctx 243 source3/utils/net_rpc_samsync.c d_fprintf(stdout, "%s\n", ctx->result_message); ctx 247 source3/utils/net_rpc_samsync.c TALLOC_FREE(ctx); ctx 274 source3/utils/net_rpc_samsync.c struct samsync_context *ctx = NULL; ctx 278 source3/utils/net_rpc_samsync.c &ctx); ctx 284 source3/utils/net_rpc_samsync.c ctx->output_filename = argv[0]; ctx 287 source3/utils/net_rpc_samsync.c parse_samsync_partial_replication_objects(ctx, argc-1, argv+1, ctx 288 source3/utils/net_rpc_samsync.c &ctx->single_object_replication, ctx 289 source3/utils/net_rpc_samsync.c &ctx->objects, ctx 290 source3/utils/net_rpc_samsync.c &ctx->num_objects); ctx 293 source3/utils/net_rpc_samsync.c ctx->mode = NET_SAMSYNC_MODE_FETCH_LDIF; ctx 294 source3/utils/net_rpc_samsync.c ctx->cli = pipe_hnd; ctx 295 source3/utils/net_rpc_samsync.c ctx->ops = &libnet_samsync_ldif_ops; ctx 296 source3/utils/net_rpc_samsync.c ctx->domain_name = domain_name; ctx 298 source3/utils/net_rpc_samsync.c ctx->force_full_replication = c->opt_force_full_repl ? true : false; ctx 299 source3/utils/net_rpc_samsync.c ctx->clean_old_entries = c->opt_clean_old_entries ? true : false; ctx 302 source3/utils/net_rpc_samsync.c status = libnet_samsync(SAM_DATABASE_DOMAIN, ctx); ctx 304 source3/utils/net_rpc_samsync.c if (!NT_STATUS_IS_OK(status) && ctx->error_message) { ctx 305 source3/utils/net_rpc_samsync.c d_fprintf(stderr, "%s\n", ctx->error_message); ctx 309 source3/utils/net_rpc_samsync.c if (ctx->result_message) { ctx 310 source3/utils/net_rpc_samsync.c d_fprintf(stdout, "%s\n", ctx->result_message); ctx 314 source3/utils/net_rpc_samsync.c ctx->domain_sid = sid_dup_talloc(mem_ctx, &global_sid_Builtin); ctx 315 source3/utils/net_rpc_samsync.c ctx->domain_sid_str = sid_string_talloc(mem_ctx, ctx->domain_sid); ctx 316 source3/utils/net_rpc_samsync.c status = libnet_samsync(SAM_DATABASE_BUILTIN, ctx); ctx 318 source3/utils/net_rpc_samsync.c if (!NT_STATUS_IS_OK(status) && ctx->error_message) { ctx 319 source3/utils/net_rpc_samsync.c d_fprintf(stderr, "%s\n", ctx->error_message); ctx 323 source3/utils/net_rpc_samsync.c if (ctx->result_message) { ctx 324 source3/utils/net_rpc_samsync.c d_fprintf(stdout, "%s\n", ctx->result_message); ctx 328 source3/utils/net_rpc_samsync.c TALLOC_FREE(ctx); ctx 356 source3/utils/net_rpc_samsync.c struct samsync_context *ctx = NULL; ctx 360 source3/utils/net_rpc_samsync.c &ctx); ctx 369 source3/utils/net_rpc_samsync.c ctx->output_filename = argv[0]; ctx 372 source3/utils/net_rpc_samsync.c parse_samsync_partial_replication_objects(ctx, argc-1, argv+1, ctx 373 source3/utils/net_rpc_samsync.c &ctx->single_object_replication, ctx 374 source3/utils/net_rpc_samsync.c &ctx->objects, ctx 375 source3/utils/net_rpc_samsync.c &ctx->num_objects); ctx 378 source3/utils/net_rpc_samsync.c ctx->mode = NET_SAMSYNC_MODE_FETCH_KEYTAB; ctx 379 source3/utils/net_rpc_samsync.c ctx->cli = pipe_hnd; ctx 380 source3/utils/net_rpc_samsync.c ctx->ops = &libnet_samsync_keytab_ops; ctx 381 source3/utils/net_rpc_samsync.c ctx->domain_name = domain_name; ctx 382 source3/utils/net_rpc_samsync.c ctx->username = c->opt_user_name; ctx 383 source3/utils/net_rpc_samsync.c ctx->password = c->opt_password; ctx 385 source3/utils/net_rpc_samsync.c ctx->force_full_replication = c->opt_force_full_repl ? true : false; ctx 386 source3/utils/net_rpc_samsync.c ctx->clean_old_entries = c->opt_clean_old_entries ? true : false; ctx 389 source3/utils/net_rpc_samsync.c status = libnet_samsync(SAM_DATABASE_DOMAIN, ctx); ctx 391 source3/utils/net_rpc_samsync.c if (!NT_STATUS_IS_OK(status) && ctx->error_message) { ctx 392 source3/utils/net_rpc_samsync.c d_fprintf(stderr, "%s\n", ctx->error_message); ctx 396 source3/utils/net_rpc_samsync.c if (ctx->result_message) { ctx 397 source3/utils/net_rpc_samsync.c d_fprintf(stdout, "%s\n", ctx->result_message); ctx 401 source3/utils/net_rpc_samsync.c TALLOC_FREE(ctx); ctx 416 source3/utils/net_rpc_samsync.c struct dssync_context *ctx = NULL; ctx 419 source3/utils/net_rpc_samsync.c &ctx); ctx 424 source3/utils/net_rpc_samsync.c ctx->force_full_replication = c->opt_force_full_repl ? true : false; ctx 425 source3/utils/net_rpc_samsync.c ctx->clean_old_entries = c->opt_clean_old_entries ? true : false; ctx 431 source3/utils/net_rpc_samsync.c ctx->output_filename = argv[0]; ctx 435 source3/utils/net_rpc_samsync.c ctx->object_dns = &argv[1]; ctx 436 source3/utils/net_rpc_samsync.c ctx->object_count = argc - 1; ctx 437 source3/utils/net_rpc_samsync.c ctx->single_object_replication = c->opt_single_obj_repl ? true ctx 441 source3/utils/net_rpc_samsync.c ctx->cli = pipe_hnd; ctx 442 source3/utils/net_rpc_samsync.c ctx->domain_name = domain_name; ctx 443 source3/utils/net_rpc_samsync.c ctx->ops = &libnet_dssync_keytab_ops; ctx 445 source3/utils/net_rpc_samsync.c status = libnet_dssync(mem_ctx, ctx); ctx 446 source3/utils/net_rpc_samsync.c if (!NT_STATUS_IS_OK(status) && ctx->error_message) { ctx 447 source3/utils/net_rpc_samsync.c d_fprintf(stderr, "%s\n", ctx->error_message); ctx 451 source3/utils/net_rpc_samsync.c if (ctx->result_message) { ctx 452 source3/utils/net_rpc_samsync.c d_fprintf(stdout, "%s\n", ctx->result_message); ctx 456 source3/utils/net_rpc_samsync.c TALLOC_FREE(ctx); ctx 30 source3/utils/net_rpc_sh_acct.c struct rpc_sh_ctx *ctx, ctx 35 source3/utils/net_rpc_sh_acct.c struct rpc_sh_ctx *ctx, ctx 66 source3/utils/net_rpc_sh_acct.c ctx->domain_sid, ctx 105 source3/utils/net_rpc_sh_acct.c store = fn(c, mem_ctx, ctx, &info1->info1, &info3->info3, ctx 150 source3/utils/net_rpc_sh_acct.c TALLOC_CTX *mem_ctx, struct rpc_sh_ctx *ctx, ctx 157 source3/utils/net_rpc_sh_acct.c d_fprintf(stderr, "usage: %s\n", ctx->whoami); ctx 212 source3/utils/net_rpc_sh_acct.c struct rpc_sh_ctx *ctx, ctx 215 source3/utils/net_rpc_sh_acct.c return rpc_sh_acct_do(c, mem_ctx, ctx, pipe_hnd, argc, argv, ctx 220 source3/utils/net_rpc_sh_acct.c TALLOC_CTX *mem_ctx, struct rpc_sh_ctx *ctx, ctx 227 source3/utils/net_rpc_sh_acct.c d_fprintf(stderr, "usage: %s <count>\n", ctx->whoami); ctx 240 source3/utils/net_rpc_sh_acct.c struct rpc_sh_ctx *ctx, ctx 244 source3/utils/net_rpc_sh_acct.c return rpc_sh_acct_do(c, mem_ctx, ctx, pipe_hnd, argc, argv, ctx 250 source3/utils/net_rpc_sh_acct.c struct rpc_sh_ctx *ctx, ctx 257 source3/utils/net_rpc_sh_acct.c d_fprintf(stderr, "usage: %s <count>\n", ctx->whoami); ctx 270 source3/utils/net_rpc_sh_acct.c struct rpc_sh_ctx *ctx, ctx 274 source3/utils/net_rpc_sh_acct.c return rpc_sh_acct_do(c, mem_ctx, ctx, pipe_hnd, argc, argv, ctx 280 source3/utils/net_rpc_sh_acct.c struct rpc_sh_ctx *ctx, ctx 287 source3/utils/net_rpc_sh_acct.c d_fprintf(stderr, "usage: %s <count>\n", ctx->whoami); ctx 300 source3/utils/net_rpc_sh_acct.c struct rpc_sh_ctx *ctx, ctx 304 source3/utils/net_rpc_sh_acct.c return rpc_sh_acct_do(c, mem_ctx, ctx, pipe_hnd, argc, argv, ctx 310 source3/utils/net_rpc_sh_acct.c struct rpc_sh_ctx *ctx, ctx 317 source3/utils/net_rpc_sh_acct.c d_fprintf(stderr, "usage: %s <count>\n", ctx->whoami); ctx 330 source3/utils/net_rpc_sh_acct.c struct rpc_sh_ctx *ctx, ctx 334 source3/utils/net_rpc_sh_acct.c return rpc_sh_acct_do(c, mem_ctx, ctx, pipe_hnd, argc, argv, ctx 340 source3/utils/net_rpc_sh_acct.c struct rpc_sh_ctx *ctx, ctx 347 source3/utils/net_rpc_sh_acct.c d_fprintf(stderr, "usage: %s <count>\n", ctx->whoami); ctx 360 source3/utils/net_rpc_sh_acct.c struct rpc_sh_ctx *ctx, ctx 364 source3/utils/net_rpc_sh_acct.c return rpc_sh_acct_do(c, mem_ctx, ctx, pipe_hnd, argc, argv, ctx 370 source3/utils/net_rpc_sh_acct.c struct rpc_sh_ctx *ctx, ctx 377 source3/utils/net_rpc_sh_acct.c d_fprintf(stderr, "usage: %s <count>\n", ctx->whoami); ctx 390 source3/utils/net_rpc_sh_acct.c struct rpc_sh_ctx *ctx, ctx 394 source3/utils/net_rpc_sh_acct.c return rpc_sh_acct_do(c, mem_ctx, ctx, pipe_hnd, argc, argv, ctx 400 source3/utils/net_rpc_sh_acct.c struct rpc_sh_ctx *ctx, ctx 407 source3/utils/net_rpc_sh_acct.c d_fprintf(stderr, "usage: %s <count>\n", ctx->whoami); ctx 420 source3/utils/net_rpc_sh_acct.c struct rpc_sh_ctx *ctx, ctx 424 source3/utils/net_rpc_sh_acct.c return rpc_sh_acct_do(c, mem_ctx, ctx, pipe_hnd, argc, argv, ctx 429 source3/utils/net_rpc_sh_acct.c struct rpc_sh_ctx *ctx) ctx 25 source3/utils/net_rpc_shell.c TALLOC_CTX *mem_ctx, struct rpc_sh_ctx *ctx, ctx 29 source3/utils/net_rpc_shell.c return rpc_info_internals(c, ctx->domain_sid, ctx->domain_name, ctx 30 source3/utils/net_rpc_shell.c ctx->cli, pipe_hnd, mem_ctx, ctx 68 source3/utils/net_rpc_shell.c struct rpc_sh_ctx *ctx, struct rpc_sh_cmd *cmd, ctx 75 source3/utils/net_rpc_shell.c mem_ctx = talloc_new(ctx); ctx 81 source3/utils/net_rpc_shell.c status = cli_rpc_pipe_open_noauth(ctx->cli, cmd->interface, ctx 89 source3/utils/net_rpc_shell.c status = cmd->fn(c, mem_ctx, ctx, pipe_hnd, argc, argv); ctx 99 source3/utils/net_rpc_shell.c struct rpc_sh_ctx *ctx, ctx 110 source3/utils/net_rpc_shell.c if (ctx == this_ctx) { ctx 127 source3/utils/net_rpc_shell.c for (cmd = ctx->cmds; cmd->name != NULL; cmd++) { ctx 128 source3/utils/net_rpc_shell.c if (ctx != this_ctx) { ctx 129 source3/utils/net_rpc_shell.c d_printf("%s ", ctx->whoami); ctx 136 source3/utils/net_rpc_shell.c for (cmd = ctx->cmds; cmd->name != NULL; cmd++) { ctx 148 source3/utils/net_rpc_shell.c new_ctx = TALLOC_P(ctx, struct rpc_sh_ctx); ctx 153 source3/utils/net_rpc_shell.c new_ctx->cli = ctx->cli; ctx 155 source3/utils/net_rpc_shell.c ctx->whoami, cmd->name); ctx 159 source3/utils/net_rpc_shell.c new_ctx->cmds = cmd->sub(c, new_ctx, ctx); ctx 164 source3/utils/net_rpc_shell.c new_ctx->parent = ctx; ctx 165 source3/utils/net_rpc_shell.c new_ctx->domain_name = ctx->domain_name; ctx 166 source3/utils/net_rpc_shell.c new_ctx->domain_sid = ctx->domain_sid; ctx 212 source3/utils/net_rpc_shell.c struct rpc_sh_ctx *ctx; ctx 229 source3/utils/net_rpc_shell.c ctx = TALLOC_P(NULL, struct rpc_sh_ctx); ctx 230 source3/utils/net_rpc_shell.c if (ctx == NULL) { ctx 235 source3/utils/net_rpc_shell.c status = net_make_ipc_connection(c, 0, &(ctx->cli)); ctx 242 source3/utils/net_rpc_shell.c ctx->cmds = sh_cmds; ctx 243 source3/utils/net_rpc_shell.c ctx->whoami = "net rpc"; ctx 244 source3/utils/net_rpc_shell.c ctx->parent = NULL; ctx 246 source3/utils/net_rpc_shell.c status = net_get_remote_domain_sid(ctx->cli, ctx, &ctx->domain_sid, ctx 247 source3/utils/net_rpc_shell.c &ctx->domain_name); ctx 252 source3/utils/net_rpc_shell.c d_printf("Talking to domain %s (%s)\n", ctx->domain_name, ctx 253 source3/utils/net_rpc_shell.c sid_string_tos(ctx->domain_sid)); ctx 255 source3/utils/net_rpc_shell.c this_ctx = ctx; ctx 293 source3/utils/net_rpc_shell.c cli_shutdown(ctx->cli); ctx 295 source3/utils/net_rpc_shell.c TALLOC_FREE(ctx); ctx 131 source3/utils/net_usershare.c static char *get_basepath(TALLOC_CTX *ctx) ctx 133 source3/utils/net_usershare.c char *basepath = talloc_strdup(ctx, lp_usershare_path()); ctx 204 source3/utils/net_usershare.c static int get_share_list(TALLOC_CTX *ctx, const char *wcard, bool only_ours) ctx 210 source3/utils/net_usershare.c char *basepath = get_basepath(ctx); ctx 238 source3/utils/net_usershare.c path = talloc_asprintf(ctx, ctx 268 source3/utils/net_usershare.c fl = TALLOC_P(ctx, struct file_list); ctx 273 source3/utils/net_usershare.c fl->pathname = talloc_strdup(ctx, n); ctx 289 source3/utils/net_usershare.c TALLOC_CTX *ctx; ctx 319 source3/utils/net_usershare.c TALLOC_CTX *ctx = pi->ctx; ctx 336 source3/utils/net_usershare.c basepath = get_basepath(ctx); ctx 382 source3/utils/net_usershare.c us_err = parse_usershare_file(ctx, &sbuf, fl->pathname, -1, lines, numlines, ctx 398 source3/utils/net_usershare.c acl_str = talloc_strdup(ctx, "usershare_acl="); ctx 408 source3/utils/net_usershare.c ntstatus = net_lookup_name_from_sid(c, ctx, ctx 485 source3/utils/net_usershare.c TALLOC_CTX *ctx; ctx 508 source3/utils/net_usershare.c ctx = talloc_init("share_info"); ctx 509 source3/utils/net_usershare.c ret = get_share_list(ctx, wcard, only_ours); ctx 514 source3/utils/net_usershare.c pi.ctx = ctx; ctx 519 source3/utils/net_usershare.c talloc_destroy(ctx); ctx 532 source3/utils/net_usershare.c TALLOC_CTX *ctx = talloc_tos(); ctx 533 source3/utils/net_usershare.c char *basepath = get_basepath(ctx); ctx 562 source3/utils/net_usershare.c path = talloc_asprintf(ctx, ctx 595 source3/utils/net_usershare.c TALLOC_CTX *ctx = talloc_stackframe(); ctx 650 source3/utils/net_usershare.c TALLOC_FREE(ctx); ctx 663 source3/utils/net_usershare.c TALLOC_FREE(ctx); ctx 674 source3/utils/net_usershare.c TALLOC_FREE(ctx); ctx 683 source3/utils/net_usershare.c TALLOC_FREE(ctx); ctx 692 source3/utils/net_usershare.c TALLOC_FREE(ctx); ctx 698 source3/utils/net_usershare.c full_path = get_basepath(ctx); ctx 700 source3/utils/net_usershare.c TALLOC_FREE(ctx); ctx 704 source3/utils/net_usershare.c full_path_tmp = talloc_asprintf(ctx, ctx 708 source3/utils/net_usershare.c TALLOC_FREE(ctx); ctx 717 source3/utils/net_usershare.c TALLOC_FREE(ctx); ctx 726 source3/utils/net_usershare.c TALLOC_FREE(ctx); ctx 736 source3/utils/net_usershare.c TALLOC_FREE(ctx); ctx 744 source3/utils/net_usershare.c TALLOC_FREE(ctx); ctx 758 source3/utils/net_usershare.c TALLOC_FREE(ctx); ctx 768 source3/utils/net_usershare.c us_acl = talloc_strdup(ctx, ""); ctx 770 source3/utils/net_usershare.c TALLOC_FREE(ctx); ctx 788 source3/utils/net_usershare.c TALLOC_FREE(ctx); ctx 804 source3/utils/net_usershare.c TALLOC_FREE(ctx); ctx 812 source3/utils/net_usershare.c TALLOC_FREE(ctx); ctx 818 source3/utils/net_usershare.c if ((name = talloc_strndup(ctx, pacl, pcolon - pacl)) == NULL) { ctx 820 source3/utils/net_usershare.c TALLOC_FREE(ctx); ctx 826 source3/utils/net_usershare.c NTSTATUS ntstatus = net_lookup_sid_from_name(c, ctx, name, &sid); ctx 835 source3/utils/net_usershare.c TALLOC_FREE(ctx); ctx 856 source3/utils/net_usershare.c TALLOC_FREE(ctx); ctx 867 source3/utils/net_usershare.c TALLOC_FREE(ctx); ctx 876 source3/utils/net_usershare.c TALLOC_FREE(ctx); ctx 885 source3/utils/net_usershare.c TALLOC_FREE(ctx); ctx 893 source3/utils/net_usershare.c TALLOC_FREE(ctx); ctx 901 source3/utils/net_usershare.c TALLOC_FREE(ctx); ctx 907 source3/utils/net_usershare.c file_img = talloc_strdup(ctx, "#VERSION 2\npath="); ctx 917 source3/utils/net_usershare.c TALLOC_FREE(ctx); ctx 927 source3/utils/net_usershare.c TALLOC_FREE(ctx); ctx 943 source3/utils/net_usershare.c TALLOC_FREE(ctx); ctx 970 source3/utils/net_usershare.c TALLOC_CTX *ctx; ctx 993 source3/utils/net_usershare.c ctx = talloc_init("share_list"); ctx 994 source3/utils/net_usershare.c ret = get_share_list(ctx, wcard, only_ours); ctx 999 source3/utils/net_usershare.c pi.ctx = ctx; ctx 1004 source3/utils/net_usershare.c talloc_destroy(ctx); ctx 57 source3/utils/netlookup.c TALLOC_CTX *ctx, NTSTATUS *perr) ctx 77 source3/utils/netlookup.c cs = TALLOC_P(ctx, struct con_struct); ctx 133 source3/utils/netlookup.c nt_status = rpccli_lsa_open_policy(cs->lsapipe, ctx, true, ctx 157 source3/utils/netlookup.c TALLOC_CTX *ctx, ctx 171 source3/utils/netlookup.c csp = create_cs(c, ctx, &nt_status); ctx 176 source3/utils/netlookup.c nt_status = rpccli_lsa_lookup_sids(csp->lsapipe, ctx, ctx 199 source3/utils/netlookup.c NTSTATUS net_lookup_sid_from_name(struct net_context *c, TALLOC_CTX *ctx, ctx 207 source3/utils/netlookup.c csp = create_cs(c, ctx, &nt_status); ctx 212 source3/utils/netlookup.c nt_status = rpccli_lsa_lookup_names(csp->lsapipe, ctx, ctx 1065 source3/utils/ntlm_auth.c TALLOC_CTX *ctx = talloc_tos(); ctx 1071 source3/utils/ntlm_auth.c myname_lower = talloc_strdup(ctx, global_myname()); ctx 1077 source3/utils/ntlm_auth.c principal = talloc_asprintf(ctx, "%s$@%s", myname_lower, lp_realm()); ctx 1124 source3/utils/ntlm_auth.c TALLOC_CTX *ctx = talloc_tos(); ctx 1321 source3/utils/ntlm_auth.c reply_argument = talloc_asprintf(ctx, "%s\\%s", domain, user); ctx 1326 source3/utils/ntlm_auth.c reply_argument = talloc_strdup(ctx, "*"); ctx 1330 source3/utils/ntlm_auth.c reply_argument = talloc_strdup(ctx, nt_errstr(status)); ctx 30 source3/utils/rpccheck.c TALLOC_CTX *ctx; ctx 40 source3/utils/rpccheck.c ctx=talloc_init("main"); ctx 41 source3/utils/rpccheck.c if (!ctx) exit(1); ctx 43 source3/utils/rpccheck.c if (!prs_init(&ps, 1600, 4, ctx, MARSHALL)) ctx 27 source3/utils/sharesec.c static TALLOC_CTX *ctx; ctx 537 source3/utils/sharesec.c if ( !(ctx = talloc_stackframe()) ) { ctx 633 source3/utils/sharesec.c retval = change_share_sec(ctx, sharename, the_acl, mode); ctx 635 source3/utils/sharesec.c talloc_destroy(ctx); ctx 549 source3/utils/smbcacls.c static SEC_DESC *sec_desc_parse(TALLOC_CTX *ctx, struct cli_state *cli, char *str) ctx 559 source3/utils/smbcacls.c while (next_token_talloc(ctx, &p, &tok, "\t,\r\n")) { ctx 609 source3/utils/smbcacls.c ret = make_sec_desc(ctx,revision, SEC_DESC_SELF_RELATIVE, owner_sid, grp_sid, ctx 140 source3/utils/smbcquotas.c static int parse_quota_set(TALLOC_CTX *ctx, ctx 166 source3/utils/smbcquotas.c *pp_username_str = talloc_strdup(ctx, p); ctx 81 source3/utils/smbtree.c TALLOC_CTX *ctx = talloc_tos(); ctx 88 source3/utils/smbtree.c master_workgroup = talloc_strdup(ctx, lp_workgroup()); ctx 103 source3/web/statuspage.c static const char *tstring(TALLOC_CTX *ctx, time_t t) ctx 106 source3/web/statuspage.c buf = talloc_strdup(ctx, time_to_asc(t)); ctx 110 source3/web/statuspage.c buf = talloc_all_string_sub(ctx, ctx 249 source3/web/statuspage.c TALLOC_CTX *ctx = talloc_stackframe(); ctx 454 source3/web/statuspage.c TALLOC_FREE(ctx); ctx 80 source3/web/swat.c static const char *fix_quotes(TALLOC_CTX *ctx, const char *str) ctx 98 source3/web/swat.c newstring = TALLOC_ARRAY(ctx, char, newstring_len); ctx 199 source3/web/swat.c static const char *get_parm_translated(TALLOC_CTX *ctx, ctx 205 source3/web/swat.c output = talloc_asprintf(ctx, ctx 210 source3/web/swat.c output = talloc_asprintf(ctx, ctx 234 source3/web/swat.c TALLOC_CTX *ctx = talloc_stackframe(); ctx 240 source3/web/swat.c printf("<tr><td>%s</td><td>", get_parm_translated(ctx, ctx 290 source3/web/swat.c make_parm_name(parm->label), fix_quotes(ctx, utf8_s1)); ctx 349 source3/web/swat.c TALLOC_FREE(ctx); ctx 444 source3/web/swat.c TALLOC_CTX *ctx = talloc_stackframe(); ctx 448 source3/web/swat.c fprintf(f, "# Date: %s\n\n", current_timestring(ctx, False)); ctx 452 source3/web/swat.c TALLOC_FREE(ctx); ctx 1365 source3/web/swat.c const char *lang_msg_rotate(TALLOC_CTX *ctx, const char *msgid) ctx 1375 source3/web/swat.c ret = talloc_strdup(ctx, msgstr); ctx 68 source3/web/swat_proto.h const char *lang_msg_rotate(TALLOC_CTX *ctx, const char *msgid); ctx 533 source3/winbindd/idmap.c static NTSTATUS idmap_alloc_init(struct idmap_alloc_context **ctx) ctx 542 source3/winbindd/idmap.c *ctx = idmap_alloc_ctx; ctx 596 source3/winbindd/idmap.c *ctx = idmap_alloc_ctx; ctx 610 source3/winbindd/idmap.c struct idmap_alloc_context *ctx; ctx 613 source3/winbindd/idmap.c if (!NT_STATUS_IS_OK(ret = idmap_alloc_init(&ctx))) { ctx 618 source3/winbindd/idmap.c return ctx->methods->allocate_id(id); ctx 623 source3/winbindd/idmap.c struct idmap_alloc_context *ctx; ctx 626 source3/winbindd/idmap.c if (!NT_STATUS_IS_OK(ret = idmap_alloc_init(&ctx))) { ctx 631 source3/winbindd/idmap.c return ctx->methods->allocate_id(id); ctx 636 source3/winbindd/idmap.c struct idmap_alloc_context *ctx; ctx 639 source3/winbindd/idmap.c if (!NT_STATUS_IS_OK(ret = idmap_alloc_init(&ctx))) { ctx 644 source3/winbindd/idmap.c return ctx->methods->set_id_hwm(id); ctx 649 source3/winbindd/idmap.c struct idmap_alloc_context *ctx; ctx 652 source3/winbindd/idmap.c if (!NT_STATUS_IS_OK(ret = idmap_alloc_init(&ctx))) { ctx 657 source3/winbindd/idmap.c return ctx->methods->set_id_hwm(id); ctx 65 source3/winbindd/idmap_ad.c struct idmap_ad_context *ctx; ctx 73 source3/winbindd/idmap_ad.c ctx = talloc_get_type(dom->private_data, struct idmap_ad_context); ctx 75 source3/winbindd/idmap_ad.c if (ctx->ads != NULL) { ctx 80 source3/winbindd/idmap_ad.c ads = ctx->ads; ctx 96 source3/winbindd/idmap_ad.c ctx->ads = NULL; ctx 97 source3/winbindd/idmap_ad.c TALLOC_FREE( ctx->ad_schema ); ctx 150 source3/winbindd/idmap_ad.c ctx->ads = ads; ctx 161 source3/winbindd/idmap_ad.c struct idmap_ad_context * ctx; ctx 168 source3/winbindd/idmap_ad.c ctx = talloc_get_type(dom->private_data, struct idmap_ad_context); ctx 173 source3/winbindd/idmap_ad.c if ( ctx->ad_schema ) { ctx 179 source3/winbindd/idmap_ad.c if ( (ctx->ad_map_type == WB_POSIX_MAP_SFU) || ctx 180 source3/winbindd/idmap_ad.c (ctx->ad_map_type == WB_POSIX_MAP_SFU20) || ctx 181 source3/winbindd/idmap_ad.c (ctx->ad_map_type == WB_POSIX_MAP_RFC2307) ) ctx 183 source3/winbindd/idmap_ad.c status = ads_check_posix_schema_mapping(NULL, ctx->ads, ctx->ad_map_type, &ctx->ad_schema); ctx 198 source3/winbindd/idmap_ad.c struct idmap_ad_context *ctx; ctx 203 source3/winbindd/idmap_ad.c if ( (ctx = TALLOC_ZERO_P(dom, struct idmap_ad_context)) == NULL ) { ctx 208 source3/winbindd/idmap_ad.c if ( (config_option = talloc_asprintf(ctx, "idmap config %s", dom->name)) == NULL ) { ctx 210 source3/winbindd/idmap_ad.c talloc_free(ctx); ctx 217 source3/winbindd/idmap_ad.c if ((sscanf(range, "%u - %u", &ctx->filter_low_id, &ctx->filter_high_id) != 2) || ctx 218 source3/winbindd/idmap_ad.c (ctx->filter_low_id > ctx->filter_high_id)) { ctx 220 source3/winbindd/idmap_ad.c ctx->filter_low_id = 0; ctx 221 source3/winbindd/idmap_ad.c ctx->filter_high_id = 0; ctx 226 source3/winbindd/idmap_ad.c ctx->ad_map_type = WB_POSIX_MAP_RFC2307; ctx 232 source3/winbindd/idmap_ad.c ctx->ad_map_type = WB_POSIX_MAP_SFU; ctx 234 source3/winbindd/idmap_ad.c ctx->ad_map_type = WB_POSIX_MAP_SFU20; ctx 236 source3/winbindd/idmap_ad.c ctx->ad_map_type = WB_POSIX_MAP_RFC2307; ctx 242 source3/winbindd/idmap_ad.c dom->private_data = ctx; ctx 290 source3/winbindd/idmap_ad.c struct idmap_ad_context *ctx; ctx 317 source3/winbindd/idmap_ad.c ctx = talloc_get_type(dom->private_data, struct idmap_ad_context); ctx 319 source3/winbindd/idmap_ad.c if ( (memctx = talloc_new(ctx)) == NULL ) { ctx 332 source3/winbindd/idmap_ad.c attrs[2] = ctx->ad_schema->posix_uidnumber_attr; ctx 333 source3/winbindd/idmap_ad.c attrs[3] = ctx->ad_schema->posix_gidnumber_attr; ctx 350 source3/winbindd/idmap_ad.c ctx->ad_schema->posix_uidnumber_attr, ctx 364 source3/winbindd/idmap_ad.c ctx->ad_schema->posix_gidnumber_attr, ctx 390 source3/winbindd/idmap_ad.c rc = ads_search_retry(ctx->ads, &res, filter, attrs); ctx 397 source3/winbindd/idmap_ad.c if ( (count = ads_count_replies(ctx->ads, res)) == 0 ) { ctx 410 source3/winbindd/idmap_ad.c entry = ads_first_entry(ctx->ads, entry); ctx 412 source3/winbindd/idmap_ad.c entry = ads_next_entry(ctx->ads, entry); ctx 421 source3/winbindd/idmap_ad.c if (!ads_pull_sid(ctx->ads, entry, "objectSid", &sid)) { ctx 427 source3/winbindd/idmap_ad.c if (!ads_pull_uint32(ctx->ads, entry, "sAMAccountType", &atype)) { ctx 447 source3/winbindd/idmap_ad.c if (!ads_pull_uint32(ctx->ads, entry, (type==ID_TYPE_UID) ? ctx 448 source3/winbindd/idmap_ad.c ctx->ad_schema->posix_uidnumber_attr : ctx 449 source3/winbindd/idmap_ad.c ctx->ad_schema->posix_gidnumber_attr, ctx 457 source3/winbindd/idmap_ad.c (ctx->filter_low_id && (id < ctx->filter_low_id)) || ctx 458 source3/winbindd/idmap_ad.c (ctx->filter_high_id && (id > ctx->filter_high_id))) { ctx 460 source3/winbindd/idmap_ad.c id, ctx->filter_low_id, ctx->filter_high_id)); ctx 481 source3/winbindd/idmap_ad.c ads_msgfree(ctx->ads, res); ctx 508 source3/winbindd/idmap_ad.c struct idmap_ad_context *ctx; ctx 534 source3/winbindd/idmap_ad.c ctx = talloc_get_type(dom->private_data, struct idmap_ad_context); ctx 536 source3/winbindd/idmap_ad.c if ( (memctx = talloc_new(ctx)) == NULL ) { ctx 549 source3/winbindd/idmap_ad.c if (ctx->ad_schema == NULL) { ctx 555 source3/winbindd/idmap_ad.c attrs[2] = ctx->ad_schema->posix_uidnumber_attr; ctx 556 source3/winbindd/idmap_ad.c attrs[3] = ctx->ad_schema->posix_gidnumber_attr; ctx 583 source3/winbindd/idmap_ad.c rc = ads_search_retry(ctx->ads, &res, filter, attrs); ctx 590 source3/winbindd/idmap_ad.c if ( (count = ads_count_replies(ctx->ads, res)) == 0 ) { ctx 603 source3/winbindd/idmap_ad.c entry = ads_first_entry(ctx->ads, entry); ctx 605 source3/winbindd/idmap_ad.c entry = ads_next_entry(ctx->ads, entry); ctx 614 source3/winbindd/idmap_ad.c if (!ads_pull_sid(ctx->ads, entry, "objectSid", &sid)) { ctx 626 source3/winbindd/idmap_ad.c if (!ads_pull_uint32(ctx->ads, entry, "sAMAccountType", &atype)) { ctx 646 source3/winbindd/idmap_ad.c if (!ads_pull_uint32(ctx->ads, entry, (type==ID_TYPE_UID) ? ctx 647 source3/winbindd/idmap_ad.c ctx->ad_schema->posix_uidnumber_attr : ctx 648 source3/winbindd/idmap_ad.c ctx->ad_schema->posix_gidnumber_attr, ctx 655 source3/winbindd/idmap_ad.c (ctx->filter_low_id && (id < ctx->filter_low_id)) || ctx 656 source3/winbindd/idmap_ad.c (ctx->filter_high_id && (id > ctx->filter_high_id))) { ctx 658 source3/winbindd/idmap_ad.c id, ctx->filter_low_id, ctx->filter_high_id)); ctx 673 source3/winbindd/idmap_ad.c ads_msgfree(ctx->ads, res); ctx 698 source3/winbindd/idmap_ad.c struct idmap_ad_context * ctx; ctx 700 source3/winbindd/idmap_ad.c ctx = talloc_get_type(dom->private_data, struct idmap_ad_context); ctx 702 source3/winbindd/idmap_ad.c if (ctx->ads != NULL) { ctx 704 source3/winbindd/idmap_ad.c ctx->ads->is_mine = True; ctx 705 source3/winbindd/idmap_ad.c ads_destroy( &ctx->ads ); ctx 706 source3/winbindd/idmap_ad.c ctx->ads = NULL; ctx 709 source3/winbindd/idmap_ad.c TALLOC_FREE( ctx->ad_schema ); ctx 751 source3/winbindd/idmap_ad.c struct idmap_ad_context *ctx; ctx 773 source3/winbindd/idmap_ad.c ctx = talloc_get_type(dom->private_data, ctx 776 source3/winbindd/idmap_ad.c ctx = TALLOC_ZERO_P(dom, struct idmap_ad_context); ctx 777 source3/winbindd/idmap_ad.c if (ctx == NULL) { ctx 781 source3/winbindd/idmap_ad.c ctx->ad_map_type = WB_POSIX_MAP_RFC2307; ctx 782 source3/winbindd/idmap_ad.c dom->private_data = ctx; ctx 785 source3/winbindd/idmap_ad.c if ((ctx->ad_map_type != WB_POSIX_MAP_UNKNOWN) && ctx 786 source3/winbindd/idmap_ad.c (ctx->ad_map_type != new_ad_map_type)) ctx 791 source3/winbindd/idmap_ad.c ad_map_type_string(ctx->ad_map_type), ctx 796 source3/winbindd/idmap_ad.c ctx->ad_map_type = new_ad_map_type; ctx 841 source3/winbindd/idmap_ad.c struct idmap_ad_context *ctx; ctx 852 source3/winbindd/idmap_ad.c ctx = talloc_get_type(dom->private_data, struct idmap_ad_context); ctx 859 source3/winbindd/idmap_ad.c if (!ctx->ad_schema) { ctx 874 source3/winbindd/idmap_ad.c *homedir = ads_pull_string( ads, mem_ctx, msg, ctx->ad_schema->posix_homedir_attr ); ctx 875 source3/winbindd/idmap_ad.c *shell = ads_pull_string( ads, mem_ctx, msg, ctx->ad_schema->posix_shell_attr ); ctx 876 source3/winbindd/idmap_ad.c *gecos = ads_pull_string( ads, mem_ctx, msg, ctx->ad_schema->posix_gecos_attr ); ctx 879 source3/winbindd/idmap_ad.c if ( !ads_pull_uint32(ads, msg, ctx->ad_schema->posix_gidnumber_attr, gid ) ) ctx 892 source3/winbindd/idmap_ad.c attrs[0] = ctx->ad_schema->posix_homedir_attr; ctx 893 source3/winbindd/idmap_ad.c attrs[1] = ctx->ad_schema->posix_shell_attr; ctx 894 source3/winbindd/idmap_ad.c attrs[2] = ctx->ad_schema->posix_gecos_attr; ctx 895 source3/winbindd/idmap_ad.c attrs[3] = ctx->ad_schema->posix_gidnumber_attr; ctx 906 source3/winbindd/idmap_ad.c ads_status = ads_search_retry(ctx->ads, &msg_internal, filter, attrs); ctx 912 source3/winbindd/idmap_ad.c *homedir = ads_pull_string(ctx->ads, mem_ctx, msg_internal, ctx->ad_schema->posix_homedir_attr); ctx 913 source3/winbindd/idmap_ad.c *shell = ads_pull_string(ctx->ads, mem_ctx, msg_internal, ctx->ad_schema->posix_shell_attr); ctx 914 source3/winbindd/idmap_ad.c *gecos = ads_pull_string(ctx->ads, mem_ctx, msg_internal, ctx->ad_schema->posix_gecos_attr); ctx 917 source3/winbindd/idmap_ad.c if (!ads_pull_uint32(ctx->ads, msg_internal, ctx->ad_schema->posix_gidnumber_attr, gid)) ctx 925 source3/winbindd/idmap_ad.c ads_msgfree(ctx->ads, msg_internal); ctx 946 source3/winbindd/idmap_ad.c struct idmap_ad_context *ctx = NULL; ctx 963 source3/winbindd/idmap_ad.c ctx = talloc_get_type(dom->private_data, struct idmap_ad_context); ctx 970 source3/winbindd/idmap_ad.c if (!ctx->ad_schema) { ctx 975 source3/winbindd/idmap_ad.c attrs[0] = ctx->ad_schema->posix_uid_attr; ctx 985 source3/winbindd/idmap_ad.c ads_status = ads_search_retry(ctx->ads, &msg, filter, attrs); ctx 991 source3/winbindd/idmap_ad.c *alias = ads_pull_string(ctx->ads, mem_ctx, msg, ctx->ad_schema->posix_uid_attr); ctx 1004 source3/winbindd/idmap_ad.c ads_msgfree(ctx->ads, msg); ctx 1026 source3/winbindd/idmap_ad.c struct idmap_ad_context *ctx = NULL; ctx 1043 source3/winbindd/idmap_ad.c ctx = talloc_get_type(dom->private_data, struct idmap_ad_context); ctx 1050 source3/winbindd/idmap_ad.c if (!ctx->ad_schema) { ctx 1057 source3/winbindd/idmap_ad.c ctx->ad_schema->posix_uid_attr, ctx 1064 source3/winbindd/idmap_ad.c ads_status = ads_search_retry(ctx->ads, &msg, filter, attrs); ctx 1070 source3/winbindd/idmap_ad.c username = ads_pull_string(ctx->ads, mem_ctx, msg, ctx 1091 source3/winbindd/idmap_ad.c ads_msgfree(ctx->ads, msg); ctx 318 source3/winbindd/idmap_adex/idmap_adex.c TALLOC_CTX * ctx, ctx 335 source3/winbindd/idmap_adex/idmap_adex.c return cell->provider->get_nss_info(sid, ctx, homedir, ctx 99 source3/winbindd/idmap_adex/idmap_adex.h TALLOC_CTX * ctx, ctx 661 source3/winbindd/idmap_adex/provider_unified.c TALLOC_CTX *ctx = talloc_stackframe(); ctx 673 source3/winbindd/idmap_adex/provider_unified.c oc_list = ads_pull_strings(ads, ctx, msg, ctx 695 source3/winbindd/idmap_adex/provider_unified.c oc_list = ads_pull_strings(ads, ctx, msg, ctx 721 source3/winbindd/idmap_adex/provider_unified.c talloc_destroy(ctx); ctx 842 source3/winbindd/idmap_adex/provider_unified.c TALLOC_CTX *ctx, ctx 859 source3/winbindd/idmap_adex/provider_unified.c *string = ads_pull_string(ads, ctx, msg, attrib); ctx 873 source3/winbindd/idmap_adex/provider_unified.c *string = talloc_strdup(ctx, s); ctx 896 source3/winbindd/idmap_adex/provider_unified.c TALLOC_CTX *ctx, ctx 904 source3/winbindd/idmap_adex/provider_unified.c nt_status = get_object_string(c, msg, ctx, ADEX_ATTR_HOMEDIR, homedir); ctx 907 source3/winbindd/idmap_adex/provider_unified.c nt_status = get_object_string(c, msg, ctx, ADEX_ATTR_SHELL, shell); ctx 910 source3/winbindd/idmap_adex/provider_unified.c nt_status = get_object_string(c, msg, ctx, ADEX_ATTR_GECOS, gecos); ctx 926 source3/winbindd/idmap_adex/provider_unified.c TALLOC_CTX *ctx, ctx 952 source3/winbindd/idmap_adex/provider_unified.c nt_status = get_object_string(c, msg, ctx, attr, alias); ctx 1022 source3/winbindd/idmap_adex/provider_unified.c TALLOC_CTX * ctx, ctx 1047 source3/winbindd/idmap_adex/provider_unified.c nt_status = pull_nss_info(cell, msg, ctx, homedir, shell, gecos, ctx 1060 source3/winbindd/idmap_adex/provider_unified.c static NTSTATUS _ccp_map_to_alias(TALLOC_CTX *ctx, ctx 1087 source3/winbindd/idmap_adex/provider_unified.c nt_status = pull_alias(cell, msg, ctx, alias); ctx 276 source3/winbindd/idmap_hash/idmap_hash.c TALLOC_CTX *ctx, ctx 294 source3/winbindd/idmap_hash/idmap_hash.c *homedir = talloc_strdup(ctx, lp_template_homedir()); ctx 297 source3/winbindd/idmap_hash/idmap_hash.c *shell = talloc_strdup(ctx, lp_template_shell()); ctx 52 source3/winbindd/idmap_hash/idmap_hash.h NTSTATUS mapfile_lookup_key(TALLOC_CTX *ctx, ctx 56 source3/winbindd/idmap_hash/idmap_hash.h NTSTATUS mapfile_lookup_value(TALLOC_CTX *ctx, ctx 120 source3/winbindd/idmap_hash/mapfile.c NTSTATUS mapfile_lookup_key(TALLOC_CTX *ctx, const char *value, char **key) ctx 134 source3/winbindd/idmap_hash/mapfile.c *key = talloc_strdup(ctx, r_key); ctx 150 source3/winbindd/idmap_hash/mapfile.c NTSTATUS mapfile_lookup_value(TALLOC_CTX *ctx, const char *key, char **value) ctx 164 source3/winbindd/idmap_hash/mapfile.c *value = talloc_strdup(ctx, r_value); ctx 158 source3/winbindd/idmap_ldap.c TALLOC_CTX *ctx; ctx 170 source3/winbindd/idmap_ldap.c ctx = talloc_new(idmap_alloc_ldap); ctx 171 source3/winbindd/idmap_ldap.c if ( ! ctx) { ctx 176 source3/winbindd/idmap_ldap.c filter = talloc_asprintf(ctx, "(objectclass=%s)", LDAP_OBJ_IDPOOL); ctx 179 source3/winbindd/idmap_ldap.c attr_list = get_attr_list(ctx, idpool_attr_list); ctx 210 source3/winbindd/idmap_ldap.c uid_str = talloc_asprintf(ctx, "%lu", ctx 212 source3/winbindd/idmap_ldap.c gid_str = talloc_asprintf(ctx, "%lu", ctx 238 source3/winbindd/idmap_ldap.c talloc_free(ctx); ctx 358 source3/winbindd/idmap_ldap.c TALLOC_CTX *ctx; ctx 381 source3/winbindd/idmap_ldap.c ctx = talloc_new(idmap_alloc_ldap); ctx 382 source3/winbindd/idmap_ldap.c if ( ! ctx) { ctx 405 source3/winbindd/idmap_ldap.c filter = talloc_asprintf(ctx, "(objectClass=%s)", LDAP_OBJ_IDPOOL); ctx 408 source3/winbindd/idmap_ldap.c attr_list = get_attr_list(ctx, idpool_attr_list); ctx 423 source3/winbindd/idmap_ldap.c talloc_autofree_ldapmsg(ctx, result); ctx 435 source3/winbindd/idmap_ldap.c dn = smbldap_talloc_dn(ctx, ctx 443 source3/winbindd/idmap_ldap.c entry, type, ctx))) { ctx 479 source3/winbindd/idmap_ldap.c new_id_str = talloc_asprintf(ctx, "%lu", (unsigned long)xid->id + 1); ctx 510 source3/winbindd/idmap_ldap.c talloc_free(ctx); ctx 617 source3/winbindd/idmap_ldap.c TALLOC_CTX *ctx; ctx 639 source3/winbindd/idmap_ldap.c ctx = talloc_new(idmap_alloc_ldap); ctx 640 source3/winbindd/idmap_ldap.c if ( ! ctx) { ctx 663 source3/winbindd/idmap_ldap.c filter = talloc_asprintf(ctx, "(objectClass=%s)", LDAP_OBJ_IDPOOL); ctx 666 source3/winbindd/idmap_ldap.c attr_list = get_attr_list(ctx, idpool_attr_list); ctx 679 source3/winbindd/idmap_ldap.c talloc_autofree_ldapmsg(ctx, result); ctx 691 source3/winbindd/idmap_ldap.c dn = smbldap_talloc_dn(ctx, ctx 698 source3/winbindd/idmap_ldap.c new_id_str = talloc_asprintf(ctx, "%lu", (unsigned long)xid->id); ctx 725 source3/winbindd/idmap_ldap.c talloc_free(ctx); ctx 749 source3/winbindd/idmap_ldap.c static int idmap_ldap_close_destructor(struct idmap_ldap_context *ctx) ctx 751 source3/winbindd/idmap_ldap.c smbldap_free_struct(&ctx->smbldap_state); ctx 766 source3/winbindd/idmap_ldap.c struct idmap_ldap_context *ctx = NULL; ctx 775 source3/winbindd/idmap_ldap.c ctx = TALLOC_ZERO_P(dom, struct idmap_ldap_context); ctx 776 source3/winbindd/idmap_ldap.c if ( ! ctx) { ctx 787 source3/winbindd/idmap_ldap.c ctx->filter_low_id = 0; ctx 788 source3/winbindd/idmap_ldap.c ctx->filter_high_id = 0; ctx 791 source3/winbindd/idmap_ldap.c ctx->filter_low_id = low_uid; ctx 792 source3/winbindd/idmap_ldap.c ctx->filter_high_id = high_uid; ctx 802 source3/winbindd/idmap_ldap.c ctx->filter_low_id = MAX(ctx->filter_low_id, ctx 804 source3/winbindd/idmap_ldap.c ctx->filter_high_id = MIN(ctx->filter_high_id, ctx 813 source3/winbindd/idmap_ldap.c config_option = talloc_asprintf(ctx, "idmap config %s", dom->name); ctx 823 source3/winbindd/idmap_ldap.c if ((sscanf(range, "%u - %u", &ctx->filter_low_id, ctx 824 source3/winbindd/idmap_ldap.c &ctx->filter_high_id) != 2)) ctx 827 source3/winbindd/idmap_ldap.c ctx->filter_low_id = 0; ctx 828 source3/winbindd/idmap_ldap.c ctx->filter_high_id = 0; ctx 833 source3/winbindd/idmap_ldap.c if (ctx->filter_low_id > ctx->filter_high_id) { ctx 835 source3/winbindd/idmap_ldap.c ctx->filter_low_id, ctx->filter_high_id)); ctx 836 source3/winbindd/idmap_ldap.c ctx->filter_low_id = 0; ctx 837 source3/winbindd/idmap_ldap.c ctx->filter_high_id = 0; ctx 842 source3/winbindd/idmap_ldap.c ctx->url = talloc_strdup(ctx, params); ctx 852 source3/winbindd/idmap_ldap.c ctx->url = talloc_strdup(ctx, tmp); ctx 854 source3/winbindd/idmap_ldap.c CHECK_ALLOC_DONE(ctx->url); ctx 866 source3/winbindd/idmap_ldap.c ctx->suffix = talloc_strdup(ctx, tmp); ctx 867 source3/winbindd/idmap_ldap.c CHECK_ALLOC_DONE(ctx->suffix); ctx 869 source3/winbindd/idmap_ldap.c ret = smbldap_init(ctx, winbind_event_context(), ctx->url, ctx 870 source3/winbindd/idmap_ldap.c &ctx->smbldap_state); ctx 872 source3/winbindd/idmap_ldap.c DEBUG(1, ("ERROR: smbldap_init (%s) failed!\n", ctx->url)); ctx 876 source3/winbindd/idmap_ldap.c ret = get_credentials( ctx, ctx->smbldap_state, config_option, ctx 877 source3/winbindd/idmap_ldap.c dom, &ctx->user_dn ); ctx 887 source3/winbindd/idmap_ldap.c talloc_set_destructor(ctx, idmap_ldap_close_destructor); ctx 889 source3/winbindd/idmap_ldap.c dom->private_data = ctx; ctx 896 source3/winbindd/idmap_ldap.c talloc_free(ctx); ctx 932 source3/winbindd/idmap_ldap.c struct idmap_ldap_context *ctx; ctx 951 source3/winbindd/idmap_ldap.c ctx = talloc_get_type(dom->private_data, struct idmap_ldap_context); ctx 953 source3/winbindd/idmap_ldap.c memctx = talloc_new(ctx); ctx 1006 source3/winbindd/idmap_ldap.c rc = smbldap_search(ctx->smbldap_state, ctx->suffix, LDAP_SCOPE_SUBTREE, ctx 1015 source3/winbindd/idmap_ldap.c count = ldap_count_entries(ctx->smbldap_state->ldap_struct, result); ctx 1029 source3/winbindd/idmap_ldap.c entry = ldap_first_entry(ctx->smbldap_state->ldap_struct, ctx 1032 source3/winbindd/idmap_ldap.c entry = ldap_next_entry(ctx->smbldap_state->ldap_struct, ctx 1043 source3/winbindd/idmap_ldap.c ctx->smbldap_state->ldap_struct, ctx 1056 source3/winbindd/idmap_ldap.c ctx->smbldap_state->ldap_struct, ctx 1061 source3/winbindd/idmap_ldap.c ctx->smbldap_state->ldap_struct, ctx 1073 source3/winbindd/idmap_ldap.c (ctx->filter_low_id && (id < ctx->filter_low_id)) || ctx 1074 source3/winbindd/idmap_ldap.c (ctx->filter_high_id && (id > ctx->filter_high_id))) { ctx 1077 source3/winbindd/idmap_ldap.c ctx->filter_low_id, ctx->filter_high_id)); ctx 1165 source3/winbindd/idmap_ldap.c struct idmap_ldap_context *ctx; ctx 1183 source3/winbindd/idmap_ldap.c ctx = talloc_get_type(dom->private_data, struct idmap_ldap_context); ctx 1185 source3/winbindd/idmap_ldap.c memctx = talloc_new(ctx); ctx 1239 source3/winbindd/idmap_ldap.c rc = smbldap_search(ctx->smbldap_state, ctx->suffix, LDAP_SCOPE_SUBTREE, ctx 1249 source3/winbindd/idmap_ldap.c count = ldap_count_entries(ctx->smbldap_state->ldap_struct, result); ctx 1264 source3/winbindd/idmap_ldap.c entry = ldap_first_entry(ctx->smbldap_state->ldap_struct, ctx 1267 source3/winbindd/idmap_ldap.c entry = ldap_next_entry(ctx->smbldap_state->ldap_struct, ctx 1278 source3/winbindd/idmap_ldap.c ctx->smbldap_state->ldap_struct, ctx 1305 source3/winbindd/idmap_ldap.c ctx->smbldap_state->ldap_struct, ctx 1310 source3/winbindd/idmap_ldap.c ctx->smbldap_state->ldap_struct, ctx 1322 source3/winbindd/idmap_ldap.c (ctx->filter_low_id && (id < ctx->filter_low_id)) || ctx 1323 source3/winbindd/idmap_ldap.c (ctx->filter_high_id && (id > ctx->filter_high_id))) { ctx 1326 source3/winbindd/idmap_ldap.c ctx->filter_low_id, ctx->filter_high_id)); ctx 1386 source3/winbindd/idmap_ldap.c struct idmap_ldap_context *ctx; ctx 1400 source3/winbindd/idmap_ldap.c ctx = talloc_get_type(dom->private_data, struct idmap_ldap_context); ctx 1417 source3/winbindd/idmap_ldap.c memctx = talloc_new(ctx); ctx 1432 source3/winbindd/idmap_ldap.c ctx->suffix); ctx 1438 source3/winbindd/idmap_ldap.c smbldap_make_mod(ctx->smbldap_state->ldap_struct, ctx 1441 source3/winbindd/idmap_ldap.c smbldap_make_mod(ctx->smbldap_state->ldap_struct, entry, &mods, ctx 1457 source3/winbindd/idmap_ldap.c rc = smbldap_add(ctx->smbldap_state, dn, mods); ctx 1462 source3/winbindd/idmap_ldap.c ldap_get_option(ctx->smbldap_state->ldap_struct, ctx 1492 source3/winbindd/idmap_ldap.c struct idmap_ldap_context *ctx; ctx 1495 source3/winbindd/idmap_ldap.c ctx = talloc_get_type(dom->private_data, ctx 1498 source3/winbindd/idmap_ldap.c talloc_free(ctx); ctx 44 source3/winbindd/idmap_nss.c TALLOC_CTX *ctx; ctx 52 source3/winbindd/idmap_nss.c ctx = talloc_new(dom); ctx 53 source3/winbindd/idmap_nss.c if ( ! ctx) { ctx 125 source3/winbindd/idmap_nss.c talloc_free(ctx); ctx 135 source3/winbindd/idmap_nss.c TALLOC_CTX *ctx; ctx 143 source3/winbindd/idmap_nss.c ctx = talloc_new(dom); ctx 144 source3/winbindd/idmap_nss.c if ( ! ctx) { ctx 159 source3/winbindd/idmap_nss.c ret = winbind_lookup_sid(ctx, ids[i]->sid, &dom_name, &name, &type); ctx 203 source3/winbindd/idmap_nss.c talloc_free(ctx); ctx 43 source3/winbindd/idmap_rid.c struct idmap_rid_context *ctx; ctx 51 source3/winbindd/idmap_rid.c if ( (ctx = TALLOC_ZERO_P(dom, struct idmap_rid_context)) == NULL ) { ctx 56 source3/winbindd/idmap_rid.c config_option = talloc_asprintf(ctx, "idmap config %s", dom->name); ctx 65 source3/winbindd/idmap_rid.c (sscanf(range, "%u - %u", &ctx->low_id, &ctx->high_id) != 2) || ctx 66 source3/winbindd/idmap_rid.c (ctx->low_id > ctx->high_id)) ctx 68 source3/winbindd/idmap_rid.c ctx->low_id = 0; ctx 69 source3/winbindd/idmap_rid.c ctx->high_id = 0; ctx 73 source3/winbindd/idmap_rid.c if (!ctx->low_id && !ctx->high_id) { ctx 75 source3/winbindd/idmap_rid.c ctx->low_id = low_uid; ctx 76 source3/winbindd/idmap_rid.c ctx->high_id = high_uid; ctx 80 source3/winbindd/idmap_rid.c if ((ctx->low_id != low_gid) || ctx 81 source3/winbindd/idmap_rid.c (ctx->high_id != high_uid)) { ctx 89 source3/winbindd/idmap_rid.c if (!ctx->low_id || !ctx->high_id) { ctx 95 source3/winbindd/idmap_rid.c ctx->base_rid = lp_parm_int(-1, config_option, "base_rid", 0); ctx 96 source3/winbindd/idmap_rid.c ctx->domain_name = talloc_strdup( ctx, dom->name ); ctx 98 source3/winbindd/idmap_rid.c dom->private_data = ctx; ctx 104 source3/winbindd/idmap_rid.c talloc_free(ctx); ctx 108 source3/winbindd/idmap_rid.c static NTSTATUS idmap_rid_id_to_sid(TALLOC_CTX *memctx, struct idmap_rid_context *ctx, struct id_map *map) ctx 113 source3/winbindd/idmap_rid.c if ((map->xid.id < ctx->low_id) || (map->xid.id > ctx->high_id)) { ctx 115 source3/winbindd/idmap_rid.c map->xid.id, ctx->low_id, ctx->high_id)); ctx 119 source3/winbindd/idmap_rid.c if ( (domain = find_domain_from_name_noinit(ctx->domain_name)) == NULL ) { ctx 123 source3/winbindd/idmap_rid.c sid_compose(map->sid, &domain->sid, map->xid.id - ctx->low_id + ctx->base_rid); ctx 138 source3/winbindd/idmap_rid.c static NTSTATUS idmap_rid_sid_to_id(TALLOC_CTX *memctx, struct idmap_rid_context *ctx, struct id_map *map) ctx 143 source3/winbindd/idmap_rid.c map->xid.id = rid - ctx->base_rid + ctx->low_id; ctx 147 source3/winbindd/idmap_rid.c if ((map->xid.id < ctx->low_id) || (map->xid.id > ctx->high_id)) { ctx 149 source3/winbindd/idmap_rid.c map->xid.id, ctx->low_id, ctx->high_id)); ctx 170 source3/winbindd/idmap_rid.c TALLOC_CTX *ctx; ctx 181 source3/winbindd/idmap_rid.c ctx = talloc_new(dom); ctx 182 source3/winbindd/idmap_rid.c if ( ! ctx) { ctx 189 source3/winbindd/idmap_rid.c ret = idmap_rid_id_to_sid(ctx, ridctx, ids[i]); ctx 198 source3/winbindd/idmap_rid.c talloc_free(ctx); ctx 209 source3/winbindd/idmap_rid.c TALLOC_CTX *ctx; ctx 220 source3/winbindd/idmap_rid.c ctx = talloc_new(dom); ctx 221 source3/winbindd/idmap_rid.c if ( ! ctx) { ctx 228 source3/winbindd/idmap_rid.c ret = idmap_rid_sid_to_id(ctx, ridctx, ids[i]); ctx 238 source3/winbindd/idmap_rid.c talloc_free(ctx); ctx 246 source3/winbindd/idmap_tdb.c TALLOC_CTX *ctx; ctx 261 source3/winbindd/idmap_tdb.c ctx = talloc_stackframe(); ctx 274 source3/winbindd/idmap_tdb.c db = db_open(ctx, tdbfile, 0, TDB_DEFAULT, O_RDWR | O_CREAT, 0644); ctx 315 source3/winbindd/idmap_tdb.c talloc_free(ctx); ctx 595 source3/winbindd/idmap_tdb.c struct idmap_tdb_context *ctx; ctx 597 source3/winbindd/idmap_tdb.c ctx = talloc(dom, struct idmap_tdb_context); ctx 598 source3/winbindd/idmap_tdb.c if ( ! ctx) { ctx 609 source3/winbindd/idmap_tdb.c ctx->filter_low_id = 0; ctx 610 source3/winbindd/idmap_tdb.c ctx->filter_high_id = 0; ctx 613 source3/winbindd/idmap_tdb.c ctx->filter_low_id = low_uid; ctx 614 source3/winbindd/idmap_tdb.c ctx->filter_high_id = high_uid; ctx 624 source3/winbindd/idmap_tdb.c ctx->filter_low_id = MAX(ctx->filter_low_id, ctx 626 source3/winbindd/idmap_tdb.c ctx->filter_high_id = MIN(ctx->filter_high_id, ctx 636 source3/winbindd/idmap_tdb.c config_option = talloc_asprintf(ctx, "idmap config %s", dom->name); ctx 645 source3/winbindd/idmap_tdb.c (sscanf(range, "%u - %u", &ctx->filter_low_id, &ctx->filter_high_id) != 2)) ctx 647 source3/winbindd/idmap_tdb.c ctx->filter_low_id = 0; ctx 648 source3/winbindd/idmap_tdb.c ctx->filter_high_id = 0; ctx 654 source3/winbindd/idmap_tdb.c if (ctx->filter_low_id > ctx->filter_high_id) { ctx 655 source3/winbindd/idmap_tdb.c ctx->filter_low_id = 0; ctx 656 source3/winbindd/idmap_tdb.c ctx->filter_high_id = 0; ctx 660 source3/winbindd/idmap_tdb.c "'%s'\n", ctx->filter_low_id, ctx->filter_high_id, dom->name)); ctx 662 source3/winbindd/idmap_tdb.c ret = idmap_tdb_open_db(ctx, false, &ctx->db); ctx 667 source3/winbindd/idmap_tdb.c dom->private_data = ctx; ctx 672 source3/winbindd/idmap_tdb.c talloc_free(ctx); ctx 680 source3/winbindd/idmap_tdb.c static NTSTATUS idmap_tdb_id_to_sid(struct idmap_tdb_context *ctx, struct id_map *map) ctx 686 source3/winbindd/idmap_tdb.c if (!ctx || !map) { ctx 691 source3/winbindd/idmap_tdb.c if ((ctx->filter_low_id && (map->xid.id < ctx->filter_low_id)) || ctx 692 source3/winbindd/idmap_tdb.c (ctx->filter_high_id && (map->xid.id > ctx->filter_high_id))) { ctx 694 source3/winbindd/idmap_tdb.c map->xid.id, ctx->filter_low_id, ctx->filter_high_id)); ctx 701 source3/winbindd/idmap_tdb.c keystr = talloc_asprintf(ctx, "UID %lu", (unsigned long)map->xid.id); ctx 705 source3/winbindd/idmap_tdb.c keystr = talloc_asprintf(ctx, "GID %lu", (unsigned long)map->xid.id); ctx 725 source3/winbindd/idmap_tdb.c data = dbwrap_fetch_bystring(ctx->db, NULL, keystr); ctx 753 source3/winbindd/idmap_tdb.c static NTSTATUS idmap_tdb_sid_to_id(struct idmap_tdb_context *ctx, struct id_map *map) ctx 771 source3/winbindd/idmap_tdb.c data = dbwrap_fetch_bystring(ctx->db, tmp_ctx, keystr); ctx 797 source3/winbindd/idmap_tdb.c if ((ctx->filter_low_id && (map->xid.id < ctx->filter_low_id)) || ctx 798 source3/winbindd/idmap_tdb.c (ctx->filter_high_id && (map->xid.id > ctx->filter_high_id))) { ctx 800 source3/winbindd/idmap_tdb.c map->xid.id, ctx->filter_low_id, ctx->filter_high_id)); ctx 815 source3/winbindd/idmap_tdb.c struct idmap_tdb_context *ctx; ctx 824 source3/winbindd/idmap_tdb.c ctx = talloc_get_type(dom->private_data, struct idmap_tdb_context); ctx 827 source3/winbindd/idmap_tdb.c ret = idmap_tdb_id_to_sid(ctx, ids[i]); ctx 858 source3/winbindd/idmap_tdb.c struct idmap_tdb_context *ctx; ctx 867 source3/winbindd/idmap_tdb.c ctx = talloc_get_type(dom->private_data, struct idmap_tdb_context); ctx 870 source3/winbindd/idmap_tdb.c ret = idmap_tdb_sid_to_id(ctx, ids[i]); ctx 902 source3/winbindd/idmap_tdb.c struct idmap_tdb_context *ctx; ctx 916 source3/winbindd/idmap_tdb.c ctx = talloc_get_type(dom->private_data, struct idmap_tdb_context); ctx 921 source3/winbindd/idmap_tdb.c kidstr = talloc_asprintf(ctx, "UID %lu", ctx 926 source3/winbindd/idmap_tdb.c kidstr = talloc_asprintf(ctx, "GID %lu", ctx 942 source3/winbindd/idmap_tdb.c ctx, "%s", sid_to_fstring(tmp, map->sid))) == NULL) { ctx 952 source3/winbindd/idmap_tdb.c if (ctx->db->transaction_start(ctx->db) != 0) { ctx 959 source3/winbindd/idmap_tdb.c ret = dbwrap_store(ctx->db, ksid, kid, TDB_REPLACE); ctx 961 source3/winbindd/idmap_tdb.c ctx->db->transaction_cancel(ctx->db); ctx 966 source3/winbindd/idmap_tdb.c ret = dbwrap_store(ctx->db, kid, ksid, TDB_REPLACE); ctx 968 source3/winbindd/idmap_tdb.c ctx->db->transaction_cancel(ctx->db); ctx 974 source3/winbindd/idmap_tdb.c if (ctx->db->transaction_commit(ctx->db) != 0) { ctx 997 source3/winbindd/idmap_tdb.c struct idmap_tdb_context *ctx; ctx 1012 source3/winbindd/idmap_tdb.c ctx = talloc_get_type(dom->private_data, struct idmap_tdb_context); ctx 1017 source3/winbindd/idmap_tdb.c kidstr = talloc_asprintf(ctx, "UID %lu", ctx 1022 source3/winbindd/idmap_tdb.c kidstr = talloc_asprintf(ctx, "GID %lu", ctx 1038 source3/winbindd/idmap_tdb.c ctx, "%s", sid_to_fstring(tmp, map->sid))) == NULL) { ctx 1048 source3/winbindd/idmap_tdb.c if (ctx->db->transaction_start(ctx->db) != 0) { ctx 1055 source3/winbindd/idmap_tdb.c data = dbwrap_fetch(ctx->db, NULL, ksid); ctx 1057 source3/winbindd/idmap_tdb.c ctx->db->transaction_cancel(ctx->db); ctx 1066 source3/winbindd/idmap_tdb.c ctx->db->transaction_cancel(ctx->db); ctx 1079 source3/winbindd/idmap_tdb.c ret = dbwrap_delete(ctx->db, ksid); ctx 1086 source3/winbindd/idmap_tdb.c ret = dbwrap_delete(ctx->db, kid); ctx 1092 source3/winbindd/idmap_tdb.c if (ctx->db->transaction_commit(ctx->db) != 0) { ctx 1114 source3/winbindd/idmap_tdb.c struct idmap_tdb_context *ctx; ctx 1117 source3/winbindd/idmap_tdb.c ctx = talloc_get_type(dom->private_data, struct idmap_tdb_context); ctx 1119 source3/winbindd/idmap_tdb.c TALLOC_FREE(ctx->db); ctx 1192 source3/winbindd/idmap_tdb.c struct idmap_tdb_context *ctx; ctx 1196 source3/winbindd/idmap_tdb.c ctx = talloc_get_type(dom->private_data, struct idmap_tdb_context); ctx 1198 source3/winbindd/idmap_tdb.c data = TALLOC_ZERO_P(ctx, struct dump_data); ctx 1207 source3/winbindd/idmap_tdb.c ctx->db->traverse_read(ctx->db, idmap_tdb_dump_one_entry, data); ctx 359 source3/winbindd/idmap_tdb2.c struct idmap_tdb2_context *ctx; ctx 365 source3/winbindd/idmap_tdb2.c ctx = talloc(dom, struct idmap_tdb2_context); ctx 366 source3/winbindd/idmap_tdb2.c if ( ! ctx) { ctx 377 source3/winbindd/idmap_tdb2.c ctx->filter_low_id = 0; ctx 378 source3/winbindd/idmap_tdb2.c ctx->filter_high_id = 0; ctx 381 source3/winbindd/idmap_tdb2.c ctx->filter_low_id = low_uid; ctx 382 source3/winbindd/idmap_tdb2.c ctx->filter_high_id = high_uid; ctx 392 source3/winbindd/idmap_tdb2.c ctx->filter_low_id = MAX(ctx->filter_low_id, ctx 394 source3/winbindd/idmap_tdb2.c ctx->filter_high_id = MIN(ctx->filter_high_id, ctx 403 source3/winbindd/idmap_tdb2.c config_option = talloc_asprintf(ctx, "idmap config %s", dom->name); ctx 412 source3/winbindd/idmap_tdb2.c (sscanf(range, "%u - %u", &ctx->filter_low_id, &ctx->filter_high_id) != 2)) ctx 414 source3/winbindd/idmap_tdb2.c ctx->filter_low_id = 0; ctx 415 source3/winbindd/idmap_tdb2.c ctx->filter_high_id = 0; ctx 421 source3/winbindd/idmap_tdb2.c if (ctx->filter_low_id > ctx->filter_high_id) { ctx 422 source3/winbindd/idmap_tdb2.c ctx->filter_low_id = 0; ctx 423 source3/winbindd/idmap_tdb2.c ctx->filter_high_id = 0; ctx 426 source3/winbindd/idmap_tdb2.c dom->private_data = ctx; ctx 431 source3/winbindd/idmap_tdb2.c talloc_free(ctx); ctx 451 source3/winbindd/idmap_tdb2.c static NTSTATUS idmap_tdb2_script(struct idmap_tdb2_context *ctx, struct id_map *map, ctx 460 source3/winbindd/idmap_tdb2.c cmd = talloc_asprintf(ctx, "%s ", idmap_tdb2_state.idmap_script); ctx 508 source3/winbindd/idmap_tdb2.c static NTSTATUS idmap_tdb2_id_to_sid(struct idmap_tdb2_context *ctx, struct id_map *map) ctx 518 source3/winbindd/idmap_tdb2.c if (!ctx || !map) { ctx 523 source3/winbindd/idmap_tdb2.c if ((ctx->filter_low_id && (map->xid.id < ctx->filter_low_id)) || ctx 524 source3/winbindd/idmap_tdb2.c (ctx->filter_high_id && (map->xid.id > ctx->filter_high_id))) { ctx 526 source3/winbindd/idmap_tdb2.c map->xid.id, ctx->filter_low_id, ctx->filter_high_id)); ctx 533 source3/winbindd/idmap_tdb2.c keystr = talloc_asprintf(ctx, "UID %lu", (unsigned long)map->xid.id); ctx 537 source3/winbindd/idmap_tdb2.c keystr = talloc_asprintf(ctx, "GID %lu", (unsigned long)map->xid.id); ctx 568 source3/winbindd/idmap_tdb2.c ret = idmap_tdb2_script(ctx, map, "IDTOSID %s", keystr); ctx 606 source3/winbindd/idmap_tdb2.c static NTSTATUS idmap_tdb2_sid_to_id(struct idmap_tdb2_context *ctx, struct id_map *map) ctx 638 source3/winbindd/idmap_tdb2.c ret = idmap_tdb2_script(ctx, map, "SIDTOID %s", keystr); ctx 674 source3/winbindd/idmap_tdb2.c if ((ctx->filter_low_id && (map->xid.id < ctx->filter_low_id)) || ctx 675 source3/winbindd/idmap_tdb2.c (ctx->filter_high_id && (map->xid.id > ctx->filter_high_id))) { ctx 677 source3/winbindd/idmap_tdb2.c map->xid.id, ctx->filter_low_id, ctx->filter_high_id)); ctx 691 source3/winbindd/idmap_tdb2.c struct idmap_tdb2_context *ctx; ctx 700 source3/winbindd/idmap_tdb2.c ctx = talloc_get_type(dom->private_data, struct idmap_tdb2_context); ctx 703 source3/winbindd/idmap_tdb2.c ret = idmap_tdb2_id_to_sid(ctx, ids[i]); ctx 733 source3/winbindd/idmap_tdb2.c struct idmap_tdb2_context *ctx; ctx 742 source3/winbindd/idmap_tdb2.c ctx = talloc_get_type(dom->private_data, struct idmap_tdb2_context); ctx 745 source3/winbindd/idmap_tdb2.c ret = idmap_tdb2_sid_to_id(ctx, ids[i]); ctx 776 source3/winbindd/idmap_tdb2.c struct idmap_tdb2_context *ctx; ctx 791 source3/winbindd/idmap_tdb2.c ctx = talloc_get_type(dom->private_data, struct idmap_tdb2_context); ctx 796 source3/winbindd/idmap_tdb2.c kidstr = talloc_asprintf(ctx, "UID %lu", (unsigned long)map->xid.id); ctx 800 source3/winbindd/idmap_tdb2.c kidstr = talloc_asprintf(ctx, "GID %lu", (unsigned long)map->xid.id); ctx 814 source3/winbindd/idmap_tdb2.c if (!(ksidstr = sid_string_talloc(ctx, map->sid))) { ctx 303 source3/winbindd/nss_info.c TALLOC_CTX *ctx, ctx 322 source3/winbindd/nss_info.c return m->get_nss_info( p, user_sid, ctx, ads, msg, ctx 37 source3/winbindd/nss_info_template.c TALLOC_CTX *ctx, ctx 50 source3/winbindd/nss_info_template.c *homedir = talloc_strdup( ctx, lp_template_homedir() ); ctx 51 source3/winbindd/nss_info_template.c *shell = talloc_strdup( ctx, lp_template_shell() ); ctx 38 source3/winbindd/winbindd.c static struct event_context *ctx; ctx 40 source3/winbindd/winbindd.c if (!ctx && !(ctx = event_context_init(NULL))) { ctx 43 source3/winbindd/winbindd.c return ctx; ctx 48 source3/winbindd/winbindd.c static struct messaging_context *ctx; ctx 50 source3/winbindd/winbindd.c if (ctx == NULL) { ctx 51 source3/winbindd/winbindd.c ctx = messaging_init(NULL, server_id_self(), ctx 54 source3/winbindd/winbindd.c if (ctx == NULL) { ctx 57 source3/winbindd/winbindd.c return ctx; ctx 4134 source3/winbindd/winbindd_cache.c struct winbindd_tdc_domain * wcache_tdc_fetch_domain( TALLOC_CTX *ctx, const char *name ) ctx 4158 source3/winbindd/winbindd_cache.c d = TALLOC_P( ctx, struct winbindd_tdc_domain ); ctx 4224 source3/winbindd/winbindd_cache.c TALLOC_CTX *ctx, ctx 4243 source3/winbindd/winbindd_cache.c *homedir = centry_string( centry, ctx ); ctx 4244 source3/winbindd/winbindd_cache.c *shell = centry_string( centry, ctx ); ctx 4245 source3/winbindd/winbindd_cache.c *gecos = centry_string( centry, ctx ); ctx 4257 source3/winbindd/winbindd_cache.c nt_status = nss_get_info( domain->name, user_sid, ctx, ads, msg, ctx 269 source3/winbindd/winbindd_cm.c static void check_domain_online_handler(struct event_context *ctx, ctx 176 source3/winbindd/winbindd_dual.c static void async_request_timeout_handler(struct event_context *ctx, ctx 827 source3/winbindd/winbindd_dual.c static void account_lockout_policy_handler(struct event_context *ctx, ctx 918 source3/winbindd/winbindd_dual.c static void machine_password_change_handler(struct event_context *ctx, ctx 401 source3/winbindd/winbindd_group.c static NTSTATUS add_names_to_list( TALLOC_CTX *ctx, ctx 415 source3/winbindd/winbindd_group.c if ((new_list = TALLOC_ARRAY(ctx, char *, n_names)) == NULL) { ctx 420 source3/winbindd/winbindd_group.c new_list = TALLOC_REALLOC_ARRAY( ctx, *list, char *, ctx 442 source3/winbindd/winbindd_group.c static NTSTATUS expand_groups( TALLOC_CTX *ctx, ctx 464 source3/winbindd/winbindd_group.c tmp_ctx = talloc_new( ctx ); ctx 483 source3/winbindd/winbindd_group.c status = add_names_to_list( ctx, members, ctx 496 source3/winbindd/winbindd_group.c status = add_sid_to_array_unique(ctx, ctx 202 source3/winbindd/winbindd_proto.h struct winbindd_tdc_domain * wcache_tdc_fetch_domain( TALLOC_CTX *ctx, const char *name ); ctx 206 source3/winbindd/winbindd_proto.h TALLOC_CTX *ctx, ctx 564 source3/winbindd/winbindd_proto.h char *fill_domain_username_talloc(TALLOC_CTX *ctx, ctx 70 source3/winbindd/winbindd_user.c static bool winbindd_fill_pwent(TALLOC_CTX *ctx, char *dom_name, char *user_name, ctx 114 source3/winbindd/winbindd_user.c nt_status = normalize_name_map(ctx, domain, user_name, &mapped_name); ctx 136 source4/auth/auth.h NTSTATUS (*get_challenge)(struct auth_method_context *ctx, TALLOC_CTX *mem_ctx, DATA_BLOB *challenge); ctx 140 source4/auth/auth.h NTSTATUS (*want_check)(struct auth_method_context *ctx, TALLOC_CTX *mem_ctx, ctx 145 source4/auth/auth.h NTSTATUS (*check_password)(struct auth_method_context *ctx, TALLOC_CTX *mem_ctx, ctx 86 source4/auth/gensec/schannel_sign.c struct MD5Context ctx; ctx 88 source4/auth/gensec/schannel_sign.c MD5Init(&ctx); ctx 89 source4/auth/gensec/schannel_sign.c MD5Update(&ctx, zeros, 4); ctx 90 source4/auth/gensec/schannel_sign.c MD5Update(&ctx, netsec_sig, 8); ctx 92 source4/auth/gensec/schannel_sign.c MD5Update(&ctx, confounder, 8); ctx 94 source4/auth/gensec/schannel_sign.c MD5Update(&ctx, data, data_len); ctx 95 source4/auth/gensec/schannel_sign.c MD5Final(packet_digest, &ctx); ctx 37 source4/auth/kerberos/kerberos.c krb5_error_code kerberos_kinit_keyblock_cc(krb5_context ctx, krb5_ccache cc, ctx 47 source4/auth/kerberos/kerberos.c krb5_get_init_creds_opt_set_default_flags(ctx, NULL, NULL, &options); ctx 49 source4/auth/kerberos/kerberos.c if ((code = krb5_get_init_creds_keyblock(ctx, &my_creds, principal, keyblock, ctx 54 source4/auth/kerberos/kerberos.c if ((code = krb5_cc_initialize(ctx, cc, principal))) { ctx 55 source4/auth/kerberos/kerberos.c krb5_free_cred_contents(ctx, &my_creds); ctx 59 source4/auth/kerberos/kerberos.c if ((code = krb5_cc_store_cred(ctx, cc, &my_creds))) { ctx 60 source4/auth/kerberos/kerberos.c krb5_free_cred_contents(ctx, &my_creds); ctx 72 source4/auth/kerberos/kerberos.c krb5_free_cred_contents(ctx, &my_creds); ctx 81 source4/auth/kerberos/kerberos.c krb5_error_code kerberos_kinit_password_cc(krb5_context ctx, krb5_ccache cc, ctx 91 source4/auth/kerberos/kerberos.c krb5_get_init_creds_opt_set_default_flags(ctx, NULL, NULL, &options); ctx 93 source4/auth/kerberos/kerberos.c if ((code = krb5_get_init_creds_password(ctx, &my_creds, principal, password, ctx 99 source4/auth/kerberos/kerberos.c if ((code = krb5_cc_initialize(ctx, cc, principal))) { ctx 100 source4/auth/kerberos/kerberos.c krb5_free_cred_contents(ctx, &my_creds); ctx 104 source4/auth/kerberos/kerberos.c if ((code = krb5_cc_store_cred(ctx, cc, &my_creds))) { ctx 105 source4/auth/kerberos/kerberos.c krb5_free_cred_contents(ctx, &my_creds); ctx 117 source4/auth/kerberos/kerberos.c krb5_free_cred_contents(ctx, &my_creds); ctx 61 source4/auth/kerberos/kerberos.h krb5_error_code krb5_set_default_tgs_ktypes(krb5_context ctx, const krb5_enctype *enc); ctx 69 source4/auth/kerberos/kerberos.h void krb5_free_unparsed_name(krb5_context ctx, char *val); ctx 91 source4/auth/kerberos/kerberos.h int kerberos_kinit_password_cc(krb5_context ctx, krb5_ccache cc, ctx 94 source4/auth/kerberos/kerberos.h int kerberos_kinit_keyblock_cc(krb5_context ctx, krb5_ccache cc, ctx 52 source4/auth/kerberos/krb5_init_context.c static krb5_error_code smb_krb5_context_destroy_1(struct smb_krb5_context *ctx) ctx 54 source4/auth/kerberos/krb5_init_context.c krb5_free_context(ctx->krb5_context); ctx 58 source4/auth/kerberos/krb5_init_context.c static krb5_error_code smb_krb5_context_destroy_2(struct smb_krb5_context *ctx) ctx 61 source4/auth/kerberos/krb5_init_context.c krb5_set_warn_dest(ctx->krb5_context, NULL); ctx 62 source4/auth/kerberos/krb5_init_context.c krb5_closelog(ctx->krb5_context, ctx->logf); ctx 63 source4/auth/kerberos/krb5_init_context.c smb_krb5_context_destroy_1(ctx); ctx 390 source4/auth/ntlm/auth.c struct auth_context *ctx; ctx 409 source4/auth/ntlm/auth.c ctx = talloc(mem_ctx, struct auth_context); ctx 410 source4/auth/ntlm/auth.c NT_STATUS_HAVE_NO_MEMORY(ctx); ctx 411 source4/auth/ntlm/auth.c ctx->challenge.set_by = NULL; ctx 412 source4/auth/ntlm/auth.c ctx->challenge.may_be_modified = false; ctx 413 source4/auth/ntlm/auth.c ctx->challenge.data = data_blob(NULL, 0); ctx 414 source4/auth/ntlm/auth.c ctx->methods = NULL; ctx 415 source4/auth/ntlm/auth.c ctx->event_ctx = ev; ctx 416 source4/auth/ntlm/auth.c ctx->msg_ctx = msg; ctx 417 source4/auth/ntlm/auth.c ctx->lp_ctx = lp_ctx; ctx 422 source4/auth/ntlm/auth.c method = talloc(ctx, struct auth_method_context); ctx 431 source4/auth/ntlm/auth.c method->auth_ctx = ctx; ctx 433 source4/auth/ntlm/auth.c DLIST_ADD_END(ctx->methods, method, struct auth_method_context *); ctx 436 source4/auth/ntlm/auth.c if (!ctx->methods) { ctx 440 source4/auth/ntlm/auth.c ctx->check_password = auth_check_password; ctx 441 source4/auth/ntlm/auth.c ctx->get_challenge = auth_get_challenge; ctx 442 source4/auth/ntlm/auth.c ctx->set_challenge = auth_context_set_challenge; ctx 443 source4/auth/ntlm/auth.c ctx->challenge_may_be_modified = auth_challenge_may_be_modified; ctx 444 source4/auth/ntlm/auth.c ctx->get_server_info_principal = auth_get_server_info_principal; ctx 446 source4/auth/ntlm/auth.c *auth_ctx = ctx; ctx 34 source4/auth/ntlm/auth_anonymous.c static NTSTATUS anonymous_want_check(struct auth_method_context *ctx, ctx 52 source4/auth/ntlm/auth_anonymous.c static NTSTATUS anonymous_check_password(struct auth_method_context *ctx, ctx 57 source4/auth/ntlm/auth_anonymous.c return auth_anonymous_server_info(mem_ctx, lp_netbios_name(ctx->auth_ctx->lp_ctx), _server_info); ctx 28 source4/auth/ntlm/auth_developer.c static NTSTATUS name_to_ntstatus_want_check(struct auth_method_context *ctx, ctx 48 source4/auth/ntlm/auth_developer.c static NTSTATUS name_to_ntstatus_check_password(struct auth_method_context *ctx, ctx 154 source4/auth/ntlm/auth_developer.c static NTSTATUS fixed_challenge_get_challenge(struct auth_method_context *ctx, TALLOC_CTX *mem_ctx, DATA_BLOB *_blob) ctx 166 source4/auth/ntlm/auth_developer.c static NTSTATUS fixed_challenge_want_check(struct auth_method_context *ctx, ctx 174 source4/auth/ntlm/auth_developer.c static NTSTATUS fixed_challenge_check_password(struct auth_method_context *ctx, ctx 26 source4/auth/ntlm/auth_proto.h NTSTATUS auth_get_challenge_not_implemented(struct auth_method_context *ctx, TALLOC_CTX *mem_ctx, DATA_BLOB *challenge); ctx 273 source4/auth/ntlm/auth_sam.c static NTSTATUS authsam_check_password_internals(struct auth_method_context *ctx, ctx 297 source4/auth/ntlm/auth_sam.c sam_ctx = samdb_connect(tmp_ctx, ctx->auth_ctx->event_ctx, ctx->auth_ctx->lp_ctx, system_session(mem_ctx, ctx->auth_ctx->lp_ctx)); ctx 309 source4/auth/ntlm/auth_sam.c nt_status = authsam_authenticate(ctx->auth_ctx, tmp_ctx, sam_ctx, msgs, domain_ref_msgs, user_info, ctx 316 source4/auth/ntlm/auth_sam.c nt_status = authsam_make_server_info(tmp_ctx, sam_ctx, lp_netbios_name(ctx->auth_ctx->lp_ctx), ctx 331 source4/auth/ntlm/auth_sam.c static NTSTATUS authsam_ignoredomain_want_check(struct auth_method_context *ctx, ctx 342 source4/auth/ntlm/auth_sam.c static NTSTATUS authsam_ignoredomain_check_password(struct auth_method_context *ctx, ctx 347 source4/auth/ntlm/auth_sam.c return authsam_check_password_internals(ctx, mem_ctx, NULL, user_info, server_info); ctx 353 source4/auth/ntlm/auth_sam.c static NTSTATUS authsam_want_check(struct auth_method_context *ctx, ctx 363 source4/auth/ntlm/auth_sam.c is_local_name = lp_is_myname(ctx->auth_ctx->lp_ctx, ctx 365 source4/auth/ntlm/auth_sam.c is_my_domain = lp_is_mydomain(ctx->auth_ctx->lp_ctx, ctx 369 source4/auth/ntlm/auth_sam.c switch (lp_server_role(ctx->auth_ctx->lp_ctx)) { ctx 397 source4/auth/ntlm/auth_sam.c static NTSTATUS authsam_check_password(struct auth_method_context *ctx, ctx 405 source4/auth/ntlm/auth_sam.c switch (lp_server_role(ctx->auth_ctx->lp_ctx)) { ctx 408 source4/auth/ntlm/auth_sam.c domain = lp_netbios_name(ctx->auth_ctx->lp_ctx); ctx 412 source4/auth/ntlm/auth_sam.c domain = lp_workgroup(ctx->auth_ctx->lp_ctx); ctx 419 source4/auth/ntlm/auth_sam.c return authsam_check_password_internals(ctx, mem_ctx, domain, user_info, server_info); ctx 36 source4/auth/ntlm/auth_server.c static NTSTATUS server_want_check(struct auth_method_context *ctx, ctx 45 source4/auth/ntlm/auth_server.c static NTSTATUS server_get_challenge(struct auth_method_context *ctx, TALLOC_CTX *mem_ctx, DATA_BLOB *_blob) ctx 54 source4/auth/ntlm/auth_server.c lp_smbcli_options(ctx->auth_ctx->lp_ctx, &smb_options); ctx 60 source4/auth/ntlm/auth_server.c host_list = lp_passwordserver(ctx->auth_ctx->lp_ctx); ctx 68 source4/auth/ntlm/auth_server.c io.in.dest_ports = lp_smb_ports(ctx->auth_ctx->lp_ctx); ctx 69 source4/auth/ntlm/auth_server.c io.in.socket_options = lp_socket_options(ctx->auth_ctx->lp_ctx); ctx 70 source4/auth/ntlm/auth_server.c io.in.gensec_settings = lp_gensec_settings(mem_ctx, ctx->auth_ctx->lp_ctx); ctx 77 source4/auth/ntlm/auth_server.c lp_netbios_name(ctx->auth_ctx->lp_ctx), ctx 86 source4/auth/ntlm/auth_server.c io.in.iconv_convenience = lp_iconv_convenience(ctx->auth_ctx->lp_ctx); ctx 87 source4/auth/ntlm/auth_server.c lp_smbcli_session_options(ctx->auth_ctx->lp_ctx, &io.in.session_options); ctx 89 source4/auth/ntlm/auth_server.c status = smb_composite_connect(&io, mem_ctx, lp_resolve_context(ctx->auth_ctx->lp_ctx), ctx 90 source4/auth/ntlm/auth_server.c ctx->auth_ctx->event_ctx); ctx 94 source4/auth/ntlm/auth_server.c ctx->private_data = talloc_steal(ctx, io.out.tree->session); ctx 111 source4/auth/ntlm/auth_server.c static NTSTATUS server_check_password(struct auth_method_context *ctx, ctx 121 source4/auth/ntlm/auth_server.c struct smbcli_session *session = talloc_get_type(ctx->private_data, struct smbcli_session); ctx 150 source4/auth/ntlm/auth_server.c session_setup.in.gensec_settings = lp_gensec_settings(session, ctx->auth_ctx->lp_ctx); ctx 101 source4/auth/ntlm/auth_unix.c static NTSTATUS talloc_getpwnam(TALLOC_CTX *ctx, const char *username, struct passwd **pws) ctx 108 source4/auth/ntlm/auth_unix.c ret = talloc(ctx, struct passwd); ctx 116 source4/auth/ntlm/auth_unix.c ret->pw_name = talloc_strdup(ctx, from->pw_name); ctx 119 source4/auth/ntlm/auth_unix.c ret->pw_passwd = talloc_strdup(ctx, from->pw_passwd); ctx 124 source4/auth/ntlm/auth_unix.c ret->pw_gecos = talloc_strdup(ctx, from->pw_gecos); ctx 127 source4/auth/ntlm/auth_unix.c ret->pw_dir = talloc_strdup(ctx, from->pw_dir); ctx 130 source4/auth/ntlm/auth_unix.c ret->pw_shell = talloc_strdup(ctx, from->pw_shell); ctx 432 source4/auth/ntlm/auth_unix.c static NTSTATUS check_unix_password(TALLOC_CTX *ctx, struct loadparm_context *lp_ctx, ctx 440 source4/auth/ntlm/auth_unix.c info = talloc(ctx, struct smb_pam_user_info); ctx 448 source4/auth/ntlm/auth_unix.c pamconv = talloc(ctx, struct pam_conv); ctx 489 source4/auth/ntlm/auth_unix.c nt_status = talloc_getpwnam(ctx, user_info->mapped.account_name, pws); ctx 596 source4/auth/ntlm/auth_unix.c static NTSTATUS check_unix_password(TALLOC_CTX *ctx, struct loadparm_context *lp_ctx, ctx 610 source4/auth/ntlm/auth_unix.c username = talloc_strdup(ctx, user_info->mapped.account_name); ctx 611 source4/auth/ntlm/auth_unix.c password = talloc_strdup(ctx, user_info->password.plaintext); ctx 613 source4/auth/ntlm/auth_unix.c nt_status = talloc_getpwnam(ctx, username, &pws); ctx 632 source4/auth/ntlm/auth_unix.c crypted = talloc_strdup(ctx, spass->sp_pwdp); ctx 634 source4/auth/ntlm/auth_unix.c salt = talloc_strdup(ctx, spass->sp_pwdp); ctx 648 source4/auth/ntlm/auth_unix.c crypted = talloc_strdup(ctx, ia_password); ctx 658 source4/auth/ntlm/auth_unix.c crypted = talloc_strdup(ctx, pr_pw->ufld.fd_encrypt); ctx 669 source4/auth/ntlm/auth_unix.c crypted = talloc_strdup(ctx, pwret->pwa_passwd); ctx 681 source4/auth/ntlm/auth_unix.c username = talloc_strdup(ctx, mypasswd->ufld.fd_name); ctx 683 source4/auth/ntlm/auth_unix.c crypted = talloc_strdup(ctx, mypasswd->ufld.fd_encrypt); ctx 695 source4/auth/ntlm/auth_unix.c crypted = talloc_strdup(ctx, ap->a_password); ctx 743 source4/auth/ntlm/auth_unix.c pwcopy = talloc_strdup(ctx, password); ctx 780 source4/auth/ntlm/auth_unix.c static NTSTATUS authunix_want_check(struct auth_method_context *ctx, ctx 791 source4/auth/ntlm/auth_unix.c static NTSTATUS authunix_check_password(struct auth_method_context *ctx, ctx 809 source4/auth/ntlm/auth_unix.c nt_status = check_unix_password(check_ctx, ctx->auth_ctx->lp_ctx, user_info, &pwd); ctx 815 source4/auth/ntlm/auth_unix.c nt_status = authunix_make_server_info(mem_ctx, lp_netbios_name(ctx->auth_ctx->lp_ctx), ctx 36 source4/auth/ntlm/auth_util.c NTSTATUS auth_get_challenge_not_implemented(struct auth_method_context *ctx, TALLOC_CTX *mem_ctx, DATA_BLOB *challenge) ctx 57 source4/auth/ntlm/auth_winbind.c static NTSTATUS winbind_want_check(struct auth_method_context *ctx, ctx 73 source4/auth/ntlm/auth_winbind.c static NTSTATUS winbind_check_password_samba3(struct auth_method_context *ctx, ctx 86 source4/auth/ntlm/auth_winbind.c nt_status = encrypt_user_info(mem_ctx, ctx->auth_ctx, ctx 107 source4/auth/ntlm/auth_winbind.c memcpy(request.data.auth_crap.chal, ctx->auth_ctx->challenge.data.data, sizeof(request.data.auth_crap.chal)); ctx 127 source4/auth/ntlm/auth_winbind.c nt_status = get_info3_from_ndr(mem_ctx, lp_iconv_convenience(ctx->auth_ctx->lp_ctx), &response, &info3); ctx 160 source4/auth/ntlm/auth_winbind.c static NTSTATUS winbind_check_password(struct auth_method_context *ctx, ctx 174 source4/auth/ntlm/auth_winbind.c winbind_servers = irpc_servers_byname(ctx->auth_ctx->msg_ctx, s, "winbind_server"); ctx 185 source4/auth/ntlm/auth_winbind.c status = encrypt_user_info(s, ctx->auth_ctx, AUTH_PASSWORD_HASH, ctx 203 source4/auth/ntlm/auth_winbind.c status = encrypt_user_info(s, ctx->auth_ctx, AUTH_PASSWORD_RESPONSE, ctx 211 source4/auth/ntlm/auth_winbind.c status = auth_get_challenge(ctx->auth_ctx, &challenge); ctx 236 source4/auth/ntlm/auth_winbind.c status = IRPC_CALL(ctx->auth_ctx->msg_ctx, winbind_servers[0], ctx 72 source4/auth/ntlmssp/ntlmssp_sign.c HMACMD5Context ctx; ctx 86 source4/auth/ntlmssp/ntlmssp_sign.c gensec_ntlmssp_state->crypt.ntlm2.send_sign_key.length, &ctx); ctx 92 source4/auth/ntlmssp/ntlmssp_sign.c gensec_ntlmssp_state->crypt.ntlm2.recv_sign_key.length, &ctx); ctx 95 source4/auth/ntlmssp/ntlmssp_sign.c hmac_md5_update(seq_num, sizeof(seq_num), &ctx); ctx 96 source4/auth/ntlmssp/ntlmssp_sign.c hmac_md5_update(whole_pdu, pdu_length, &ctx); ctx 97 source4/auth/ntlmssp/ntlmssp_sign.c hmac_md5_final(digest, &ctx); ctx 222 source4/client/client.c static int do_dskattr(struct smbclient_context *ctx) ctx 227 source4/client/client.c if (NT_STATUS_IS_ERR(smbcli_dskattr(ctx->cli->tree, &bsize, &total, &avail))) { ctx 228 source4/client/client.c d_printf("Error in dskattr: %s\n",smbcli_errstr(ctx->cli->tree)); ctx 243 source4/client/client.c static int cmd_pwd(struct smbclient_context *ctx, const char **args) ctx 245 source4/client/client.c d_printf("Current directory is %s\n", ctx->remote_cur_dir); ctx 260 source4/client/client.c static int do_cd(struct smbclient_context *ctx, const char *newdir) ctx 269 source4/client/client.c dname = talloc_asprintf(NULL, "%s\\%s", ctx->remote_cur_dir, newdir); ctx 278 source4/client/client.c if (NT_STATUS_IS_ERR(smbcli_chkpath(ctx->cli->tree, dname))) { ctx 279 source4/client/client.c d_printf("cd %s: %s\n", dname, smbcli_errstr(ctx->cli->tree)); ctx 282 source4/client/client.c ctx->remote_cur_dir = dname; ctx 291 source4/client/client.c static int cmd_cd(struct smbclient_context *ctx, const char **args) ctx 296 source4/client/client.c rc = do_cd(ctx, args[1]); ctx 298 source4/client/client.c d_printf("Current directory is %s\n",ctx->remote_cur_dir); ctx 333 source4/client/client.c static bool do_this_one(struct smbclient_context *ctx, struct clilist_file_info *finfo) ctx 337 source4/client/client.c if (ctx->fileselection && ctx 338 source4/client/client.c !mask_match(ctx->cli, finfo->name,ctx->fileselection,false)) { ctx 343 source4/client/client.c if (ctx->newer_than && finfo->mtime < ctx->newer_than) { ctx 348 source4/client/client.c if ((ctx->archive_level==1 || ctx->archive_level==2) && !(finfo->attrib & FILE_ATTRIBUTE_ARCHIVE)) { ctx 359 source4/client/client.c static void display_finfo(struct smbclient_context *ctx, struct clilist_file_info *finfo) ctx 361 source4/client/client.c if (do_this_one(ctx, finfo)) { ctx 378 source4/client/client.c static void do_du(struct smbclient_context *ctx, struct clilist_file_info *finfo) ctx 380 source4/client/client.c if (do_this_one(ctx, finfo)) { ctx 514 source4/client/client.c struct smbclient_context *ctx = (struct smbclient_context *)state; ctx 517 source4/client/client.c if (do_list_dirs && do_this_one(ctx, f)) { ctx 518 source4/client/client.c do_list_fn(ctx, f); ctx 536 source4/client/client.c if (do_this_one(ctx, f)) { ctx 537 source4/client/client.c do_list_fn(ctx, f); ctx 545 source4/client/client.c static void do_list(struct smbclient_context *ctx, const char *mask,uint16_t attribute, ctx 578 source4/client/client.c smbcli_list(ctx->cli->tree, head, attribute, do_list_helper, ctx); ctx 602 source4/client/client.c if (smbcli_list(ctx->cli->tree, mask, attribute, do_list_helper, ctx) == -1) ctx 604 source4/client/client.c d_printf("%s listing %s\n", smbcli_errstr(ctx->cli->tree), mask); ctx 615 source4/client/client.c static int cmd_dir(struct smbclient_context *ctx, const char **args) ctx 623 source4/client/client.c mask = talloc_strdup(ctx, ctx->remote_cur_dir); ctx 625 source4/client/client.c mask = talloc_append_string(ctx, mask,"\\"); ctx 628 source4/client/client.c mask = talloc_strdup(ctx, args[1]); ctx 630 source4/client/client.c mask = talloc_append_string(ctx, mask, "\\"); ctx 634 source4/client/client.c if (ctx->cli->tree->session->transport->negotiate.protocol <= ctx 636 source4/client/client.c mask = talloc_append_string(ctx, mask, "*.*"); ctx 638 source4/client/client.c mask = talloc_append_string(ctx, mask, "*"); ctx 642 source4/client/client.c do_list(ctx, mask, attribute, display_finfo, ctx->recurse, true); ctx 644 source4/client/client.c rc = do_dskattr(ctx); ctx 655 source4/client/client.c static int cmd_du(struct smbclient_context *ctx, const char **args) ctx 665 source4/client/client.c mask = talloc_strdup(ctx, args[1]); ctx 667 source4/client/client.c mask = talloc_asprintf(ctx, "%s\\%s", ctx->remote_cur_dir, args[1]); ctx 670 source4/client/client.c mask = talloc_asprintf(ctx, "%s\\*", ctx->remote_cur_dir); ctx 673 source4/client/client.c do_list(ctx, mask, attribute, do_du, ctx->recurse, true); ctx 677 source4/client/client.c rc = do_dskattr(ctx); ctx 688 source4/client/client.c static int do_get(struct smbclient_context *ctx, char *rname, const char *lname, bool reget) ctx 694 source4/client/client.c int read_size = ctx->io_bufsize; ctx 703 source4/client/client.c if (ctx->lowercase) { ctx 707 source4/client/client.c fnum = smbcli_open(ctx->cli->tree, rname, O_RDONLY, DENY_NONE); ctx 710 source4/client/client.c d_printf("%s opening remote file %s\n",smbcli_errstr(ctx->cli->tree),rname); ctx 737 source4/client/client.c if (NT_STATUS_IS_ERR(smbcli_qfileinfo(ctx->cli->tree, fnum, ctx 739 source4/client/client.c NT_STATUS_IS_ERR(smbcli_getattrE(ctx->cli->tree, fnum, ctx 741 source4/client/client.c d_printf("getattrib: %s\n",smbcli_errstr(ctx->cli->tree)); ctx 750 source4/client/client.c smbcli_close(ctx->cli->tree, fnum); ctx 755 source4/client/client.c int n = smbcli_read(ctx->cli->tree, fnum, data, nread + start, read_size); ctx 759 source4/client/client.c if (writefile(handle,data, n, ctx->translation) != n) { ctx 777 source4/client/client.c if (NT_STATUS_IS_ERR(smbcli_close(ctx->cli->tree, fnum))) { ctx 778 source4/client/client.c d_printf("Error %s closing remote file\n",smbcli_errstr(ctx->cli->tree)); ctx 786 source4/client/client.c if (ctx->archive_level >= 2 && (attr & FILE_ATTRIBUTE_ARCHIVE)) { ctx 787 source4/client/client.c smbcli_setatr(ctx->cli->tree, rname, attr & ~(uint16_t)FILE_ATTRIBUTE_ARCHIVE, 0); ctx 813 source4/client/client.c static int cmd_get(struct smbclient_context *ctx, const char **args) ctx 823 source4/client/client.c rname = talloc_asprintf(ctx, "%s\\%s", ctx->remote_cur_dir, args[1]); ctx 832 source4/client/client.c return do_get(ctx, rname, lname, false); ctx 855 source4/client/client.c static void do_mget(struct smbclient_context *ctx, struct clilist_file_info *finfo) ctx 870 source4/client/client.c if (ctx->prompt && !yesno(quest)) return; ctx 875 source4/client/client.c asprintf(&rname, "%s%s",ctx->remote_cur_dir,finfo->name); ctx 876 source4/client/client.c do_get(ctx, rname, finfo->name, false); ctx 882 source4/client/client.c saved_curdir = talloc_strdup(NULL, ctx->remote_cur_dir); ctx 884 source4/client/client.c ctx->remote_cur_dir = talloc_asprintf_append_buffer(NULL, "%s\\", finfo->name); ctx 887 source4/client/client.c if (ctx->lowercase) { ctx 902 source4/client/client.c mget_mask = talloc_asprintf(NULL, "%s*", ctx->remote_cur_dir); ctx 904 source4/client/client.c do_list(ctx, mget_mask, FILE_ATTRIBUTE_SYSTEM | FILE_ATTRIBUTE_HIDDEN | FILE_ATTRIBUTE_DIRECTORY,do_mget,false, true); ctx 906 source4/client/client.c talloc_free(ctx->remote_cur_dir); ctx 908 source4/client/client.c ctx->remote_cur_dir = saved_curdir; ctx 915 source4/client/client.c static int cmd_more(struct smbclient_context *ctx, const char **args) ctx 924 source4/client/client.c lname = talloc_asprintf(ctx, "%s/smbmore.XXXXXX",tmpdir()); ctx 937 source4/client/client.c rname = talloc_asprintf(ctx, "%s%s", ctx->remote_cur_dir, args[1]); ctx 940 source4/client/client.c rc = do_get(ctx, rname, lname, false); ctx 944 source4/client/client.c pager_cmd = talloc_asprintf(ctx, "%s %s",(pager? pager:DEFAULT_PAGER), lname); ctx 956 source4/client/client.c static int cmd_mget(struct smbclient_context *ctx, const char **args) ctx 962 source4/client/client.c if (ctx->recurse) ctx 966 source4/client/client.c mget_mask = talloc_strdup(ctx,ctx->remote_cur_dir); ctx 968 source4/client/client.c mget_mask = talloc_append_string(ctx, mget_mask, "\\"); ctx 970 source4/client/client.c mget_mask = talloc_strdup(ctx, args[i]); ctx 972 source4/client/client.c mget_mask = talloc_append_string(ctx, mget_mask, "\\"); ctx 973 source4/client/client.c do_list(ctx, mget_mask, attribute,do_mget,false,true); ctx 979 source4/client/client.c mget_mask = talloc_asprintf(ctx, "%s\\*", ctx->remote_cur_dir); ctx 980 source4/client/client.c do_list(ctx, mget_mask, attribute,do_mget,false,true); ctx 991 source4/client/client.c static NTSTATUS do_mkdir(struct smbclient_context *ctx, char *name) ctx 995 source4/client/client.c if (NT_STATUS_IS_ERR(status = smbcli_mkdir(ctx->cli->tree, name))) { ctx 997 source4/client/client.c smbcli_errstr(ctx->cli->tree),name); ctx 1008 source4/client/client.c static int cmd_quit(struct smbclient_context *ctx, const char **args) ctx 1010 source4/client/client.c talloc_free(ctx); ctx 1020 source4/client/client.c static int cmd_mkdir(struct smbclient_context *ctx, const char **args) ctx 1025 source4/client/client.c if (!ctx->recurse) ctx 1030 source4/client/client.c mask = talloc_asprintf(ctx, "%s%s", ctx->remote_cur_dir,args[1]); ctx 1032 source4/client/client.c if (ctx->recurse) { ctx 1037 source4/client/client.c char *parent = talloc_strndup(ctx, mask, PTR_DIFF(p, mask)); ctx 1039 source4/client/client.c if (NT_STATUS_IS_ERR(smbcli_chkpath(ctx->cli->tree, parent))) { ctx 1040 source4/client/client.c do_mkdir(ctx, parent); ctx 1046 source4/client/client.c do_mkdir(ctx, mask); ctx 1055 source4/client/client.c static int cmd_altname(struct smbclient_context *ctx, const char **args) ctx 1065 source4/client/client.c name = talloc_asprintf(ctx, "%s%s", ctx->remote_cur_dir, args[1]); ctx 1067 source4/client/client.c if (!NT_STATUS_IS_OK(smbcli_qpathinfo_alt_name(ctx->cli->tree, name, &altname))) { ctx 1069 source4/client/client.c smbcli_errstr(ctx->cli->tree),name); ctx 1081 source4/client/client.c static int do_put(struct smbclient_context *ctx, char *rname, char *lname, bool reput) ctx 1088 source4/client/client.c int maxwrite = ctx->io_bufsize; ctx 1095 source4/client/client.c fnum = smbcli_open(ctx->cli->tree, rname, O_RDWR|O_CREAT, DENY_NONE); ctx 1097 source4/client/client.c if (NT_STATUS_IS_ERR(smbcli_qfileinfo(ctx->cli->tree, fnum, NULL, &start, NULL, NULL, NULL, NULL, NULL)) && ctx 1098 source4/client/client.c NT_STATUS_IS_ERR(smbcli_getattrE(ctx->cli->tree, fnum, NULL, &start, NULL, NULL, NULL))) { ctx 1099 source4/client/client.c d_printf("getattrib: %s\n",smbcli_errstr(ctx->cli->tree)); ctx 1104 source4/client/client.c fnum = smbcli_open(ctx->cli->tree, rname, O_RDWR|O_CREAT|O_TRUNC, ctx 1109 source4/client/client.c d_printf("%s opening remote file %s\n",smbcli_errstr(ctx->cli->tree),rname); ctx 1149 source4/client/client.c if ((n = readfile(buf,n,f,ctx->translation)) < 1) { ctx 1158 source4/client/client.c ret = smbcli_write(ctx->cli->tree, fnum, 0, buf, nread + start, n); ctx 1161 source4/client/client.c d_printf("Error writing file: %s\n", smbcli_errstr(ctx->cli->tree)); ctx 1169 source4/client/client.c if (NT_STATUS_IS_ERR(smbcli_close(ctx->cli->tree, fnum))) { ctx 1170 source4/client/client.c d_printf("%s closing remote file %s\n",smbcli_errstr(ctx->cli->tree),rname); ctx 1200 source4/client/client.c talloc_free(ctx); ctx 1212 source4/client/client.c static int cmd_put(struct smbclient_context *ctx, const char **args) ctx 1222 source4/client/client.c lname = talloc_strdup(ctx, args[1]); ctx 1225 source4/client/client.c rname = talloc_strdup(ctx, args[2]); ctx 1227 source4/client/client.c rname = talloc_asprintf(ctx, "%s\\%s", ctx->remote_cur_dir, lname); ctx 1238 source4/client/client.c return do_put(ctx, rname, lname, false); ctx 1288 source4/client/client.c static int cmd_select(struct smbclient_context *ctx, const char **args) ctx 1290 source4/client/client.c talloc_free(ctx->fileselection); ctx 1291 source4/client/client.c ctx->fileselection = talloc_strdup(NULL, args[1]); ctx 1337 source4/client/client.c static int file_find(struct smbclient_context *ctx, struct file_list **list, const char *directory, ctx 1362 source4/client/client.c if (ctx->recurse) { ctx 1367 source4/client/client.c ret = file_find(ctx, list, path, expression, false); ctx 1400 source4/client/client.c static int cmd_mput(struct smbclient_context *ctx, const char **args) ctx 1413 source4/client/client.c ret = file_find(ctx, &file_list, ".", args[i], true); ctx 1437 source4/client/client.c if (ctx->prompt && !yesno(quest)) { /* No */ ctx 1444 source4/client/client.c if(asprintf(&rname, "%s%s", ctx->remote_cur_dir, lname) < 0) break; ctx 1446 source4/client/client.c if (NT_STATUS_IS_ERR(smbcli_chkpath(ctx->cli->tree, rname)) && ctx 1447 source4/client/client.c NT_STATUS_IS_ERR(do_mkdir(ctx, rname))) { ctx 1459 source4/client/client.c if (ctx->prompt && !yesno(quest)) /* No */ ctx 1464 source4/client/client.c if (asprintf(&rname, "%s%s", ctx->remote_cur_dir, lname) < 0) break; ctx 1469 source4/client/client.c do_put(ctx, rname, lname, false); ctx 1484 source4/client/client.c static int cmd_print(struct smbclient_context *ctx, const char **args) ctx 1494 source4/client/client.c lname = talloc_strdup(ctx, args[1]); ctx 1496 source4/client/client.c rname = talloc_strdup(ctx, lname); ctx 1506 source4/client/client.c return do_put(ctx, rname, lname, false); ctx 1510 source4/client/client.c static int cmd_rewrite(struct smbclient_context *ctx, const char **args) ctx 1520 source4/client/client.c static int cmd_del(struct smbclient_context *ctx, const char **args) ctx 1525 source4/client/client.c if (ctx->recurse) ctx 1532 source4/client/client.c mask = talloc_asprintf(ctx,"%s%s", ctx->remote_cur_dir, args[1]); ctx 1534 source4/client/client.c if (NT_STATUS_IS_ERR(smbcli_unlink(ctx->cli->tree, mask))) { ctx 1535 source4/client/client.c d_printf("%s deleting remote file %s\n",smbcli_errstr(ctx->cli->tree),mask); ctx 1545 source4/client/client.c static int cmd_deltree(struct smbclient_context *ctx, const char **args) ctx 1555 source4/client/client.c dname = talloc_asprintf(ctx, "%s%s", ctx->remote_cur_dir, args[1]); ctx 1557 source4/client/client.c ret = smbcli_deltree(ctx->cli->tree, dname); ctx 1560 source4/client/client.c printf("Failed to delete tree %s - %s\n", dname, smbcli_errstr(ctx->cli->tree)); ctx 1594 source4/client/client.c static int cmd_fsinfo(struct smbclient_context *ctx, const char **args) ctx 1621 source4/client/client.c status = smb_raw_fsinfo(ctx->cli->tree, ctx, &fsinfo); ctx 1659 source4/client/client.c nt_time_string(ctx,fsinfo.volume_info.out.create_time)); ctx 1724 source4/client/client.c GUID_string(ctx,&fsinfo.objectid_information.out.guid)); ctx 1744 source4/client/client.c static int cmd_allinfo(struct smbclient_context *ctx, const char **args) ctx 1755 source4/client/client.c fname = talloc_asprintf(ctx, "%s%s", ctx->remote_cur_dir, args[1]); ctx 1760 source4/client/client.c status = smb_raw_pathinfo(ctx->cli->tree, ctx, &finfo); ctx 1766 source4/client/client.c d_printf("\tcreate_time: %s\n", nt_time_string(ctx, finfo.all_info.out.create_time)); ctx 1767 source4/client/client.c d_printf("\taccess_time: %s\n", nt_time_string(ctx, finfo.all_info.out.access_time)); ctx 1768 source4/client/client.c d_printf("\twrite_time: %s\n", nt_time_string(ctx, finfo.all_info.out.write_time)); ctx 1769 source4/client/client.c d_printf("\tchange_time: %s\n", nt_time_string(ctx, finfo.all_info.out.change_time)); ctx 1781 source4/client/client.c status = smb_raw_pathinfo(ctx->cli->tree, ctx, &finfo); ctx 1788 source4/client/client.c status = smb_raw_pathinfo(ctx->cli->tree, ctx, &finfo); ctx 1796 source4/client/client.c status = smb_raw_pathinfo(ctx->cli->tree, ctx, &finfo); ctx 1809 source4/client/client.c status = smb_raw_pathinfo(ctx->cli->tree, ctx, &finfo); ctx 1824 source4/client/client.c status = smb_raw_pathinfo(ctx->cli->tree, ctx, &finfo); ctx 1834 source4/client/client.c fnum = smbcli_open(ctx->cli->tree, fname, O_RDONLY, DENY_NONE); ctx 1840 source4/client/client.c status = smb_raw_shadow_data(ctx->cli->tree, ctx, &info); ctx 1847 source4/client/client.c finfo.generic.in.file.path = talloc_asprintf(ctx, "%s%s", ctx 1849 source4/client/client.c status = smb_raw_pathinfo(ctx->cli->tree, ctx, &finfo); ctx 1860 source4/client/client.c d_printf("\t\tcreate_time: %s\n", nt_time_string(ctx, finfo.all_info.out.create_time)); ctx 1861 source4/client/client.c d_printf("\t\twrite_time: %s\n", nt_time_string(ctx, finfo.all_info.out.write_time)); ctx 1862 source4/client/client.c d_printf("\t\tchange_time: %s\n", nt_time_string(ctx, finfo.all_info.out.change_time)); ctx 1875 source4/client/client.c static int cmd_eainfo(struct smbclient_context *ctx, const char **args) ctx 1886 source4/client/client.c fname = talloc_strdup(ctx, args[1]); ctx 1890 source4/client/client.c status = smb_raw_pathinfo(ctx->cli->tree, ctx, &finfo); ctx 1917 source4/client/client.c static int cmd_acl(struct smbclient_context *ctx, const char **args) ctx 1928 source4/client/client.c fname = talloc_asprintf(ctx, "%s%s", ctx->remote_cur_dir, args[1]); ctx 1930 source4/client/client.c fnum = smbcli_nt_create_full(ctx->cli->tree, fname, 0, ctx 1939 source4/client/client.c d_printf("%s - %s\n", fname, smbcli_errstr(ctx->cli->tree)); ctx 1947 source4/client/client.c status = smb_raw_fileinfo(ctx->cli->tree, ctx, &query); ctx 1961 source4/client/client.c static int cmd_lookup(struct smbclient_context *ctx, const char **args) ctx 1971 source4/client/client.c sid = dom_sid_parse_talloc(ctx, args[1]); ctx 1974 source4/client/client.c status = smblsa_lookup_name(ctx->cli, args[1], ctx, &sidstr); ctx 1983 source4/client/client.c status = smblsa_lookup_sid(ctx->cli, args[1], ctx, &name); ctx 1998 source4/client/client.c static int cmd_privileges(struct smbclient_context *ctx, const char **args) ctx 2010 source4/client/client.c sid = dom_sid_parse_talloc(ctx, args[1]); ctx 2013 source4/client/client.c status = smblsa_lookup_name(ctx->cli, args[1], ctx, &sid_str); ctx 2018 source4/client/client.c sid = dom_sid_parse_talloc(ctx, sid_str); ctx 2021 source4/client/client.c status = smblsa_sid_privileges(ctx->cli, sid, ctx, &rights); ctx 2038 source4/client/client.c static int cmd_addprivileges(struct smbclient_context *ctx, const char **args) ctx 2050 source4/client/client.c sid = dom_sid_parse_talloc(ctx, args[1]); ctx 2053 source4/client/client.c status = smblsa_lookup_name(ctx->cli, args[1], ctx, &sid_str); ctx 2058 source4/client/client.c sid = dom_sid_parse_talloc(ctx, sid_str); ctx 2063 source4/client/client.c rights.names = talloc_realloc(ctx, rights.names, ctx 2065 source4/client/client.c rights.names[rights.count].string = talloc_strdup(ctx, args[i]); ctx 2070 source4/client/client.c status = smblsa_sid_add_privileges(ctx->cli, sid, ctx, &rights); ctx 2082 source4/client/client.c static int cmd_delprivileges(struct smbclient_context *ctx, const char **args) ctx 2094 source4/client/client.c sid = dom_sid_parse_talloc(ctx, args[1]); ctx 2097 source4/client/client.c status = smblsa_lookup_name(ctx->cli, args[1], ctx, &sid_str); ctx 2102 source4/client/client.c sid = dom_sid_parse_talloc(ctx, sid_str); ctx 2107 source4/client/client.c rights.names = talloc_realloc(ctx, rights.names, ctx 2109 source4/client/client.c rights.names[rights.count].string = talloc_strdup(ctx, args[i]); ctx 2114 source4/client/client.c status = smblsa_sid_del_privileges(ctx->cli, sid, ctx, &rights); ctx 2126 source4/client/client.c static int cmd_open(struct smbclient_context *ctx, const char **args) ctx 2134 source4/client/client.c mask = talloc_asprintf(ctx, "%s%s", ctx->remote_cur_dir, args[1]); ctx 2136 source4/client/client.c smbcli_open(ctx->cli->tree, mask, O_RDWR, DENY_ALL); ctx 2145 source4/client/client.c static int cmd_rmdir(struct smbclient_context *ctx, const char **args) ctx 2153 source4/client/client.c mask = talloc_asprintf(ctx, "%s%s", ctx->remote_cur_dir, args[1]); ctx 2155 source4/client/client.c if (NT_STATUS_IS_ERR(smbcli_rmdir(ctx->cli->tree, mask))) { ctx 2157 source4/client/client.c smbcli_errstr(ctx->cli->tree),mask); ctx 2166 source4/client/client.c static int cmd_link(struct smbclient_context *ctx, const char **args) ctx 2170 source4/client/client.c if (!(ctx->cli->transport->negotiate.capabilities & CAP_UNIX)) { ctx 2181 source4/client/client.c src = talloc_asprintf(ctx, "%s%s", ctx->remote_cur_dir, args[1]); ctx 2182 source4/client/client.c dest = talloc_asprintf(ctx, "%s%s", ctx->remote_cur_dir, args[2]); ctx 2184 source4/client/client.c if (NT_STATUS_IS_ERR(smbcli_unix_hardlink(ctx->cli->tree, src, dest))) { ctx 2185 source4/client/client.c d_printf("%s linking files (%s -> %s)\n", smbcli_errstr(ctx->cli->tree), src, dest); ctx 2196 source4/client/client.c static int cmd_symlink(struct smbclient_context *ctx, const char **args) ctx 2200 source4/client/client.c if (!(ctx->cli->transport->negotiate.capabilities & CAP_UNIX)) { ctx 2210 source4/client/client.c src = talloc_asprintf(ctx, "%s%s", ctx->remote_cur_dir, args[1]); ctx 2211 source4/client/client.c dest = talloc_asprintf(ctx, "%s%s", ctx->remote_cur_dir, args[2]); ctx 2213 source4/client/client.c if (NT_STATUS_IS_ERR(smbcli_unix_symlink(ctx->cli->tree, src, dest))) { ctx 2215 source4/client/client.c smbcli_errstr(ctx->cli->tree), src, dest); ctx 2226 source4/client/client.c static int cmd_chmod(struct smbclient_context *ctx, const char **args) ctx 2231 source4/client/client.c if (!(ctx->cli->transport->negotiate.capabilities & CAP_UNIX)) { ctx 2241 source4/client/client.c src = talloc_asprintf(ctx, "%s%s", ctx->remote_cur_dir, args[2]); ctx 2245 source4/client/client.c if (NT_STATUS_IS_ERR(smbcli_unix_chmod(ctx->cli->tree, src, mode))) { ctx 2247 source4/client/client.c smbcli_errstr(ctx->cli->tree), src, (mode_t)mode); ctx 2258 source4/client/client.c static int cmd_chown(struct smbclient_context *ctx, const char **args) ctx 2264 source4/client/client.c if (!(ctx->cli->transport->negotiate.capabilities & CAP_UNIX)) { ctx 2276 source4/client/client.c src = talloc_asprintf(ctx, "%s%s", ctx->remote_cur_dir, args[3]); ctx 2278 source4/client/client.c if (NT_STATUS_IS_ERR(smbcli_unix_chown(ctx->cli->tree, src, uid, gid))) { ctx 2280 source4/client/client.c smbcli_errstr(ctx->cli->tree), src, (int)uid, (int)gid); ctx 2290 source4/client/client.c static int cmd_rename(struct smbclient_context *ctx, const char **args) ctx 2299 source4/client/client.c src = talloc_asprintf(ctx, "%s%s", ctx->remote_cur_dir, args[1]); ctx 2300 source4/client/client.c dest = talloc_asprintf(ctx, "%s%s", ctx->remote_cur_dir, args[2]); ctx 2302 source4/client/client.c if (NT_STATUS_IS_ERR(smbcli_rename(ctx->cli->tree, src, dest))) { ctx 2303 source4/client/client.c d_printf("%s renaming files\n",smbcli_errstr(ctx->cli->tree)); ctx 2314 source4/client/client.c static int cmd_prompt(struct smbclient_context *ctx, const char **args) ctx 2316 source4/client/client.c ctx->prompt = !ctx->prompt; ctx 2317 source4/client/client.c DEBUG(2,("prompting is now %s\n",ctx->prompt?"on":"off")); ctx 2326 source4/client/client.c static int cmd_newer(struct smbclient_context *ctx, const char **args) ctx 2331 source4/client/client.c ctx->newer_than = sbuf.st_mtime; ctx 2333 source4/client/client.c asctime(localtime(&ctx->newer_than)))); ctx 2335 source4/client/client.c ctx->newer_than = 0; ctx 2338 source4/client/client.c if (args[1] && ctx->newer_than == 0) { ctx 2349 source4/client/client.c static int cmd_archive(struct smbclient_context *ctx, const char **args) ctx 2352 source4/client/client.c ctx->archive_level = atoi(args[1]); ctx 2354 source4/client/client.c d_printf("Archive level is %d\n",ctx->archive_level); ctx 2362 source4/client/client.c static int cmd_lowercase(struct smbclient_context *ctx, const char **args) ctx 2364 source4/client/client.c ctx->lowercase = !ctx->lowercase; ctx 2365 source4/client/client.c DEBUG(2,("filename lowercasing is now %s\n",ctx->lowercase?"on":"off")); ctx 2376 source4/client/client.c static int cmd_recurse(struct smbclient_context *ctx, const char **args) ctx 2378 source4/client/client.c ctx->recurse = !ctx->recurse; ctx 2379 source4/client/client.c DEBUG(2,("directory recursion is now %s\n",ctx->recurse?"on":"off")); ctx 2387 source4/client/client.c static int cmd_translate(struct smbclient_context *ctx, const char **args) ctx 2389 source4/client/client.c ctx->translation = !ctx->translation; ctx 2391 source4/client/client.c ctx->translation?"on":"off")); ctx 2400 source4/client/client.c static int cmd_printmode(struct smbclient_context *ctx, const char **args) ctx 2404 source4/client/client.c ctx->printmode = 0; ctx 2407 source4/client/client.c ctx->printmode = 1; ctx 2409 source4/client/client.c ctx->printmode = atoi(args[1]); ctx 2413 source4/client/client.c switch(ctx->printmode) ctx 2422 source4/client/client.c DEBUG(2,("the printmode is now %d\n", ctx->printmode)); ctx 2432 source4/client/client.c static int cmd_lcd(struct smbclient_context *ctx, const char **args) ctx 2446 source4/client/client.c static int cmd_history(struct smbclient_context *ctx, const char **args) ctx 2467 source4/client/client.c static int cmd_reget(struct smbclient_context *ctx, const char **args) ctx 2476 source4/client/client.c remote_name = talloc_asprintf(ctx, "%s\\%s", ctx->remote_cur_dir, args[1]); ctx 2480 source4/client/client.c local_name = talloc_strdup(ctx, args[2]); ctx 2482 source4/client/client.c local_name = talloc_strdup(ctx, args[1]); ctx 2484 source4/client/client.c return do_get(ctx, remote_name, local_name, true); ctx 2490 source4/client/client.c static int cmd_reput(struct smbclient_context *ctx, const char **args) ctx 2499 source4/client/client.c local_name = talloc_asprintf(ctx, "%s\\%s", ctx->remote_cur_dir, args[1]); ctx 2507 source4/client/client.c remote_name = talloc_strdup(ctx, args[2]); ctx 2509 source4/client/client.c remote_name = talloc_strdup(ctx, args[1]); ctx 2513 source4/client/client.c return do_put(ctx, remote_name, local_name, true); ctx 2639 source4/client/client.c static int cmd_help(struct smbclient_context *ctx, const char **args); ctx 2649 source4/client/client.c int (*fn)(struct smbclient_context *ctx, const char **args); ctx 2746 source4/client/client.c static int cmd_help(struct smbclient_context *ctx, const char **args) ctx 2765 source4/client/client.c static int process_line(struct smbclient_context *ctx, const char *cline); ctx 2769 source4/client/client.c static int process_command_string(struct smbclient_context *ctx, const char *cmd) ctx 2776 source4/client/client.c rc |= process_line(ctx, lines[i]); ctx 2987 source4/client/client.c static int process_line(struct smbclient_context *ctx, const char *cline) ctx 2993 source4/client/client.c args = str_list_make_shell(ctx, cline, NULL); ctx 2998 source4/client/client.c i = commands[i].fn(ctx, args); ctx 3013 source4/client/client.c static int process_stdin(struct smbclient_context *ctx) ctx 3018 source4/client/client.c char *the_prompt = talloc_asprintf(ctx, "smb: %s> ", ctx->remote_cur_dir); ctx 3031 source4/client/client.c rc |= process_command_string(ctx, cline); ctx 3043 source4/client/client.c static bool do_connect(struct smbclient_context *ctx, ctx 3058 source4/client/client.c rl_ctx = ctx; /* Ugly hack */ ctx 3062 source4/client/client.c smbcli_parse_unc(specified_share, ctx, &server, &share); ctx 3064 source4/client/client.c share = talloc_strdup(ctx, specified_share); ctx 3065 source4/client/client.c server = talloc_strdup(ctx, specified_server); ctx 3068 source4/client/client.c ctx->remote_cur_dir = talloc_strdup(ctx, "\\"); ctx 3070 source4/client/client.c status = smbcli_full_connection(ctx, &ctx->cli, server, ports, ctx 3080 source4/client/client.c talloc_free(ctx); ctx 3084 source4/client/client.c return ctx; ctx 3164 source4/client/client.c struct smbclient_context *ctx; ctx 3193 source4/client/client.c ctx = talloc_zero(mem_ctx, struct smbclient_context); ctx 3194 source4/client/client.c ctx->io_bufsize = 64512; ctx 3221 source4/client/client.c ctx->io_bufsize = MAX(1, atoi(poptGetOptArg(pc))); ctx 3285 source4/client/client.c if (!do_connect(ctx, ev_ctx, lp_resolve_context(cmdline_lp_ctx), ctx 3290 source4/client/client.c lp_gensec_settings(ctx, cmdline_lp_ctx))) ctx 3294 source4/client/client.c do_cd(ctx, base_directory); ctx 3297 source4/client/client.c rc = process_command_string(ctx, cmdstr); ctx 3299 source4/client/client.c rc = process_stdin(ctx); ctx 1571 source4/dsdb/common/util.c NTSTATUS samdb_set_password(struct ldb_context *ctx, TALLOC_CTX *mem_ctx, ctx 1609 source4/dsdb/common/util.c count = gendb_search_dn(ctx, mem_ctx, user_dn, &res, user_attrs); ctx 1631 source4/dsdb/common/util.c count = gendb_search_dn(ctx, mem_ctx, domain_dn, &res, domain_attrs); ctx 1645 source4/dsdb/common/util.c count = gendb_search(ctx, mem_ctx, NULL, &res, domain_attrs, ctx 1693 source4/dsdb/common/util.c if (convert_string_talloc_convenience(mem_ctx, lp_iconv_convenience(ldb_get_opaque(ctx, "loadparm")), ctx 1790 source4/dsdb/common/util.c CHECK_RET(samdb_msg_add_delete(ctx, mem_ctx, mod, "clearTextPassword")); ctx 1793 source4/dsdb/common/util.c CHECK_RET(samdb_msg_add_hash(ctx, mem_ctx, mod, "dBCSPwd", lmNewHash)); ctx 1795 source4/dsdb/common/util.c CHECK_RET(samdb_msg_add_delete(ctx, mem_ctx, mod, "dBCSPwd")); ctx 1799 source4/dsdb/common/util.c CHECK_RET(samdb_msg_add_hash(ctx, mem_ctx, mod, "unicodePwd", ntNewHash)); ctx 1801 source4/dsdb/common/util.c CHECK_RET(samdb_msg_add_delete(ctx, mem_ctx, mod, "unicodePwd")); ctx 1817 source4/dsdb/common/util.c NTSTATUS samdb_set_password_sid(struct ldb_context *ctx, TALLOC_CTX *mem_ctx, ctx 1831 source4/dsdb/common/util.c ret = ldb_transaction_start(ctx); ctx 1833 source4/dsdb/common/util.c DEBUG(1, ("Failed to start transaction: %s\n", ldb_errstring(ctx))); ctx 1837 source4/dsdb/common/util.c user_dn = samdb_search_dn(ctx, mem_ctx, NULL, ctx 1841 source4/dsdb/common/util.c ldb_transaction_cancel(ctx); ctx 1849 source4/dsdb/common/util.c ldb_transaction_cancel(ctx); ctx 1855 source4/dsdb/common/util.c ldb_transaction_cancel(ctx); ctx 1859 source4/dsdb/common/util.c nt_status = samdb_set_password(ctx, mem_ctx, ctx 1866 source4/dsdb/common/util.c ldb_transaction_cancel(ctx); ctx 1871 source4/dsdb/common/util.c ret = samdb_replace(ctx, mem_ctx, msg); ctx 1873 source4/dsdb/common/util.c ldb_transaction_cancel(ctx); ctx 1877 source4/dsdb/common/util.c ret = ldb_transaction_commit(ctx); ctx 1881 source4/dsdb/common/util.c ldb_errstring(ctx))); ctx 57 source4/dsdb/samdb/ldb_modules/samba3sam.c static struct ldb_message_element *generate_primaryGroupID(struct ldb_module *module, TALLOC_CTX *ctx, const char *local_attr, const struct ldb_message *remote) ctx 70 source4/dsdb/samdb/ldb_modules/samba3sam.c el = talloc_zero(ctx, struct ldb_message_element); ctx 71 source4/dsdb/samdb/ldb_modules/samba3sam.c el->name = talloc_strdup(ctx, "primaryGroupID"); ctx 73 source4/dsdb/samdb/ldb_modules/samba3sam.c el->values = talloc_array(ctx, struct ldb_val, 1); ctx 116 source4/dsdb/samdb/ldb_modules/samba3sam.c static struct ldb_val convert_uid_samaccount(struct ldb_module *module, TALLOC_CTX *ctx, const struct ldb_val *val) ctx 119 source4/dsdb/samdb/ldb_modules/samba3sam.c out = ldb_val_dup(ctx, val); ctx 124 source4/dsdb/samdb/ldb_modules/samba3sam.c static struct ldb_val lookup_homedir(struct ldb_module *module, TALLOC_CTX *ctx, const struct ldb_val *val) ctx 136 source4/dsdb/samdb/ldb_modules/samba3sam.c return *talloc_zero(ctx, struct ldb_val); ctx 139 source4/dsdb/samdb/ldb_modules/samba3sam.c retval.data = (uint8_t *)talloc_strdup(ctx, pwd->pw_dir); ctx 145 source4/dsdb/samdb/ldb_modules/samba3sam.c static struct ldb_val lookup_gid(struct ldb_module *module, TALLOC_CTX *ctx, const struct ldb_val *val) ctx 153 source4/dsdb/samdb/ldb_modules/samba3sam.c return *talloc_zero(ctx, struct ldb_val); ctx 156 source4/dsdb/samdb/ldb_modules/samba3sam.c retval.data = (uint8_t *)talloc_asprintf(ctx, "%ld", (unsigned long)pwd->pw_gid); ctx 162 source4/dsdb/samdb/ldb_modules/samba3sam.c static struct ldb_val lookup_uid(struct ldb_module *module, TALLOC_CTX *ctx, const struct ldb_val *val) ctx 170 source4/dsdb/samdb/ldb_modules/samba3sam.c return *talloc_zero(ctx, struct ldb_val); ctx 173 source4/dsdb/samdb/ldb_modules/samba3sam.c retval.data = (uint8_t *)talloc_asprintf(ctx, "%ld", (unsigned long)pwd->pw_uid); ctx 180 source4/dsdb/samdb/ldb_modules/samba3sam.c static struct ldb_val encode_sid(struct ldb_module *module, TALLOC_CTX *ctx, const struct ldb_val *val) ctx 186 source4/dsdb/samdb/ldb_modules/samba3sam.c sid = dom_sid_parse_talloc(ctx, (char *)val->data); ctx 191 source4/dsdb/samdb/ldb_modules/samba3sam.c ndr_err = ndr_push_struct_blob(&out, ctx, ctx 203 source4/dsdb/samdb/ldb_modules/samba3sam.c static struct ldb_val decode_sid(struct ldb_module *module, TALLOC_CTX *ctx, const struct ldb_val *val) ctx 209 source4/dsdb/samdb/ldb_modules/samba3sam.c sid = talloc(ctx, struct dom_sid); ctx 220 source4/dsdb/samdb/ldb_modules/samba3sam.c out.data = (uint8_t *)dom_sid_string(ctx, sid); ctx 232 source4/dsdb/samdb/ldb_modules/samba3sam.c static struct ldb_val bin2hex(struct ldb_module *module, TALLOC_CTX *ctx, const struct ldb_val *val) ctx 240 source4/dsdb/samdb/ldb_modules/samba3sam.c out = data_blob_string_const(smbpasswd_sethexpwd(ctx, &pwd, 0)); ctx 248 source4/dsdb/samdb/ldb_modules/samba3sam.c static struct ldb_val hex2bin(struct ldb_module *module, TALLOC_CTX *ctx, const struct ldb_val *val) ctx 252 source4/dsdb/samdb/ldb_modules/samba3sam.c pwd = smbpasswd_gethexpwd(ctx, (const char *)val->data); ctx 256 source4/dsdb/samdb/ldb_modules/samba3sam.c out = data_blob_talloc(ctx, pwd->hash, sizeof(pwd->hash)); ctx 42 source4/dsdb/samdb/ldb_modules/simple_ldap_map.c static struct ldb_val encode_guid(struct ldb_module *module, TALLOC_CTX *ctx, const struct ldb_val *val) ctx 52 source4/dsdb/samdb/ldb_modules/simple_ldap_map.c ndr_err = ndr_push_struct_blob(&out, ctx, NULL, &guid, ctx 61 source4/dsdb/samdb/ldb_modules/simple_ldap_map.c static struct ldb_val guid_always_string(struct ldb_module *module, TALLOC_CTX *ctx, const struct ldb_val *val) ctx 69 source4/dsdb/samdb/ldb_modules/simple_ldap_map.c return data_blob_string_const(GUID_string(ctx, &guid)); ctx 72 source4/dsdb/samdb/ldb_modules/simple_ldap_map.c static struct ldb_val encode_ns_guid(struct ldb_module *module, TALLOC_CTX *ctx, const struct ldb_val *val) ctx 82 source4/dsdb/samdb/ldb_modules/simple_ldap_map.c ndr_err = ndr_push_struct_blob(&out, ctx, NULL, &guid, ctx 91 source4/dsdb/samdb/ldb_modules/simple_ldap_map.c static struct ldb_val guid_ns_string(struct ldb_module *module, TALLOC_CTX *ctx, const struct ldb_val *val) ctx 99 source4/dsdb/samdb/ldb_modules/simple_ldap_map.c return data_blob_string_const(NS_GUID_string(ctx, &guid)); ctx 103 source4/dsdb/samdb/ldb_modules/simple_ldap_map.c static struct ldb_val val_copy(struct ldb_module *module, TALLOC_CTX *ctx, const struct ldb_val *val) ctx 106 source4/dsdb/samdb/ldb_modules/simple_ldap_map.c out = ldb_val_dup(ctx, val); ctx 112 source4/dsdb/samdb/ldb_modules/simple_ldap_map.c static struct ldb_val sid_always_binary(struct ldb_module *module, TALLOC_CTX *ctx, const struct ldb_val *val) ctx 118 source4/dsdb/samdb/ldb_modules/simple_ldap_map.c if (a->syntax->canonicalise_fn(ldb, ctx, val, &out) != LDB_SUCCESS) { ctx 126 source4/dsdb/samdb/ldb_modules/simple_ldap_map.c static struct ldb_val objectCategory_always_dn(struct ldb_module *module, TALLOC_CTX *ctx, const struct ldb_val *val) ctx 133 source4/dsdb/samdb/ldb_modules/simple_ldap_map.c dn = ldb_dn_from_ldb_val(ctx, ldb, val); ctx 136 source4/dsdb/samdb/ldb_modules/simple_ldap_map.c return val_copy(module, ctx, val); ctx 140 source4/dsdb/samdb/ldb_modules/simple_ldap_map.c if (a->syntax->canonicalise_fn(ldb, ctx, val, &out) != LDB_SUCCESS) { ctx 147 source4/dsdb/samdb/ldb_modules/simple_ldap_map.c static struct ldb_val normalise_to_signed32(struct ldb_module *module, TALLOC_CTX *ctx, const struct ldb_val *val) ctx 158 source4/dsdb/samdb/ldb_modules/simple_ldap_map.c struct ldb_val out = data_blob_string_const(talloc_asprintf(ctx, "%d", u.signed_int)); ctx 161 source4/dsdb/samdb/ldb_modules/simple_ldap_map.c return val_copy(module, ctx, val); ctx 164 source4/dsdb/samdb/ldb_modules/simple_ldap_map.c static struct ldb_val usn_to_entryCSN(struct ldb_module *module, TALLOC_CTX *ctx, const struct ldb_val *val) ctx 169 source4/dsdb/samdb/ldb_modules/simple_ldap_map.c out = data_blob_string_const(talloc_asprintf(ctx, "%s#%06x#00#000000", ldb_timestring(ctx, t), (unsigned int)(usn & 0xFFFFFF))); ctx 173 source4/dsdb/samdb/ldb_modules/simple_ldap_map.c static unsigned long long entryCSN_to_usn_int(TALLOC_CTX *ctx, const struct ldb_val *val) ctx 175 source4/dsdb/samdb/ldb_modules/simple_ldap_map.c char *entryCSN = talloc_strdup(ctx, (const char *)val->data); ctx 206 source4/dsdb/samdb/ldb_modules/simple_ldap_map.c static struct ldb_val entryCSN_to_usn(struct ldb_module *module, TALLOC_CTX *ctx, const struct ldb_val *val) ctx 209 source4/dsdb/samdb/ldb_modules/simple_ldap_map.c unsigned long long usn = entryCSN_to_usn_int(ctx, val); ctx 210 source4/dsdb/samdb/ldb_modules/simple_ldap_map.c out = data_blob_string_const(talloc_asprintf(ctx, "%lld", usn)); ctx 214 source4/dsdb/samdb/ldb_modules/simple_ldap_map.c static struct ldb_val usn_to_timestamp(struct ldb_module *module, TALLOC_CTX *ctx, const struct ldb_val *val) ctx 219 source4/dsdb/samdb/ldb_modules/simple_ldap_map.c out = data_blob_string_const(ldb_timestring(ctx, t)); ctx 223 source4/dsdb/samdb/ldb_modules/simple_ldap_map.c static struct ldb_val timestamp_to_usn(struct ldb_module *module, TALLOC_CTX *ctx, const struct ldb_val *val) ctx 233 source4/dsdb/samdb/ldb_modules/simple_ldap_map.c out = data_blob_string_const(talloc_asprintf(ctx, "%lld", usn)); ctx 610 source4/heimdal/kdc/digest.c MD5_CTX ctx; ctx 639 source4/heimdal/kdc/digest.c MD5_Init(&ctx); ctx 640 source4/heimdal/kdc/digest.c MD5_Update(&ctx, &id, 1); ctx 641 source4/heimdal/kdc/digest.c MD5_Update(&ctx, password, strlen(password)); ctx 642 source4/heimdal/kdc/digest.c MD5_Update(&ctx, serverNonce.data, serverNonce.length); ctx 643 source4/heimdal/kdc/digest.c MD5_Final(md, &ctx); ctx 666 source4/heimdal/kdc/digest.c MD5_CTX ctx; ctx 691 source4/heimdal/kdc/digest.c MD5_Init(&ctx); ctx 692 source4/heimdal/kdc/digest.c MD5_Update(&ctx, ireq.u.digestRequest.username, ctx 694 source4/heimdal/kdc/digest.c MD5_Update(&ctx, ":", 1); ctx 695 source4/heimdal/kdc/digest.c MD5_Update(&ctx, *ireq.u.digestRequest.realm, ctx 697 source4/heimdal/kdc/digest.c MD5_Update(&ctx, ":", 1); ctx 698 source4/heimdal/kdc/digest.c MD5_Update(&ctx, password, strlen(password)); ctx 699 source4/heimdal/kdc/digest.c MD5_Final(md, &ctx); ctx 701 source4/heimdal/kdc/digest.c MD5_Init(&ctx); ctx 702 source4/heimdal/kdc/digest.c MD5_Update(&ctx, md, sizeof(md)); ctx 703 source4/heimdal/kdc/digest.c MD5_Update(&ctx, ":", 1); ctx 704 source4/heimdal/kdc/digest.c MD5_Update(&ctx, ireq.u.digestRequest.serverNonce, ctx 706 source4/heimdal/kdc/digest.c MD5_Update(&ctx, ":", 1); ctx 707 source4/heimdal/kdc/digest.c MD5_Update(&ctx, *ireq.u.digestRequest.nonceCount, ctx 710 source4/heimdal/kdc/digest.c MD5_Update(&ctx, ":", 1); ctx 711 source4/heimdal/kdc/digest.c MD5_Update(&ctx, *ireq.u.digestRequest.authid, ctx 714 source4/heimdal/kdc/digest.c MD5_Final(md, &ctx); ctx 722 source4/heimdal/kdc/digest.c MD5_Init(&ctx); ctx 723 source4/heimdal/kdc/digest.c MD5_Update(&ctx, "AUTHENTICATE:", sizeof("AUTHENTICATE:") - 1); ctx 724 source4/heimdal/kdc/digest.c MD5_Update(&ctx, *ireq.u.digestRequest.uri, ctx 730 source4/heimdal/kdc/digest.c MD5_Update(&ctx, conf_zeros, sizeof(conf_zeros) - 1); ctx 733 source4/heimdal/kdc/digest.c MD5_Final(md, &ctx); ctx 742 source4/heimdal/kdc/digest.c MD5_Init(&ctx); ctx 743 source4/heimdal/kdc/digest.c MD5_Update(&ctx, A1, strlen(A2)); ctx 744 source4/heimdal/kdc/digest.c MD5_Update(&ctx, ":", 1); ctx 745 source4/heimdal/kdc/digest.c MD5_Update(&ctx, ireq.u.digestRequest.serverNonce, ctx 747 source4/heimdal/kdc/digest.c MD5_Update(&ctx, ":", 1); ctx 748 source4/heimdal/kdc/digest.c MD5_Update(&ctx, *ireq.u.digestRequest.nonceCount, ctx 750 source4/heimdal/kdc/digest.c MD5_Update(&ctx, ":", 1); ctx 751 source4/heimdal/kdc/digest.c MD5_Update(&ctx, *ireq.u.digestRequest.clientNonce, ctx 753 source4/heimdal/kdc/digest.c MD5_Update(&ctx, ":", 1); ctx 754 source4/heimdal/kdc/digest.c MD5_Update(&ctx, *ireq.u.digestRequest.qop, ctx 756 source4/heimdal/kdc/digest.c MD5_Update(&ctx, ":", 1); ctx 757 source4/heimdal/kdc/digest.c MD5_Update(&ctx, A2, strlen(A2)); ctx 759 source4/heimdal/kdc/digest.c MD5_Final(md, &ctx); ctx 790 source4/heimdal/kdc/digest.c SHA_CTX ctx; ctx 818 source4/heimdal/kdc/digest.c SHA1_Init(&ctx); ctx 839 source4/heimdal/kdc/digest.c SHA1_Update(&ctx, clientNonce.data, ssize); ctx 842 source4/heimdal/kdc/digest.c SHA1_Update(&ctx, serverNonce.data, serverNonce.length); ctx 843 source4/heimdal/kdc/digest.c SHA1_Update(&ctx, username, strlen(username)); ctx 844 source4/heimdal/kdc/digest.c SHA1_Final(challange, &ctx); ctx 913 source4/heimdal/kdc/digest.c SHA1_Init(&ctx); ctx 914 source4/heimdal/kdc/digest.c SHA1_Update(&ctx, hashhash, sizeof(hashhash)); ctx 915 source4/heimdal/kdc/digest.c SHA1_Update(&ctx, answer.data, answer.length); ctx 916 source4/heimdal/kdc/digest.c SHA1_Update(&ctx, ms_chap_v2_magic1,sizeof(ms_chap_v2_magic1)); ctx 917 source4/heimdal/kdc/digest.c SHA1_Final(md, &ctx); ctx 919 source4/heimdal/kdc/digest.c SHA1_Init(&ctx); ctx 920 source4/heimdal/kdc/digest.c SHA1_Update(&ctx, md, sizeof(md)); ctx 921 source4/heimdal/kdc/digest.c SHA1_Update(&ctx, challange, 8); ctx 922 source4/heimdal/kdc/digest.c SHA1_Update(&ctx, ms_chap_v2_magic2, sizeof(ms_chap_v2_magic2)); ctx 923 source4/heimdal/kdc/digest.c SHA1_Final(md, &ctx); ctx 942 source4/heimdal/kdc/digest.c SHA1_Init(&ctx); ctx 943 source4/heimdal/kdc/digest.c SHA1_Update(&ctx, hashhash, 16); /* md4(hash) */ ctx 944 source4/heimdal/kdc/digest.c SHA1_Update(&ctx, answer.data, answer.length); ctx 945 source4/heimdal/kdc/digest.c SHA1_Update(&ctx, ms_rfc3079_magic1, sizeof(ms_rfc3079_magic1)); ctx 946 source4/heimdal/kdc/digest.c SHA1_Final(md, &ctx); ctx 1278 source4/heimdal/kdc/digest.c MD4_CTX ctx; ctx 1280 source4/heimdal/kdc/digest.c MD4_Init(&ctx); ctx 1281 source4/heimdal/kdc/digest.c MD4_Update(&ctx, ctx 1283 source4/heimdal/kdc/digest.c MD4_Final(sessionkey, &ctx); ctx 75 source4/heimdal/kdc/kerberos4.c struct valid_princ_ctx *ctx = funcctx; ctx 83 source4/heimdal/kdc/kerberos4.c ret = _kdc_db_fetch(context, ctx->config, princ, ctx->flags, NULL, &ent); ctx 85 source4/heimdal/kdc/kerberos4.c kdc_log(context, ctx->config, 7, "Lookup %s failed: %s", s, ctx 90 source4/heimdal/kdc/kerberos4.c kdc_log(context, ctx->config, 7, "Lookup %s succeeded", s); ctx 105 source4/heimdal/kdc/kerberos4.c struct valid_princ_ctx ctx; ctx 107 source4/heimdal/kdc/kerberos4.c ctx.config = config; ctx 108 source4/heimdal/kdc/kerberos4.c ctx.flags = flags; ctx 111 source4/heimdal/kdc/kerberos4.c valid_princ, &ctx, 0, &p); ctx 67 source4/heimdal/kdc/kx509.c HMAC_CTX ctx; ctx 76 source4/heimdal/kdc/kx509.c HMAC_CTX_init(&ctx); ctx 77 source4/heimdal/kdc/kx509.c HMAC_Init_ex(&ctx, ctx 80 source4/heimdal/kdc/kx509.c if (sizeof(digest) != HMAC_size(&ctx)) ctx 82 source4/heimdal/kdc/kx509.c HMAC_Update(&ctx, version_2_0, sizeof(version_2_0)); ctx 83 source4/heimdal/kdc/kx509.c HMAC_Update(&ctx, req->pk_key.data, req->pk_key.length); ctx 84 source4/heimdal/kdc/kx509.c HMAC_Final(&ctx, digest, 0); ctx 85 source4/heimdal/kdc/kx509.c HMAC_CTX_cleanup(&ctx); ctx 100 source4/heimdal/kdc/kx509.c HMAC_CTX ctx; ctx 102 source4/heimdal/kdc/kx509.c HMAC_CTX_init(&ctx); ctx 104 source4/heimdal/kdc/kx509.c HMAC_Init_ex(&ctx, ctx 107 source4/heimdal/kdc/kx509.c rep->hash->length = HMAC_size(&ctx); ctx 110 source4/heimdal/kdc/kx509.c HMAC_CTX_cleanup(&ctx); ctx 115 source4/heimdal/kdc/kx509.c HMAC_Update(&ctx, version_2_0, sizeof(version_2_0)); ctx 120 source4/heimdal/kdc/kx509.c HMAC_Update(&ctx, &p, 1); ctx 125 source4/heimdal/kdc/kx509.c HMAC_Update(&ctx, rep->certificate->data, rep->certificate->length); ctx 127 source4/heimdal/kdc/kx509.c HMAC_Update(&ctx, (unsigned char *)*rep->e_text, strlen(*rep->e_text)); ctx 129 source4/heimdal/kdc/kx509.c HMAC_Final(&ctx, rep->hash->data, 0); ctx 130 source4/heimdal/kdc/kx509.c HMAC_CTX_cleanup(&ctx); ctx 686 source4/heimdal/kuser/kinit.c struct renew_ctx *ctx = ptr; ctx 692 source4/heimdal/kuser/kinit.c ret = renew_validate(ctx->context, renewable_flag, validate_flag, ctx 693 source4/heimdal/kuser/kinit.c ctx->ccache, server_str, ctx->ticket_life); ctx 700 source4/heimdal/kuser/kinit.c get_new_tickets(ctx->context, ctx->principal, ctx 701 source4/heimdal/kuser/kinit.c ctx->ccache, ctx->ticket_life, 0); ctx 705 source4/heimdal/kuser/kinit.c do_524init(ctx->context, ctx->ccache, NULL, server_str); ctx 708 source4/heimdal/kuser/kinit.c krb5_afslog(ctx->context, ctx->ccache, NULL, NULL); ctx 710 source4/heimdal/kuser/kinit.c expire = ticket_lifetime(ctx->context, ctx->ccache, ctx->principal, ctx 869 source4/heimdal/kuser/kinit.c struct renew_ctx ctx; ctx 874 source4/heimdal/kuser/kinit.c ctx.context = context; ctx 875 source4/heimdal/kuser/kinit.c ctx.ccache = ccache; ctx 876 source4/heimdal/kuser/kinit.c ctx.principal = principal; ctx 877 source4/heimdal/kuser/kinit.c ctx.ticket_life = ticket_life; ctx 880 source4/heimdal/kuser/kinit.c renew_func, &ctx, timeout); ctx 77 source4/heimdal/lib/gssapi/krb5/accept_sec_context.c _gsskrb5i_is_cfx(gsskrb5_ctx ctx, int *is_cfx) ctx 80 source4/heimdal/lib/gssapi/krb5/accept_sec_context.c int acceptor = (ctx->more_flags & LOCAL) == 0; ctx 85 source4/heimdal/lib/gssapi/krb5/accept_sec_context.c if (ctx->auth_context->local_subkey) ctx 86 source4/heimdal/lib/gssapi/krb5/accept_sec_context.c key = ctx->auth_context->local_subkey; ctx 88 source4/heimdal/lib/gssapi/krb5/accept_sec_context.c key = ctx->auth_context->remote_subkey; ctx 90 source4/heimdal/lib/gssapi/krb5/accept_sec_context.c if (ctx->auth_context->remote_subkey) ctx 91 source4/heimdal/lib/gssapi/krb5/accept_sec_context.c key = ctx->auth_context->remote_subkey; ctx 93 source4/heimdal/lib/gssapi/krb5/accept_sec_context.c key = ctx->auth_context->local_subkey; ctx 96 source4/heimdal/lib/gssapi/krb5/accept_sec_context.c key = ctx->auth_context->keyblock; ctx 112 source4/heimdal/lib/gssapi/krb5/accept_sec_context.c if ((acceptor && ctx->auth_context->local_subkey) || ctx 113 source4/heimdal/lib/gssapi/krb5/accept_sec_context.c (!acceptor && ctx->auth_context->remote_subkey)) ctx 114 source4/heimdal/lib/gssapi/krb5/accept_sec_context.c ctx->more_flags |= ACCEPTOR_SUBKEY; ctx 123 source4/heimdal/lib/gssapi/krb5/accept_sec_context.c gsskrb5_ctx ctx, ctx 142 source4/heimdal/lib/gssapi/krb5/accept_sec_context.c ctx->flags &= ~GSS_C_DELEG_FLAG; ctx 146 source4/heimdal/lib/gssapi/krb5/accept_sec_context.c kret = krb5_cc_initialize(context, ccache, ctx->source); ctx 148 source4/heimdal/lib/gssapi/krb5/accept_sec_context.c ctx->flags &= ~GSS_C_DELEG_FLAG; ctx 153 source4/heimdal/lib/gssapi/krb5/accept_sec_context.c ctx->auth_context, ctx 157 source4/heimdal/lib/gssapi/krb5/accept_sec_context.c ctx->auth_context, ctx 159 source4/heimdal/lib/gssapi/krb5/accept_sec_context.c &ctx->fwd_data); ctx 161 source4/heimdal/lib/gssapi/krb5/accept_sec_context.c ctx->auth_context, ctx 164 source4/heimdal/lib/gssapi/krb5/accept_sec_context.c ctx->flags &= ~GSS_C_DELEG_FLAG; ctx 201 source4/heimdal/lib/gssapi/krb5/accept_sec_context.c gsskrb5_ctx ctx, ctx 210 source4/heimdal/lib/gssapi/krb5/accept_sec_context.c ctx->auth_context, ctx 213 source4/heimdal/lib/gssapi/krb5/accept_sec_context.c _gsskrb5i_is_cfx(ctx, &is_cfx); ctx 216 source4/heimdal/lib/gssapi/krb5/accept_sec_context.c &ctx->order, ctx 217 source4/heimdal/lib/gssapi/krb5/accept_sec_context.c _gssapi_msg_order_f(ctx->flags), ctx 226 source4/heimdal/lib/gssapi/krb5/accept_sec_context.c if (!(ctx->flags & GSS_C_MUTUAL_FLAG) && _gssapi_msg_order_f(ctx->flags)) { ctx 228 source4/heimdal/lib/gssapi/krb5/accept_sec_context.c ctx->auth_context, ctx 235 source4/heimdal/lib/gssapi/krb5/accept_sec_context.c if (ctx->fwd_data.length > 0 && (ctx->flags & GSS_C_DELEG_FLAG)) { ctx 237 source4/heimdal/lib/gssapi/krb5/accept_sec_context.c ctx, ctx 244 source4/heimdal/lib/gssapi/krb5/accept_sec_context.c ctx->flags &= ~GSS_C_DELEG_FLAG; ctx 247 source4/heimdal/lib/gssapi/krb5/accept_sec_context.c ctx->state = ACCEPTOR_READY; ctx 248 source4/heimdal/lib/gssapi/krb5/accept_sec_context.c ctx->more_flags |= OPEN; ctx 311 source4/heimdal/lib/gssapi/krb5/accept_sec_context.c gsskrb5_ctx ctx, ctx 379 source4/heimdal/lib/gssapi/krb5/accept_sec_context.c &ctx->auth_context, ctx 405 source4/heimdal/lib/gssapi/krb5/accept_sec_context.c &ctx->ticket); ctx 408 source4/heimdal/lib/gssapi/krb5/accept_sec_context.c &ctx->service_keyblock); ctx 409 source4/heimdal/lib/gssapi/krb5/accept_sec_context.c ctx->lifetime = ctx->ticket->ticket.endtime; ctx 425 source4/heimdal/lib/gssapi/krb5/accept_sec_context.c ctx->ticket->client, ctx 426 source4/heimdal/lib/gssapi/krb5/accept_sec_context.c &ctx->source); ctx 433 source4/heimdal/lib/gssapi/krb5/accept_sec_context.c ctx->ticket->server, ctx 434 source4/heimdal/lib/gssapi/krb5/accept_sec_context.c &ctx->target); ctx 445 source4/heimdal/lib/gssapi/krb5/accept_sec_context.c ret = _gss_DES3_get_mic_compat(minor_status, ctx, context); ctx 451 source4/heimdal/lib/gssapi/krb5/accept_sec_context.c ctx->ticket->client, ctx 467 source4/heimdal/lib/gssapi/krb5/accept_sec_context.c ctx->auth_context, ctx 479 source4/heimdal/lib/gssapi/krb5/accept_sec_context.c &ctx->flags, ctx 480 source4/heimdal/lib/gssapi/krb5/accept_sec_context.c &ctx->fwd_data); ctx 490 source4/heimdal/lib/gssapi/krb5/accept_sec_context.c ctx->auth_context->keyblock, ctx 520 source4/heimdal/lib/gssapi/krb5/accept_sec_context.c ctx->flags = ctx 525 source4/heimdal/lib/gssapi/krb5/accept_sec_context.c if(ctx->flags & GSS_C_MUTUAL_FLAG) { ctx 529 source4/heimdal/lib/gssapi/krb5/accept_sec_context.c _gsskrb5i_is_cfx(ctx, &is_cfx); ctx 541 source4/heimdal/lib/gssapi/krb5/accept_sec_context.c ctx->auth_context, ctx 545 source4/heimdal/lib/gssapi/krb5/accept_sec_context.c ctx->auth_context, ctx 553 source4/heimdal/lib/gssapi/krb5/accept_sec_context.c ctx->more_flags |= ACCEPTOR_SUBKEY; ctx 554 source4/heimdal/lib/gssapi/krb5/accept_sec_context.c krb5_auth_con_addflags(context, ctx->auth_context, ctx 560 source4/heimdal/lib/gssapi/krb5/accept_sec_context.c ctx->auth_context, ctx 567 source4/heimdal/lib/gssapi/krb5/accept_sec_context.c if (IS_DCE_STYLE(ctx)) { ctx 582 source4/heimdal/lib/gssapi/krb5/accept_sec_context.c ctx->flags |= GSS_C_TRANS_FLAG; ctx 586 source4/heimdal/lib/gssapi/krb5/accept_sec_context.c ctx->lifetime = ctx->ticket->ticket.endtime; ctx 587 source4/heimdal/lib/gssapi/krb5/accept_sec_context.c ctx->more_flags |= OPEN; ctx 595 source4/heimdal/lib/gssapi/krb5/accept_sec_context.c ctx->lifetime, ctx 606 source4/heimdal/lib/gssapi/krb5/accept_sec_context.c if (IS_DCE_STYLE(ctx)) { ctx 612 source4/heimdal/lib/gssapi/krb5/accept_sec_context.c *ret_flags = (ctx->flags & ~GSS_C_DELEG_FLAG); ctx 614 source4/heimdal/lib/gssapi/krb5/accept_sec_context.c ctx->state = ACCEPTOR_WAIT_FOR_DCESTYLE; ctx 618 source4/heimdal/lib/gssapi/krb5/accept_sec_context.c ret = gsskrb5_acceptor_ready(minor_status, ctx, context, ctx 622 source4/heimdal/lib/gssapi/krb5/accept_sec_context.c *ret_flags = ctx->flags; ctx 629 source4/heimdal/lib/gssapi/krb5/accept_sec_context.c gsskrb5_ctx ctx, ctx 660 source4/heimdal/lib/gssapi/krb5/accept_sec_context.c ctx->auth_context, ctx 668 source4/heimdal/lib/gssapi/krb5/accept_sec_context.c ctx->auth_context, ctx 676 source4/heimdal/lib/gssapi/krb5/accept_sec_context.c ctx->auth_context, ctx 694 source4/heimdal/lib/gssapi/krb5/accept_sec_context.c ctx->auth_context, ctx 698 source4/heimdal/lib/gssapi/krb5/accept_sec_context.c kret = krb5_rd_rep(context, ctx->auth_context, &inbuf, &repl); ctx 704 source4/heimdal/lib/gssapi/krb5/accept_sec_context.c krb5_auth_con_setflags(context, ctx->auth_context, auth_flags); ctx 713 source4/heimdal/lib/gssapi/krb5/accept_sec_context.c ctx->lifetime, ctx 726 source4/heimdal/lib/gssapi/krb5/accept_sec_context.c if (ret_flags) *ret_flags = ctx->flags; ctx 730 source4/heimdal/lib/gssapi/krb5/accept_sec_context.c ctx->source, ctx 748 source4/heimdal/lib/gssapi/krb5/accept_sec_context.c ctx->auth_context, ctx 756 source4/heimdal/lib/gssapi/krb5/accept_sec_context.c ctx->auth_context, ctx 778 source4/heimdal/lib/gssapi/krb5/accept_sec_context.c ctx->auth_context, ctx 786 source4/heimdal/lib/gssapi/krb5/accept_sec_context.c return gsskrb5_acceptor_ready(minor_status, ctx, context, ctx 806 source4/heimdal/lib/gssapi/krb5/accept_sec_context.c gsskrb5_ctx ctx; ctx 828 source4/heimdal/lib/gssapi/krb5/accept_sec_context.c ctx = (gsskrb5_ctx)*context_handle; ctx 836 source4/heimdal/lib/gssapi/krb5/accept_sec_context.c HEIMDAL_MUTEX_lock(&ctx->ctx_id_mutex); ctx 838 source4/heimdal/lib/gssapi/krb5/accept_sec_context.c switch (ctx->state) { ctx 841 source4/heimdal/lib/gssapi/krb5/accept_sec_context.c ctx, ctx 855 source4/heimdal/lib/gssapi/krb5/accept_sec_context.c ctx, ctx 880 source4/heimdal/lib/gssapi/krb5/accept_sec_context.c HEIMDAL_MUTEX_unlock(&ctx->ctx_id_mutex); ctx 688 source4/heimdal/lib/gssapi/krb5/arcfour.c max_wrap_length_arcfour(const gsskrb5_ctx ctx, ctx 698 source4/heimdal/lib/gssapi/krb5/arcfour.c if (IS_DCE_STYLE(ctx)) { ctx 732 source4/heimdal/lib/gssapi/krb5/arcfour.c const gsskrb5_ctx ctx, ctx 749 source4/heimdal/lib/gssapi/krb5/arcfour.c ret = max_wrap_length_arcfour(ctx, crypto, ctx 88 source4/heimdal/lib/gssapi/krb5/compat.c gsskrb5_ctx ctx, ctx 94 source4/heimdal/lib/gssapi/krb5/compat.c if ((ctx->more_flags & COMPAT_OLD_DES3_SELECTED) == 0) { ctx 95 source4/heimdal/lib/gssapi/krb5/compat.c ret = check_compat(minor_status, context, ctx->target, ctx 99 source4/heimdal/lib/gssapi/krb5/compat.c ret = check_compat(minor_status, context, ctx->target, ctx 105 source4/heimdal/lib/gssapi/krb5/compat.c ctx->more_flags |= COMPAT_OLD_DES3; ctx 106 source4/heimdal/lib/gssapi/krb5/compat.c ctx->more_flags |= COMPAT_OLD_DES3_SELECTED; ctx 113 source4/heimdal/lib/gssapi/krb5/compat.c gss_krb5_compat_des3_mic(OM_uint32 *minor_status, gss_ctx_id_t ctx, int on) ctx 117 source4/heimdal/lib/gssapi/krb5/compat.c HEIMDAL_MUTEX_lock(&ctx->ctx_id_mutex); ctx 119 source4/heimdal/lib/gssapi/krb5/compat.c ctx->more_flags |= COMPAT_OLD_DES3; ctx 121 source4/heimdal/lib/gssapi/krb5/compat.c ctx->more_flags &= ~COMPAT_OLD_DES3; ctx 123 source4/heimdal/lib/gssapi/krb5/compat.c ctx->more_flags |= COMPAT_OLD_DES3_SELECTED; ctx 124 source4/heimdal/lib/gssapi/krb5/compat.c HEIMDAL_MUTEX_unlock(&ctx->ctx_id_mutex); ctx 76 source4/heimdal/lib/gssapi/krb5/context_time.c const gsskrb5_ctx ctx = (const gsskrb5_ctx) context_handle; ctx 80 source4/heimdal/lib/gssapi/krb5/context_time.c HEIMDAL_MUTEX_lock(&ctx->ctx_id_mutex); ctx 81 source4/heimdal/lib/gssapi/krb5/context_time.c lifetime = ctx->lifetime; ctx 82 source4/heimdal/lib/gssapi/krb5/context_time.c HEIMDAL_MUTEX_unlock(&ctx->ctx_id_mutex); ctx 44 source4/heimdal/lib/gssapi/krb5/delete_sec_context.c gsskrb5_ctx ctx; ctx 58 source4/heimdal/lib/gssapi/krb5/delete_sec_context.c ctx = (gsskrb5_ctx) *context_handle; ctx 61 source4/heimdal/lib/gssapi/krb5/delete_sec_context.c HEIMDAL_MUTEX_lock(&ctx->ctx_id_mutex); ctx 63 source4/heimdal/lib/gssapi/krb5/delete_sec_context.c krb5_auth_con_free (context, ctx->auth_context); ctx 64 source4/heimdal/lib/gssapi/krb5/delete_sec_context.c if (ctx->kcred) ctx 65 source4/heimdal/lib/gssapi/krb5/delete_sec_context.c krb5_free_creds(context, ctx->kcred); ctx 66 source4/heimdal/lib/gssapi/krb5/delete_sec_context.c if(ctx->source) ctx 67 source4/heimdal/lib/gssapi/krb5/delete_sec_context.c krb5_free_principal (context, ctx->source); ctx 68 source4/heimdal/lib/gssapi/krb5/delete_sec_context.c if(ctx->target) ctx 69 source4/heimdal/lib/gssapi/krb5/delete_sec_context.c krb5_free_principal (context, ctx->target); ctx 70 source4/heimdal/lib/gssapi/krb5/delete_sec_context.c if (ctx->ticket) ctx 71 source4/heimdal/lib/gssapi/krb5/delete_sec_context.c krb5_free_ticket (context, ctx->ticket); ctx 72 source4/heimdal/lib/gssapi/krb5/delete_sec_context.c if(ctx->order) ctx 73 source4/heimdal/lib/gssapi/krb5/delete_sec_context.c _gssapi_msg_order_destroy(&ctx->order); ctx 74 source4/heimdal/lib/gssapi/krb5/delete_sec_context.c if (ctx->service_keyblock) ctx 75 source4/heimdal/lib/gssapi/krb5/delete_sec_context.c krb5_free_keyblock (context, ctx->service_keyblock); ctx 76 source4/heimdal/lib/gssapi/krb5/delete_sec_context.c krb5_data_free(&ctx->fwd_data); ctx 78 source4/heimdal/lib/gssapi/krb5/delete_sec_context.c HEIMDAL_MUTEX_unlock(&ctx->ctx_id_mutex); ctx 79 source4/heimdal/lib/gssapi/krb5/delete_sec_context.c HEIMDAL_MUTEX_destroy(&ctx->ctx_id_mutex); ctx 80 source4/heimdal/lib/gssapi/krb5/delete_sec_context.c memset(ctx, 0, sizeof(*ctx)); ctx 81 source4/heimdal/lib/gssapi/krb5/delete_sec_context.c free (ctx); ctx 46 source4/heimdal/lib/gssapi/krb5/export_sec_context.c const gsskrb5_ctx ctx = (const gsskrb5_ctx) *context_handle; ctx 58 source4/heimdal/lib/gssapi/krb5/export_sec_context.c HEIMDAL_MUTEX_lock(&ctx->ctx_id_mutex); ctx 60 source4/heimdal/lib/gssapi/krb5/export_sec_context.c if (!(ctx->flags & GSS_C_TRANS_FLAG)) { ctx 61 source4/heimdal/lib/gssapi/krb5/export_sec_context.c HEIMDAL_MUTEX_unlock(&ctx->ctx_id_mutex); ctx 68 source4/heimdal/lib/gssapi/krb5/export_sec_context.c HEIMDAL_MUTEX_unlock(&ctx->ctx_id_mutex); ctx 72 source4/heimdal/lib/gssapi/krb5/export_sec_context.c ac = ctx->auth_context; ctx 171 source4/heimdal/lib/gssapi/krb5/export_sec_context.c (gss_name_t)ctx->source, &buffer); ctx 184 source4/heimdal/lib/gssapi/krb5/export_sec_context.c (gss_name_t)ctx->target, &buffer); ctx 199 source4/heimdal/lib/gssapi/krb5/export_sec_context.c kret = krb5_store_int32 (sp, ctx->flags); ctx 204 source4/heimdal/lib/gssapi/krb5/export_sec_context.c kret = krb5_store_int32 (sp, ctx->more_flags); ctx 209 source4/heimdal/lib/gssapi/krb5/export_sec_context.c kret = krb5_store_int32 (sp, ctx->lifetime); ctx 214 source4/heimdal/lib/gssapi/krb5/export_sec_context.c kret = _gssapi_msg_order_export(sp, ctx->order); ctx 223 source4/heimdal/lib/gssapi/krb5/export_sec_context.c HEIMDAL_MUTEX_unlock(&ctx->ctx_id_mutex); ctx 229 source4/heimdal/lib/gssapi/krb5/export_sec_context.c HEIMDAL_MUTEX_unlock(&ctx->ctx_id_mutex); ctx 237 source4/heimdal/lib/gssapi/krb5/export_sec_context.c HEIMDAL_MUTEX_unlock(&ctx->ctx_id_mutex); ctx 41 source4/heimdal/lib/gssapi/krb5/get_mic.c const gsskrb5_ctx ctx, ctx 96 source4/heimdal/lib/gssapi/krb5/get_mic.c HEIMDAL_MUTEX_lock(&ctx->ctx_id_mutex); ctx 99 source4/heimdal/lib/gssapi/krb5/get_mic.c ctx->auth_context, ctx 108 source4/heimdal/lib/gssapi/krb5/get_mic.c (ctx->more_flags & LOCAL) ? 0 : 0xFF, ctx 116 source4/heimdal/lib/gssapi/krb5/get_mic.c ctx->auth_context, ctx 118 source4/heimdal/lib/gssapi/krb5/get_mic.c HEIMDAL_MUTEX_unlock(&ctx->ctx_id_mutex); ctx 130 source4/heimdal/lib/gssapi/krb5/get_mic.c const gsskrb5_ctx ctx, ctx 214 source4/heimdal/lib/gssapi/krb5/get_mic.c HEIMDAL_MUTEX_lock(&ctx->ctx_id_mutex); ctx 217 source4/heimdal/lib/gssapi/krb5/get_mic.c ctx->auth_context, ctx 225 source4/heimdal/lib/gssapi/krb5/get_mic.c (ctx->more_flags & LOCAL) ? 0 : 0xFF, ctx 238 source4/heimdal/lib/gssapi/krb5/get_mic.c if (ctx->more_flags & COMPAT_OLD_DES3) ctx 262 source4/heimdal/lib/gssapi/krb5/get_mic.c ctx->auth_context, ctx 264 source4/heimdal/lib/gssapi/krb5/get_mic.c HEIMDAL_MUTEX_unlock(&ctx->ctx_id_mutex); ctx 280 source4/heimdal/lib/gssapi/krb5/get_mic.c const gsskrb5_ctx ctx = (const gsskrb5_ctx) context_handle; ctx 287 source4/heimdal/lib/gssapi/krb5/get_mic.c HEIMDAL_MUTEX_lock(&ctx->ctx_id_mutex); ctx 288 source4/heimdal/lib/gssapi/krb5/get_mic.c ret = _gsskrb5i_get_token_key(ctx, context, &key); ctx 289 source4/heimdal/lib/gssapi/krb5/get_mic.c HEIMDAL_MUTEX_unlock(&ctx->ctx_id_mutex); ctx 298 source4/heimdal/lib/gssapi/krb5/get_mic.c ret = mic_des (minor_status, ctx, context, qop_req, ctx 302 source4/heimdal/lib/gssapi/krb5/get_mic.c ret = mic_des3 (minor_status, ctx, context, qop_req, ctx 307 source4/heimdal/lib/gssapi/krb5/get_mic.c ret = _gssapi_get_mic_arcfour (minor_status, ctx, context, qop_req, ctx 311 source4/heimdal/lib/gssapi/krb5/get_mic.c ret = _gssapi_mic_cfx (minor_status, ctx, context, qop_req, ctx 60 source4/heimdal/lib/gssapi/krb5/gsskrb5_locl.h #define IS_DCE_STYLE(ctx) (((ctx)->flags & GSS_C_DCE_STYLE) != 0) ctx 124 source4/heimdal/lib/gssapi/krb5/gsskrb5_locl.h #define GSSAPI_KRB5_INIT(ctx) do { \ ctx 126 source4/heimdal/lib/gssapi/krb5/gsskrb5_locl.h if((kret_gss_init = _gsskrb5_init (ctx)) != 0) { \ ctx 56 source4/heimdal/lib/gssapi/krb5/import_sec_context.c gsskrb5_ctx ctx; ctx 72 source4/heimdal/lib/gssapi/krb5/import_sec_context.c ctx = calloc(1, sizeof(*ctx)); ctx 73 source4/heimdal/lib/gssapi/krb5/import_sec_context.c if (ctx == NULL) { ctx 78 source4/heimdal/lib/gssapi/krb5/import_sec_context.c HEIMDAL_MUTEX_init(&ctx->ctx_id_mutex); ctx 81 source4/heimdal/lib/gssapi/krb5/import_sec_context.c &ctx->auth_context); ctx 97 source4/heimdal/lib/gssapi/krb5/import_sec_context.c ac = ctx->auth_context; ctx 170 source4/heimdal/lib/gssapi/krb5/import_sec_context.c ctx->source = (krb5_principal)name; ctx 188 source4/heimdal/lib/gssapi/krb5/import_sec_context.c ctx->target = (krb5_principal)name; ctx 193 source4/heimdal/lib/gssapi/krb5/import_sec_context.c ctx->flags = tmp; ctx 196 source4/heimdal/lib/gssapi/krb5/import_sec_context.c ctx->more_flags = tmp; ctx 199 source4/heimdal/lib/gssapi/krb5/import_sec_context.c ctx->lifetime = tmp; ctx 201 source4/heimdal/lib/gssapi/krb5/import_sec_context.c ret = _gssapi_msg_order_import(minor_status, sp, &ctx->order); ctx 207 source4/heimdal/lib/gssapi/krb5/import_sec_context.c *context_handle = (gss_ctx_id_t)ctx; ctx 213 source4/heimdal/lib/gssapi/krb5/import_sec_context.c ctx->auth_context); ctx 214 source4/heimdal/lib/gssapi/krb5/import_sec_context.c if (ctx->source != NULL) ctx 215 source4/heimdal/lib/gssapi/krb5/import_sec_context.c krb5_free_principal(context, ctx->source); ctx 216 source4/heimdal/lib/gssapi/krb5/import_sec_context.c if (ctx->target != NULL) ctx 217 source4/heimdal/lib/gssapi/krb5/import_sec_context.c krb5_free_principal(context, ctx->target); ctx 222 source4/heimdal/lib/gssapi/krb5/import_sec_context.c if(ctx->order) ctx 223 source4/heimdal/lib/gssapi/krb5/import_sec_context.c _gssapi_msg_order_destroy(&ctx->order); ctx 224 source4/heimdal/lib/gssapi/krb5/import_sec_context.c HEIMDAL_MUTEX_destroy(&ctx->ctx_id_mutex); ctx 226 source4/heimdal/lib/gssapi/krb5/import_sec_context.c free (ctx); ctx 112 source4/heimdal/lib/gssapi/krb5/init_sec_context.c gsskrb5_ctx ctx; ctx 116 source4/heimdal/lib/gssapi/krb5/init_sec_context.c ctx = malloc(sizeof(*ctx)); ctx 117 source4/heimdal/lib/gssapi/krb5/init_sec_context.c if (ctx == NULL) { ctx 121 source4/heimdal/lib/gssapi/krb5/init_sec_context.c ctx->auth_context = NULL; ctx 122 source4/heimdal/lib/gssapi/krb5/init_sec_context.c ctx->source = NULL; ctx 123 source4/heimdal/lib/gssapi/krb5/init_sec_context.c ctx->target = NULL; ctx 124 source4/heimdal/lib/gssapi/krb5/init_sec_context.c ctx->kcred = NULL; ctx 125 source4/heimdal/lib/gssapi/krb5/init_sec_context.c ctx->ccache = NULL; ctx 126 source4/heimdal/lib/gssapi/krb5/init_sec_context.c ctx->state = state; ctx 127 source4/heimdal/lib/gssapi/krb5/init_sec_context.c ctx->flags = 0; ctx 128 source4/heimdal/lib/gssapi/krb5/init_sec_context.c ctx->more_flags = 0; ctx 129 source4/heimdal/lib/gssapi/krb5/init_sec_context.c ctx->service_keyblock = NULL; ctx 130 source4/heimdal/lib/gssapi/krb5/init_sec_context.c ctx->ticket = NULL; ctx 131 source4/heimdal/lib/gssapi/krb5/init_sec_context.c krb5_data_zero(&ctx->fwd_data); ctx 132 source4/heimdal/lib/gssapi/krb5/init_sec_context.c ctx->lifetime = GSS_C_INDEFINITE; ctx 133 source4/heimdal/lib/gssapi/krb5/init_sec_context.c ctx->order = NULL; ctx 134 source4/heimdal/lib/gssapi/krb5/init_sec_context.c HEIMDAL_MUTEX_init(&ctx->ctx_id_mutex); ctx 136 source4/heimdal/lib/gssapi/krb5/init_sec_context.c kret = krb5_auth_con_init (context, &ctx->auth_context); ctx 139 source4/heimdal/lib/gssapi/krb5/init_sec_context.c HEIMDAL_MUTEX_destroy(&ctx->ctx_id_mutex); ctx 143 source4/heimdal/lib/gssapi/krb5/init_sec_context.c kret = set_addresses(context, ctx->auth_context, input_chan_bindings); ctx 147 source4/heimdal/lib/gssapi/krb5/init_sec_context.c HEIMDAL_MUTEX_destroy(&ctx->ctx_id_mutex); ctx 149 source4/heimdal/lib/gssapi/krb5/init_sec_context.c krb5_auth_con_free(context, ctx->auth_context); ctx 159 source4/heimdal/lib/gssapi/krb5/init_sec_context.c ctx->auth_context, ctx 164 source4/heimdal/lib/gssapi/krb5/init_sec_context.c *context_handle = (gss_ctx_id_t)ctx; ctx 175 source4/heimdal/lib/gssapi/krb5/init_sec_context.c gsskrb5_ctx ctx, ctx 189 source4/heimdal/lib/gssapi/krb5/init_sec_context.c if (ctx->target) { ctx 190 source4/heimdal/lib/gssapi/krb5/init_sec_context.c krb5_free_principal(context, ctx->target); ctx 191 source4/heimdal/lib/gssapi/krb5/init_sec_context.c ctx->target = NULL; ctx 195 source4/heimdal/lib/gssapi/krb5/init_sec_context.c target_name, &ctx->target); ctx 200 source4/heimdal/lib/gssapi/krb5/init_sec_context.c this_cred.client = ctx->source; ctx 201 source4/heimdal/lib/gssapi/krb5/init_sec_context.c this_cred.server = ctx->target; ctx 224 source4/heimdal/lib/gssapi/krb5/init_sec_context.c ctx->lifetime = (*cred)->times.endtime; ctx 227 source4/heimdal/lib/gssapi/krb5/init_sec_context.c ctx->lifetime, &lifetime_rec); ctx 243 source4/heimdal/lib/gssapi/krb5/init_sec_context.c gsskrb5_ctx ctx, ctx 249 source4/heimdal/lib/gssapi/krb5/init_sec_context.c OM_uint32 flags = ctx->flags; ctx 251 source4/heimdal/lib/gssapi/krb5/init_sec_context.c krb5_free_creds(context, ctx->kcred); ctx 252 source4/heimdal/lib/gssapi/krb5/init_sec_context.c ctx->kcred = NULL; ctx 254 source4/heimdal/lib/gssapi/krb5/init_sec_context.c if (ctx->more_flags & CLOSE_CCACHE) ctx 255 source4/heimdal/lib/gssapi/krb5/init_sec_context.c krb5_cc_close(context, ctx->ccache); ctx 256 source4/heimdal/lib/gssapi/krb5/init_sec_context.c ctx->ccache = NULL; ctx 258 source4/heimdal/lib/gssapi/krb5/init_sec_context.c krb5_auth_getremoteseqnumber (context, ctx->auth_context, &seq_number); ctx 260 source4/heimdal/lib/gssapi/krb5/init_sec_context.c _gsskrb5i_is_cfx(ctx, &is_cfx); ctx 263 source4/heimdal/lib/gssapi/krb5/init_sec_context.c &ctx->order, ctx 268 source4/heimdal/lib/gssapi/krb5/init_sec_context.c ctx->state = INITIATOR_READY; ctx 269 source4/heimdal/lib/gssapi/krb5/init_sec_context.c ctx->more_flags |= OPEN; ctx 347 source4/heimdal/lib/gssapi/krb5/init_sec_context.c gsskrb5_ctx ctx, ctx 376 source4/heimdal/lib/gssapi/krb5/init_sec_context.c kret = krb5_cc_default (context, &ctx->ccache); ctx 382 source4/heimdal/lib/gssapi/krb5/init_sec_context.c ctx->more_flags |= CLOSE_CCACHE; ctx 384 source4/heimdal/lib/gssapi/krb5/init_sec_context.c ctx->ccache = cred->ccache; ctx 386 source4/heimdal/lib/gssapi/krb5/init_sec_context.c kret = krb5_cc_get_principal (context, ctx->ccache, &ctx->source); ctx 393 source4/heimdal/lib/gssapi/krb5/init_sec_context.c ret = _gss_DES3_get_mic_compat(minor_status, ctx, context); ctx 413 source4/heimdal/lib/gssapi/krb5/init_sec_context.c kret = krb5_cc_get_config(context, ctx->ccache, NULL, ctx 428 source4/heimdal/lib/gssapi/krb5/init_sec_context.c ret = gsskrb5_get_creds(minor_status, context, ctx->ccache, ctx 429 source4/heimdal/lib/gssapi/krb5/init_sec_context.c ctx, name, 0, time_req, ctx 430 source4/heimdal/lib/gssapi/krb5/init_sec_context.c time_rec, &ctx->kcred); ctx 432 source4/heimdal/lib/gssapi/krb5/init_sec_context.c ret = gsskrb5_get_creds(minor_status, context, ctx->ccache, ctx 433 source4/heimdal/lib/gssapi/krb5/init_sec_context.c ctx, name, 1, time_req, ctx 434 source4/heimdal/lib/gssapi/krb5/init_sec_context.c time_rec, &ctx->kcred); ctx 438 source4/heimdal/lib/gssapi/krb5/init_sec_context.c ctx->lifetime = ctx->kcred->times.endtime; ctx 442 source4/heimdal/lib/gssapi/krb5/init_sec_context.c ctx->lifetime, ctx 454 source4/heimdal/lib/gssapi/krb5/init_sec_context.c ctx->auth_context, ctx 455 source4/heimdal/lib/gssapi/krb5/init_sec_context.c &ctx->kcred->session); ctx 458 source4/heimdal/lib/gssapi/krb5/init_sec_context.c ctx->auth_context, ctx 459 source4/heimdal/lib/gssapi/krb5/init_sec_context.c &ctx->kcred->session); ctx 469 source4/heimdal/lib/gssapi/krb5/init_sec_context.c if (ctx->ccache && (ctx->more_flags & CLOSE_CCACHE)) ctx 470 source4/heimdal/lib/gssapi/krb5/init_sec_context.c krb5_cc_close(context, ctx->ccache); ctx 471 source4/heimdal/lib/gssapi/krb5/init_sec_context.c ctx->ccache = NULL; ctx 481 source4/heimdal/lib/gssapi/krb5/init_sec_context.c gsskrb5_ctx ctx, ctx 513 source4/heimdal/lib/gssapi/krb5/init_sec_context.c if (!ctx->kcred->flags.b.ok_as_delegate) { ctx 516 source4/heimdal/lib/gssapi/krb5/init_sec_context.c ret = krb5_cc_get_config(context, ctx->ccache, NULL, ctx 530 source4/heimdal/lib/gssapi/krb5/init_sec_context.c && ctx->kcred->flags.b.ok_as_delegate) ctx 541 source4/heimdal/lib/gssapi/krb5/init_sec_context.c ctx->auth_context, ctx 542 source4/heimdal/lib/gssapi/krb5/init_sec_context.c ctx->ccache, ctx->kcred, ctx->target, ctx 581 source4/heimdal/lib/gssapi/krb5/init_sec_context.c ctx->flags = flags; ctx 582 source4/heimdal/lib/gssapi/krb5/init_sec_context.c ctx->more_flags |= LOCAL; ctx 593 source4/heimdal/lib/gssapi/krb5/init_sec_context.c enctype = ctx->auth_context->keyblock->keytype; ctx 595 source4/heimdal/lib/gssapi/krb5/init_sec_context.c ret = krb5_cc_get_config(context, ctx->ccache, ctx->target, ctx 611 source4/heimdal/lib/gssapi/krb5/init_sec_context.c ctx->auth_context, ctx 613 source4/heimdal/lib/gssapi/krb5/init_sec_context.c ctx->kcred, ctx 629 source4/heimdal/lib/gssapi/krb5/init_sec_context.c ctx->kcred, ctx 655 source4/heimdal/lib/gssapi/krb5/init_sec_context.c ctx->state = INITIATOR_WAIT_FOR_MUTAL; ctx 659 source4/heimdal/lib/gssapi/krb5/init_sec_context.c return gsskrb5_initiator_ready(minor_status, ctx, context); ctx 661 source4/heimdal/lib/gssapi/krb5/init_sec_context.c if (ctx->ccache && (ctx->more_flags & CLOSE_CCACHE)) ctx 662 source4/heimdal/lib/gssapi/krb5/init_sec_context.c krb5_cc_close(context, ctx->ccache); ctx 663 source4/heimdal/lib/gssapi/krb5/init_sec_context.c ctx->ccache = NULL; ctx 672 source4/heimdal/lib/gssapi/krb5/init_sec_context.c gsskrb5_ctx ctx, ctx 697 source4/heimdal/lib/gssapi/krb5/init_sec_context.c if (ctx->flags & GSS_C_DCE_STYLE) { ctx 735 source4/heimdal/lib/gssapi/krb5/init_sec_context.c krb5_cc_set_config(context, ctx->ccache, ctx->target, ctx 738 source4/heimdal/lib/gssapi/krb5/init_sec_context.c if ((ctx->more_flags & RETRIED) == 0) ctx 739 source4/heimdal/lib/gssapi/krb5/init_sec_context.c ctx->state = INITIATOR_RESTART; ctx 740 source4/heimdal/lib/gssapi/krb5/init_sec_context.c ctx->more_flags |= RETRIED; ctx 752 source4/heimdal/lib/gssapi/krb5/init_sec_context.c ctx->auth_context, ctx 762 source4/heimdal/lib/gssapi/krb5/init_sec_context.c _gsskrb5i_is_cfx(ctx, &is_cfx); ctx 767 source4/heimdal/lib/gssapi/krb5/init_sec_context.c ctx->auth_context, ctx 770 source4/heimdal/lib/gssapi/krb5/init_sec_context.c ctx->more_flags |= ACCEPTOR_SUBKEY; ctx 780 source4/heimdal/lib/gssapi/krb5/init_sec_context.c ctx->lifetime, ctx 786 source4/heimdal/lib/gssapi/krb5/init_sec_context.c *ret_flags = ctx->flags; ctx 799 source4/heimdal/lib/gssapi/krb5/init_sec_context.c krb5_auth_getremoteseqnumber(context, ctx->auth_context, &remote_seq); ctx 800 source4/heimdal/lib/gssapi/krb5/init_sec_context.c krb5_auth_con_getlocalseqnumber(context, ctx->auth_context, &local_seq); ctx 801 source4/heimdal/lib/gssapi/krb5/init_sec_context.c krb5_auth_con_setlocalseqnumber(context, ctx->auth_context, remote_seq); ctx 803 source4/heimdal/lib/gssapi/krb5/init_sec_context.c kret = krb5_mk_rep(context, ctx->auth_context, &outbuf); ctx 810 source4/heimdal/lib/gssapi/krb5/init_sec_context.c krb5_auth_con_setlocalseqnumber(context, ctx->auth_context, local_seq); ctx 816 source4/heimdal/lib/gssapi/krb5/init_sec_context.c return gsskrb5_initiator_ready(minor_status, ctx, context); ctx 841 source4/heimdal/lib/gssapi/krb5/init_sec_context.c gsskrb5_ctx ctx; ctx 892 source4/heimdal/lib/gssapi/krb5/init_sec_context.c ctx = (gsskrb5_ctx) *context_handle; ctx 894 source4/heimdal/lib/gssapi/krb5/init_sec_context.c HEIMDAL_MUTEX_lock(&ctx->ctx_id_mutex); ctx 897 source4/heimdal/lib/gssapi/krb5/init_sec_context.c switch (ctx->state) { ctx 901 source4/heimdal/lib/gssapi/krb5/init_sec_context.c ctx, ctx 918 source4/heimdal/lib/gssapi/krb5/init_sec_context.c ctx, ctx 930 source4/heimdal/lib/gssapi/krb5/init_sec_context.c ctx, ctx 941 source4/heimdal/lib/gssapi/krb5/init_sec_context.c if (ctx->state == INITIATOR_RESTART) ctx 957 source4/heimdal/lib/gssapi/krb5/init_sec_context.c (int)ctx->state); ctx 962 source4/heimdal/lib/gssapi/krb5/init_sec_context.c HEIMDAL_MUTEX_unlock(&ctx->ctx_id_mutex); ctx 52 source4/heimdal/lib/gssapi/krb5/inquire_context.c gsskrb5_ctx ctx = (gsskrb5_ctx)context_handle; ctx 62 source4/heimdal/lib/gssapi/krb5/inquire_context.c HEIMDAL_MUTEX_lock(&ctx->ctx_id_mutex); ctx 65 source4/heimdal/lib/gssapi/krb5/inquire_context.c name = (gss_name_t)ctx->source; ctx 72 source4/heimdal/lib/gssapi/krb5/inquire_context.c name = (gss_name_t)ctx->target; ctx 81 source4/heimdal/lib/gssapi/krb5/inquire_context.c ctx->lifetime, ctx 91 source4/heimdal/lib/gssapi/krb5/inquire_context.c *ctx_flags = ctx->flags; ctx 94 source4/heimdal/lib/gssapi/krb5/inquire_context.c *locally_initiated = ctx->more_flags & LOCAL; ctx 97 source4/heimdal/lib/gssapi/krb5/inquire_context.c *open_context = ctx->more_flags & OPEN; ctx 101 source4/heimdal/lib/gssapi/krb5/inquire_context.c HEIMDAL_MUTEX_unlock(&ctx->ctx_id_mutex); ctx 110 source4/heimdal/lib/gssapi/krb5/inquire_context.c HEIMDAL_MUTEX_unlock(&ctx->ctx_id_mutex); ctx 397 source4/heimdal/lib/gssapi/krb5/inquire_sec_context_by_oid.c gsskrb5_ctx ctx, ctx 405 source4/heimdal/lib/gssapi/krb5/inquire_sec_context_by_oid.c HEIMDAL_MUTEX_lock(&ctx->ctx_id_mutex); ctx 406 source4/heimdal/lib/gssapi/krb5/inquire_sec_context_by_oid.c if (ctx->ticket == NULL) { ctx 407 source4/heimdal/lib/gssapi/krb5/inquire_sec_context_by_oid.c HEIMDAL_MUTEX_unlock(&ctx->ctx_id_mutex); ctx 413 source4/heimdal/lib/gssapi/krb5/inquire_sec_context_by_oid.c authtime = ctx->ticket->ticket.authtime; ctx 415 source4/heimdal/lib/gssapi/krb5/inquire_sec_context_by_oid.c HEIMDAL_MUTEX_unlock(&ctx->ctx_id_mutex); ctx 430 source4/heimdal/lib/gssapi/krb5/inquire_sec_context_by_oid.c gsskrb5_ctx ctx, ctx 445 source4/heimdal/lib/gssapi/krb5/inquire_sec_context_by_oid.c HEIMDAL_MUTEX_lock(&ctx->ctx_id_mutex); ctx 446 source4/heimdal/lib/gssapi/krb5/inquire_sec_context_by_oid.c if (ctx->service_keyblock == NULL) { ctx 447 source4/heimdal/lib/gssapi/krb5/inquire_sec_context_by_oid.c HEIMDAL_MUTEX_unlock(&ctx->ctx_id_mutex); ctx 455 source4/heimdal/lib/gssapi/krb5/inquire_sec_context_by_oid.c ret = krb5_store_keyblock(sp, *ctx->service_keyblock); ctx 457 source4/heimdal/lib/gssapi/krb5/inquire_sec_context_by_oid.c HEIMDAL_MUTEX_unlock(&ctx->ctx_id_mutex); ctx 498 source4/heimdal/lib/gssapi/krb5/inquire_sec_context_by_oid.c const gsskrb5_ctx ctx = (const gsskrb5_ctx) context_handle; ctx 501 source4/heimdal/lib/gssapi/krb5/inquire_sec_context_by_oid.c if (ctx == NULL) { ctx 510 source4/heimdal/lib/gssapi/krb5/inquire_sec_context_by_oid.c ctx, ctx 514 source4/heimdal/lib/gssapi/krb5/inquire_sec_context_by_oid.c ctx, ctx 518 source4/heimdal/lib/gssapi/krb5/inquire_sec_context_by_oid.c ctx, ctx 524 source4/heimdal/lib/gssapi/krb5/inquire_sec_context_by_oid.c ctx, ctx 530 source4/heimdal/lib/gssapi/krb5/inquire_sec_context_by_oid.c ctx, ctx 535 source4/heimdal/lib/gssapi/krb5/inquire_sec_context_by_oid.c return get_authtime(minor_status, ctx, data_set); ctx 540 source4/heimdal/lib/gssapi/krb5/inquire_sec_context_by_oid.c ctx, ctx 549 source4/heimdal/lib/gssapi/krb5/inquire_sec_context_by_oid.c ctx, ctx 555 source4/heimdal/lib/gssapi/krb5/inquire_sec_context_by_oid.c return get_service_keyblock(minor_status, ctx, data_set); ctx 46 source4/heimdal/lib/gssapi/krb5/prf.c gsskrb5_ctx ctx = (gsskrb5_ctx)context_handle; ctx 55 source4/heimdal/lib/gssapi/krb5/prf.c if (ctx == NULL) { ctx 69 source4/heimdal/lib/gssapi/krb5/prf.c _gsskrb5i_get_acceptor_subkey(ctx, context, &key); ctx 72 source4/heimdal/lib/gssapi/krb5/prf.c _gsskrb5i_get_initiator_subkey(ctx, context, &key); ctx 102 source4/heimdal/lib/gssapi/krb5/prf.c HEIMDAL_MUTEX_lock(&ctx->ctx_id_mutex); ctx 112 source4/heimdal/lib/gssapi/krb5/prf.c HEIMDAL_MUTEX_unlock(&ctx->ctx_id_mutex); ctx 128 source4/heimdal/lib/gssapi/krb5/prf.c HEIMDAL_MUTEX_unlock(&ctx->ctx_id_mutex); ctx 140 source4/heimdal/lib/gssapi/krb5/prf.c HEIMDAL_MUTEX_unlock(&ctx->ctx_id_mutex); ctx 121 source4/heimdal/lib/gssapi/krb5/set_sec_context_option.c gsskrb5_ctx ctx; ctx 133 source4/heimdal/lib/gssapi/krb5/set_sec_context_option.c ctx = (gsskrb5_ctx)*context_handle; ctx 134 source4/heimdal/lib/gssapi/krb5/set_sec_context_option.c HEIMDAL_MUTEX_lock(&ctx->ctx_id_mutex); ctx 136 source4/heimdal/lib/gssapi/krb5/set_sec_context_option.c ctx->more_flags |= COMPAT_OLD_DES3; ctx 138 source4/heimdal/lib/gssapi/krb5/set_sec_context_option.c ctx->more_flags &= ~COMPAT_OLD_DES3; ctx 139 source4/heimdal/lib/gssapi/krb5/set_sec_context_option.c ctx->more_flags |= COMPAT_OLD_DES3_SELECTED; ctx 140 source4/heimdal/lib/gssapi/krb5/set_sec_context_option.c HEIMDAL_MUTEX_unlock(&ctx->ctx_id_mutex); ctx 392 source4/heimdal/lib/gssapi/krb5/unwrap.c gsskrb5_ctx ctx = (gsskrb5_ctx) context_handle; ctx 401 source4/heimdal/lib/gssapi/krb5/unwrap.c HEIMDAL_MUTEX_lock(&ctx->ctx_id_mutex); ctx 402 source4/heimdal/lib/gssapi/krb5/unwrap.c ret = _gsskrb5i_get_token_key(ctx, context, &key); ctx 403 source4/heimdal/lib/gssapi/krb5/unwrap.c HEIMDAL_MUTEX_unlock(&ctx->ctx_id_mutex); ctx 414 source4/heimdal/lib/gssapi/krb5/unwrap.c ret = unwrap_des (minor_status, ctx, ctx 419 source4/heimdal/lib/gssapi/krb5/unwrap.c ret = unwrap_des3 (minor_status, ctx, context, ctx 425 source4/heimdal/lib/gssapi/krb5/unwrap.c ret = _gssapi_unwrap_arcfour (minor_status, ctx, context, ctx 430 source4/heimdal/lib/gssapi/krb5/unwrap.c ret = _gssapi_unwrap_cfx (minor_status, ctx, context, ctx 43 source4/heimdal/lib/gssapi/krb5/wrap.c _gsskrb5i_get_initiator_subkey(const gsskrb5_ctx ctx, ctx 50 source4/heimdal/lib/gssapi/krb5/wrap.c if (ctx->more_flags & LOCAL) { ctx 52 source4/heimdal/lib/gssapi/krb5/wrap.c ctx->auth_context, ctx 56 source4/heimdal/lib/gssapi/krb5/wrap.c ctx->auth_context, ctx 61 source4/heimdal/lib/gssapi/krb5/wrap.c ctx->auth_context, ctx 71 source4/heimdal/lib/gssapi/krb5/wrap.c _gsskrb5i_get_acceptor_subkey(const gsskrb5_ctx ctx, ctx 78 source4/heimdal/lib/gssapi/krb5/wrap.c if (ctx->more_flags & LOCAL) { ctx 80 source4/heimdal/lib/gssapi/krb5/wrap.c ctx->auth_context, ctx 84 source4/heimdal/lib/gssapi/krb5/wrap.c ctx->auth_context, ctx 95 source4/heimdal/lib/gssapi/krb5/wrap.c _gsskrb5i_get_token_key(const gsskrb5_ctx ctx, ctx 99 source4/heimdal/lib/gssapi/krb5/wrap.c _gsskrb5i_get_acceptor_subkey(ctx, context, key); ctx 105 source4/heimdal/lib/gssapi/krb5/wrap.c if ((ctx->more_flags & ACCEPTOR_SUBKEY) == 0) ctx 106 source4/heimdal/lib/gssapi/krb5/wrap.c _gsskrb5i_get_initiator_subkey(ctx, context, key); ctx 153 source4/heimdal/lib/gssapi/krb5/wrap.c const gsskrb5_ctx ctx = (const gsskrb5_ctx) context_handle; ctx 157 source4/heimdal/lib/gssapi/krb5/wrap.c HEIMDAL_MUTEX_lock(&ctx->ctx_id_mutex); ctx 158 source4/heimdal/lib/gssapi/krb5/wrap.c ret = _gsskrb5i_get_token_key(ctx, context, &key); ctx 159 source4/heimdal/lib/gssapi/krb5/wrap.c HEIMDAL_MUTEX_unlock(&ctx->ctx_id_mutex); ctx 172 source4/heimdal/lib/gssapi/krb5/wrap.c ret = _gssapi_wrap_size_arcfour(minor_status, ctx, context, ctx 180 source4/heimdal/lib/gssapi/krb5/wrap.c ret = _gssapi_wrap_size_cfx(minor_status, ctx, context, ctx 193 source4/heimdal/lib/gssapi/krb5/wrap.c const gsskrb5_ctx ctx, ctx 213 source4/heimdal/lib/gssapi/krb5/wrap.c if (IS_DCE_STYLE(ctx)) { ctx 277 source4/heimdal/lib/gssapi/krb5/wrap.c HEIMDAL_MUTEX_lock(&ctx->ctx_id_mutex); ctx 279 source4/heimdal/lib/gssapi/krb5/wrap.c ctx->auth_context, ctx 288 source4/heimdal/lib/gssapi/krb5/wrap.c (ctx->more_flags & LOCAL) ? 0 : 0xFF, ctx 296 source4/heimdal/lib/gssapi/krb5/wrap.c ctx->auth_context, ctx 298 source4/heimdal/lib/gssapi/krb5/wrap.c HEIMDAL_MUTEX_unlock(&ctx->ctx_id_mutex); ctx 329 source4/heimdal/lib/gssapi/krb5/wrap.c const gsskrb5_ctx ctx, ctx 348 source4/heimdal/lib/gssapi/krb5/wrap.c if (IS_DCE_STYLE(ctx)) { ctx 427 source4/heimdal/lib/gssapi/krb5/wrap.c HEIMDAL_MUTEX_lock(&ctx->ctx_id_mutex); ctx 430 source4/heimdal/lib/gssapi/krb5/wrap.c ctx->auth_context, ctx 438 source4/heimdal/lib/gssapi/krb5/wrap.c (ctx->more_flags & LOCAL) ? 0 : 0xFF, ctx 477 source4/heimdal/lib/gssapi/krb5/wrap.c ctx->auth_context, ctx 479 source4/heimdal/lib/gssapi/krb5/wrap.c HEIMDAL_MUTEX_unlock(&ctx->ctx_id_mutex); ctx 531 source4/heimdal/lib/gssapi/krb5/wrap.c const gsskrb5_ctx ctx = (const gsskrb5_ctx) context_handle; ctx 535 source4/heimdal/lib/gssapi/krb5/wrap.c HEIMDAL_MUTEX_lock(&ctx->ctx_id_mutex); ctx 536 source4/heimdal/lib/gssapi/krb5/wrap.c ret = _gsskrb5i_get_token_key(ctx, context, &key); ctx 537 source4/heimdal/lib/gssapi/krb5/wrap.c HEIMDAL_MUTEX_unlock(&ctx->ctx_id_mutex); ctx 546 source4/heimdal/lib/gssapi/krb5/wrap.c ret = wrap_des (minor_status, ctx, context, conf_req_flag, ctx 551 source4/heimdal/lib/gssapi/krb5/wrap.c ret = wrap_des3 (minor_status, ctx, context, conf_req_flag, ctx 557 source4/heimdal/lib/gssapi/krb5/wrap.c ret = _gssapi_wrap_arcfour (minor_status, ctx, context, conf_req_flag, ctx 562 source4/heimdal/lib/gssapi/krb5/wrap.c ret = _gssapi_wrap_cfx (minor_status, ctx, context, conf_req_flag, ctx 37 source4/heimdal/lib/gssapi/mech/context.c struct mg_thread_ctx *ctx; ctx 52 source4/heimdal/lib/gssapi/mech/context.c ctx = HEIMDAL_getspecific(context_key); ctx 53 source4/heimdal/lib/gssapi/mech/context.c if (ctx == NULL) { ctx 55 source4/heimdal/lib/gssapi/mech/context.c ctx = calloc(1, sizeof(*ctx)); ctx 56 source4/heimdal/lib/gssapi/mech/context.c if (ctx == NULL) ctx 58 source4/heimdal/lib/gssapi/mech/context.c HEIMDAL_setspecific(context_key, ctx, ret); ctx 60 source4/heimdal/lib/gssapi/mech/context.c free(ctx); ctx 64 source4/heimdal/lib/gssapi/mech/context.c return ctx; ctx 159 source4/heimdal/lib/gssapi/mech/gss_accept_sec_context.c struct _gss_context *ctx = (struct _gss_context *) *context_handle; ctx 194 source4/heimdal/lib/gssapi/mech/gss_accept_sec_context.c ctx = malloc(sizeof(struct _gss_context)); ctx 195 source4/heimdal/lib/gssapi/mech/gss_accept_sec_context.c if (!ctx) { ctx 199 source4/heimdal/lib/gssapi/mech/gss_accept_sec_context.c memset(ctx, 0, sizeof(struct _gss_context)); ctx 200 source4/heimdal/lib/gssapi/mech/gss_accept_sec_context.c m = ctx->gc_mech = __gss_get_mechanism(&mech_oid); ctx 202 source4/heimdal/lib/gssapi/mech/gss_accept_sec_context.c free(ctx); ctx 205 source4/heimdal/lib/gssapi/mech/gss_accept_sec_context.c *context_handle = (gss_ctx_id_t) ctx; ctx 207 source4/heimdal/lib/gssapi/mech/gss_accept_sec_context.c m = ctx->gc_mech; ctx 226 source4/heimdal/lib/gssapi/mech/gss_accept_sec_context.c &ctx->gc_ctx, ctx 37 source4/heimdal/lib/gssapi/mech/gss_context_time.c struct _gss_context *ctx = (struct _gss_context *) context_handle; ctx 38 source4/heimdal/lib/gssapi/mech/gss_context_time.c gssapi_mech_interface m = ctx->gc_mech; ctx 40 source4/heimdal/lib/gssapi/mech/gss_context_time.c return (m->gm_context_time(minor_status, ctx->gc_ctx, time_rec)); ctx 38 source4/heimdal/lib/gssapi/mech/gss_delete_sec_context.c struct _gss_context *ctx = (struct _gss_context *) *context_handle; ctx 44 source4/heimdal/lib/gssapi/mech/gss_delete_sec_context.c if (ctx) { ctx 49 source4/heimdal/lib/gssapi/mech/gss_delete_sec_context.c if (ctx->gc_ctx) { ctx 50 source4/heimdal/lib/gssapi/mech/gss_delete_sec_context.c major_status = ctx->gc_mech->gm_delete_sec_context( ctx 51 source4/heimdal/lib/gssapi/mech/gss_delete_sec_context.c minor_status, &ctx->gc_ctx, output_token); ctx 53 source4/heimdal/lib/gssapi/mech/gss_delete_sec_context.c free(ctx); ctx 38 source4/heimdal/lib/gssapi/mech/gss_export_sec_context.c struct _gss_context *ctx = (struct _gss_context *) *context_handle; ctx 39 source4/heimdal/lib/gssapi/mech/gss_export_sec_context.c gssapi_mech_interface m = ctx->gc_mech; ctx 45 source4/heimdal/lib/gssapi/mech/gss_export_sec_context.c &ctx->gc_ctx, &buf); ctx 50 source4/heimdal/lib/gssapi/mech/gss_export_sec_context.c free(ctx); ctx 39 source4/heimdal/lib/gssapi/mech/gss_get_mic.c struct _gss_context *ctx = (struct _gss_context *) context_handle; ctx 40 source4/heimdal/lib/gssapi/mech/gss_get_mic.c gssapi_mech_interface m = ctx->gc_mech; ctx 43 source4/heimdal/lib/gssapi/mech/gss_get_mic.c if (ctx == NULL) { ctx 48 source4/heimdal/lib/gssapi/mech/gss_get_mic.c return (m->gm_get_mic(minor_status, ctx->gc_ctx, qop_req, ctx 39 source4/heimdal/lib/gssapi/mech/gss_import_sec_context.c struct _gss_context *ctx; ctx 67 source4/heimdal/lib/gssapi/mech/gss_import_sec_context.c ctx = malloc(sizeof(struct _gss_context)); ctx 68 source4/heimdal/lib/gssapi/mech/gss_import_sec_context.c if (!ctx) { ctx 72 source4/heimdal/lib/gssapi/mech/gss_import_sec_context.c ctx->gc_mech = m; ctx 74 source4/heimdal/lib/gssapi/mech/gss_import_sec_context.c &buf, &ctx->gc_ctx); ctx 77 source4/heimdal/lib/gssapi/mech/gss_import_sec_context.c free(ctx); ctx 79 source4/heimdal/lib/gssapi/mech/gss_import_sec_context.c *context_handle = (gss_ctx_id_t) ctx; ctx 67 source4/heimdal/lib/gssapi/mech/gss_init_sec_context.c struct _gss_context *ctx = (struct _gss_context *) *context_handle; ctx 87 source4/heimdal/lib/gssapi/mech/gss_init_sec_context.c if (!ctx) { ctx 91 source4/heimdal/lib/gssapi/mech/gss_init_sec_context.c ctx = malloc(sizeof(struct _gss_context)); ctx 92 source4/heimdal/lib/gssapi/mech/gss_init_sec_context.c if (!ctx) { ctx 96 source4/heimdal/lib/gssapi/mech/gss_init_sec_context.c memset(ctx, 0, sizeof(struct _gss_context)); ctx 97 source4/heimdal/lib/gssapi/mech/gss_init_sec_context.c m = ctx->gc_mech = __gss_get_mechanism(mech_type); ctx 99 source4/heimdal/lib/gssapi/mech/gss_init_sec_context.c free(ctx); ctx 104 source4/heimdal/lib/gssapi/mech/gss_init_sec_context.c m = ctx->gc_mech; ctx 105 source4/heimdal/lib/gssapi/mech/gss_init_sec_context.c mech_type = &ctx->gc_mech->gm_mech_oid; ctx 115 source4/heimdal/lib/gssapi/mech/gss_init_sec_context.c free(ctx); ctx 126 source4/heimdal/lib/gssapi/mech/gss_init_sec_context.c &ctx->gc_ctx, ctx 141 source4/heimdal/lib/gssapi/mech/gss_init_sec_context.c free(ctx); ctx 145 source4/heimdal/lib/gssapi/mech/gss_init_sec_context.c *context_handle = (gss_ctx_id_t) ctx; ctx 44 source4/heimdal/lib/gssapi/mech/gss_inquire_context.c struct _gss_context *ctx = (struct _gss_context *) context_handle; ctx 45 source4/heimdal/lib/gssapi/mech/gss_inquire_context.c gssapi_mech_interface m = ctx->gc_mech; ctx 65 source4/heimdal/lib/gssapi/mech/gss_inquire_context.c ctx->gc_ctx, ctx 42 source4/heimdal/lib/gssapi/mech/gss_inquire_sec_context_by_oid.c struct _gss_context *ctx = (struct _gss_context *) context_handle; ctx 48 source4/heimdal/lib/gssapi/mech/gss_inquire_sec_context_by_oid.c if (ctx == NULL) ctx 56 source4/heimdal/lib/gssapi/mech/gss_inquire_sec_context_by_oid.c m = ctx->gc_mech; ctx 63 source4/heimdal/lib/gssapi/mech/gss_inquire_sec_context_by_oid.c ctx->gc_ctx, desired_object, data_set); ctx 273 source4/heimdal/lib/gssapi/mech/gss_krb5.c gss_krb5_lucid_context_v1_t *ctx = NULL; ctx 303 source4/heimdal/lib/gssapi/mech/gss_krb5.c ctx = calloc(1, sizeof(*ctx)); ctx 304 source4/heimdal/lib/gssapi/mech/gss_krb5.c if (ctx == NULL) { ctx 322 source4/heimdal/lib/gssapi/mech/gss_krb5.c ctx->version = 1; ctx 324 source4/heimdal/lib/gssapi/mech/gss_krb5.c ret = krb5_ret_uint32(sp, &ctx->initiate); ctx 327 source4/heimdal/lib/gssapi/mech/gss_krb5.c ret = krb5_ret_uint32(sp, &ctx->endtime); ctx 332 source4/heimdal/lib/gssapi/mech/gss_krb5.c ctx->send_seq = ((uint64_t)num) << 32; ctx 335 source4/heimdal/lib/gssapi/mech/gss_krb5.c ctx->send_seq |= num; ctx 339 source4/heimdal/lib/gssapi/mech/gss_krb5.c ctx->recv_seq = ((uint64_t)num) << 32; ctx 342 source4/heimdal/lib/gssapi/mech/gss_krb5.c ctx->recv_seq |= num; ctx 344 source4/heimdal/lib/gssapi/mech/gss_krb5.c ret = krb5_ret_uint32(sp, &ctx->protocol); ctx 346 source4/heimdal/lib/gssapi/mech/gss_krb5.c if (ctx->protocol == 0) { ctx 350 source4/heimdal/lib/gssapi/mech/gss_krb5.c ret = krb5_ret_uint32(sp, &ctx->rfc1964_kd.sign_alg); ctx 353 source4/heimdal/lib/gssapi/mech/gss_krb5.c ret = krb5_ret_uint32(sp, &ctx->rfc1964_kd.seal_alg); ctx 358 source4/heimdal/lib/gssapi/mech/gss_krb5.c ret = set_key(&key, &ctx->rfc1964_kd.ctx_key); ctx 361 source4/heimdal/lib/gssapi/mech/gss_krb5.c } else if (ctx->protocol == 1) { ctx 365 source4/heimdal/lib/gssapi/mech/gss_krb5.c ret = krb5_ret_uint32(sp, &ctx->cfx_kd.have_acceptor_subkey); ctx 370 source4/heimdal/lib/gssapi/mech/gss_krb5.c ret = set_key(&key, &ctx->cfx_kd.ctx_key); ctx 374 source4/heimdal/lib/gssapi/mech/gss_krb5.c if (ctx->cfx_kd.have_acceptor_subkey) { ctx 377 source4/heimdal/lib/gssapi/mech/gss_krb5.c ret = set_key(&key, &ctx->cfx_kd.acceptor_subkey); ctx 386 source4/heimdal/lib/gssapi/mech/gss_krb5.c *rctx = ctx; ctx 396 source4/heimdal/lib/gssapi/mech/gss_krb5.c if (ctx) ctx 397 source4/heimdal/lib/gssapi/mech/gss_krb5.c gss_krb5_free_lucid_sec_context(NULL, ctx); ctx 409 source4/heimdal/lib/gssapi/mech/gss_krb5.c gss_krb5_lucid_context_v1_t *ctx = c; ctx 411 source4/heimdal/lib/gssapi/mech/gss_krb5.c if (ctx->version != 1) { ctx 417 source4/heimdal/lib/gssapi/mech/gss_krb5.c if (ctx->protocol == 0) { ctx 418 source4/heimdal/lib/gssapi/mech/gss_krb5.c free_key(&ctx->rfc1964_kd.ctx_key); ctx 419 source4/heimdal/lib/gssapi/mech/gss_krb5.c } else if (ctx->protocol == 1) { ctx 420 source4/heimdal/lib/gssapi/mech/gss_krb5.c free_key(&ctx->cfx_kd.ctx_key); ctx 421 source4/heimdal/lib/gssapi/mech/gss_krb5.c if (ctx->cfx_kd.have_acceptor_subkey) ctx 422 source4/heimdal/lib/gssapi/mech/gss_krb5.c free_key(&ctx->cfx_kd.acceptor_subkey); ctx 424 source4/heimdal/lib/gssapi/mech/gss_krb5.c free(ctx); ctx 37 source4/heimdal/lib/gssapi/mech/gss_process_context_token.c struct _gss_context *ctx = (struct _gss_context *) context_handle; ctx 38 source4/heimdal/lib/gssapi/mech/gss_process_context_token.c gssapi_mech_interface m = ctx->gc_mech; ctx 40 source4/heimdal/lib/gssapi/mech/gss_process_context_token.c return (m->gm_process_context_token(minor_status, ctx->gc_ctx, ctx 47 source4/heimdal/lib/gssapi/mech/gss_pseudo_random.c struct _gss_context *ctx = (struct _gss_context *) context; ctx 48 source4/heimdal/lib/gssapi/mech/gss_pseudo_random.c gssapi_mech_interface m = ctx->gc_mech; ctx 54 source4/heimdal/lib/gssapi/mech/gss_pseudo_random.c if (ctx == NULL) { ctx 62 source4/heimdal/lib/gssapi/mech/gss_pseudo_random.c major_status = (*m->gm_pseudo_random)(minor_status, ctx->gc_ctx, ctx 42 source4/heimdal/lib/gssapi/mech/gss_set_sec_context_option.c struct _gss_context *ctx; ctx 51 source4/heimdal/lib/gssapi/mech/gss_set_sec_context_option.c ctx = (struct _gss_context *) *context_handle; ctx 53 source4/heimdal/lib/gssapi/mech/gss_set_sec_context_option.c if (ctx == NULL) ctx 56 source4/heimdal/lib/gssapi/mech/gss_set_sec_context_option.c m = ctx->gc_mech; ctx 63 source4/heimdal/lib/gssapi/mech/gss_set_sec_context_option.c &ctx->gc_ctx, object, value); ctx 40 source4/heimdal/lib/gssapi/mech/gss_unwrap.c struct _gss_context *ctx = (struct _gss_context *) context_handle; ctx 41 source4/heimdal/lib/gssapi/mech/gss_unwrap.c gssapi_mech_interface m = ctx->gc_mech; ctx 43 source4/heimdal/lib/gssapi/mech/gss_unwrap.c return (m->gm_unwrap(minor_status, ctx->gc_ctx, ctx 39 source4/heimdal/lib/gssapi/mech/gss_verify_mic.c struct _gss_context *ctx = (struct _gss_context *) context_handle; ctx 40 source4/heimdal/lib/gssapi/mech/gss_verify_mic.c gssapi_mech_interface m = ctx->gc_mech; ctx 44 source4/heimdal/lib/gssapi/mech/gss_verify_mic.c if (ctx == NULL) { ctx 49 source4/heimdal/lib/gssapi/mech/gss_verify_mic.c return (m->gm_verify_mic(minor_status, ctx->gc_ctx, ctx 41 source4/heimdal/lib/gssapi/mech/gss_wrap.c struct _gss_context *ctx = (struct _gss_context *) context_handle; ctx 42 source4/heimdal/lib/gssapi/mech/gss_wrap.c gssapi_mech_interface m = ctx->gc_mech; ctx 47 source4/heimdal/lib/gssapi/mech/gss_wrap.c if (ctx == NULL) { ctx 52 source4/heimdal/lib/gssapi/mech/gss_wrap.c return (m->gm_wrap(minor_status, ctx->gc_ctx, ctx 40 source4/heimdal/lib/gssapi/mech/gss_wrap_size_limit.c struct _gss_context *ctx = (struct _gss_context *) context_handle; ctx 41 source4/heimdal/lib/gssapi/mech/gss_wrap_size_limit.c gssapi_mech_interface m = ctx->gc_mech; ctx 44 source4/heimdal/lib/gssapi/mech/gss_wrap_size_limit.c if (ctx == NULL) { ctx 49 source4/heimdal/lib/gssapi/mech/gss_wrap_size_limit.c return (m->gm_wrap_size_limit(minor_status, ctx->gc_ctx, ctx 461 source4/heimdal/lib/gssapi/spnego/accept_sec_context.c gssspnego_ctx ctx, ctx 476 source4/heimdal/lib/gssapi/spnego/accept_sec_context.c ret = _gss_spnego_require_mechlist_mic(minor_status, ctx, &require_mic); ctx 480 source4/heimdal/lib/gssapi/spnego/accept_sec_context.c ctx->require_mic = require_mic; ctx 485 source4/heimdal/lib/gssapi/spnego/accept_sec_context.c if (ctx->open && require_mic) { ctx 503 source4/heimdal/lib/gssapi/spnego/accept_sec_context.c &ctx->initiator_mech_types, &buf_len, eret); ctx 513 source4/heimdal/lib/gssapi/spnego/accept_sec_context.c ret = verify_mechlist_mic(minor_status, ctx, mech_buf, mic); ctx 521 source4/heimdal/lib/gssapi/spnego/accept_sec_context.c ctx->verified_mic = 1; ctx 558 source4/heimdal/lib/gssapi/spnego/accept_sec_context.c gssspnego_ctx ctx; ctx 574 source4/heimdal/lib/gssapi/spnego/accept_sec_context.c ctx = (gssspnego_ctx)*context_handle; ctx 604 source4/heimdal/lib/gssapi/spnego/accept_sec_context.c HEIMDAL_MUTEX_lock(&ctx->ctx_id_mutex); ctx 606 source4/heimdal/lib/gssapi/spnego/accept_sec_context.c ret = copy_MechTypeList(&ni->mechTypes, &ctx->initiator_mech_types); ctx 608 source4/heimdal/lib/gssapi/spnego/accept_sec_context.c HEIMDAL_MUTEX_unlock(&ctx->ctx_id_mutex); ctx 640 source4/heimdal/lib/gssapi/spnego/accept_sec_context.c if (ctx->mech_src_name != GSS_C_NO_NAME) ctx 641 source4/heimdal/lib/gssapi/spnego/accept_sec_context.c gss_release_name(&junk, &ctx->mech_src_name); ctx 644 source4/heimdal/lib/gssapi/spnego/accept_sec_context.c &ctx->negotiated_ctx_id, ctx 648 source4/heimdal/lib/gssapi/spnego/accept_sec_context.c &ctx->mech_src_name, ctx 649 source4/heimdal/lib/gssapi/spnego/accept_sec_context.c &ctx->negotiated_mech_type, ctx 651 source4/heimdal/lib/gssapi/spnego/accept_sec_context.c &ctx->mech_flags, ctx 652 source4/heimdal/lib/gssapi/spnego/accept_sec_context.c &ctx->mech_time_rec, ctx 663 source4/heimdal/lib/gssapi/spnego/accept_sec_context.c ctx->preferred_mech_type = preferred_mech_type; ctx 664 source4/heimdal/lib/gssapi/spnego/accept_sec_context.c ctx->negotiated_mech_type = preferred_mech_type; ctx 666 source4/heimdal/lib/gssapi/spnego/accept_sec_context.c ctx->open = 1; ctx 669 source4/heimdal/lib/gssapi/spnego/accept_sec_context.c ctx, ctx 703 source4/heimdal/lib/gssapi/spnego/accept_sec_context.c HEIMDAL_MUTEX_unlock(&ctx->ctx_id_mutex); ctx 708 source4/heimdal/lib/gssapi/spnego/accept_sec_context.c ctx->preferred_mech_type = preferred_mech_type; ctx 709 source4/heimdal/lib/gssapi/spnego/accept_sec_context.c ctx->negotiated_mech_type = preferred_mech_type; ctx 717 source4/heimdal/lib/gssapi/spnego/accept_sec_context.c ctx, ctx 736 source4/heimdal/lib/gssapi/spnego/accept_sec_context.c if (src_name != NULL && ctx->mech_src_name != NULL) { ctx 741 source4/heimdal/lib/gssapi/spnego/accept_sec_context.c name->mech = ctx->mech_src_name; ctx 742 source4/heimdal/lib/gssapi/spnego/accept_sec_context.c ctx->mech_src_name = NULL; ctx 749 source4/heimdal/lib/gssapi/spnego/accept_sec_context.c *mech_type = ctx->negotiated_mech_type; ctx 751 source4/heimdal/lib/gssapi/spnego/accept_sec_context.c *ret_flags = ctx->mech_flags; ctx 753 source4/heimdal/lib/gssapi/spnego/accept_sec_context.c *time_rec = ctx->mech_time_rec; ctx 756 source4/heimdal/lib/gssapi/spnego/accept_sec_context.c HEIMDAL_MUTEX_unlock(&ctx->ctx_id_mutex); ctx 790 source4/heimdal/lib/gssapi/spnego/accept_sec_context.c gssspnego_ctx ctx; ctx 795 source4/heimdal/lib/gssapi/spnego/accept_sec_context.c ctx = (gssspnego_ctx)*context_handle; ctx 819 source4/heimdal/lib/gssapi/spnego/accept_sec_context.c HEIMDAL_MUTEX_lock(&ctx->ctx_id_mutex); ctx 845 source4/heimdal/lib/gssapi/spnego/accept_sec_context.c if (ctx->mech_src_name != GSS_C_NO_NAME) ctx 846 source4/heimdal/lib/gssapi/spnego/accept_sec_context.c gss_release_name(&minor, &ctx->mech_src_name); ctx 849 source4/heimdal/lib/gssapi/spnego/accept_sec_context.c &ctx->negotiated_ctx_id, ctx 853 source4/heimdal/lib/gssapi/spnego/accept_sec_context.c &ctx->mech_src_name, ctx 854 source4/heimdal/lib/gssapi/spnego/accept_sec_context.c &ctx->negotiated_mech_type, ctx 856 source4/heimdal/lib/gssapi/spnego/accept_sec_context.c &ctx->mech_flags, ctx 857 source4/heimdal/lib/gssapi/spnego/accept_sec_context.c &ctx->mech_time_rec, ctx 872 source4/heimdal/lib/gssapi/spnego/accept_sec_context.c gss_mg_collect_error(ctx->negotiated_mech_type, ret, minor); ctx 874 source4/heimdal/lib/gssapi/spnego/accept_sec_context.c HEIMDAL_MUTEX_unlock(&ctx->ctx_id_mutex); ctx 878 source4/heimdal/lib/gssapi/spnego/accept_sec_context.c ctx->open = 1; ctx 883 source4/heimdal/lib/gssapi/spnego/accept_sec_context.c ctx, ctx 888 source4/heimdal/lib/gssapi/spnego/accept_sec_context.c ctx->require_mic = require_mic; ctx 896 source4/heimdal/lib/gssapi/spnego/accept_sec_context.c ctx, ctx 904 source4/heimdal/lib/gssapi/spnego/accept_sec_context.c if (ctx->mech_flags & GSS_C_DCE_STYLE) ctx 915 source4/heimdal/lib/gssapi/spnego/accept_sec_context.c || (ctx->open && negResult == accept_incomplete) ctx 919 source4/heimdal/lib/gssapi/spnego/accept_sec_context.c ctx, ctx 939 source4/heimdal/lib/gssapi/spnego/accept_sec_context.c if (src_name != NULL && ctx->mech_src_name != NULL) { ctx 944 source4/heimdal/lib/gssapi/spnego/accept_sec_context.c name->mech = ctx->mech_src_name; ctx 945 source4/heimdal/lib/gssapi/spnego/accept_sec_context.c ctx->mech_src_name = NULL; ctx 952 source4/heimdal/lib/gssapi/spnego/accept_sec_context.c *mech_type = ctx->negotiated_mech_type; ctx 954 source4/heimdal/lib/gssapi/spnego/accept_sec_context.c *ret_flags = ctx->mech_flags; ctx 956 source4/heimdal/lib/gssapi/spnego/accept_sec_context.c *time_rec = ctx->mech_time_rec; ctx 959 source4/heimdal/lib/gssapi/spnego/accept_sec_context.c HEIMDAL_MUTEX_unlock(&ctx->ctx_id_mutex); ctx 57 source4/heimdal/lib/gssapi/spnego/compat.c gssspnego_ctx ctx; ctx 59 source4/heimdal/lib/gssapi/spnego/compat.c ctx = calloc(1, sizeof(*ctx)); ctx 60 source4/heimdal/lib/gssapi/spnego/compat.c if (ctx == NULL) { ctx 65 source4/heimdal/lib/gssapi/spnego/compat.c ctx->initiator_mech_types.len = 0; ctx 66 source4/heimdal/lib/gssapi/spnego/compat.c ctx->initiator_mech_types.val = NULL; ctx 67 source4/heimdal/lib/gssapi/spnego/compat.c ctx->preferred_mech_type = GSS_C_NO_OID; ctx 68 source4/heimdal/lib/gssapi/spnego/compat.c ctx->negotiated_mech_type = GSS_C_NO_OID; ctx 69 source4/heimdal/lib/gssapi/spnego/compat.c ctx->negotiated_ctx_id = GSS_C_NO_CONTEXT; ctx 76 source4/heimdal/lib/gssapi/spnego/compat.c ctx->mech_flags = 0; ctx 77 source4/heimdal/lib/gssapi/spnego/compat.c ctx->mech_time_rec = 0; ctx 78 source4/heimdal/lib/gssapi/spnego/compat.c ctx->mech_src_name = GSS_C_NO_NAME; ctx 80 source4/heimdal/lib/gssapi/spnego/compat.c ctx->open = 0; ctx 81 source4/heimdal/lib/gssapi/spnego/compat.c ctx->local = 0; ctx 82 source4/heimdal/lib/gssapi/spnego/compat.c ctx->require_mic = 0; ctx 83 source4/heimdal/lib/gssapi/spnego/compat.c ctx->verified_mic = 0; ctx 85 source4/heimdal/lib/gssapi/spnego/compat.c HEIMDAL_MUTEX_init(&ctx->ctx_id_mutex); ctx 87 source4/heimdal/lib/gssapi/spnego/compat.c *context_handle = (gss_ctx_id_t)ctx; ctx 102 source4/heimdal/lib/gssapi/spnego/compat.c gssspnego_ctx ctx; ctx 116 source4/heimdal/lib/gssapi/spnego/compat.c ctx = (gssspnego_ctx)*context_handle; ctx 119 source4/heimdal/lib/gssapi/spnego/compat.c if (ctx == NULL) { ctx 123 source4/heimdal/lib/gssapi/spnego/compat.c if (ctx->initiator_mech_types.val != NULL) ctx 124 source4/heimdal/lib/gssapi/spnego/compat.c free_MechTypeList(&ctx->initiator_mech_types); ctx 126 source4/heimdal/lib/gssapi/spnego/compat.c gss_release_oid(&minor, &ctx->preferred_mech_type); ctx 127 source4/heimdal/lib/gssapi/spnego/compat.c ctx->negotiated_mech_type = GSS_C_NO_OID; ctx 129 source4/heimdal/lib/gssapi/spnego/compat.c gss_release_name(&minor, &ctx->target_name); ctx 130 source4/heimdal/lib/gssapi/spnego/compat.c gss_release_name(&minor, &ctx->mech_src_name); ctx 132 source4/heimdal/lib/gssapi/spnego/compat.c if (ctx->negotiated_ctx_id != GSS_C_NO_CONTEXT) { ctx 134 source4/heimdal/lib/gssapi/spnego/compat.c &ctx->negotiated_ctx_id, ctx 136 source4/heimdal/lib/gssapi/spnego/compat.c ctx->negotiated_ctx_id = GSS_C_NO_CONTEXT; ctx 141 source4/heimdal/lib/gssapi/spnego/compat.c HEIMDAL_MUTEX_unlock(&ctx->ctx_id_mutex); ctx 142 source4/heimdal/lib/gssapi/spnego/compat.c HEIMDAL_MUTEX_destroy(&ctx->ctx_id_mutex); ctx 144 source4/heimdal/lib/gssapi/spnego/compat.c free(ctx); ctx 158 source4/heimdal/lib/gssapi/spnego/compat.c gssspnego_ctx ctx, ctx 167 source4/heimdal/lib/gssapi/spnego/compat.c if (ctx == NULL) { ctx 171 source4/heimdal/lib/gssapi/spnego/compat.c if (ctx->require_mic) { ctx 181 source4/heimdal/lib/gssapi/spnego/compat.c if (gss_inquire_sec_context_by_oid(&minor, ctx->negotiated_ctx_id, ctx 190 source4/heimdal/lib/gssapi/spnego/compat.c if (gss_oid_equal(ctx->negotiated_mech_type, ctx->preferred_mech_type)) { ctx 192 source4/heimdal/lib/gssapi/spnego/compat.c } else if (gss_oid_equal(ctx->negotiated_mech_type, &_gss_spnego_krb5_mechanism_oid_desc) && ctx 193 source4/heimdal/lib/gssapi/spnego/compat.c gss_oid_equal(ctx->preferred_mech_type, &_gss_spnego_mskrb_mechanism_oid_desc)) { ctx 77 source4/heimdal/lib/gssapi/spnego/context_stubs.c gssspnego_ctx ctx; ctx 84 source4/heimdal/lib/gssapi/spnego/context_stubs.c ctx = (gssspnego_ctx)context_handle; ctx 86 source4/heimdal/lib/gssapi/spnego/context_stubs.c HEIMDAL_MUTEX_lock(&ctx->ctx_id_mutex); ctx 89 source4/heimdal/lib/gssapi/spnego/context_stubs.c ctx->negotiated_ctx_id, ctx 92 source4/heimdal/lib/gssapi/spnego/context_stubs.c HEIMDAL_MUTEX_unlock(&ctx->ctx_id_mutex); ctx 96 source4/heimdal/lib/gssapi/spnego/context_stubs.c ctx->negotiated_ctx_id = GSS_C_NO_CONTEXT; ctx 109 source4/heimdal/lib/gssapi/spnego/context_stubs.c gssspnego_ctx ctx; ctx 114 source4/heimdal/lib/gssapi/spnego/context_stubs.c ctx = (gssspnego_ctx)*context_handle; ctx 116 source4/heimdal/lib/gssapi/spnego/context_stubs.c HEIMDAL_MUTEX_lock(&ctx->ctx_id_mutex); ctx 129 source4/heimdal/lib/gssapi/spnego/context_stubs.c gssspnego_ctx ctx; ctx 136 source4/heimdal/lib/gssapi/spnego/context_stubs.c ctx = (gssspnego_ctx)context_handle; ctx 138 source4/heimdal/lib/gssapi/spnego/context_stubs.c if (ctx->negotiated_ctx_id == GSS_C_NO_CONTEXT) { ctx 143 source4/heimdal/lib/gssapi/spnego/context_stubs.c ctx->negotiated_ctx_id, ctx 155 source4/heimdal/lib/gssapi/spnego/context_stubs.c gssspnego_ctx ctx; ctx 163 source4/heimdal/lib/gssapi/spnego/context_stubs.c ctx = (gssspnego_ctx)context_handle; ctx 165 source4/heimdal/lib/gssapi/spnego/context_stubs.c if (ctx->negotiated_ctx_id == GSS_C_NO_CONTEXT) { ctx 169 source4/heimdal/lib/gssapi/spnego/context_stubs.c return gss_get_mic(minor_status, ctx->negotiated_ctx_id, ctx 181 source4/heimdal/lib/gssapi/spnego/context_stubs.c gssspnego_ctx ctx; ctx 189 source4/heimdal/lib/gssapi/spnego/context_stubs.c ctx = (gssspnego_ctx)context_handle; ctx 191 source4/heimdal/lib/gssapi/spnego/context_stubs.c if (ctx->negotiated_ctx_id == GSS_C_NO_CONTEXT) { ctx 196 source4/heimdal/lib/gssapi/spnego/context_stubs.c ctx->negotiated_ctx_id, ctx 212 source4/heimdal/lib/gssapi/spnego/context_stubs.c gssspnego_ctx ctx; ctx 220 source4/heimdal/lib/gssapi/spnego/context_stubs.c ctx = (gssspnego_ctx)context_handle; ctx 222 source4/heimdal/lib/gssapi/spnego/context_stubs.c if (ctx->negotiated_ctx_id == GSS_C_NO_CONTEXT) { ctx 227 source4/heimdal/lib/gssapi/spnego/context_stubs.c ctx->negotiated_ctx_id, ctx 244 source4/heimdal/lib/gssapi/spnego/context_stubs.c gssspnego_ctx ctx; ctx 252 source4/heimdal/lib/gssapi/spnego/context_stubs.c ctx = (gssspnego_ctx)context_handle; ctx 254 source4/heimdal/lib/gssapi/spnego/context_stubs.c if (ctx->negotiated_ctx_id == GSS_C_NO_CONTEXT) { ctx 259 source4/heimdal/lib/gssapi/spnego/context_stubs.c ctx->negotiated_ctx_id, ctx 396 source4/heimdal/lib/gssapi/spnego/context_stubs.c gssspnego_ctx ctx; ctx 405 source4/heimdal/lib/gssapi/spnego/context_stubs.c ctx = (gssspnego_ctx)context_handle; ctx 407 source4/heimdal/lib/gssapi/spnego/context_stubs.c if (ctx->negotiated_ctx_id == GSS_C_NO_CONTEXT) ctx 411 source4/heimdal/lib/gssapi/spnego/context_stubs.c ctx->negotiated_ctx_id, ctx 460 source4/heimdal/lib/gssapi/spnego/context_stubs.c gssspnego_ctx ctx; ctx 468 source4/heimdal/lib/gssapi/spnego/context_stubs.c ctx = (gssspnego_ctx)context_handle; ctx 470 source4/heimdal/lib/gssapi/spnego/context_stubs.c if (ctx->negotiated_ctx_id == GSS_C_NO_CONTEXT) { ctx 475 source4/heimdal/lib/gssapi/spnego/context_stubs.c ctx->negotiated_ctx_id, ctx 488 source4/heimdal/lib/gssapi/spnego/context_stubs.c gssspnego_ctx ctx; ctx 497 source4/heimdal/lib/gssapi/spnego/context_stubs.c ctx = (gssspnego_ctx)*context_handle; ctx 499 source4/heimdal/lib/gssapi/spnego/context_stubs.c if (ctx == NULL) ctx 502 source4/heimdal/lib/gssapi/spnego/context_stubs.c HEIMDAL_MUTEX_lock(&ctx->ctx_id_mutex); ctx 504 source4/heimdal/lib/gssapi/spnego/context_stubs.c if (ctx->negotiated_ctx_id == GSS_C_NO_CONTEXT) { ctx 505 source4/heimdal/lib/gssapi/spnego/context_stubs.c HEIMDAL_MUTEX_unlock(&ctx->ctx_id_mutex); ctx 510 source4/heimdal/lib/gssapi/spnego/context_stubs.c &ctx->negotiated_ctx_id, ctx 520 source4/heimdal/lib/gssapi/spnego/context_stubs.c HEIMDAL_MUTEX_unlock(&ctx->ctx_id_mutex); ctx 533 source4/heimdal/lib/gssapi/spnego/context_stubs.c gssspnego_ctx ctx; ctx 539 source4/heimdal/lib/gssapi/spnego/context_stubs.c ctx = (gssspnego_ctx)context; ctx 541 source4/heimdal/lib/gssapi/spnego/context_stubs.c HEIMDAL_MUTEX_lock(&ctx->ctx_id_mutex); ctx 545 source4/heimdal/lib/gssapi/spnego/context_stubs.c &ctx->negotiated_ctx_id); ctx 551 source4/heimdal/lib/gssapi/spnego/context_stubs.c ctx->open = 1; ctx 554 source4/heimdal/lib/gssapi/spnego/context_stubs.c HEIMDAL_MUTEX_unlock(&ctx->ctx_id_mutex); ctx 556 source4/heimdal/lib/gssapi/spnego/context_stubs.c *context_handle = (gss_ctx_id_t)ctx; ctx 653 source4/heimdal/lib/gssapi/spnego/context_stubs.c gssspnego_ctx ctx; ctx 661 source4/heimdal/lib/gssapi/spnego/context_stubs.c ctx = (gssspnego_ctx)context_handle; ctx 663 source4/heimdal/lib/gssapi/spnego/context_stubs.c if (ctx->negotiated_ctx_id == GSS_C_NO_CONTEXT) { ctx 668 source4/heimdal/lib/gssapi/spnego/context_stubs.c ctx->negotiated_ctx_id, ctx 682 source4/heimdal/lib/gssapi/spnego/context_stubs.c gssspnego_ctx ctx; ctx 690 source4/heimdal/lib/gssapi/spnego/context_stubs.c ctx = (gssspnego_ctx)context_handle; ctx 692 source4/heimdal/lib/gssapi/spnego/context_stubs.c if (ctx->negotiated_ctx_id == GSS_C_NO_CONTEXT) { ctx 697 source4/heimdal/lib/gssapi/spnego/context_stubs.c ctx->negotiated_ctx_id, ctx 713 source4/heimdal/lib/gssapi/spnego/context_stubs.c gssspnego_ctx ctx; ctx 721 source4/heimdal/lib/gssapi/spnego/context_stubs.c ctx = (gssspnego_ctx)context_handle; ctx 723 source4/heimdal/lib/gssapi/spnego/context_stubs.c if (ctx->negotiated_ctx_id == GSS_C_NO_CONTEXT) { ctx 728 source4/heimdal/lib/gssapi/spnego/context_stubs.c ctx->negotiated_ctx_id, ctx 745 source4/heimdal/lib/gssapi/spnego/context_stubs.c gssspnego_ctx ctx; ctx 753 source4/heimdal/lib/gssapi/spnego/context_stubs.c ctx = (gssspnego_ctx)context_handle; ctx 755 source4/heimdal/lib/gssapi/spnego/context_stubs.c if (ctx->negotiated_ctx_id == GSS_C_NO_CONTEXT) { ctx 760 source4/heimdal/lib/gssapi/spnego/context_stubs.c ctx->negotiated_ctx_id, ctx 778 source4/heimdal/lib/gssapi/spnego/context_stubs.c gssspnego_ctx ctx; ctx 786 source4/heimdal/lib/gssapi/spnego/context_stubs.c ctx = (gssspnego_ctx)context_handle; ctx 788 source4/heimdal/lib/gssapi/spnego/context_stubs.c if (ctx->negotiated_ctx_id == GSS_C_NO_CONTEXT) { ctx 793 source4/heimdal/lib/gssapi/spnego/context_stubs.c ctx->negotiated_ctx_id, ctx 814 source4/heimdal/lib/gssapi/spnego/context_stubs.c gssspnego_ctx ctx; ctx 822 source4/heimdal/lib/gssapi/spnego/context_stubs.c ctx = (gssspnego_ctx)context_handle; ctx 824 source4/heimdal/lib/gssapi/spnego/context_stubs.c if (ctx->negotiated_ctx_id == GSS_C_NO_CONTEXT) { ctx 828 source4/heimdal/lib/gssapi/spnego/context_stubs.c if ((ctx->mech_flags & GSS_C_DCE_STYLE) == 0 && ctx 835 source4/heimdal/lib/gssapi/spnego/context_stubs.c ctx->negotiated_ctx_id, ctx 850 source4/heimdal/lib/gssapi/spnego/context_stubs.c gssspnego_ctx ctx; ctx 858 source4/heimdal/lib/gssapi/spnego/context_stubs.c ctx = (gssspnego_ctx)context_handle; ctx 860 source4/heimdal/lib/gssapi/spnego/context_stubs.c if (ctx->negotiated_ctx_id == GSS_C_NO_CONTEXT) { ctx 865 source4/heimdal/lib/gssapi/spnego/context_stubs.c ctx->negotiated_ctx_id, ctx 876 source4/heimdal/lib/gssapi/spnego/context_stubs.c gssspnego_ctx ctx; ctx 884 source4/heimdal/lib/gssapi/spnego/context_stubs.c ctx = (gssspnego_ctx)context_handle; ctx 886 source4/heimdal/lib/gssapi/spnego/context_stubs.c if (ctx->negotiated_ctx_id == GSS_C_NO_CONTEXT) { ctx 891 source4/heimdal/lib/gssapi/spnego/context_stubs.c ctx->negotiated_ctx_id, ctx 902 source4/heimdal/lib/gssapi/spnego/context_stubs.c gssspnego_ctx ctx; ctx 910 source4/heimdal/lib/gssapi/spnego/context_stubs.c ctx = (gssspnego_ctx)*context_handle; ctx 912 source4/heimdal/lib/gssapi/spnego/context_stubs.c if (ctx->negotiated_ctx_id == GSS_C_NO_CONTEXT) { ctx 917 source4/heimdal/lib/gssapi/spnego/context_stubs.c &ctx->negotiated_ctx_id, ctx 931 source4/heimdal/lib/gssapi/spnego/context_stubs.c gssspnego_ctx ctx; ctx 938 source4/heimdal/lib/gssapi/spnego/context_stubs.c ctx = (gssspnego_ctx)context_handle; ctx 940 source4/heimdal/lib/gssapi/spnego/context_stubs.c if (ctx->negotiated_ctx_id == GSS_C_NO_CONTEXT) ctx 944 source4/heimdal/lib/gssapi/spnego/context_stubs.c ctx->negotiated_ctx_id, ctx 46 source4/heimdal/lib/gssapi/spnego/init_sec_context.c gss_ctx_id_t ctx = GSS_C_NO_CONTEXT; ctx 51 source4/heimdal/lib/gssapi/spnego/init_sec_context.c &ctx, ctx 67 source4/heimdal/lib/gssapi/spnego/init_sec_context.c gss_delete_sec_context(&min_stat, &ctx, NULL); ctx 205 source4/heimdal/lib/gssapi/spnego/init_sec_context.c gssspnego_ctx ctx; ctx 222 source4/heimdal/lib/gssapi/spnego/init_sec_context.c ctx = (gssspnego_ctx)context; ctx 224 source4/heimdal/lib/gssapi/spnego/init_sec_context.c HEIMDAL_MUTEX_lock(&ctx->ctx_id_mutex); ctx 226 source4/heimdal/lib/gssapi/spnego/init_sec_context.c ctx->local = 1; ctx 228 source4/heimdal/lib/gssapi/spnego/init_sec_context.c sub = gss_import_name(&minor, &name->value, &name->type, &ctx->target_name); ctx 236 source4/heimdal/lib/gssapi/spnego/init_sec_context.c ctx->target_name, ctx 241 source4/heimdal/lib/gssapi/spnego/init_sec_context.c &ctx->preferred_mech_type); ctx 259 source4/heimdal/lib/gssapi/spnego/init_sec_context.c &ctx->negotiated_ctx_id, ctx 260 source4/heimdal/lib/gssapi/spnego/init_sec_context.c ctx->target_name, ctx 261 source4/heimdal/lib/gssapi/spnego/init_sec_context.c ctx->preferred_mech_type, ctx 266 source4/heimdal/lib/gssapi/spnego/init_sec_context.c &ctx->negotiated_mech_type, ctx 268 source4/heimdal/lib/gssapi/spnego/init_sec_context.c &ctx->mech_flags, ctx 269 source4/heimdal/lib/gssapi/spnego/init_sec_context.c &ctx->mech_time_rec); ctx 273 source4/heimdal/lib/gssapi/spnego/init_sec_context.c gss_mg_collect_error(ctx->preferred_mech_type, sub, minor); ctx 278 source4/heimdal/lib/gssapi/spnego/init_sec_context.c ctx->maybe_open = 1; ctx 346 source4/heimdal/lib/gssapi/spnego/init_sec_context.c ctx->initiator_mech_types.len = ni.mechTypes.len; ctx 347 source4/heimdal/lib/gssapi/spnego/init_sec_context.c ctx->initiator_mech_types.val = ni.mechTypes.val; ctx 364 source4/heimdal/lib/gssapi/spnego/init_sec_context.c *actual_mech_type = ctx->negotiated_mech_type; ctx 366 source4/heimdal/lib/gssapi/spnego/init_sec_context.c *ret_flags = ctx->mech_flags; ctx 368 source4/heimdal/lib/gssapi/spnego/init_sec_context.c *time_rec = ctx->mech_time_rec; ctx 370 source4/heimdal/lib/gssapi/spnego/init_sec_context.c HEIMDAL_MUTEX_unlock(&ctx->ctx_id_mutex); ctx 402 source4/heimdal/lib/gssapi/spnego/init_sec_context.c gssspnego_ctx ctx; ctx 406 source4/heimdal/lib/gssapi/spnego/init_sec_context.c ctx = (gssspnego_ctx)*context_handle; ctx 446 source4/heimdal/lib/gssapi/spnego/init_sec_context.c HEIMDAL_MUTEX_lock(&ctx->ctx_id_mutex); ctx 450 source4/heimdal/lib/gssapi/spnego/init_sec_context.c if (ctx->oidlen) { ctx 452 source4/heimdal/lib/gssapi/spnego/init_sec_context.c HEIMDAL_MUTEX_unlock(&ctx->ctx_id_mutex); ctx 455 source4/heimdal/lib/gssapi/spnego/init_sec_context.c ret = der_put_oid(ctx->oidbuf + sizeof(ctx->oidbuf) - 1, ctx 456 source4/heimdal/lib/gssapi/spnego/init_sec_context.c sizeof(ctx->oidbuf), ctx 458 source4/heimdal/lib/gssapi/spnego/init_sec_context.c &ctx->oidlen); ctx 460 source4/heimdal/lib/gssapi/spnego/init_sec_context.c if (ret || (ctx->oidlen == GSS_SPNEGO_MECHANISM->length && ctx 461 source4/heimdal/lib/gssapi/spnego/init_sec_context.c memcmp(ctx->oidbuf + sizeof(ctx->oidbuf) - ctx->oidlen, ctx 463 source4/heimdal/lib/gssapi/spnego/init_sec_context.c ctx->oidlen) == 0)) ctx 466 source4/heimdal/lib/gssapi/spnego/init_sec_context.c HEIMDAL_MUTEX_unlock(&ctx->ctx_id_mutex); ctx 471 source4/heimdal/lib/gssapi/spnego/init_sec_context.c if (ctx->oidlen != ctx->preferred_mech_type->length || ctx 472 source4/heimdal/lib/gssapi/spnego/init_sec_context.c memcmp(ctx->oidbuf + sizeof(ctx->oidbuf) - ctx->oidlen, ctx 473 source4/heimdal/lib/gssapi/spnego/init_sec_context.c ctx->preferred_mech_type->elements, ctx 474 source4/heimdal/lib/gssapi/spnego/init_sec_context.c ctx->oidlen) != 0) ctx 476 source4/heimdal/lib/gssapi/spnego/init_sec_context.c gss_delete_sec_context(&minor, &ctx->negotiated_ctx_id, ctx 478 source4/heimdal/lib/gssapi/spnego/init_sec_context.c ctx->negotiated_ctx_id = GSS_C_NO_CONTEXT; ctx 480 source4/heimdal/lib/gssapi/spnego/init_sec_context.c } else if (ctx->oidlen == 0) { ctx 482 source4/heimdal/lib/gssapi/spnego/init_sec_context.c HEIMDAL_MUTEX_unlock(&ctx->ctx_id_mutex); ctx 488 source4/heimdal/lib/gssapi/spnego/init_sec_context.c ctx->negotiated_ctx_id == GSS_C_NO_CONTEXT) { ctx 500 source4/heimdal/lib/gssapi/spnego/init_sec_context.c mech.length = ctx->oidlen; ctx 501 source4/heimdal/lib/gssapi/spnego/init_sec_context.c mech.elements = ctx->oidbuf + sizeof(ctx->oidbuf) - ctx->oidlen; ctx 508 source4/heimdal/lib/gssapi/spnego/init_sec_context.c &ctx->negotiated_ctx_id, ctx 509 source4/heimdal/lib/gssapi/spnego/init_sec_context.c ctx->target_name, ctx 515 source4/heimdal/lib/gssapi/spnego/init_sec_context.c &ctx->negotiated_mech_type, ctx 517 source4/heimdal/lib/gssapi/spnego/init_sec_context.c &ctx->mech_flags, ctx 518 source4/heimdal/lib/gssapi/spnego/init_sec_context.c &ctx->mech_time_rec); ctx 520 source4/heimdal/lib/gssapi/spnego/init_sec_context.c HEIMDAL_MUTEX_unlock(&ctx->ctx_id_mutex); ctx 527 source4/heimdal/lib/gssapi/spnego/init_sec_context.c ctx->open = 1; ctx 530 source4/heimdal/lib/gssapi/spnego/init_sec_context.c if (ctx->maybe_open) ctx 531 source4/heimdal/lib/gssapi/spnego/init_sec_context.c ctx->open = 1; ctx 535 source4/heimdal/lib/gssapi/spnego/init_sec_context.c ctx->require_mic = 1; ctx 538 source4/heimdal/lib/gssapi/spnego/init_sec_context.c if (ctx->open) { ctx 546 source4/heimdal/lib/gssapi/spnego/init_sec_context.c ret = _gss_spnego_require_mechlist_mic(minor_status, ctx, ctx 549 source4/heimdal/lib/gssapi/spnego/init_sec_context.c HEIMDAL_MUTEX_unlock(&ctx->ctx_id_mutex); ctx 561 source4/heimdal/lib/gssapi/spnego/init_sec_context.c &ctx->initiator_mech_types, &buf_len, ret); ctx 563 source4/heimdal/lib/gssapi/spnego/init_sec_context.c HEIMDAL_MUTEX_unlock(&ctx->ctx_id_mutex); ctx 573 source4/heimdal/lib/gssapi/spnego/init_sec_context.c HEIMDAL_MUTEX_unlock(&ctx->ctx_id_mutex); ctx 584 source4/heimdal/lib/gssapi/spnego/init_sec_context.c ctx->negotiated_ctx_id, ctx 589 source4/heimdal/lib/gssapi/spnego/init_sec_context.c HEIMDAL_MUTEX_unlock(&ctx->ctx_id_mutex); ctx 595 source4/heimdal/lib/gssapi/spnego/init_sec_context.c ctx->verified_mic = 1; ctx 599 source4/heimdal/lib/gssapi/spnego/init_sec_context.c ret = spnego_reply_internal(minor_status, ctx, ctx 611 source4/heimdal/lib/gssapi/spnego/init_sec_context.c *actual_mech_type = ctx->negotiated_mech_type; ctx 613 source4/heimdal/lib/gssapi/spnego/init_sec_context.c *ret_flags = ctx->mech_flags; ctx 615 source4/heimdal/lib/gssapi/spnego/init_sec_context.c *time_rec = ctx->mech_time_rec; ctx 617 source4/heimdal/lib/gssapi/spnego/init_sec_context.c HEIMDAL_MUTEX_unlock(&ctx->ctx_id_mutex); ctx 432 source4/heimdal/lib/hcrypto/bn.c BN_GENCB_set(BN_GENCB *gencb, int (*cb_2)(int, int, BN_GENCB *), void *ctx) ctx 436 source4/heimdal/lib/hcrypto/bn.c gencb->arg = ctx; ctx 78 source4/heimdal/lib/hcrypto/evp-aes-cts.c aes_cts_init(EVP_CIPHER_CTX *ctx, ctx 83 source4/heimdal/lib/hcrypto/evp-aes-cts.c AES_KEY *k = ctx->cipher_data; ctx 84 source4/heimdal/lib/hcrypto/evp-aes-cts.c if (ctx->encrypt) ctx 85 source4/heimdal/lib/hcrypto/evp-aes-cts.c AES_set_encrypt_key(key, ctx->cipher->key_len * 8, k); ctx 87 source4/heimdal/lib/hcrypto/evp-aes-cts.c AES_set_decrypt_key(key, ctx->cipher->key_len * 8, k); ctx 160 source4/heimdal/lib/hcrypto/evp-aes-cts.c aes_cts_do_cipher(EVP_CIPHER_CTX *ctx, ctx 165 source4/heimdal/lib/hcrypto/evp-aes-cts.c AES_KEY *k = ctx->cipher_data; ctx 170 source4/heimdal/lib/hcrypto/evp-aes-cts.c if (ctx->encrypt) ctx 175 source4/heimdal/lib/hcrypto/evp-aes-cts.c _krb5_aes_cts_encrypt(in, out, len, k, ctx->iv, ctx->encrypt); ctx 183 source4/heimdal/lib/hcrypto/evp-aes-cts.c aes_cts_cleanup(EVP_CIPHER_CTX *ctx) ctx 185 source4/heimdal/lib/hcrypto/evp-aes-cts.c memset(ctx->cipher_data, 0, sizeof(AES_KEY)); ctx 59 source4/heimdal/lib/hcrypto/evp-hcrypto.c aes_init(EVP_CIPHER_CTX *ctx, ctx 64 source4/heimdal/lib/hcrypto/evp-hcrypto.c AES_KEY *k = ctx->cipher_data; ctx 65 source4/heimdal/lib/hcrypto/evp-hcrypto.c if (ctx->encrypt) ctx 66 source4/heimdal/lib/hcrypto/evp-hcrypto.c AES_set_encrypt_key(key, ctx->cipher->key_len * 8, k); ctx 68 source4/heimdal/lib/hcrypto/evp-hcrypto.c AES_set_decrypt_key(key, ctx->cipher->key_len * 8, k); ctx 73 source4/heimdal/lib/hcrypto/evp-hcrypto.c aes_do_cipher(EVP_CIPHER_CTX *ctx, ctx 78 source4/heimdal/lib/hcrypto/evp-hcrypto.c AES_KEY *k = ctx->cipher_data; ctx 79 source4/heimdal/lib/hcrypto/evp-hcrypto.c AES_cbc_encrypt(in, out, size, k, ctx->iv, ctx->encrypt); ctx 84 source4/heimdal/lib/hcrypto/evp-hcrypto.c aes_cleanup(EVP_CIPHER_CTX *ctx) ctx 86 source4/heimdal/lib/hcrypto/evp-hcrypto.c memset(ctx->cipher_data, 0, sizeof(AES_KEY)); ctx 144 source4/heimdal/lib/hcrypto/evp.c EVP_MD_CTX_init(EVP_MD_CTX *ctx) ctx 146 source4/heimdal/lib/hcrypto/evp.c memset(ctx, 0, sizeof(*ctx)); ctx 158 source4/heimdal/lib/hcrypto/evp.c EVP_MD_CTX_destroy(EVP_MD_CTX *ctx) ctx 160 source4/heimdal/lib/hcrypto/evp.c EVP_MD_CTX_cleanup(ctx); ctx 161 source4/heimdal/lib/hcrypto/evp.c free(ctx); ctx 175 source4/heimdal/lib/hcrypto/evp.c EVP_MD_CTX_cleanup(EVP_MD_CTX *ctx) ctx 177 source4/heimdal/lib/hcrypto/evp.c if (ctx->md && ctx->md->cleanup) ctx 178 source4/heimdal/lib/hcrypto/evp.c (ctx->md->cleanup)(ctx); ctx 179 source4/heimdal/lib/hcrypto/evp.c ctx->md = NULL; ctx 180 source4/heimdal/lib/hcrypto/evp.c ctx->engine = NULL; ctx 181 source4/heimdal/lib/hcrypto/evp.c free(ctx->ptr); ctx 182 source4/heimdal/lib/hcrypto/evp.c memset(ctx, 0, sizeof(*ctx)); ctx 197 source4/heimdal/lib/hcrypto/evp.c EVP_MD_CTX_md(EVP_MD_CTX *ctx) ctx 199 source4/heimdal/lib/hcrypto/evp.c return ctx->md; ctx 213 source4/heimdal/lib/hcrypto/evp.c EVP_MD_CTX_size(EVP_MD_CTX *ctx) ctx 215 source4/heimdal/lib/hcrypto/evp.c return EVP_MD_size(ctx->md); ctx 229 source4/heimdal/lib/hcrypto/evp.c EVP_MD_CTX_block_size(EVP_MD_CTX *ctx) ctx 231 source4/heimdal/lib/hcrypto/evp.c return EVP_MD_block_size(ctx->md); ctx 247 source4/heimdal/lib/hcrypto/evp.c EVP_DigestInit_ex(EVP_MD_CTX *ctx, const EVP_MD *md, ENGINE *engine) ctx 249 source4/heimdal/lib/hcrypto/evp.c if (ctx->md != md || ctx->engine != engine) { ctx 250 source4/heimdal/lib/hcrypto/evp.c EVP_MD_CTX_cleanup(ctx); ctx 251 source4/heimdal/lib/hcrypto/evp.c ctx->md = md; ctx 252 source4/heimdal/lib/hcrypto/evp.c ctx->engine = engine; ctx 254 source4/heimdal/lib/hcrypto/evp.c ctx->ptr = calloc(1, md->ctx_size); ctx 255 source4/heimdal/lib/hcrypto/evp.c if (ctx->ptr == NULL) ctx 258 source4/heimdal/lib/hcrypto/evp.c (ctx->md->init)(ctx->ptr); ctx 275 source4/heimdal/lib/hcrypto/evp.c EVP_DigestUpdate(EVP_MD_CTX *ctx, const void *data, size_t size) ctx 277 source4/heimdal/lib/hcrypto/evp.c (ctx->md->update)(ctx->ptr, data, size); ctx 295 source4/heimdal/lib/hcrypto/evp.c EVP_DigestFinal_ex(EVP_MD_CTX *ctx, void *hash, unsigned int *size) ctx 297 source4/heimdal/lib/hcrypto/evp.c (ctx->md->final)(hash, ctx->ptr); ctx 299 source4/heimdal/lib/hcrypto/evp.c *size = ctx->md->hash_size; ctx 324 source4/heimdal/lib/hcrypto/evp.c EVP_MD_CTX *ctx; ctx 327 source4/heimdal/lib/hcrypto/evp.c ctx = EVP_MD_CTX_create(); ctx 328 source4/heimdal/lib/hcrypto/evp.c if (ctx == NULL) ctx 330 source4/heimdal/lib/hcrypto/evp.c ret = EVP_DigestInit_ex(ctx, md, engine); ctx 332 source4/heimdal/lib/hcrypto/evp.c EVP_MD_CTX_destroy(ctx); ctx 335 source4/heimdal/lib/hcrypto/evp.c ret = EVP_DigestUpdate(ctx, data, dsize); ctx 337 source4/heimdal/lib/hcrypto/evp.c EVP_MD_CTX_destroy(ctx); ctx 340 source4/heimdal/lib/hcrypto/evp.c ret = EVP_DigestFinal_ex(ctx, hash, hsize); ctx 341 source4/heimdal/lib/hcrypto/evp.c EVP_MD_CTX_destroy(ctx); ctx 516 source4/heimdal/lib/hcrypto/evp.c int EVP_DigestInit(EVP_MD_CTX *ctx, const EVP_MD *type); ctx 517 source4/heimdal/lib/hcrypto/evp.c int EVP_DigestFinal(EVP_MD_CTX *ctx,unsigned char *md,unsigned int *s); ctx 632 source4/heimdal/lib/hcrypto/evp.c EVP_CIPHER_CTX_cipher(EVP_CIPHER_CTX *ctx) ctx 634 source4/heimdal/lib/hcrypto/evp.c return ctx->cipher; ctx 648 source4/heimdal/lib/hcrypto/evp.c EVP_CIPHER_CTX_block_size(const EVP_CIPHER_CTX *ctx) ctx 650 source4/heimdal/lib/hcrypto/evp.c return EVP_CIPHER_block_size(ctx->cipher); ctx 664 source4/heimdal/lib/hcrypto/evp.c EVP_CIPHER_CTX_key_length(const EVP_CIPHER_CTX *ctx) ctx 666 source4/heimdal/lib/hcrypto/evp.c return EVP_CIPHER_key_length(ctx->cipher); ctx 680 source4/heimdal/lib/hcrypto/evp.c EVP_CIPHER_CTX_iv_length(const EVP_CIPHER_CTX *ctx) ctx 682 source4/heimdal/lib/hcrypto/evp.c return EVP_CIPHER_iv_length(ctx->cipher); ctx 696 source4/heimdal/lib/hcrypto/evp.c EVP_CIPHER_CTX_flags(const EVP_CIPHER_CTX *ctx) ctx 698 source4/heimdal/lib/hcrypto/evp.c return ctx->cipher->flags; ctx 712 source4/heimdal/lib/hcrypto/evp.c EVP_CIPHER_CTX_mode(const EVP_CIPHER_CTX *ctx) ctx 714 source4/heimdal/lib/hcrypto/evp.c return EVP_CIPHER_CTX_flags(ctx) & EVP_CIPH_MODE; ctx 728 source4/heimdal/lib/hcrypto/evp.c EVP_CIPHER_CTX_get_app_data(EVP_CIPHER_CTX *ctx) ctx 730 source4/heimdal/lib/hcrypto/evp.c return ctx->app_data; ctx 743 source4/heimdal/lib/hcrypto/evp.c EVP_CIPHER_CTX_set_app_data(EVP_CIPHER_CTX *ctx, void *data) ctx 745 source4/heimdal/lib/hcrypto/evp.c ctx->app_data = data; ctx 765 source4/heimdal/lib/hcrypto/evp.c EVP_CipherInit_ex(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *c, ENGINE *engine, ctx 768 source4/heimdal/lib/hcrypto/evp.c ctx->buf_len = 0; ctx 771 source4/heimdal/lib/hcrypto/evp.c encp = ctx->encrypt; ctx 773 source4/heimdal/lib/hcrypto/evp.c ctx->encrypt = (encp ? 1 : 0); ctx 775 source4/heimdal/lib/hcrypto/evp.c if (c && (c != ctx->cipher)) { ctx 776 source4/heimdal/lib/hcrypto/evp.c EVP_CIPHER_CTX_cleanup(ctx); ctx 777 source4/heimdal/lib/hcrypto/evp.c ctx->cipher = c; ctx 778 source4/heimdal/lib/hcrypto/evp.c ctx->key_len = c->key_len; ctx 780 source4/heimdal/lib/hcrypto/evp.c ctx->cipher_data = malloc(c->ctx_size); ctx 781 source4/heimdal/lib/hcrypto/evp.c if (ctx->cipher_data == NULL && c->ctx_size != 0) ctx 785 source4/heimdal/lib/hcrypto/evp.c ctx->block_mask = EVP_CIPHER_block_size(c) - 1; ctx 787 source4/heimdal/lib/hcrypto/evp.c } else if (ctx->cipher == NULL) { ctx 792 source4/heimdal/lib/hcrypto/evp.c switch (EVP_CIPHER_CTX_flags(ctx)) { ctx 795 source4/heimdal/lib/hcrypto/evp.c assert(EVP_CIPHER_CTX_iv_length(ctx) <= sizeof(ctx->iv)); ctx 798 source4/heimdal/lib/hcrypto/evp.c memcpy(ctx->oiv, iv, EVP_CIPHER_CTX_iv_length(ctx)); ctx 799 source4/heimdal/lib/hcrypto/evp.c memcpy(ctx->iv, ctx->oiv, EVP_CIPHER_CTX_iv_length(ctx)); ctx 805 source4/heimdal/lib/hcrypto/evp.c if (key || (ctx->cipher->flags & EVP_CIPH_ALWAYS_CALL_INIT)) ctx 806 source4/heimdal/lib/hcrypto/evp.c ctx->cipher->init(ctx, key, iv, encp); ctx 831 source4/heimdal/lib/hcrypto/evp.c EVP_CipherUpdate(EVP_CIPHER_CTX *ctx, void *out, int *outlen, ctx 845 source4/heimdal/lib/hcrypto/evp.c if (ctx->buf_len == 0 && (inlen & ctx->block_mask) == 0) { ctx 846 source4/heimdal/lib/hcrypto/evp.c ret = (*ctx->cipher->do_cipher)(ctx, out, in, inlen); ctx 855 source4/heimdal/lib/hcrypto/evp.c blocksize = EVP_CIPHER_CTX_block_size(ctx); ctx 856 source4/heimdal/lib/hcrypto/evp.c left = blocksize - ctx->buf_len; ctx 859 source4/heimdal/lib/hcrypto/evp.c if (ctx->buf_len) { ctx 863 source4/heimdal/lib/hcrypto/evp.c memcpy(ctx->buf + ctx->buf_len, in, inlen); ctx 864 source4/heimdal/lib/hcrypto/evp.c ctx->buf_len += inlen; ctx 869 source4/heimdal/lib/hcrypto/evp.c memcpy(ctx->buf + ctx->buf_len, in, left); ctx 870 source4/heimdal/lib/hcrypto/evp.c ret = (*ctx->cipher->do_cipher)(ctx, out, ctx->buf, blocksize); ctx 871 source4/heimdal/lib/hcrypto/evp.c memset(ctx->buf, 0, blocksize); ctx 879 source4/heimdal/lib/hcrypto/evp.c ctx->buf_len = 0; ctx 883 source4/heimdal/lib/hcrypto/evp.c ctx->buf_len = (inlen & ctx->block_mask); ctx 884 source4/heimdal/lib/hcrypto/evp.c inlen &= ~ctx->block_mask; ctx 886 source4/heimdal/lib/hcrypto/evp.c ret = (*ctx->cipher->do_cipher)(ctx, out, in, inlen); ctx 893 source4/heimdal/lib/hcrypto/evp.c memcpy(ctx->buf, in, ctx->buf_len); ctx 917 source4/heimdal/lib/hcrypto/evp.c EVP_CipherFinal_ex(EVP_CIPHER_CTX *ctx, void *out, int *outlen) ctx 921 source4/heimdal/lib/hcrypto/evp.c if (ctx->buf_len) { ctx 924 source4/heimdal/lib/hcrypto/evp.c blocksize = EVP_CIPHER_CTX_block_size(ctx); ctx 926 source4/heimdal/lib/hcrypto/evp.c left = blocksize - ctx->buf_len; ctx 930 source4/heimdal/lib/hcrypto/evp.c memset(ctx->buf + ctx->buf_len, 0, left); ctx 931 source4/heimdal/lib/hcrypto/evp.c ret = (*ctx->cipher->do_cipher)(ctx, out, ctx->buf, blocksize); ctx 932 source4/heimdal/lib/hcrypto/evp.c memset(ctx->buf, 0, blocksize); ctx 954 source4/heimdal/lib/hcrypto/evp.c EVP_Cipher(EVP_CIPHER_CTX *ctx, void *out, const void *in,size_t size) ctx 956 source4/heimdal/lib/hcrypto/evp.c return ctx->cipher->do_cipher(ctx, out, in, size); ctx 964 source4/heimdal/lib/hcrypto/evp.c enc_null_init(EVP_CIPHER_CTX *ctx, ctx 973 source4/heimdal/lib/hcrypto/evp.c enc_null_do_cipher(EVP_CIPHER_CTX *ctx, ctx 983 source4/heimdal/lib/hcrypto/evp.c enc_null_cleanup(EVP_CIPHER_CTX *ctx) ctx 1027 source4/heimdal/lib/hcrypto/evp.c rc2_init(EVP_CIPHER_CTX *ctx, ctx 1032 source4/heimdal/lib/hcrypto/evp.c struct rc2_cbc *k = ctx->cipher_data; ctx 1033 source4/heimdal/lib/hcrypto/evp.c k->maximum_effective_key = EVP_CIPHER_CTX_key_length(ctx) * 8; ctx 1035 source4/heimdal/lib/hcrypto/evp.c EVP_CIPHER_CTX_key_length(ctx), ctx 1042 source4/heimdal/lib/hcrypto/evp.c rc2_do_cipher(EVP_CIPHER_CTX *ctx, ctx 1047 source4/heimdal/lib/hcrypto/evp.c struct rc2_cbc *k = ctx->cipher_data; ctx 1048 source4/heimdal/lib/hcrypto/evp.c RC2_cbc_encrypt(in, out, size, &k->key, ctx->iv, ctx->encrypt); ctx 1053 source4/heimdal/lib/hcrypto/evp.c rc2_cleanup(EVP_CIPHER_CTX *ctx) ctx 1055 source4/heimdal/lib/hcrypto/evp.c memset(ctx->cipher_data, 0, sizeof(struct rc2_cbc)); ctx 1183 source4/heimdal/lib/hcrypto/evp.c des_cbc_init(EVP_CIPHER_CTX *ctx, ctx 1188 source4/heimdal/lib/hcrypto/evp.c DES_key_schedule *k = ctx->cipher_data; ctx 1196 source4/heimdal/lib/hcrypto/evp.c des_cbc_do_cipher(EVP_CIPHER_CTX *ctx, ctx 1201 source4/heimdal/lib/hcrypto/evp.c DES_key_schedule *k = ctx->cipher_data; ctx 1203 source4/heimdal/lib/hcrypto/evp.c k, (DES_cblock *)ctx->iv, ctx->encrypt); ctx 1208 source4/heimdal/lib/hcrypto/evp.c des_cbc_cleanup(EVP_CIPHER_CTX *ctx) ctx 1210 source4/heimdal/lib/hcrypto/evp.c memset(ctx->cipher_data, 0, sizeof(struct DES_key_schedule)); ctx 1252 source4/heimdal/lib/hcrypto/evp.c des_ede3_cbc_init(EVP_CIPHER_CTX *ctx, ctx 1257 source4/heimdal/lib/hcrypto/evp.c struct des_ede3_cbc *k = ctx->cipher_data; ctx 1276 source4/heimdal/lib/hcrypto/evp.c des_ede3_cbc_do_cipher(EVP_CIPHER_CTX *ctx, ctx 1281 source4/heimdal/lib/hcrypto/evp.c struct des_ede3_cbc *k = ctx->cipher_data; ctx 1284 source4/heimdal/lib/hcrypto/evp.c (DES_cblock *)ctx->iv, ctx->encrypt); ctx 1289 source4/heimdal/lib/hcrypto/evp.c des_ede3_cbc_cleanup(EVP_CIPHER_CTX *ctx) ctx 1291 source4/heimdal/lib/hcrypto/evp.c memset(ctx->cipher_data, 0, sizeof(struct des_ede3_cbc)); ctx 1367 source4/heimdal/lib/hcrypto/evp.c camellia_init(EVP_CIPHER_CTX *ctx, ctx 1372 source4/heimdal/lib/hcrypto/evp.c CAMELLIA_KEY *k = ctx->cipher_data; ctx 1373 source4/heimdal/lib/hcrypto/evp.c k->bits = ctx->cipher->key_len * 8; ctx 1374 source4/heimdal/lib/hcrypto/evp.c CAMELLIA_set_key(key, ctx->cipher->key_len * 8, k); ctx 1379 source4/heimdal/lib/hcrypto/evp.c camellia_do_cipher(EVP_CIPHER_CTX *ctx, ctx 1384 source4/heimdal/lib/hcrypto/evp.c CAMELLIA_KEY *k = ctx->cipher_data; ctx 1385 source4/heimdal/lib/hcrypto/evp.c CAMELLIA_cbc_encrypt(in, out, size, k, ctx->iv, ctx->encrypt); ctx 1390 source4/heimdal/lib/hcrypto/evp.c camellia_cleanup(EVP_CIPHER_CTX *ctx) ctx 1392 source4/heimdal/lib/hcrypto/evp.c memset(ctx->cipher_data, 0, sizeof(CAMELLIA_KEY)); ctx 1641 source4/heimdal/lib/hcrypto/evp.c EVP_CIPHER_CTX_rand_key(EVP_CIPHER_CTX *ctx, void *key) ctx 1643 source4/heimdal/lib/hcrypto/evp.c if (ctx->cipher->flags & EVP_CIPH_RAND_KEY) ctx 1644 source4/heimdal/lib/hcrypto/evp.c return EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_RAND_KEY, 0, key); ctx 1645 source4/heimdal/lib/hcrypto/evp.c if (RAND_bytes(key, ctx->key_len) != 1) ctx 1659 source4/heimdal/lib/hcrypto/evp.c EVP_CIPHER_CTX_ctrl(EVP_CIPHER_CTX *ctx, int type, int arg, void *data) ctx 1661 source4/heimdal/lib/hcrypto/evp.c if (ctx->cipher == NULL || ctx->cipher->ctrl == NULL) ctx 1663 source4/heimdal/lib/hcrypto/evp.c return (*ctx->cipher->ctrl)(ctx, type, arg, data); ctx 41 source4/heimdal/lib/hcrypto/hmac.c HMAC_CTX_init(HMAC_CTX *ctx) ctx 43 source4/heimdal/lib/hcrypto/hmac.c memset(ctx, 0, sizeof(*ctx)); ctx 47 source4/heimdal/lib/hcrypto/hmac.c HMAC_CTX_cleanup(HMAC_CTX *ctx) ctx 49 source4/heimdal/lib/hcrypto/hmac.c if (ctx->buf) { ctx 50 source4/heimdal/lib/hcrypto/hmac.c memset(ctx->buf, 0, ctx->key_length); ctx 51 source4/heimdal/lib/hcrypto/hmac.c free(ctx->buf); ctx 52 source4/heimdal/lib/hcrypto/hmac.c ctx->buf = NULL; ctx 54 source4/heimdal/lib/hcrypto/hmac.c if (ctx->opad) { ctx 55 source4/heimdal/lib/hcrypto/hmac.c memset(ctx->ipad, 0, ctx->key_length); ctx 56 source4/heimdal/lib/hcrypto/hmac.c free(ctx->opad); ctx 57 source4/heimdal/lib/hcrypto/hmac.c ctx->opad = NULL; ctx 59 source4/heimdal/lib/hcrypto/hmac.c if (ctx->ipad) { ctx 60 source4/heimdal/lib/hcrypto/hmac.c memset(ctx->ipad, 0, ctx->key_length); ctx 61 source4/heimdal/lib/hcrypto/hmac.c free(ctx->ipad); ctx 62 source4/heimdal/lib/hcrypto/hmac.c ctx->ipad = NULL; ctx 64 source4/heimdal/lib/hcrypto/hmac.c if (ctx->ctx) { ctx 65 source4/heimdal/lib/hcrypto/hmac.c EVP_MD_CTX_destroy(ctx->ctx); ctx 66 source4/heimdal/lib/hcrypto/hmac.c ctx->ctx = NULL; ctx 71 source4/heimdal/lib/hcrypto/hmac.c HMAC_size(const HMAC_CTX *ctx) ctx 73 source4/heimdal/lib/hcrypto/hmac.c return EVP_MD_size(ctx->md); ctx 77 source4/heimdal/lib/hcrypto/hmac.c HMAC_Init_ex(HMAC_CTX *ctx, ctx 86 source4/heimdal/lib/hcrypto/hmac.c if (ctx->md != md) { ctx 87 source4/heimdal/lib/hcrypto/hmac.c ctx->md = md; ctx 88 source4/heimdal/lib/hcrypto/hmac.c if (ctx->buf) { ctx 89 source4/heimdal/lib/hcrypto/hmac.c memset(ctx->buf, 0, ctx->key_length); ctx 90 source4/heimdal/lib/hcrypto/hmac.c free (ctx->buf); ctx 92 source4/heimdal/lib/hcrypto/hmac.c ctx->key_length = EVP_MD_size(ctx->md); ctx 93 source4/heimdal/lib/hcrypto/hmac.c ctx->buf = malloc(ctx->key_length); ctx 96 source4/heimdal/lib/hcrypto/hmac.c ctx->engine = engine; ctx 99 source4/heimdal/lib/hcrypto/hmac.c if (keylen > EVP_MD_block_size(ctx->md)) { ctx 100 source4/heimdal/lib/hcrypto/hmac.c EVP_Digest(key, keylen, ctx->buf, NULL, ctx->md, engine); ctx 101 source4/heimdal/lib/hcrypto/hmac.c key = ctx->buf; ctx 102 source4/heimdal/lib/hcrypto/hmac.c keylen = EVP_MD_size(ctx->md); ctx 105 source4/heimdal/lib/hcrypto/hmac.c if (ctx->opad) { ctx 106 source4/heimdal/lib/hcrypto/hmac.c memset(ctx->opad, 0, ctx->key_length); ctx 107 source4/heimdal/lib/hcrypto/hmac.c free(ctx->opad); ctx 109 source4/heimdal/lib/hcrypto/hmac.c if (ctx->ipad) { ctx 110 source4/heimdal/lib/hcrypto/hmac.c memset(ctx->ipad, 0, ctx->key_length); ctx 111 source4/heimdal/lib/hcrypto/hmac.c free(ctx->ipad); ctx 114 source4/heimdal/lib/hcrypto/hmac.c ctx->opad = malloc(EVP_MD_block_size(ctx->md)); ctx 115 source4/heimdal/lib/hcrypto/hmac.c ctx->ipad = malloc(EVP_MD_block_size(ctx->md)); ctx 116 source4/heimdal/lib/hcrypto/hmac.c memset(ctx->ipad, 0x36, EVP_MD_block_size(ctx->md)); ctx 117 source4/heimdal/lib/hcrypto/hmac.c memset(ctx->opad, 0x5c, EVP_MD_block_size(ctx->md)); ctx 119 source4/heimdal/lib/hcrypto/hmac.c for (i = 0, p = ctx->ipad; i < keylen; i++) ctx 121 source4/heimdal/lib/hcrypto/hmac.c for (i = 0, p = ctx->opad; i < keylen; i++) ctx 124 source4/heimdal/lib/hcrypto/hmac.c ctx->ctx = EVP_MD_CTX_create(); ctx 126 source4/heimdal/lib/hcrypto/hmac.c EVP_DigestInit_ex(ctx->ctx, ctx->md, ctx->engine); ctx 127 source4/heimdal/lib/hcrypto/hmac.c EVP_DigestUpdate(ctx->ctx, ctx->ipad, EVP_MD_block_size(ctx->md)); ctx 131 source4/heimdal/lib/hcrypto/hmac.c HMAC_Update(HMAC_CTX *ctx, const void *data, size_t len) ctx 133 source4/heimdal/lib/hcrypto/hmac.c EVP_DigestUpdate(ctx->ctx, data, len); ctx 137 source4/heimdal/lib/hcrypto/hmac.c HMAC_Final(HMAC_CTX *ctx, void *md, unsigned int *len) ctx 139 source4/heimdal/lib/hcrypto/hmac.c EVP_DigestFinal_ex(ctx->ctx, ctx->buf, NULL); ctx 141 source4/heimdal/lib/hcrypto/hmac.c EVP_DigestInit_ex(ctx->ctx, ctx->md, ctx->engine); ctx 142 source4/heimdal/lib/hcrypto/hmac.c EVP_DigestUpdate(ctx->ctx, ctx->opad, EVP_MD_block_size(ctx->md)); ctx 143 source4/heimdal/lib/hcrypto/hmac.c EVP_DigestUpdate(ctx->ctx, ctx->buf, ctx->key_length); ctx 144 source4/heimdal/lib/hcrypto/hmac.c EVP_DigestFinal_ex(ctx->ctx, md, len); ctx 153 source4/heimdal/lib/hcrypto/hmac.c HMAC_CTX ctx; ctx 155 source4/heimdal/lib/hcrypto/hmac.c HMAC_CTX_init(&ctx); ctx 156 source4/heimdal/lib/hcrypto/hmac.c HMAC_Init_ex(&ctx, key, key_size, md, NULL); ctx 157 source4/heimdal/lib/hcrypto/hmac.c HMAC_Update(&ctx, data, data_size); ctx 158 source4/heimdal/lib/hcrypto/hmac.c HMAC_Final(&ctx, hash, hash_len); ctx 159 source4/heimdal/lib/hcrypto/hmac.c HMAC_CTX_cleanup(&ctx); ctx 61 source4/heimdal/lib/hcrypto/hmac.h EVP_MD_CTX *ctx; ctx 70 source4/heimdal/lib/hcrypto/hmac.h void HMAC_CTX_cleanup(HMAC_CTX *ctx); ctx 72 source4/heimdal/lib/hcrypto/hmac.h size_t HMAC_size(const HMAC_CTX *ctx); ctx 76 source4/heimdal/lib/hcrypto/hmac.h void HMAC_Update(HMAC_CTX *ctx, const void *data, size_t len); ctx 77 source4/heimdal/lib/hcrypto/hmac.h void HMAC_Final(HMAC_CTX *ctx, void *md, unsigned int *len); ctx 58 source4/heimdal/lib/hcrypto/pkcs12.c EVP_MD_CTX *ctx; ctx 62 source4/heimdal/lib/hcrypto/pkcs12.c ctx = EVP_MD_CTX_create(); ctx 63 source4/heimdal/lib/hcrypto/pkcs12.c if (ctx == NULL) ctx 69 source4/heimdal/lib/hcrypto/pkcs12.c EVP_MD_CTX_destroy(ctx); ctx 75 source4/heimdal/lib/hcrypto/pkcs12.c EVP_MD_CTX_destroy(ctx); ctx 101 source4/heimdal/lib/hcrypto/pkcs12.c if (!EVP_DigestInit_ex(ctx, md, NULL)) { ctx 102 source4/heimdal/lib/hcrypto/pkcs12.c EVP_MD_CTX_destroy(ctx); ctx 108 source4/heimdal/lib/hcrypto/pkcs12.c EVP_DigestUpdate(ctx, &idc, 1); ctx 109 source4/heimdal/lib/hcrypto/pkcs12.c EVP_DigestUpdate(ctx, I, size_I); ctx 110 source4/heimdal/lib/hcrypto/pkcs12.c EVP_DigestFinal_ex(ctx, hash, &size); ctx 154 source4/heimdal/lib/hcrypto/pkcs12.c EVP_MD_CTX_destroy(ctx); ctx 135 source4/heimdal/lib/hcrypto/rand-fortuna.c ciph_init(CIPH_CTX * ctx, const unsigned char *key, int klen) ctx 137 source4/heimdal/lib/hcrypto/rand-fortuna.c AES_set_encrypt_key(key, klen * 8, ctx); ctx 141 source4/heimdal/lib/hcrypto/rand-fortuna.c ciph_encrypt(CIPH_CTX * ctx, const unsigned char *in, unsigned char *out) ctx 143 source4/heimdal/lib/hcrypto/rand-fortuna.c AES_encrypt(in, out, ctx); ctx 147 source4/heimdal/lib/hcrypto/rand-fortuna.c md_init(MD_CTX * ctx) ctx 149 source4/heimdal/lib/hcrypto/rand-fortuna.c SHA256_Init(ctx); ctx 153 source4/heimdal/lib/hcrypto/rand-fortuna.c md_update(MD_CTX * ctx, const unsigned char *data, int len) ctx 155 source4/heimdal/lib/hcrypto/rand-fortuna.c SHA256_Update(ctx, data, len); ctx 159 source4/heimdal/lib/hcrypto/rand-fortuna.c md_result(MD_CTX * ctx, unsigned char *dst) ctx 163 source4/heimdal/lib/hcrypto/rand-fortuna.c memcpy(&tmp, ctx, sizeof(*ctx)); ctx 63 source4/heimdal/lib/hdb/hdb.h void *ctx; ctx 68 source4/heimdal/lib/hx509/cert.c #define REQUIRE_RFC3280(ctx) ((ctx)->flags & HX509_VERIFY_CTX_F_REQUIRE_RFC3280) ctx 69 source4/heimdal/lib/hx509/cert.c #define CHECK_TA(ctx) ((ctx)->flags & HX509_VERIFY_CTX_F_CHECK_TRUST_ANCHORS) ctx 70 source4/heimdal/lib/hx509/cert.c #define ALLOW_DEF_TA(ctx) (((ctx)->flags & HX509_VERIFY_CTX_F_NO_DEFAULT_ANCHORS) == 0) ctx 85 source4/heimdal/lib/hx509/cert.c void *ctx; ctx 234 source4/heimdal/lib/hx509/cert.c (*cert)->ctx = NULL; ctx 299 source4/heimdal/lib/hx509/cert.c void *ctx) ctx 302 source4/heimdal/lib/hx509/cert.c cert->ctx = ctx; ctx 340 source4/heimdal/lib/hx509/cert.c (cert->release)(cert, cert->ctx); ctx 397 source4/heimdal/lib/hx509/cert.c hx509_verify_init_ctx(hx509_context context, hx509_verify_ctx *ctx) ctx 407 source4/heimdal/lib/hx509/cert.c *ctx = c; ctx 421 source4/heimdal/lib/hx509/cert.c hx509_verify_destroy_ctx(hx509_verify_ctx ctx) ctx 423 source4/heimdal/lib/hx509/cert.c if (ctx) { ctx 424 source4/heimdal/lib/hx509/cert.c hx509_certs_free(&ctx->trust_anchors); ctx 425 source4/heimdal/lib/hx509/cert.c hx509_revoke_free(&ctx->revoke_ctx); ctx 426 source4/heimdal/lib/hx509/cert.c memset(ctx, 0, sizeof(*ctx)); ctx 428 source4/heimdal/lib/hx509/cert.c free(ctx); ctx 443 source4/heimdal/lib/hx509/cert.c hx509_verify_attach_anchors(hx509_verify_ctx ctx, hx509_certs set) ctx 445 source4/heimdal/lib/hx509/cert.c ctx->trust_anchors = _hx509_certs_ref(set); ctx 462 source4/heimdal/lib/hx509/cert.c hx509_verify_attach_revoke(hx509_verify_ctx ctx, hx509_revoke_ctx revoke_ctx) ctx 464 source4/heimdal/lib/hx509/cert.c if (ctx->revoke_ctx) ctx 465 source4/heimdal/lib/hx509/cert.c hx509_revoke_free(&ctx->revoke_ctx); ctx 466 source4/heimdal/lib/hx509/cert.c ctx->revoke_ctx = _hx509_revoke_ref(revoke_ctx); ctx 482 source4/heimdal/lib/hx509/cert.c hx509_verify_set_time(hx509_verify_ctx ctx, time_t t) ctx 484 source4/heimdal/lib/hx509/cert.c ctx->flags |= HX509_VERIFY_CTX_F_TIME_SET; ctx 485 source4/heimdal/lib/hx509/cert.c ctx->time_now = t; ctx 489 source4/heimdal/lib/hx509/cert.c _hx509_verify_get_time(hx509_verify_ctx ctx) ctx 491 source4/heimdal/lib/hx509/cert.c return ctx->time_now; ctx 506 source4/heimdal/lib/hx509/cert.c hx509_verify_set_max_depth(hx509_verify_ctx ctx, unsigned int max_depth) ctx 508 source4/heimdal/lib/hx509/cert.c ctx->max_depth = max_depth; ctx 521 source4/heimdal/lib/hx509/cert.c hx509_verify_set_proxy_certificate(hx509_verify_ctx ctx, int boolean) ctx 524 source4/heimdal/lib/hx509/cert.c ctx->flags |= HX509_VERIFY_CTX_F_ALLOW_PROXY_CERTIFICATE; ctx 526 source4/heimdal/lib/hx509/cert.c ctx->flags &= ~HX509_VERIFY_CTX_F_ALLOW_PROXY_CERTIFICATE; ctx 541 source4/heimdal/lib/hx509/cert.c hx509_verify_set_strict_rfc3280_verification(hx509_verify_ctx ctx, int boolean) ctx 544 source4/heimdal/lib/hx509/cert.c ctx->flags |= HX509_VERIFY_CTX_F_REQUIRE_RFC3280; ctx 546 source4/heimdal/lib/hx509/cert.c ctx->flags &= ~HX509_VERIFY_CTX_F_REQUIRE_RFC3280; ctx 564 source4/heimdal/lib/hx509/cert.c hx509_verify_ctx_f_allow_default_trustanchors(hx509_verify_ctx ctx, int boolean) ctx 567 source4/heimdal/lib/hx509/cert.c ctx->flags &= ~HX509_VERIFY_CTX_F_NO_DEFAULT_ANCHORS; ctx 569 source4/heimdal/lib/hx509/cert.c ctx->flags |= HX509_VERIFY_CTX_F_NO_DEFAULT_ANCHORS; ctx 1889 source4/heimdal/lib/hx509/cert.c hx509_verify_ctx ctx, ctx 1909 source4/heimdal/lib/hx509/cert.c if ((ctx->flags & HX509_VERIFY_CTX_F_TIME_SET) == 0) ctx 1910 source4/heimdal/lib/hx509/cert.c ctx->time_now = time(NULL); ctx 1915 source4/heimdal/lib/hx509/cert.c if (ctx->trust_anchors) ctx 1916 source4/heimdal/lib/hx509/cert.c anchors = _hx509_certs_ref(ctx->trust_anchors); ctx 1917 source4/heimdal/lib/hx509/cert.c else if (context->default_trust_anchors && ALLOW_DEF_TA(ctx)) ctx 1929 source4/heimdal/lib/hx509/cert.c ret = _hx509_calculate_path(context, 0, ctx->time_now, ctx 1930 source4/heimdal/lib/hx509/cert.c anchors, ctx->max_depth, ctx 1945 source4/heimdal/lib/hx509/cert.c if (ctx->flags & HX509_VERIFY_CTX_F_ALLOW_PROXY_CERTIFICATE) ctx 1967 source4/heimdal/lib/hx509/cert.c REQUIRE_RFC3280(ctx) ? TRUE : FALSE); ctx 2133 source4/heimdal/lib/hx509/cert.c if (i + 1 != path.len || CHECK_TA(ctx)) { ctx 2136 source4/heimdal/lib/hx509/cert.c if (t > ctx->time_now) { ctx 2142 source4/heimdal/lib/hx509/cert.c if (t < ctx->time_now) { ctx 2189 source4/heimdal/lib/hx509/cert.c if (ctx->revoke_ctx) { ctx 2214 source4/heimdal/lib/hx509/cert.c ctx->revoke_ctx, ctx 2216 source4/heimdal/lib/hx509/cert.c ctx->time_now, ctx 2750 source4/heimdal/lib/hx509/cert.c void *ctx) ctx 2757 source4/heimdal/lib/hx509/cert.c q->cmp_func_ctx = ctx; ctx 757 source4/heimdal/lib/hx509/cms.c hx509_verify_ctx ctx, ctx 842 source4/heimdal/lib/hx509/cms.c _hx509_verify_get_time(ctx), &cert, ctx 980 source4/heimdal/lib/hx509/cms.c ret = hx509_verify_path(context, ctx, cert, certs); ctx 472 source4/heimdal/lib/hx509/crypto.c struct hx509_generate_private_context *ctx, ctx 494 source4/heimdal/lib/hx509/crypto.c if (ctx->num_bits) ctx 495 source4/heimdal/lib/hx509/crypto.c bits = ctx->num_bits; ctx 496 source4/heimdal/lib/hx509/crypto.c else if (ctx->isCA) ctx 1329 source4/heimdal/lib/hx509/crypto.c struct hx509_generate_private_context **ctx) ctx 1331 source4/heimdal/lib/hx509/crypto.c *ctx = NULL; ctx 1339 source4/heimdal/lib/hx509/crypto.c *ctx = calloc(1, sizeof(**ctx)); ctx 1340 source4/heimdal/lib/hx509/crypto.c if (*ctx == NULL) { ctx 1344 source4/heimdal/lib/hx509/crypto.c (*ctx)->key_oid = oid; ctx 1351 source4/heimdal/lib/hx509/crypto.c struct hx509_generate_private_context *ctx) ctx 1353 source4/heimdal/lib/hx509/crypto.c ctx->isCA = 1; ctx 1359 source4/heimdal/lib/hx509/crypto.c struct hx509_generate_private_context *ctx, ctx 1362 source4/heimdal/lib/hx509/crypto.c ctx->num_bits = bits; ctx 1368 source4/heimdal/lib/hx509/crypto.c _hx509_generate_private_key_free(struct hx509_generate_private_context **ctx) ctx 1370 source4/heimdal/lib/hx509/crypto.c free(*ctx); ctx 1371 source4/heimdal/lib/hx509/crypto.c *ctx = NULL; ctx 1376 source4/heimdal/lib/hx509/crypto.c struct hx509_generate_private_context *ctx, ctx 1384 source4/heimdal/lib/hx509/crypto.c ops = find_private_alg(ctx->key_oid); ctx 1396 source4/heimdal/lib/hx509/crypto.c ret = (*ops->generate_private_key)(context, ctx, *private_key); ctx 187 source4/heimdal/lib/hx509/file.c void *ctx) ctx 275 source4/heimdal/lib/hx509/file.c ret = (*func)(context, type, headers, data, len, ctx); ctx 105 source4/heimdal/lib/hx509/hx509.h const void *, size_t, void *ctx); ctx 339 source4/heimdal/lib/hx509/keyset.c void *ctx) ctx 357 source4/heimdal/lib/hx509/keyset.c ret = (*func)(context, ctx, c); ctx 383 source4/heimdal/lib/hx509/keyset.c hx509_ci_print_names(hx509_context context, void *ctx, hx509_cert c) ctx 397 source4/heimdal/lib/hx509/keyset.c fprintf(ctx, "subject: %s\nissuer: %s\n", s, i); ctx 493 source4/heimdal/lib/hx509/keyset.c certs_merge_func(hx509_context context, void *ctx, hx509_cert c) ctx 495 source4/heimdal/lib/hx509/keyset.c return hx509_certs_add(context, (hx509_certs)ctx, c); ctx 584 source4/heimdal/lib/hx509/keyset.c certs_info_stdio(void *ctx, const char *str) ctx 586 source4/heimdal/lib/hx509/keyset.c FILE *f = ctx; ctx 610 source4/heimdal/lib/hx509/keyset.c void *ctx) ctx 614 source4/heimdal/lib/hx509/keyset.c if (ctx == NULL) ctx 615 source4/heimdal/lib/hx509/keyset.c ctx = stdout; ctx 618 source4/heimdal/lib/hx509/keyset.c (*func)(ctx, "No info function for certs"); ctx 622 source4/heimdal/lib/hx509/keyset.c func, ctx); ctx 626 source4/heimdal/lib/hx509/keyset.c _hx509_pi_printf(int (*func)(void *, const char *), void *ctx, ctx 637 source4/heimdal/lib/hx509/keyset.c (*func)(ctx, str); ctx 110 source4/heimdal/lib/hx509/ks_file.c EVP_CIPHER_CTX ctx; ctx 111 source4/heimdal/lib/hx509/ks_file.c EVP_CIPHER_CTX_init(&ctx); ctx 112 source4/heimdal/lib/hx509/ks_file.c EVP_CipherInit_ex(&ctx, c, NULL, key, ivdata, 0); ctx 113 source4/heimdal/lib/hx509/ks_file.c EVP_Cipher(&ctx, clear.data, cipher, len); ctx 114 source4/heimdal/lib/hx509/ks_file.c EVP_CIPHER_CTX_cleanup(&ctx); ctx 300 source4/heimdal/lib/hx509/ks_file.c const void *data, size_t len, void *ctx) ctx 302 source4/heimdal/lib/hx509/ks_file.c struct pem_ctx *pem_ctx = (struct pem_ctx*)ctx; ctx 481 source4/heimdal/lib/hx509/ks_file.c store_func(hx509_context context, void *ctx, hx509_cert c) ctx 483 source4/heimdal/lib/hx509/ks_file.c struct store_ctx *sc = ctx; ctx 268 source4/heimdal/lib/hx509/ks_keychain.c struct ks_keychain *ctx; ctx 270 source4/heimdal/lib/hx509/ks_keychain.c ctx = calloc(1, sizeof(*ctx)); ctx 271 source4/heimdal/lib/hx509/ks_keychain.c if (ctx == NULL) { ctx 278 source4/heimdal/lib/hx509/ks_keychain.c ctx->anchors = 1; ctx 282 source4/heimdal/lib/hx509/ks_keychain.c ret = SecKeychainOpen(residue + 5, &ctx->keychain); ctx 295 source4/heimdal/lib/hx509/ks_keychain.c *data = ctx; ctx 306 source4/heimdal/lib/hx509/ks_keychain.c struct ks_keychain *ctx = data; ctx 307 source4/heimdal/lib/hx509/ks_keychain.c if (ctx->keychain) ctx 308 source4/heimdal/lib/hx509/ks_keychain.c CFRelease(ctx->keychain); ctx 309 source4/heimdal/lib/hx509/ks_keychain.c memset(ctx, 0, sizeof(*ctx)); ctx 310 source4/heimdal/lib/hx509/ks_keychain.c free(ctx); ctx 328 source4/heimdal/lib/hx509/ks_keychain.c struct ks_keychain *ctx = data; ctx 337 source4/heimdal/lib/hx509/ks_keychain.c if (ctx->anchors) { ctx 387 source4/heimdal/lib/hx509/ks_keychain.c ret = SecKeychainSearchCreateFromAttributes(ctx->keychain, ctx 669 source4/heimdal/lib/hx509/ks_p11.c p11_cert_release(hx509_cert cert, void *ctx) ctx 671 source4/heimdal/lib/hx509/ks_p11.c struct p11_module *p = ctx; ctx 1108 source4/heimdal/lib/hx509/ks_p11.c void *ctx) ctx 1113 source4/heimdal/lib/hx509/ks_p11.c _hx509_pi_printf(func, ctx, "pkcs11 driver with %d slot%s", ctx 1119 source4/heimdal/lib/hx509/ks_p11.c _hx509_pi_printf(func, ctx, "slot %d: id: %d name: %s flags: %08x", ctx 1122 source4/heimdal/lib/hx509/ks_p11.c _hx509_pi_printf(func, ctx, "number of supported mechanisms: %lu", ctx 1165 source4/heimdal/lib/hx509/ks_p11.c _hx509_pi_printf(func, ctx, " %s: %s", mechname, flags); ctx 485 source4/heimdal/lib/hx509/ks_p12.c store_func(hx509_context context, void *ctx, hx509_cert c) ctx 487 source4/heimdal/lib/hx509/ks_p12.c PKCS12_AuthenticatedSafe *as = ctx; ctx 46 source4/heimdal/lib/hx509/print.c void *ctx; ctx 98 source4/heimdal/lib/hx509/print.c hx509_print_stdout(void *ctx, const char *fmt, va_list va) ctx 100 source4/heimdal/lib/hx509/print.c FILE *f = ctx; ctx 107 source4/heimdal/lib/hx509/print.c print_func(hx509_vprint_func func, void *ctx, const char *fmt, ...) ctx 111 source4/heimdal/lib/hx509/print.c (*func)(ctx, fmt, va); ctx 144 source4/heimdal/lib/hx509/print.c hx509_oid_print(const heim_oid *oid, hx509_vprint_func func, void *ctx) ctx 148 source4/heimdal/lib/hx509/print.c print_func(func, ctx, "%s", str); ctx 165 source4/heimdal/lib/hx509/print.c hx509_vprint_func func, void *ctx) ctx 168 source4/heimdal/lib/hx509/print.c print_func(func, ctx, "\tlength: %d\n\t", b->length); ctx 170 source4/heimdal/lib/hx509/print.c print_func(func, ctx, "%02x%s%s", ctx 220 source4/heimdal/lib/hx509/print.c hx509_validate_ctx ctx = c; ctx 221 source4/heimdal/lib/hx509/print.c if (ctx->vprint_func == NULL) ctx 223 source4/heimdal/lib/hx509/print.c (ctx->vprint_func)(ctx->ctx, fmt, va); ctx 227 source4/heimdal/lib/hx509/print.c validate_print(hx509_validate_ctx ctx, int flags, const char *fmt, ...) ctx 230 source4/heimdal/lib/hx509/print.c if ((ctx->flags & flags) == 0) ctx 233 source4/heimdal/lib/hx509/print.c validate_vprint(ctx, fmt, va); ctx 244 source4/heimdal/lib/hx509/print.c check_Null(hx509_validate_ctx ctx, ctx 253 source4/heimdal/lib/hx509/print.c validate_print(ctx, HX509_VALIDATE_F_VALIDATE, ctx 258 source4/heimdal/lib/hx509/print.c validate_print(ctx, HX509_VALIDATE_F_VALIDATE, ctx 263 source4/heimdal/lib/hx509/print.c validate_print(ctx, HX509_VALIDATE_F_VALIDATE, ctx 268 source4/heimdal/lib/hx509/print.c validate_print(ctx, HX509_VALIDATE_F_VALIDATE, ctx 278 source4/heimdal/lib/hx509/print.c check_subjectKeyIdentifier(hx509_validate_ctx ctx, ctx 288 source4/heimdal/lib/hx509/print.c check_Null(ctx, status, cf, e); ctx 294 source4/heimdal/lib/hx509/print.c validate_print(ctx, HX509_VALIDATE_F_VALIDATE, ctx 299 source4/heimdal/lib/hx509/print.c validate_print(ctx, HX509_VALIDATE_F_VALIDATE, ctx 304 source4/heimdal/lib/hx509/print.c validate_print(ctx, HX509_VALIDATE_F_VALIDATE, ctx 307 source4/heimdal/lib/hx509/print.c validate_print(ctx, HX509_VALIDATE_F_VALIDATE, ctx 314 source4/heimdal/lib/hx509/print.c validate_print(ctx, HX509_VALIDATE_F_VERBOSE, ctx 326 source4/heimdal/lib/hx509/print.c check_authorityKeyIdentifier(hx509_validate_ctx ctx, ctx 336 source4/heimdal/lib/hx509/print.c check_Null(ctx, status, cf, e); ctx 342 source4/heimdal/lib/hx509/print.c validate_print(ctx, HX509_VALIDATE_F_VALIDATE, ctx 347 source4/heimdal/lib/hx509/print.c validate_print(ctx, HX509_VALIDATE_F_VALIDATE, ctx 356 source4/heimdal/lib/hx509/print.c validate_print(ctx, HX509_VALIDATE_F_VERBOSE, ctx 366 source4/heimdal/lib/hx509/print.c check_extKeyUsage(hx509_validate_ctx ctx, ctx 375 source4/heimdal/lib/hx509/print.c check_Null(ctx, status, cf, e); ctx 381 source4/heimdal/lib/hx509/print.c validate_print(ctx, HX509_VALIDATE_F_VALIDATE, ctx 386 source4/heimdal/lib/hx509/print.c validate_print(ctx, HX509_VALIDATE_F_VALIDATE, ctx 392 source4/heimdal/lib/hx509/print.c validate_print(ctx, HX509_VALIDATE_F_VALIDATE, ctx 401 source4/heimdal/lib/hx509/print.c validate_print(ctx, HX509_VALIDATE_F_VALIDATE, ctx 406 source4/heimdal/lib/hx509/print.c validate_print(ctx, HX509_VALIDATE_F_VERBOSE, ctx 417 source4/heimdal/lib/hx509/print.c check_pkinit_san(hx509_validate_ctx ctx, heim_any *a) ctx 426 source4/heimdal/lib/hx509/print.c validate_print(ctx, HX509_VALIDATE_F_VALIDATE, ctx 432 source4/heimdal/lib/hx509/print.c validate_print(ctx, HX509_VALIDATE_F_VALIDATE, ctx 439 source4/heimdal/lib/hx509/print.c validate_print(ctx, HX509_VALIDATE_F_VERBOSE, "%s", ctx 442 source4/heimdal/lib/hx509/print.c validate_print(ctx, HX509_VALIDATE_F_VERBOSE, "/"); ctx 444 source4/heimdal/lib/hx509/print.c validate_print(ctx, HX509_VALIDATE_F_VERBOSE, "@"); ctx 445 source4/heimdal/lib/hx509/print.c validate_print(ctx, HX509_VALIDATE_F_VERBOSE, "%s", kn.realm); ctx 452 source4/heimdal/lib/hx509/print.c check_utf8_string_san(hx509_validate_ctx ctx, heim_any *a) ctx 460 source4/heimdal/lib/hx509/print.c validate_print(ctx, HX509_VALIDATE_F_VALIDATE, ctx 465 source4/heimdal/lib/hx509/print.c validate_print(ctx, HX509_VALIDATE_F_VERBOSE, "%s", jid); ctx 472 source4/heimdal/lib/hx509/print.c check_altnull(hx509_validate_ctx ctx, heim_any *a) ctx 478 source4/heimdal/lib/hx509/print.c check_CRLDistributionPoints(hx509_validate_ctx ctx, ctx 487 source4/heimdal/lib/hx509/print.c check_Null(ctx, status, cf, e); ctx 493 source4/heimdal/lib/hx509/print.c validate_print(ctx, HX509_VALIDATE_F_VALIDATE, ctx 498 source4/heimdal/lib/hx509/print.c validate_print(ctx, HX509_VALIDATE_F_VERBOSE, "CRL Distribution Points:\n"); ctx 508 source4/heimdal/lib/hx509/print.c validate_print(ctx, HX509_VALIDATE_F_VALIDATE, ctx 515 source4/heimdal/lib/hx509/print.c validate_print(ctx, HX509_VALIDATE_F_VERBOSE, "Fullname:\n"); ctx 523 source4/heimdal/lib/hx509/print.c validate_print(ctx, HX509_VALIDATE_F_VERBOSE, " %s\n", s); ctx 529 source4/heimdal/lib/hx509/print.c validate_print(ctx, HX509_VALIDATE_F_VERBOSE, ctx 533 source4/heimdal/lib/hx509/print.c validate_print(ctx, HX509_VALIDATE_F_VALIDATE, ctx 561 source4/heimdal/lib/hx509/print.c check_altName(hx509_validate_ctx ctx, ctx 571 source4/heimdal/lib/hx509/print.c check_Null(ctx, status, cf, e); ctx 574 source4/heimdal/lib/hx509/print.c validate_print(ctx, HX509_VALIDATE_F_VALIDATE, ctx 581 source4/heimdal/lib/hx509/print.c validate_print(ctx, HX509_VALIDATE_F_VALIDATE, ctx 587 source4/heimdal/lib/hx509/print.c validate_print(ctx, HX509_VALIDATE_F_VALIDATE, ctx 597 source4/heimdal/lib/hx509/print.c validate_print(ctx, HX509_VALIDATE_F_VERBOSE, ctx 605 source4/heimdal/lib/hx509/print.c validate_print(ctx, HX509_VALIDATE_F_VERBOSE, "%s: ", ctx 607 source4/heimdal/lib/hx509/print.c (*check_altname[j].func)(ctx, &gn.val[i].u.otherName.value); ctx 612 source4/heimdal/lib/hx509/print.c validate_vprint, ctx); ctx 613 source4/heimdal/lib/hx509/print.c validate_print(ctx, HX509_VALIDATE_F_VERBOSE, " unknown"); ctx 615 source4/heimdal/lib/hx509/print.c validate_print(ctx, HX509_VALIDATE_F_VERBOSE, "\n"); ctx 622 source4/heimdal/lib/hx509/print.c validate_print(ctx, HX509_VALIDATE_F_VALIDATE, ctx 626 source4/heimdal/lib/hx509/print.c validate_print(ctx, HX509_VALIDATE_F_VERBOSE, "%s\n", s); ctx 639 source4/heimdal/lib/hx509/print.c check_subjectAltName(hx509_validate_ctx ctx, ctx 645 source4/heimdal/lib/hx509/print.c return check_altName(ctx, status, "subject", cf, e); ctx 649 source4/heimdal/lib/hx509/print.c check_issuerAltName(hx509_validate_ctx ctx, ctx 655 source4/heimdal/lib/hx509/print.c return check_altName(ctx, status, "issuer", cf, e); ctx 660 source4/heimdal/lib/hx509/print.c check_basicConstraints(hx509_validate_ctx ctx, ctx 669 source4/heimdal/lib/hx509/print.c check_Null(ctx, status, cf, e); ctx 680 source4/heimdal/lib/hx509/print.c validate_print(ctx, HX509_VALIDATE_F_VERBOSE, ctx 683 source4/heimdal/lib/hx509/print.c validate_print(ctx, HX509_VALIDATE_F_VERBOSE, ctx 689 source4/heimdal/lib/hx509/print.c validate_print(ctx, HX509_VALIDATE_F_VALIDATE, ctx 694 source4/heimdal/lib/hx509/print.c validate_print(ctx, HX509_VALIDATE_F_VALIDATE, ctx 703 source4/heimdal/lib/hx509/print.c check_proxyCertInfo(hx509_validate_ctx ctx, ctx 708 source4/heimdal/lib/hx509/print.c check_Null(ctx, status, cf, e); ctx 714 source4/heimdal/lib/hx509/print.c check_authorityInfoAccess(hx509_validate_ctx ctx, ctx 723 source4/heimdal/lib/hx509/print.c check_Null(ctx, status, cf, e); ctx 735 source4/heimdal/lib/hx509/print.c validate_print(ctx, HX509_VALIDATE_F_VERBOSE, ctx 737 source4/heimdal/lib/hx509/print.c hx509_oid_print(&aia.val[i].accessMethod, validate_vprint, ctx); ctx 739 source4/heimdal/lib/hx509/print.c validate_print(ctx, HX509_VALIDATE_F_VERBOSE, ctx 755 source4/heimdal/lib/hx509/print.c int (*func)(hx509_validate_ctx ctx, ctx 809 source4/heimdal/lib/hx509/print.c hx509_validate_ctx_init(hx509_context context, hx509_validate_ctx *ctx) ctx 811 source4/heimdal/lib/hx509/print.c *ctx = malloc(sizeof(**ctx)); ctx 812 source4/heimdal/lib/hx509/print.c if (*ctx == NULL) ctx 814 source4/heimdal/lib/hx509/print.c memset(*ctx, 0, sizeof(**ctx)); ctx 831 source4/heimdal/lib/hx509/print.c hx509_validate_ctx_set_print(hx509_validate_ctx ctx, ctx 835 source4/heimdal/lib/hx509/print.c ctx->vprint_func = func; ctx 836 source4/heimdal/lib/hx509/print.c ctx->ctx = c; ctx 852 source4/heimdal/lib/hx509/print.c hx509_validate_ctx_add_flags(hx509_validate_ctx ctx, int flags) ctx 854 source4/heimdal/lib/hx509/print.c ctx->flags |= flags; ctx 866 source4/heimdal/lib/hx509/print.c hx509_validate_ctx_free(hx509_validate_ctx ctx) ctx 868 source4/heimdal/lib/hx509/print.c free(ctx); ctx 885 source4/heimdal/lib/hx509/print.c hx509_validate_ctx ctx, ctx 898 source4/heimdal/lib/hx509/print.c validate_print(ctx, HX509_VALIDATE_F_VERBOSE, ctx 902 source4/heimdal/lib/hx509/print.c validate_print(ctx, HX509_VALIDATE_F_VALIDATE, ctx 906 source4/heimdal/lib/hx509/print.c validate_print(ctx, HX509_VALIDATE_F_VALIDATE, ctx 912 source4/heimdal/lib/hx509/print.c validate_print(ctx, HX509_VALIDATE_F_VERBOSE, ctx 919 source4/heimdal/lib/hx509/print.c validate_print(ctx, HX509_VALIDATE_F_VERBOSE, ctx 925 source4/heimdal/lib/hx509/print.c validate_print(ctx, HX509_VALIDATE_F_VERBOSE, ctx 929 source4/heimdal/lib/hx509/print.c validate_print(ctx, HX509_VALIDATE_F_VERBOSE, ctx 933 source4/heimdal/lib/hx509/print.c validate_print(ctx, HX509_VALIDATE_F_VERBOSE, "\tnotBefore %s\n", str); ctx 936 source4/heimdal/lib/hx509/print.c validate_print(ctx, HX509_VALIDATE_F_VERBOSE, "\tnotAfter %s\n", str); ctx 943 source4/heimdal/lib/hx509/print.c validate_print(ctx, ctx 959 source4/heimdal/lib/hx509/print.c validate_print(ctx, flags, "don't know what "); ctx 961 source4/heimdal/lib/hx509/print.c validate_print(ctx, flags, "and is CRITICAL "); ctx 962 source4/heimdal/lib/hx509/print.c if (ctx->flags & flags) ctx 964 source4/heimdal/lib/hx509/print.c validate_vprint, ctx); ctx 965 source4/heimdal/lib/hx509/print.c validate_print(ctx, flags, " is\n"); ctx 968 source4/heimdal/lib/hx509/print.c validate_print(ctx, ctx 972 source4/heimdal/lib/hx509/print.c (*check_extension[j].func)(ctx, ctx 978 source4/heimdal/lib/hx509/print.c validate_print(ctx, HX509_VALIDATE_F_VERBOSE, "no extentions\n"); ctx 982 source4/heimdal/lib/hx509/print.c validate_print(ctx, HX509_VALIDATE_F_VALIDATE, ctx 987 source4/heimdal/lib/hx509/print.c validate_print(ctx, HX509_VALIDATE_F_VALIDATE, ctx 994 source4/heimdal/lib/hx509/print.c validate_print(ctx, HX509_VALIDATE_F_VALIDATE, ctx 998 source4/heimdal/lib/hx509/print.c validate_print(ctx, HX509_VALIDATE_F_VALIDATE, ctx 1003 source4/heimdal/lib/hx509/print.c validate_print(ctx, HX509_VALIDATE_F_VALIDATE, ctx 1006 source4/heimdal/lib/hx509/print.c validate_print(ctx, HX509_VALIDATE_F_VALIDATE, ctx 1011 source4/heimdal/lib/hx509/print.c validate_print(ctx, HX509_VALIDATE_F_VALIDATE, ctx 1015 source4/heimdal/lib/hx509/print.c validate_print(ctx, HX509_VALIDATE_F_VALIDATE, ctx 1026 source4/heimdal/lib/hx509/print.c validate_print(ctx, HX509_VALIDATE_F_VERBOSE, ctx 1029 source4/heimdal/lib/hx509/print.c validate_print(ctx, HX509_VALIDATE_F_VALIDATE, ctx 96 source4/heimdal/lib/hx509/revoke.c hx509_revoke_init(hx509_context context, hx509_revoke_ctx *ctx) ctx 98 source4/heimdal/lib/hx509/revoke.c *ctx = calloc(1, sizeof(**ctx)); ctx 99 source4/heimdal/lib/hx509/revoke.c if (*ctx == NULL) ctx 102 source4/heimdal/lib/hx509/revoke.c (*ctx)->ref = 1; ctx 103 source4/heimdal/lib/hx509/revoke.c (*ctx)->crls.len = 0; ctx 104 source4/heimdal/lib/hx509/revoke.c (*ctx)->crls.val = NULL; ctx 105 source4/heimdal/lib/hx509/revoke.c (*ctx)->ocsps.len = 0; ctx 106 source4/heimdal/lib/hx509/revoke.c (*ctx)->ocsps.val = NULL; ctx 112 source4/heimdal/lib/hx509/revoke.c _hx509_revoke_ref(hx509_revoke_ctx ctx) ctx 114 source4/heimdal/lib/hx509/revoke.c if (ctx == NULL) ctx 116 source4/heimdal/lib/hx509/revoke.c if (ctx->ref == 0) ctx 118 source4/heimdal/lib/hx509/revoke.c ctx->ref++; ctx 119 source4/heimdal/lib/hx509/revoke.c if (ctx->ref == UINT_MAX) ctx 121 source4/heimdal/lib/hx509/revoke.c return ctx; ctx 142 source4/heimdal/lib/hx509/revoke.c hx509_revoke_free(hx509_revoke_ctx *ctx) ctx 146 source4/heimdal/lib/hx509/revoke.c if (ctx == NULL || *ctx == NULL) ctx 149 source4/heimdal/lib/hx509/revoke.c if ((*ctx)->ref == 0) ctx 151 source4/heimdal/lib/hx509/revoke.c if (--(*ctx)->ref > 0) ctx 154 source4/heimdal/lib/hx509/revoke.c for (i = 0; i < (*ctx)->crls.len; i++) { ctx 155 source4/heimdal/lib/hx509/revoke.c free((*ctx)->crls.val[i].path); ctx 156 source4/heimdal/lib/hx509/revoke.c free_CRLCertificateList(&(*ctx)->crls.val[i].crl); ctx 159 source4/heimdal/lib/hx509/revoke.c for (i = 0; i < (*ctx)->ocsps.len; i++) ctx 160 source4/heimdal/lib/hx509/revoke.c free_ocsp(&(*ctx)->ocsps.val[i]); ctx 161 source4/heimdal/lib/hx509/revoke.c free((*ctx)->ocsps.val); ctx 163 source4/heimdal/lib/hx509/revoke.c free((*ctx)->crls.val); ctx 165 source4/heimdal/lib/hx509/revoke.c memset(*ctx, 0, sizeof(**ctx)); ctx 166 source4/heimdal/lib/hx509/revoke.c free(*ctx); ctx 167 source4/heimdal/lib/hx509/revoke.c *ctx = NULL; ctx 403 source4/heimdal/lib/hx509/revoke.c hx509_revoke_ctx ctx, ctx 418 source4/heimdal/lib/hx509/revoke.c for (i = 0; i < ctx->ocsps.len; i++) { ctx 419 source4/heimdal/lib/hx509/revoke.c if (strcmp(ctx->ocsps.val[0].path, path) == 0) ctx 423 source4/heimdal/lib/hx509/revoke.c data = realloc(ctx->ocsps.val, ctx 424 source4/heimdal/lib/hx509/revoke.c (ctx->ocsps.len + 1) * sizeof(ctx->ocsps.val[0])); ctx 430 source4/heimdal/lib/hx509/revoke.c ctx->ocsps.val = data; ctx 432 source4/heimdal/lib/hx509/revoke.c memset(&ctx->ocsps.val[ctx->ocsps.len], 0, ctx 433 source4/heimdal/lib/hx509/revoke.c sizeof(ctx->ocsps.val[0])); ctx 435 source4/heimdal/lib/hx509/revoke.c ctx->ocsps.val[ctx->ocsps.len].path = strdup(path); ctx 436 source4/heimdal/lib/hx509/revoke.c if (ctx->ocsps.val[ctx->ocsps.len].path == NULL) { ctx 441 source4/heimdal/lib/hx509/revoke.c ret = load_ocsp(context, &ctx->ocsps.val[ctx->ocsps.len]); ctx 443 source4/heimdal/lib/hx509/revoke.c free(ctx->ocsps.val[ctx->ocsps.len].path); ctx 446 source4/heimdal/lib/hx509/revoke.c ctx->ocsps.len++; ctx 457 source4/heimdal/lib/hx509/revoke.c hx509_revoke_ctx ctx, ctx 543 source4/heimdal/lib/hx509/revoke.c ctx, ctx 611 source4/heimdal/lib/hx509/revoke.c hx509_revoke_ctx ctx, ctx 627 source4/heimdal/lib/hx509/revoke.c for (i = 0; i < ctx->crls.len; i++) { ctx 628 source4/heimdal/lib/hx509/revoke.c if (strcmp(ctx->crls.val[0].path, path) == 0) ctx 632 source4/heimdal/lib/hx509/revoke.c data = realloc(ctx->crls.val, ctx 633 source4/heimdal/lib/hx509/revoke.c (ctx->crls.len + 1) * sizeof(ctx->crls.val[0])); ctx 638 source4/heimdal/lib/hx509/revoke.c ctx->crls.val = data; ctx 640 source4/heimdal/lib/hx509/revoke.c memset(&ctx->crls.val[ctx->crls.len], 0, sizeof(ctx->crls.val[0])); ctx 642 source4/heimdal/lib/hx509/revoke.c ctx->crls.val[ctx->crls.len].path = strdup(path); ctx 643 source4/heimdal/lib/hx509/revoke.c if (ctx->crls.val[ctx->crls.len].path == NULL) { ctx 649 source4/heimdal/lib/hx509/revoke.c &ctx->crls.val[ctx->crls.len].last_modfied, ctx 650 source4/heimdal/lib/hx509/revoke.c &ctx->crls.val[ctx->crls.len].crl); ctx 652 source4/heimdal/lib/hx509/revoke.c free(ctx->crls.val[ctx->crls.len].path); ctx 656 source4/heimdal/lib/hx509/revoke.c ctx->crls.len++; ctx 681 source4/heimdal/lib/hx509/revoke.c hx509_revoke_ctx ctx, ctx 694 source4/heimdal/lib/hx509/revoke.c for (i = 0; i < ctx->ocsps.len; i++) { ctx 695 source4/heimdal/lib/hx509/revoke.c struct revoke_ocsp *ocsp = &ctx->ocsps.val[i]; ctx 771 source4/heimdal/lib/hx509/revoke.c for (i = 0; i < ctx->crls.len; i++) { ctx 772 source4/heimdal/lib/hx509/revoke.c struct revoke_crl *crl = &ctx->crls.val[i]; ctx 799 source4/heimdal/lib/hx509/revoke.c ret = verify_crl(context, ctx, &crl->crl, now, certs, parent_cert); ctx 868 source4/heimdal/lib/hx509/revoke.c struct ocsp_add_ctx *ctx = ptr; ctx 877 source4/heimdal/lib/hx509/revoke.c d = realloc(ctx->req->requestList.val, ctx 878 source4/heimdal/lib/hx509/revoke.c sizeof(ctx->req->requestList.val[0]) * ctx 879 source4/heimdal/lib/hx509/revoke.c (ctx->req->requestList.len + 1)); ctx 882 source4/heimdal/lib/hx509/revoke.c ctx->req->requestList.val = d; ctx 884 source4/heimdal/lib/hx509/revoke.c one = &ctx->req->requestList.val[ctx->req->requestList.len]; ctx 892 source4/heimdal/lib/hx509/revoke.c ret = hx509_certs_find(context, ctx->certs, &q, &parent); ctx 896 source4/heimdal/lib/hx509/revoke.c if (ctx->parent) { ctx 897 source4/heimdal/lib/hx509/revoke.c if (hx509_cert_cmp(ctx->parent, parent) != 0) { ctx 905 source4/heimdal/lib/hx509/revoke.c ctx->parent = hx509_cert_ref(parent); ctx 909 source4/heimdal/lib/hx509/revoke.c ret = copy_AlgorithmIdentifier(ctx->digest, &one->reqCert.hashAlgorithm); ctx 940 source4/heimdal/lib/hx509/revoke.c ctx->req->requestList.len++; ctx 980 source4/heimdal/lib/hx509/revoke.c struct ocsp_add_ctx ctx; ctx 988 source4/heimdal/lib/hx509/revoke.c ctx.req = &req.tbsRequest; ctx 989 source4/heimdal/lib/hx509/revoke.c ctx.certs = pool; ctx 990 source4/heimdal/lib/hx509/revoke.c ctx.digest = digest; ctx 991 source4/heimdal/lib/hx509/revoke.c ctx.parent = NULL; ctx 993 source4/heimdal/lib/hx509/revoke.c ret = hx509_certs_iter(context, reqcerts, add_to_req, &ctx); ctx 994 source4/heimdal/lib/hx509/revoke.c hx509_cert_free(ctx.parent); ctx 1373 source4/heimdal/lib/hx509/revoke.c add_revoked(hx509_context context, void *ctx, hx509_cert cert) ctx 1375 source4/heimdal/lib/hx509/revoke.c TBSCRLCertList *c = ctx; ctx 1237 source4/heimdal/lib/krb5/crypto.c struct evp_schedule *ctx = key->schedule->data; ctx 1256 source4/heimdal/lib/krb5/crypto.c EVP_CipherInit_ex(&ctx->ectx, NULL, NULL, NULL, (void *)&ivec, -1); ctx 1257 source4/heimdal/lib/krb5/crypto.c EVP_Cipher(&ctx->ectx, p, p, 24); ctx 1270 source4/heimdal/lib/krb5/crypto.c struct evp_schedule *ctx = key->schedule->data; ctx 1284 source4/heimdal/lib/krb5/crypto.c EVP_CipherInit_ex(&ctx->dctx, NULL, NULL, NULL, (void *)&ivec, -1); ctx 1285 source4/heimdal/lib/krb5/crypto.c EVP_Cipher(&ctx->dctx, tmp, C->checksum.data, 24); ctx 2022 source4/heimdal/lib/krb5/crypto.c struct evp_schedule *ctx = key->schedule->data; ctx 2024 source4/heimdal/lib/krb5/crypto.c c = encryptp ? &ctx->ectx : &ctx->dctx; ctx 2052 source4/heimdal/lib/krb5/crypto.c struct evp_schedule *ctx = key->schedule->data; ctx 2056 source4/heimdal/lib/krb5/crypto.c c = encryptp ? &ctx->ectx : &ctx->dctx; ctx 2071 source4/heimdal/lib/krb5/crypto.c struct evp_schedule *ctx = key->schedule->data; ctx 2075 source4/heimdal/lib/krb5/crypto.c c = encryptp ? &ctx->ectx : &ctx->dctx; ctx 2350 source4/heimdal/lib/krb5/crypto.c EVP_CIPHER_CTX ctx; ctx 2352 source4/heimdal/lib/krb5/crypto.c EVP_CIPHER_CTX_init(&ctx); /* ivec all zero */ ctx 2353 source4/heimdal/lib/krb5/crypto.c EVP_CipherInit_ex(&ctx, c, NULL, derived->keyvalue.data, NULL, 1); ctx 2354 source4/heimdal/lib/krb5/crypto.c EVP_Cipher(&ctx, out->data, result.checksum.data, 16); ctx 2355 source4/heimdal/lib/krb5/crypto.c EVP_CIPHER_CTX_cleanup(&ctx); ctx 91 source4/heimdal/lib/krb5/init_creds_pw.c free_init_creds_ctx(krb5_context context, krb5_get_init_creds_ctx *ctx) ctx 93 source4/heimdal/lib/krb5/init_creds_pw.c if (ctx->etypes) ctx 94 source4/heimdal/lib/krb5/init_creds_pw.c free(ctx->etypes); ctx 95 source4/heimdal/lib/krb5/init_creds_pw.c if (ctx->pre_auth_types) ctx 96 source4/heimdal/lib/krb5/init_creds_pw.c free (ctx->pre_auth_types); ctx 97 source4/heimdal/lib/krb5/init_creds_pw.c free_AS_REQ(&ctx->as_req); ctx 98 source4/heimdal/lib/krb5/init_creds_pw.c memset(&ctx->as_req, 0, sizeof(ctx->as_req)); ctx 264 source4/heimdal/lib/krb5/init_creds_pw.c krb5_get_init_creds_ctx *ctx) ctx 271 source4/heimdal/lib/krb5/init_creds_pw.c memset(ctx, 0, sizeof(*ctx)); ctx 281 source4/heimdal/lib/krb5/init_creds_pw.c ctx->password = options->opt_private->password; ctx 282 source4/heimdal/lib/krb5/init_creds_pw.c ctx->key_proc = options->opt_private->key_proc; ctx 283 source4/heimdal/lib/krb5/init_creds_pw.c ctx->req_pac = options->opt_private->req_pac; ctx 284 source4/heimdal/lib/krb5/init_creds_pw.c ctx->pk_init_ctx = options->opt_private->pk_init_ctx; ctx 285 source4/heimdal/lib/krb5/init_creds_pw.c ctx->ic_flags = options->opt_private->flags; ctx 287 source4/heimdal/lib/krb5/init_creds_pw.c ctx->req_pac = KRB5_INIT_CREDS_TRISTATE_UNSET; ctx 289 source4/heimdal/lib/krb5/init_creds_pw.c if (ctx->key_proc == NULL) ctx 290 source4/heimdal/lib/krb5/init_creds_pw.c ctx->key_proc = default_s2k_func; ctx 292 source4/heimdal/lib/krb5/init_creds_pw.c if (ctx->ic_flags & KRB5_INIT_CREDS_CANONICALIZE) ctx 293 source4/heimdal/lib/krb5/init_creds_pw.c ctx->flags.canonicalize = 1; ctx 295 source4/heimdal/lib/krb5/init_creds_pw.c ctx->pre_auth_types = NULL; ctx 296 source4/heimdal/lib/krb5/init_creds_pw.c ctx->addrs = NULL; ctx 297 source4/heimdal/lib/krb5/init_creds_pw.c ctx->etypes = NULL; ctx 298 source4/heimdal/lib/krb5/init_creds_pw.c ctx->pre_auth_types = NULL; ctx 299 source4/heimdal/lib/krb5/init_creds_pw.c ctx->in_tkt_service = in_tkt_service; ctx 301 source4/heimdal/lib/krb5/init_creds_pw.c ret = init_cred (context, &ctx->cred, client, start_time, ctx 307 source4/heimdal/lib/krb5/init_creds_pw.c ctx->flags.forwardable = options->forwardable; ctx 310 source4/heimdal/lib/krb5/init_creds_pw.c ctx->flags.proxiable = options->proxiable; ctx 313 source4/heimdal/lib/krb5/init_creds_pw.c ctx->flags.postdated = 1; ctx 314 source4/heimdal/lib/krb5/init_creds_pw.c if (ctx->cred.times.renew_till) ctx 315 source4/heimdal/lib/krb5/init_creds_pw.c ctx->flags.renewable = 1; ctx 317 source4/heimdal/lib/krb5/init_creds_pw.c ctx->addrs = options->address_list; ctx 322 source4/heimdal/lib/krb5/init_creds_pw.c ctx->addrs = &no_addrs; ctx 324 source4/heimdal/lib/krb5/init_creds_pw.c ctx->addrs = NULL; ctx 328 source4/heimdal/lib/krb5/init_creds_pw.c ctx->addrs = NULL; ctx 331 source4/heimdal/lib/krb5/init_creds_pw.c ctx->addrs = &no_addrs; ctx 345 source4/heimdal/lib/krb5/init_creds_pw.c ctx->etypes = etypes; ctx 357 source4/heimdal/lib/krb5/init_creds_pw.c ctx->pre_auth_types = pre_auth_types; ctx 362 source4/heimdal/lib/krb5/init_creds_pw.c ctx->flags.request_anonymous = options->anonymous; ctx 497 source4/heimdal/lib/krb5/init_creds_pw.c krb5_get_init_creds_ctx ctx; ctx 502 source4/heimdal/lib/krb5/init_creds_pw.c in_tkt_service, options, &ctx); ctx 512 source4/heimdal/lib/krb5/init_creds_pw.c a->principal = ctx.cred.client; ctx 516 source4/heimdal/lib/krb5/init_creds_pw.c KDCOptions2int(ctx.flags), ctx 517 source4/heimdal/lib/krb5/init_creds_pw.c ctx.addrs, ctx 518 source4/heimdal/lib/krb5/init_creds_pw.c ctx.etypes, ctx 519 source4/heimdal/lib/krb5/init_creds_pw.c ctx.pre_auth_types, ctx 525 source4/heimdal/lib/krb5/init_creds_pw.c &ctx.cred, ctx 530 source4/heimdal/lib/krb5/init_creds_pw.c *creds = ctx.cred; ctx 532 source4/heimdal/lib/krb5/init_creds_pw.c krb5_free_cred_contents (context, &ctx.cred); ctx 535 source4/heimdal/lib/krb5/init_creds_pw.c free_init_creds_ctx(context, &ctx); ctx 972 source4/heimdal/lib/krb5/init_creds_pw.c krb5_get_init_creds_ctx *ctx, ctx 976 source4/heimdal/lib/krb5/init_creds_pw.c if (ctx->key_proc == NULL || ctx->password == NULL) ctx 981 source4/heimdal/lib/krb5/init_creds_pw.c ctx->key_proc, ctx->password, ctx 989 source4/heimdal/lib/krb5/init_creds_pw.c ctx->key_proc, ctx->password, ctx 997 source4/heimdal/lib/krb5/init_creds_pw.c ctx->key_proc, ctx->password, ctx 1007 source4/heimdal/lib/krb5/init_creds_pw.c krb5_get_init_creds_ctx *ctx, ctx 1015 source4/heimdal/lib/krb5/init_creds_pw.c ret = (*ctx->key_proc)(context, etype, ctx->password, ctx 1025 source4/heimdal/lib/krb5/init_creds_pw.c krb5_get_init_creds_ctx *ctx, ctx 1028 source4/heimdal/lib/krb5/init_creds_pw.c if (ctx->pk_init_ctx == NULL) ctx 1032 source4/heimdal/lib/krb5/init_creds_pw.c ctx->pk_init_ctx, ctx 1034 source4/heimdal/lib/krb5/init_creds_pw.c ctx->pk_nonce, ctx 1045 source4/heimdal/lib/krb5/init_creds_pw.c krb5_get_init_creds_ctx *ctx, ctx 1053 source4/heimdal/lib/krb5/init_creds_pw.c switch (ctx->req_pac) { ctx 1085 source4/heimdal/lib/krb5/init_creds_pw.c krb5_get_init_creds_ctx *ctx, ctx 1106 source4/heimdal/lib/krb5/init_creds_pw.c if (ctx->pk_init_ctx) { ctx 1108 source4/heimdal/lib/krb5/init_creds_pw.c ret = pa_data_to_md_pkinit(context, a, creds->client, ctx, *out_md); ctx 1120 source4/heimdal/lib/krb5/init_creds_pw.c pa_data_to_md_ts_enc(context, a, creds->client, ctx, ppaid, *out_md); ctx 1125 source4/heimdal/lib/krb5/init_creds_pw.c pa_data_add_pac_request(context, ctx, *out_md); ctx 1137 source4/heimdal/lib/krb5/init_creds_pw.c krb5_get_init_creds_ctx *ctx, ctx 1181 source4/heimdal/lib/krb5/init_creds_pw.c if (pa && ctx->pk_init_ctx) { ctx 1185 source4/heimdal/lib/krb5/init_creds_pw.c ctx->pk_init_ctx, ctx 1188 source4/heimdal/lib/krb5/init_creds_pw.c ctx->pk_nonce, ctx 1189 source4/heimdal/lib/krb5/init_creds_pw.c &ctx->req_buffer, ctx 1196 source4/heimdal/lib/krb5/init_creds_pw.c } else if (ctx->password) ctx 1197 source4/heimdal/lib/krb5/init_creds_pw.c ret = pa_data_to_key_plain(context, creds->client, ctx, ctx 1213 source4/heimdal/lib/krb5/init_creds_pw.c krb5_get_init_creds_ctx *ctx, ctx 1235 source4/heimdal/lib/krb5/init_creds_pw.c ret = init_creds_init_as_req(context, ctx->flags, creds, ctx 1236 source4/heimdal/lib/krb5/init_creds_pw.c ctx->addrs, ctx->etypes, &ctx->as_req); ctx 1246 source4/heimdal/lib/krb5/init_creds_pw.c krb5_generate_random_block (&ctx->nonce, sizeof(ctx->nonce)); ctx 1247 source4/heimdal/lib/krb5/init_creds_pw.c ctx->nonce &= 0xffffffff; ctx 1249 source4/heimdal/lib/krb5/init_creds_pw.c ctx->pk_nonce = ctx->nonce; ctx 1257 source4/heimdal/lib/krb5/init_creds_pw.c ctx->pa_counter = 0; ctx 1258 source4/heimdal/lib/krb5/init_creds_pw.c while (ctx->pa_counter < MAX_PA_COUNTER) { ctx 1260 source4/heimdal/lib/krb5/init_creds_pw.c ctx->pa_counter++; ctx 1262 source4/heimdal/lib/krb5/init_creds_pw.c if (ctx->as_req.padata) { ctx 1263 source4/heimdal/lib/krb5/init_creds_pw.c free_METHOD_DATA(ctx->as_req.padata); ctx 1264 source4/heimdal/lib/krb5/init_creds_pw.c free(ctx->as_req.padata); ctx 1265 source4/heimdal/lib/krb5/init_creds_pw.c ctx->as_req.padata = NULL; ctx 1269 source4/heimdal/lib/krb5/init_creds_pw.c ctx->as_req.req_body.nonce = ctx->nonce; ctx 1272 source4/heimdal/lib/krb5/init_creds_pw.c ret = process_pa_data_to_md(context, creds, &ctx->as_req, ctx, ctx 1273 source4/heimdal/lib/krb5/init_creds_pw.c &md, &ctx->as_req.padata, ctx 1278 source4/heimdal/lib/krb5/init_creds_pw.c krb5_data_free(&ctx->req_buffer); ctx 1281 source4/heimdal/lib/krb5/init_creds_pw.c ctx->req_buffer.data, ctx->req_buffer.length, ctx 1282 source4/heimdal/lib/krb5/init_creds_pw.c &ctx->as_req, &len, ret); ctx 1285 source4/heimdal/lib/krb5/init_creds_pw.c if(len != ctx->req_buffer.length) ctx 1288 source4/heimdal/lib/krb5/init_creds_pw.c ret = krb5_sendto_context (context, stctx, &ctx->req_buffer, ctx 1352 source4/heimdal/lib/krb5/init_creds_pw.c if (ctx->flags.request_anonymous) ctx 1354 source4/heimdal/lib/krb5/init_creds_pw.c if (ctx->flags.canonicalize) { ctx 1358 source4/heimdal/lib/krb5/init_creds_pw.c if (ctx->ic_flags & KRB5_INIT_CREDS_NO_C_CANON_CHECK) ctx 1361 source4/heimdal/lib/krb5/init_creds_pw.c ret = process_pa_data_to_key(context, ctx, creds, ctx 1362 source4/heimdal/lib/krb5/init_creds_pw.c &ctx->as_req, &rep, hi, &key); ctx 1373 source4/heimdal/lib/krb5/init_creds_pw.c ctx->nonce, ctx 1382 source4/heimdal/lib/krb5/init_creds_pw.c krb5_data_free(&ctx->req_buffer); ctx 1403 source4/heimdal/lib/krb5/init_creds_pw.c krb5_get_init_creds_ctx ctx; ctx 1412 source4/heimdal/lib/krb5/init_creds_pw.c in_tkt_service, options, &ctx); ctx 1424 source4/heimdal/lib/krb5/init_creds_pw.c &ctx, ctx 1425 source4/heimdal/lib/krb5/init_creds_pw.c &ctx.cred, ctx 1436 source4/heimdal/lib/krb5/init_creds_pw.c if (prompter == NULL || ctx.password == NULL) ctx 1441 source4/heimdal/lib/krb5/init_creds_pw.c if (ctx.in_tkt_service != NULL ctx 1442 source4/heimdal/lib/krb5/init_creds_pw.c && strcmp (ctx.in_tkt_service, "kadmin/changepw") == 0) ctx 1447 source4/heimdal/lib/krb5/init_creds_pw.c ctx.password, ctx 1455 source4/heimdal/lib/krb5/init_creds_pw.c ctx.password = buf; ctx 1464 source4/heimdal/lib/krb5/init_creds_pw.c krb5_principal_get_realm (context, ctx.cred.client), ctx 1471 source4/heimdal/lib/krb5/init_creds_pw.c free_init_creds_ctx(context, &ctx); ctx 1474 source4/heimdal/lib/krb5/init_creds_pw.c *creds = ctx.cred; ctx 1476 source4/heimdal/lib/krb5/init_creds_pw.c krb5_free_cred_contents (context, &ctx.cred); ctx 1575 source4/heimdal/lib/krb5/init_creds_pw.c struct krb5_get_init_creds_ctx ctx; ctx 1579 source4/heimdal/lib/krb5/init_creds_pw.c in_tkt_service, options, &ctx); ctx 1584 source4/heimdal/lib/krb5/init_creds_pw.c KDCOptions2int(ctx.flags), ctx 1585 source4/heimdal/lib/krb5/init_creds_pw.c ctx.addrs, ctx 1586 source4/heimdal/lib/krb5/init_creds_pw.c ctx.etypes, ctx 1587 source4/heimdal/lib/krb5/init_creds_pw.c ctx.pre_auth_types, ctx 1593 source4/heimdal/lib/krb5/init_creds_pw.c &ctx.cred, ctx 1597 source4/heimdal/lib/krb5/init_creds_pw.c *creds = ctx.cred; ctx 1599 source4/heimdal/lib/krb5/init_creds_pw.c krb5_free_cred_contents (context, &ctx.cred); ctx 1602 source4/heimdal/lib/krb5/init_creds_pw.c free_init_creds_ctx(context, &ctx); ctx 483 source4/heimdal/lib/krb5/krbhst.c add_locate(void *ctx, int type, struct sockaddr *addr) ctx 486 source4/heimdal/lib/krb5/krbhst.c struct krb5_krbhst_data *kd = ctx; ctx 536 source4/heimdal/lib/krb5/krbhst.c void *ctx; ctx 542 source4/heimdal/lib/krb5/krbhst.c (*service->init)(context, &ctx); ctx 543 source4/heimdal/lib/krb5/krbhst.c ret = (*service->lookup)(ctx, type, kd->realm, 0, 0, add_locate, kd); ctx 544 source4/heimdal/lib/krb5/krbhst.c (*service->fini)(ctx); ctx 217 source4/heimdal/lib/krb5/pkinit.c cert2epi(hx509_context context, void *ctx, hx509_cert c) ctx 219 source4/heimdal/lib/krb5/pkinit.c ExternalPrincipalIdentifiers *ids = ctx; ctx 321 source4/heimdal/lib/krb5/pkinit.c krb5_pk_init_ctx ctx, ctx 390 source4/heimdal/lib/krb5/pkinit.c &ctx->clientDHNonce); ctx 461 source4/heimdal/lib/krb5/pkinit.c ret = hx509_crypto_available(ctx->id->hx509ctx, HX509_SELECT_ALL, NULL, ctx 495 source4/heimdal/lib/krb5/pkinit.c krb5_pk_init_ctx ctx, ctx 511 source4/heimdal/lib/krb5/pkinit.c if (ctx->type == PKINIT_WIN2K) { ctx 550 source4/heimdal/lib/krb5/pkinit.c } else if (ctx->type == PKINIT_27) { ctx 555 source4/heimdal/lib/krb5/pkinit.c ret = build_auth_pack(context, nonce, ctx, ctx->dh, req_body, &ap); ctx 576 source4/heimdal/lib/krb5/pkinit.c ret = create_signature(context, oid, &buf, ctx->id, ctx 577 source4/heimdal/lib/krb5/pkinit.c ctx->peer, &sd_buf); ctx 590 source4/heimdal/lib/krb5/pkinit.c if (ctx->type == PKINIT_WIN2K) { ctx 603 source4/heimdal/lib/krb5/pkinit.c } else if (ctx->type == PKINIT_27) { ctx 611 source4/heimdal/lib/krb5/pkinit.c if (ctx->trustedCertifiers) { ctx 621 source4/heimdal/lib/krb5/pkinit.c ret = build_edi(context, ctx->id->hx509ctx, ctx 622 source4/heimdal/lib/krb5/pkinit.c ctx->id->anchors, req.trustedCertifiers); ctx 651 source4/heimdal/lib/krb5/pkinit.c if (ret == 0 && ctx->type == PKINIT_WIN2K) ctx 668 source4/heimdal/lib/krb5/pkinit.c krb5_pk_init_ctx ctx = c; ctx 679 source4/heimdal/lib/krb5/pkinit.c ctx->require_binding = ctx 686 source4/heimdal/lib/krb5/pkinit.c ctx->type = PKINIT_WIN2K; ctx 688 source4/heimdal/lib/krb5/pkinit.c ctx->type = PKINIT_27; ctx 690 source4/heimdal/lib/krb5/pkinit.c ctx->require_eku = ctx 697 source4/heimdal/lib/krb5/pkinit.c ctx->require_krbtgt_otherName = ctx 705 source4/heimdal/lib/krb5/pkinit.c ctx->require_hostname_match = ctx 713 source4/heimdal/lib/krb5/pkinit.c ctx->trustedCertifiers = ctx 721 source4/heimdal/lib/krb5/pkinit.c return pk_mk_padata(context, ctx, req_body, nonce, md); ctx 898 source4/heimdal/lib/krb5/pkinit.c struct krb5_pk_init_ctx_data *ctx, ctx 903 source4/heimdal/lib/krb5/pkinit.c if (ctx->require_eku) { ctx 904 source4/heimdal/lib/krb5/pkinit.c ret = hx509_cert_check_eku(ctx->id->hx509ctx, host->cert, ctx 912 source4/heimdal/lib/krb5/pkinit.c if (ctx->require_krbtgt_otherName) { ctx 916 source4/heimdal/lib/krb5/pkinit.c ret = hx509_cert_find_subjectAltName_otherName(ctx->id->hx509ctx, ctx 966 source4/heimdal/lib/krb5/pkinit.c ret = hx509_verify_hostname(ctx->id->hx509ctx, host->cert, ctx 967 source4/heimdal/lib/krb5/pkinit.c ctx->require_hostname_match, ctx 986 source4/heimdal/lib/krb5/pkinit.c krb5_pk_init_ctx ctx, ctx 1005 source4/heimdal/lib/krb5/pkinit.c ret = hx509_cms_unenvelope(ctx->id->hx509ctx, ctx 1006 source4/heimdal/lib/krb5/pkinit.c ctx->id->certs, ctx 1015 source4/heimdal/lib/krb5/pkinit.c pk_copy_error(context, ctx->id->hx509ctx, ret, ctx 1067 source4/heimdal/lib/krb5/pkinit.c ctx->id, ctx 1075 source4/heimdal/lib/krb5/pkinit.c ret = pk_verify_host(context, realm, hi, ctx, host); ctx 1099 source4/heimdal/lib/krb5/pkinit.c if (ret != 0 && ctx->require_binding == 0) ctx 1125 source4/heimdal/lib/krb5/pkinit.c krb5_pk_init_ctx ctx, ctx 1156 source4/heimdal/lib/krb5/pkinit.c ctx->id, ctx 1164 source4/heimdal/lib/krb5/pkinit.c ret = pk_verify_host(context, realm, hi, ctx, host); ctx 1242 source4/heimdal/lib/krb5/pkinit.c dh_gen_keylen = DH_size(ctx->dh); ctx 1243 source4/heimdal/lib/krb5/pkinit.c size = BN_num_bytes(ctx->dh->p); ctx 1256 source4/heimdal/lib/krb5/pkinit.c kdc_dh_pubkey, ctx->dh); ctx 1289 source4/heimdal/lib/krb5/pkinit.c memset(dh_gen_key, 0, DH_size(ctx->dh)); ctx 1313 source4/heimdal/lib/krb5/pkinit.c krb5_pk_init_ctx ctx = c; ctx 1318 source4/heimdal/lib/krb5/pkinit.c if (ctx->type == PKINIT_27) { ctx 1364 source4/heimdal/lib/krb5/pkinit.c ret = pk_rd_pa_reply_dh(context, &data, &oid, realm, ctx, etype, hi, ctx 1365 source4/heimdal/lib/krb5/pkinit.c ctx->clientDHNonce, ctx 1371 source4/heimdal/lib/krb5/pkinit.c ctx, etype, hi, nonce, req_buffer, pa, key); ctx 1380 source4/heimdal/lib/krb5/pkinit.c } else if (ctx->type == PKINIT_WIN2K) { ctx 1423 source4/heimdal/lib/krb5/pkinit.c ctx, etype, hi, nonce, req_buffer, pa, key); ctx 2000 source4/heimdal/lib/krb5/pkinit.c krb5_pk_init_ctx ctx; ctx 2004 source4/heimdal/lib/krb5/pkinit.c ctx = opt->opt_private->pk_init_ctx; ctx 2005 source4/heimdal/lib/krb5/pkinit.c if (ctx->dh) ctx 2006 source4/heimdal/lib/krb5/pkinit.c DH_free(ctx->dh); ctx 2007 source4/heimdal/lib/krb5/pkinit.c ctx->dh = NULL; ctx 2008 source4/heimdal/lib/krb5/pkinit.c if (ctx->id) { ctx 2009 source4/heimdal/lib/krb5/pkinit.c hx509_verify_destroy_ctx(ctx->id->verify_ctx); ctx 2010 source4/heimdal/lib/krb5/pkinit.c hx509_certs_free(&ctx->id->certs); ctx 2011 source4/heimdal/lib/krb5/pkinit.c hx509_certs_free(&ctx->id->anchors); ctx 2012 source4/heimdal/lib/krb5/pkinit.c hx509_certs_free(&ctx->id->certpool); ctx 2013 source4/heimdal/lib/krb5/pkinit.c hx509_context_free(&ctx->id->hx509ctx); ctx 2015 source4/heimdal/lib/krb5/pkinit.c if (ctx->clientDHNonce) { ctx 2016 source4/heimdal/lib/krb5/pkinit.c krb5_free_data(NULL, ctx->clientDHNonce); ctx 2017 source4/heimdal/lib/krb5/pkinit.c ctx->clientDHNonce = NULL; ctx 2019 source4/heimdal/lib/krb5/pkinit.c if (ctx->m) ctx 2020 source4/heimdal/lib/krb5/pkinit.c _krb5_free_moduli(ctx->m); ctx 2021 source4/heimdal/lib/krb5/pkinit.c free(ctx->id); ctx 2022 source4/heimdal/lib/krb5/pkinit.c ctx->id = NULL; ctx 531 source4/heimdal/lib/krb5/rd_req.c krb5_rd_req_in_ctx_alloc(krb5_context context, krb5_rd_req_in_ctx *ctx) ctx 533 source4/heimdal/lib/krb5/rd_req.c *ctx = calloc(1, sizeof(**ctx)); ctx 534 source4/heimdal/lib/krb5/rd_req.c if (*ctx == NULL) { ctx 539 source4/heimdal/lib/krb5/rd_req.c (*ctx)->check_pac = (context->flags & KRB5_CTX_F_CHECK_PAC) ? 1 : 0; ctx 609 source4/heimdal/lib/krb5/rd_req.c krb5_rd_req_in_ctx_free(krb5_context context, krb5_rd_req_in_ctx ctx) ctx 611 source4/heimdal/lib/krb5/rd_req.c free(ctx); ctx 615 source4/heimdal/lib/krb5/rd_req.c _krb5_rd_req_out_ctx_alloc(krb5_context context, krb5_rd_req_out_ctx *ctx) ctx 617 source4/heimdal/lib/krb5/rd_req.c *ctx = calloc(1, sizeof(**ctx)); ctx 618 source4/heimdal/lib/krb5/rd_req.c if (*ctx == NULL) { ctx 627 source4/heimdal/lib/krb5/rd_req.c krb5_rd_req_out_ctx_free(krb5_context context, krb5_rd_req_out_ctx ctx) ctx 629 source4/heimdal/lib/krb5/rd_req.c krb5_free_keyblock(context, ctx->keyblock); ctx 630 source4/heimdal/lib/krb5/rd_req.c free(ctx); ctx 337 source4/heimdal/lib/krb5/send_to_kdc.c void *ctx; ctx 343 source4/heimdal/lib/krb5/send_to_kdc.c (*service->init)(context, &ctx); ctx 344 source4/heimdal/lib/krb5/send_to_kdc.c ret = (*service->send_to_kdc)(context, ctx, hi, ctx 346 source4/heimdal/lib/krb5/send_to_kdc.c (*service->fini)(ctx); ctx 466 source4/heimdal/lib/krb5/send_to_kdc.c krb5_sendto_ctx ctx; ctx 468 source4/heimdal/lib/krb5/send_to_kdc.c ret = krb5_sendto_ctx_alloc(context, &ctx); ctx 471 source4/heimdal/lib/krb5/send_to_kdc.c krb5_sendto_ctx_add_flags(ctx, flags); ctx 472 source4/heimdal/lib/krb5/send_to_kdc.c krb5_sendto_ctx_set_func(ctx, _krb5_kdc_retry, NULL); ctx 474 source4/heimdal/lib/krb5/send_to_kdc.c ret = krb5_sendto_context(context, ctx, send_data, *realm, receive); ctx 475 source4/heimdal/lib/krb5/send_to_kdc.c krb5_sendto_ctx_free(context, ctx); ctx 523 source4/heimdal/lib/krb5/send_to_kdc.c krb5_sendto_ctx_alloc(krb5_context context, krb5_sendto_ctx *ctx) ctx 525 source4/heimdal/lib/krb5/send_to_kdc.c *ctx = calloc(1, sizeof(**ctx)); ctx 526 source4/heimdal/lib/krb5/send_to_kdc.c if (*ctx == NULL) { ctx 535 source4/heimdal/lib/krb5/send_to_kdc.c krb5_sendto_ctx_add_flags(krb5_sendto_ctx ctx, int flags) ctx 537 source4/heimdal/lib/krb5/send_to_kdc.c ctx->flags |= flags; ctx 541 source4/heimdal/lib/krb5/send_to_kdc.c krb5_sendto_ctx_get_flags(krb5_sendto_ctx ctx) ctx 543 source4/heimdal/lib/krb5/send_to_kdc.c return ctx->flags; ctx 547 source4/heimdal/lib/krb5/send_to_kdc.c krb5_sendto_ctx_set_type(krb5_sendto_ctx ctx, int type) ctx 549 source4/heimdal/lib/krb5/send_to_kdc.c ctx->type = type; ctx 554 source4/heimdal/lib/krb5/send_to_kdc.c krb5_sendto_ctx_set_func(krb5_sendto_ctx ctx, ctx 558 source4/heimdal/lib/krb5/send_to_kdc.c ctx->func = func; ctx 559 source4/heimdal/lib/krb5/send_to_kdc.c ctx->data = data; ctx 563 source4/heimdal/lib/krb5/send_to_kdc.c krb5_sendto_ctx_free(krb5_context context, krb5_sendto_ctx ctx) ctx 565 source4/heimdal/lib/krb5/send_to_kdc.c memset(ctx, 0, sizeof(*ctx)); ctx 566 source4/heimdal/lib/krb5/send_to_kdc.c free(ctx); ctx 571 source4/heimdal/lib/krb5/send_to_kdc.c krb5_sendto_ctx ctx, ctx 583 source4/heimdal/lib/krb5/send_to_kdc.c if (ctx == NULL) { ctx 585 source4/heimdal/lib/krb5/send_to_kdc.c ret = krb5_sendto_ctx_alloc(context, &ctx); ctx 590 source4/heimdal/lib/krb5/send_to_kdc.c type = ctx->type; ctx 592 source4/heimdal/lib/krb5/send_to_kdc.c if ((ctx->flags & KRB5_KRBHST_FLAGS_MASTER) || context->use_admin_kdc) ctx 599 source4/heimdal/lib/krb5/send_to_kdc.c ctx->flags |= KRB5_KRBHST_FLAGS_LARGE_MSG; ctx 610 source4/heimdal/lib/krb5/send_to_kdc.c ctx->flags, &handle); ctx 613 source4/heimdal/lib/krb5/send_to_kdc.c krb5_sendto_ctx_free(context, ctx); ctx 621 source4/heimdal/lib/krb5/send_to_kdc.c if (ctx->func) { ctx 622 source4/heimdal/lib/krb5/send_to_kdc.c ret = (*ctx->func)(context, ctx, ctx->data, receive, &action); ctx 640 source4/heimdal/lib/krb5/send_to_kdc.c krb5_sendto_ctx_free(context, ctx); ctx 645 source4/heimdal/lib/krb5/send_to_kdc.c _krb5_kdc_retry(krb5_context context, krb5_sendto_ctx ctx, void *data, ctx 659 source4/heimdal/lib/krb5/send_to_kdc.c if (krb5_sendto_ctx_get_flags(ctx) & KRB5_KRBHST_FLAGS_LARGE_MSG) ctx 661 source4/heimdal/lib/krb5/send_to_kdc.c krb5_sendto_ctx_add_flags(ctx, KRB5_KRBHST_FLAGS_LARGE_MSG); ctx 553 source4/heimdal/lib/ntlm/ntlm.c uint32_t type, ctx[2]; ctx 578 source4/heimdal/lib/ntlm/ntlm.c CHECK(krb5_ret_uint32(in, &ctx[0]), 0); /* context */ ctx 579 source4/heimdal/lib/ntlm/ntlm.c CHECK(krb5_ret_uint32(in, &ctx[1]), 0); ctx 912 source4/heimdal/lib/ntlm/ntlm.c MD4_CTX ctx; ctx 925 source4/heimdal/lib/ntlm/ntlm.c MD4_Init(&ctx); ctx 926 source4/heimdal/lib/ntlm/ntlm.c MD4_Update(&ctx, buf.data, buf.length); ctx 927 source4/heimdal/lib/ntlm/ntlm.c MD4_Final(key->data, &ctx); ctx 1014 source4/heimdal/lib/ntlm/ntlm.c MD4_CTX ctx; ctx 1016 source4/heimdal/lib/ntlm/ntlm.c MD4_Init(&ctx); ctx 1017 source4/heimdal/lib/ntlm/ntlm.c MD4_Update(&ctx, key, len); ctx 1018 source4/heimdal/lib/ntlm/ntlm.c MD4_Final(sessionkey, &ctx); ctx 198 source4/kdc/hdb-samba4.c talloc_free(entry_ex->ctx); ctx 546 source4/kdc/hdb-samba4.c entry_ex->ctx = p; ctx 691 source4/kdc/hdb-samba4.c talloc_steal(db, entry_ex->ctx); ctx 732 source4/kdc/hdb-samba4.c entry_ex->ctx = p; ctx 880 source4/kdc/hdb-samba4.c talloc_steal(db, entry_ex->ctx); ctx 1341 source4/kdc/hdb-samba4.c struct ldb_context *ctx; ctx 1410 source4/kdc/hdb-samba4.c priv->ctx = ldb_ctx; ctx 383 source4/kdc/kdc.c packet_set_event_context(kdcconn->packet, conn->event.ctx); ctx 114 source4/kdc/pac-glue.c struct hdb_ldb_private *p = talloc_get_type(client->ctx, struct hdb_ldb_private); ctx 159 source4/kdc/pac-glue.c struct hdb_ldb_private *p = talloc_get_type(server->ctx, struct hdb_ldb_private); ctx 238 source4/kdc/pac-glue.c TALLOC_CTX *tmp_ctx = talloc_new(entry_ex->ctx); ctx 239 source4/kdc/pac-glue.c struct hdb_ldb_private *p = talloc_get_type(entry_ex->ctx, struct hdb_ldb_private); ctx 56 source4/ldap_server/ldap_backend.c conn->connection->event.ctx, ctx 60 source4/ldap_server/ldap_backend.c samdb_credentials(conn, conn->connection->event.ctx, conn->lp_ctx), ctx 47 source4/ldap_server/ldap_bind.c status = crack_auto_name_to_nt4_name(call, call->conn->connection->event.ctx, call->conn->lp_ctx, req->dn, &nt4_domain, &nt4_account); ctx 50 source4/ldap_server/ldap_bind.c call->conn->connection->event.ctx, ctx 105 source4/ldap_server/ldap_bind.c struct ldapsrv_sasl_context *ctx = talloc_get_type(private_data, struct ldapsrv_sasl_context); ctx 106 source4/ldap_server/ldap_bind.c talloc_steal(ctx->conn->connection, ctx->sasl_socket); ctx 107 source4/ldap_server/ldap_bind.c talloc_unlink(ctx->conn->connection, ctx->conn->connection->socket); ctx 109 source4/ldap_server/ldap_bind.c ctx->conn->sockets.sasl = ctx->sasl_socket; ctx 110 source4/ldap_server/ldap_bind.c ctx->conn->connection->socket = ctx->sasl_socket; ctx 111 source4/ldap_server/ldap_bind.c packet_set_socket(ctx->conn->packet, ctx->conn->connection->socket); ctx 144 source4/ldap_server/ldap_bind.c conn->connection->event.ctx, ctx 197 source4/ldap_server/ldap_bind.c struct ldapsrv_sasl_context *ctx; ctx 202 source4/ldap_server/ldap_bind.c ctx = talloc(call, struct ldapsrv_sasl_context); ctx 204 source4/ldap_server/ldap_bind.c if (!ctx) { ctx 207 source4/ldap_server/ldap_bind.c ctx->conn = conn; ctx 211 source4/ldap_server/ldap_bind.c conn->connection->event.ctx, ctx 214 source4/ldap_server/ldap_bind.c &ctx->sasl_socket); ctx 217 source4/ldap_server/ldap_bind.c if (!ctx || !NT_STATUS_IS_OK(status)) { ctx 226 source4/ldap_server/ldap_bind.c call->send_private = ctx; ctx 34 source4/ldap_server/ldap_extended.c struct ldapsrv_starttls_context *ctx = talloc_get_type(private_data, struct ldapsrv_starttls_context); ctx 35 source4/ldap_server/ldap_extended.c talloc_steal(ctx->conn->connection, ctx->tls_socket); ctx 36 source4/ldap_server/ldap_extended.c talloc_unlink(ctx->conn->connection, ctx->conn->connection->socket); ctx 38 source4/ldap_server/ldap_extended.c ctx->conn->sockets.tls = ctx->tls_socket; ctx 39 source4/ldap_server/ldap_extended.c ctx->conn->connection->socket = ctx->tls_socket; ctx 40 source4/ldap_server/ldap_extended.c packet_set_socket(ctx->conn->packet, ctx->conn->connection->socket); ctx 41 source4/ldap_server/ldap_extended.c packet_set_unreliable_select(ctx->conn->packet); ctx 48 source4/ldap_server/ldap_extended.c struct ldapsrv_starttls_context *ctx; ctx 63 source4/ldap_server/ldap_extended.c ctx = talloc(call, struct ldapsrv_starttls_context); ctx 64 source4/ldap_server/ldap_extended.c NT_STATUS_HAVE_NO_MEMORY(ctx); ctx 66 source4/ldap_server/ldap_extended.c ctx->conn = call->conn; ctx 67 source4/ldap_server/ldap_extended.c ctx->tls_socket = tls_init_server(call->conn->service->tls_params, ctx 71 source4/ldap_server/ldap_extended.c if (!ctx->tls_socket) { ctx 77 source4/ldap_server/ldap_extended.c call->send_private = ctx; ctx 201 source4/ldap_server/ldap_server.c conn->limits.te = event_add_timed(c->event.ctx, conn, ctx 386 source4/ldap_server/ldap_server.c packet_set_event_context(conn->packet, c->event.ctx); ctx 412 source4/ldap_server/ldap_server.c if (!NT_STATUS_IS_OK(auth_anonymous_session_info(conn, c->event.ctx, conn->lp_ctx, &conn->session_info))) { ctx 429 source4/ldap_server/ldap_server.c conn->limits.ite = event_add_timed(c->event.ctx, conn, ctx 68 source4/lib/com/classes/simple.c ret->ctx = NULL; ctx 113 source4/lib/com/classes/simple.c class_object->ctx = NULL; ctx 40 source4/lib/com/com.h struct IUnknown *com_class_by_clsid(struct com_context *ctx, const struct GUID *clsid); ctx 45 source4/lib/com/com.h WERROR com_init_ctx(struct com_context **ctx, struct tevent_context *event_ctx); ctx 46 source4/lib/com/com.h WERROR com_create_object(struct com_context *ctx, struct GUID *clsid, int num_ifaces, struct GUID *iid, struct IUnknown **ip, WERROR *results); ctx 47 source4/lib/com/com.h WERROR com_get_class_object(struct com_context *ctx, struct GUID *clsid, struct GUID *iid, struct IUnknown **ip); ctx 50 source4/lib/com/dcom/dcom.h struct dcom_client_context *dcom_client_init(struct com_context *ctx, struct cli_credentials *credentials); ctx 51 source4/lib/com/dcom/dcom.h struct dcom_object_exporter *object_exporter_by_oxid(struct com_context *ctx, uint64_t oxid); ctx 52 source4/lib/com/dcom/dcom.h struct dcom_object_exporter *object_exporter_by_ip(struct com_context *ctx, struct IUnknown *ip); ctx 53 source4/lib/com/dcom/dcom.h WERROR dcom_create_object(struct com_context *ctx, struct GUID *clsid, const char *server, int num_ifaces, struct GUID *iid, struct IUnknown ***ip, WERROR *results); ctx 54 source4/lib/com/dcom/dcom.h WERROR dcom_get_class_object(struct com_context *ctx, struct GUID *clsid, const char *server, struct GUID *iid, struct IUnknown **ip); ctx 57 source4/lib/com/dcom/dcom.h NTSTATUS dcom_IUnknown_from_OBJREF(TALLOC_CTX *mem_ctx, struct com_context *ctx, struct IUnknown **_p, struct OBJREF *o); ctx 59 source4/lib/com/dcom/dcom.h void dcom_add_server_credentials(struct com_context *ctx, const char *server, struct cli_credentials *credentials); ctx 72 source4/lib/com/dcom/main.c struct cli_credentials *dcom_get_server_credentials(struct com_context *ctx, const char *server) ctx 78 source4/lib/com/dcom/main.c for (c = ctx->dcom->credentials; c; c = c->next) { ctx 95 source4/lib/com/dcom/main.c void dcom_add_server_credentials(struct com_context *ctx, const char *server, ctx 101 source4/lib/com/dcom/main.c for (c = ctx->dcom->credentials; c; c = c->next) { ctx 118 source4/lib/com/dcom/main.c c = talloc(ctx->event_ctx, struct dcom_server_credentials); ctx 126 source4/lib/com/dcom/main.c DLIST_ADD(ctx->dcom->credentials, c); ctx 129 source4/lib/com/dcom/main.c void dcom_update_credentials_for_aliases(struct com_context *ctx, ctx 138 source4/lib/com/dcom/main.c cc = dcom_get_server_credentials(ctx, server); ctx 142 source4/lib/com/dcom/main.c status = dcerpc_binding_from_STRINGBINDING(ctx, &b, pds->stringbindings[i]); ctx 145 source4/lib/com/dcom/main.c dcom_add_server_credentials(ctx, b->host, cc); ctx 150 source4/lib/com/dcom/main.c struct dcom_client_context *dcom_client_init(struct com_context *ctx, struct cli_credentials *credentials) ctx 152 source4/lib/com/dcom/main.c ctx->dcom = talloc_zero(ctx, struct dcom_client_context); ctx 154 source4/lib/com/dcom/main.c credentials = cli_credentials_init(ctx); ctx 155 source4/lib/com/dcom/main.c cli_credentials_set_conf(credentials, ctx->lp_ctx); ctx 158 source4/lib/com/dcom/main.c dcom_add_server_credentials(ctx, NULL, credentials); ctx 159 source4/lib/com/dcom/main.c return ctx->dcom; ctx 162 source4/lib/com/dcom/main.c static NTSTATUS dcom_connect_host(struct com_context *ctx, ctx 172 source4/lib/com/dcom/main.c return dcerpc_pipe_connect(ctx->event_ctx, p, "ncalrpc", ctx 174 source4/lib/com/dcom/main.c dcom_get_server_credentials(ctx, NULL), ctx->event_ctx, ctx->lp_ctx); ctx 176 source4/lib/com/dcom/main.c loc_ctx = talloc_new(ctx); ctx 183 source4/lib/com/dcom/main.c status = dcerpc_pipe_connect_b(ctx->event_ctx, p, bd, ctx 185 source4/lib/com/dcom/main.c dcom_get_server_credentials(ctx, bd->host), ctx->event_ctx, ctx->lp_ctx); ctx 196 source4/lib/com/dcom/main.c status = dcerpc_pipe_connect(ctx->event_ctx, p, binding, ctx 198 source4/lib/com/dcom/main.c dcom_get_server_credentials(ctx, server), ctx 199 source4/lib/com/dcom/main.c ctx->event_ctx, ctx->lp_ctx); ctx 215 source4/lib/com/dcom/main.c struct dcom_object_exporter *object_exporter_by_oxid(struct com_context *ctx, ctx 219 source4/lib/com/dcom/main.c for (ox = ctx->dcom->object_exporters; ox; ox = ox->next) { ctx 228 source4/lib/com/dcom/main.c struct dcom_object_exporter *object_exporter_update_oxid(struct com_context *ctx, uint64_t oxid, struct DUALSTRINGARRAY *bindings) ctx 231 source4/lib/com/dcom/main.c ox = object_exporter_by_oxid(ctx, oxid); ctx 233 source4/lib/com/dcom/main.c ox = talloc_zero(ctx, struct dcom_object_exporter); ctx 234 source4/lib/com/dcom/main.c DLIST_ADD(ctx->dcom->object_exporters, ox); ctx 244 source4/lib/com/dcom/main.c struct dcom_object_exporter *object_exporter_by_ip(struct com_context *ctx, struct IUnknown *ip) ctx 246 source4/lib/com/dcom/main.c return object_exporter_by_oxid(ctx, ip->obj.u_objref.u_standard.std.oxid); ctx 249 source4/lib/com/dcom/main.c WERROR dcom_create_object(struct com_context *ctx, struct GUID *clsid, const char *server, int num_ifaces, struct GUID *iid, struct IUnknown ***ip, WERROR *results) ctx 268 source4/lib/com/dcom/main.c status = dcom_connect_host(ctx, &p, server); ctx 273 source4/lib/com/dcom/main.c loc_ctx = talloc_new(ctx); ctx 315 source4/lib/com/dcom/main.c m = object_exporter_update_oxid(ctx, oxid, pds); ctx 318 source4/lib/com/dcom/main.c *ip = talloc_array(ctx, struct IUnknown *, num_ifaces); ctx 322 source4/lib/com/dcom/main.c status = dcom_IUnknown_from_OBJREF(ctx, &(*ip)[i], &r.out.ifaces[i]->obj); ctx 348 source4/lib/com/dcom/main.c dcom_update_credentials_for_aliases(ctx, server, pds); ctx 383 source4/lib/com/dcom/main.c ox = object_exporter_by_ip(d->ctx, d); ctx 398 source4/lib/com/dcom/main.c status = dcom_IUnknown_from_OBJREF(d->ctx, &ip[i], &ru.obj); ctx 431 source4/lib/com/dcom/main.c ox = object_exporter_by_oxid(iface->ctx, iface->obj.u_objref.u_standard.std.oxid); ctx 483 source4/lib/com/dcom/main.c status = dcerpc_binding_from_STRINGBINDING(iface->ctx, &binding, ctx 492 source4/lib/com/dcom/main.c status = dcerpc_pipe_connect_b(iface->ctx->event_ctx, &p, binding, ctx 494 source4/lib/com/dcom/main.c dcom_get_server_credentials(iface->ctx, binding->host), ctx 495 source4/lib/com/dcom/main.c iface->ctx->event_ctx, iface->ctx->lp_ctx); ctx 496 source4/lib/com/dcom/main.c talloc_unlink(iface->ctx, binding); ctx 540 source4/lib/com/dcom/main.c enum ndr_err_code dcom_IUnknown_from_OBJREF(struct com_context *ctx, struct IUnknown **_p, struct OBJREF *o) ctx 552 source4/lib/com/dcom/main.c p = talloc_zero(ctx, struct IUnknown); ctx 553 source4/lib/com/dcom/main.c p->ctx = ctx; ctx 558 source4/lib/com/dcom/main.c DEBUG(0, ("Unable to find proxy class for interface with IID %s\n", GUID_string(ctx, &o->iid))); ctx 564 source4/lib/com/dcom/main.c ox = object_exporter_by_oxid(ctx, o->u_objref.u_standard.std.oxid); ctx 570 source4/lib/com/dcom/main.c p = talloc_zero(ctx, struct IUnknown); ctx 571 source4/lib/com/dcom/main.c p->ctx = ctx; ctx 573 source4/lib/com/dcom/main.c ox = object_exporter_by_oxid(ctx, o->u_objref.u_handler.std.oxid ); ctx 582 source4/lib/com/dcom/main.c p = talloc_zero(ctx, struct IUnknown); ctx 583 source4/lib/com/dcom/main.c p->ctx = ctx; ctx 589 source4/lib/com/dcom/main.c return unmarshal(ctx, o, _p); ctx 608 source4/lib/com/dcom/main.c c = composite_create(0, d->ctx->event_ctx); ctx 655 source4/lib/com/dcom/main.c c = composite_create(d->ctx, d->ctx->event_ctx); ctx 659 source4/lib/com/dcom/main.c ox = object_exporter_by_ip(d->ctx, d); ctx 27 source4/lib/com/main.c WERROR com_init_ctx(struct com_context **ctx, struct tevent_context *event_ctx) ctx 29 source4/lib/com/main.c *ctx = talloc(NULL, struct com_context); ctx 31 source4/lib/com/main.c event_ctx = event_context_init(*ctx); ctx 33 source4/lib/com/main.c (*ctx)->event_ctx = event_ctx; ctx 37 source4/lib/com/main.c WERROR com_create_object(struct com_context *ctx, struct GUID *clsid, int num_ifaces, struct GUID *iid, struct IUnknown **ip, WERROR *results) ctx 48 source4/lib/com/main.c error = com_get_class_object(ctx, clsid, &classfact_iid, (struct IUnknown **)&factory); ctx 55 source4/lib/com/main.c error = IClassFactory_CreateInstance(factory, ctx, NULL, &classfact_iid, &iunk); ctx 67 source4/lib/com/main.c IUnknown_Release(factory, ctx); ctx 73 source4/lib/com/main.c results[i] = IUnknown_QueryInterface(iunk, ctx, &iid[i], &ip[i]); ctx 80 source4/lib/com/main.c WERROR com_get_class_object(struct com_context *ctx, struct GUID *clsid, struct GUID *iid, struct IUnknown **ip) ctx 84 source4/lib/com/main.c iu = com_class_by_clsid(ctx, clsid); ctx 89 source4/lib/com/main.c return IUnknown_QueryInterface(iu, ctx, iid, ip); ctx 78 source4/lib/com/tables.c struct IUnknown *com_class_by_clsid(struct com_context *ctx, const struct GUID *clsid) ctx 89 source4/lib/com/tables.c c = get_com_class_so(ctx, clsid); ctx 69 source4/lib/ldb/ldb_ildap/ldb_ildap.c static void ildb_request_done(struct ildb_context *ctx, ctx 75 source4/lib/ldb/ldb_ildap/ldb_ildap.c ldb = ldb_module_get_ctx(ctx->module); ctx 77 source4/lib/ldb/ldb_ildap/ldb_ildap.c ctx->done = true; ctx 79 source4/lib/ldb/ldb_ildap/ldb_ildap.c if (ctx->req == NULL) { ctx 84 source4/lib/ldb/ldb_ildap/ldb_ildap.c ares = talloc_zero(ctx->req, struct ldb_reply); ctx 87 source4/lib/ldb/ldb_ildap/ldb_ildap.c ctx->req->callback(ctx->req, NULL); ctx 94 source4/lib/ldb/ldb_ildap/ldb_ildap.c ctx->req->callback(ctx->req, ares); ctx 72 source4/lib/ldb/ldb_map/ldb_map.h int (*convert_operator)(struct ldb_module *, TALLOC_CTX *ctx, struct ldb_parse_tree **ntree, const struct ldb_parse_tree *otree); ctx 566 source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c static void lsqlite3_compare(sqlite3_context *ctx, int argc, ctx 569 source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c struct ldb_context *ldb = (struct ldb_context *)sqlite3_user_data(ctx); ctx 589 source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c sqlite3_result_int(ctx, 1); ctx 591 source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c sqlite3_result_int(ctx, 0); ctx 603 source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c sqlite3_result_int(ctx, 1); ctx 605 source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c sqlite3_result_int(ctx, 0); ctx 611 source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c sqlite3_result_int(ctx, 0); ctx 617 source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c sqlite3_result_int(ctx, 0); ctx 624 source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c sqlite3_result_error(ctx, "Value must start with a special operation char (<>~:)!", -1); ctx 802 source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c int lsql_search(struct lsql_context *ctx) ctx 804 source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c struct ldb_module *module = ctx->module; ctx 805 source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c struct ldb_request *req = ctx->req; ctx 826 source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c norm_basedn = ldb_dn_alloc_casefold(ctx, req->op.search.base); ctx 830 source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c } else norm_basedn = talloc_strdup(ctx, ""); ctx 833 source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c sqlfilter = parsetree_to_sql(module, ctx, req->op.search.tree); ctx 839 source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c query = lsqlite3_tprintf(ctx, ctx 863 source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c query = lsqlite3_tprintf(ctx, ctx 887 source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c query = lsqlite3_tprintf(ctx, ctx 911 source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c query = lsqlite3_tprintf(ctx, ctx 944 source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c ctx->current_eid = 0; ctx 945 source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c ctx->attrs = req->op.search.attrs; ctx 946 source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c ctx->ares = NULL; ctx 950 source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c ret = sqlite3_exec(lsqlite3->sqlite, query, lsqlite3_search_callback, ctx, &errmsg); ctx 960 source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c if (ctx->ares) { ctx 961 source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c ctx->ares->message = ldb_msg_canonicalize(ldb, ctx->ares->message); ctx 962 source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c if (ctx->ares->message == NULL) { ctx 966 source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c ret = ldb_module_send_entry(req, ctx->ares->message, NULL); ctx 977 source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c static int lsql_add(struct lsql_context *ctx) ctx 979 source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c struct ldb_module *module = ctx->module; ctx 980 source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c struct ldb_request *req = ctx->req; ctx 1011 source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c dn = ldb_dn_alloc_linearized(ctx, msg->dn); ctx 1012 source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c ndn = ldb_dn_alloc_casefold(ctx, msg->dn); ctx 1017 source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c query = lsqlite3_tprintf(ctx, ctx 1036 source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c eid = lsqlite3_get_eid_ndn(lsqlite3->sqlite, ctx, ndn); ctx 1048 source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c attr = ldb_attr_casefold(ctx, el->name); ctx 1061 source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c a->syntax->canonicalise_fn(ldb, ctx, &(el->values[j]), &value); ctx 1066 source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c insert = lsqlite3_tprintf(ctx, ctx 1092 source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c static int lsql_modify(struct lsql_context *ctx) ctx 1094 source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c struct ldb_module *module = ctx->module; ctx 1095 source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c struct ldb_request *req = ctx->req; ctx 1128 source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c attr = ldb_attr_casefold(ctx, el->name); ctx 1140 source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c mod = lsqlite3_tprintf(ctx, ctx 1167 source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c a->syntax->canonicalise_fn(ldb, ctx, &(el->values[j]), &value); ctx 1172 source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c mod = lsqlite3_tprintf(ctx, ctx 1199 source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c mod = lsqlite3_tprintf(ctx, ctx 1223 source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c a->syntax->canonicalise_fn(ldb, ctx, &(el->values[j]), &value); ctx 1228 source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c mod = lsqlite3_tprintf(ctx, ctx 1257 source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c static int lsql_delete(struct lsql_context *ctx) ctx 1259 source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c struct ldb_module *module = ctx->module; ctx 1260 source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c struct ldb_request *req = ctx->req; ctx 1277 source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c query = lsqlite3_tprintf(ctx, ctx 1300 source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c static int lsql_rename(struct lsql_context *ctx) ctx 1302 source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c struct ldb_module *module = ctx->module; ctx 1303 source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c struct ldb_request *req = ctx->req; ctx 1316 source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c old_cdn = ldb_dn_alloc_casefold(ctx, req->op.rename.olddn); ctx 1317 source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c new_cdn = ldb_dn_alloc_casefold(ctx, req->op.rename.newdn); ctx 1318 source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c new_dn = ldb_dn_alloc_linearized(ctx, req->op.rename.newdn); ctx 1324 source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c query = lsqlite3_tprintf(ctx, ctx 1423 source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c static void lsql_request_done(struct lsql_context *ctx, int error) ctx 1429 source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c ldb = ldb_module_get_ctx(ctx->module); ctx 1430 source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c req = ctx->req; ctx 1454 source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c struct lsql_context *ctx; ctx 1455 source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c ctx = talloc_get_type(private_data, struct lsql_context); ctx 1457 source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c lsql_request_done(ctx, LDB_ERR_TIME_LIMIT_EXCEEDED); ctx 1465 source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c struct lsql_context *ctx; ctx 1468 source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c ctx = talloc_get_type(private_data, struct lsql_context); ctx 1470 source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c switch (ctx->req->operation) { ctx 1472 source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c ret = lsql_search(ctx); ctx 1475 source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c ret = lsql_add(ctx); ctx 1478 source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c ret = lsql_modify(ctx); ctx 1481 source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c ret = lsql_delete(ctx); ctx 1484 source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c ret = lsql_rename(ctx); ctx 1496 source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c if (!ctx->callback_failed) { ctx 1498 source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c talloc_free(ctx->timeout_event); ctx 1499 source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c lsql_request_done(ctx, ret); ctx 440 source4/lib/ldb/ldb_tdb/ldb_search.c static int ltdb_search_full(struct ltdb_context *ctx) ctx 442 source4/lib/ldb/ldb_tdb/ldb_search.c void *data = ldb_module_get_private(ctx->module); ctx 447 source4/lib/ldb/ldb_tdb/ldb_search.c ret = tdb_traverse(ltdb->tdb, search_func, ctx); ctx 449 source4/lib/ldb/ldb_tdb/ldb_search.c ret = tdb_traverse_read(ltdb->tdb, search_func, ctx); ctx 463 source4/lib/ldb/ldb_tdb/ldb_search.c int ltdb_search(struct ltdb_context *ctx) ctx 466 source4/lib/ldb/ldb_tdb/ldb_search.c struct ldb_module *module = ctx->module; ctx 467 source4/lib/ldb/ldb_tdb/ldb_search.c struct ldb_request *req = ctx->req; ctx 532 source4/lib/ldb/ldb_tdb/ldb_search.c ctx->tree = req->op.search.tree; ctx 533 source4/lib/ldb/ldb_tdb/ldb_search.c ctx->scope = req->op.search.scope; ctx 534 source4/lib/ldb/ldb_tdb/ldb_search.c ctx->base = req->op.search.base; ctx 535 source4/lib/ldb/ldb_tdb/ldb_search.c ctx->attrs = req->op.search.attrs; ctx 538 source4/lib/ldb/ldb_tdb/ldb_search.c ret = ltdb_search_indexed(ctx); ctx 547 source4/lib/ldb/ldb_tdb/ldb_search.c if ( ! ctx->request_terminated && ret != LDB_SUCCESS) { ctx 549 source4/lib/ldb/ldb_tdb/ldb_search.c ret = ltdb_search_full(ctx); ctx 295 source4/lib/ldb/ldb_tdb/ldb_tdb.c static int ltdb_add(struct ltdb_context *ctx) ctx 297 source4/lib/ldb/ldb_tdb/ldb_tdb.c struct ldb_module *module = ctx->module; ctx 298 source4/lib/ldb/ldb_tdb/ldb_tdb.c struct ldb_request *req = ctx->req; ctx 385 source4/lib/ldb/ldb_tdb/ldb_tdb.c static int ltdb_delete(struct ltdb_context *ctx) ctx 387 source4/lib/ldb/ldb_tdb/ldb_tdb.c struct ldb_module *module = ctx->module; ctx 388 source4/lib/ldb/ldb_tdb/ldb_tdb.c struct ldb_request *req = ctx->req; ctx 749 source4/lib/ldb/ldb_tdb/ldb_tdb.c static int ltdb_modify(struct ltdb_context *ctx) ctx 751 source4/lib/ldb/ldb_tdb/ldb_tdb.c struct ldb_module *module = ctx->module; ctx 752 source4/lib/ldb/ldb_tdb/ldb_tdb.c struct ldb_request *req = ctx->req; ctx 777 source4/lib/ldb/ldb_tdb/ldb_tdb.c static int ltdb_rename(struct ltdb_context *ctx) ctx 779 source4/lib/ldb/ldb_tdb/ldb_tdb.c struct ldb_module *module = ctx->module; ctx 780 source4/lib/ldb/ldb_tdb/ldb_tdb.c struct ldb_request *req = ctx->req; ctx 786 source4/lib/ldb/ldb_tdb/ldb_tdb.c if (ltdb_cache_load(ctx->module) != 0) { ctx 790 source4/lib/ldb/ldb_tdb/ldb_tdb.c msg = talloc(ctx, struct ldb_message); ctx 901 source4/lib/ldb/ldb_tdb/ldb_tdb.c static int ltdb_sequence_number(struct ltdb_context *ctx, ctx 905 source4/lib/ldb/ldb_tdb/ldb_tdb.c struct ldb_module *module = ctx->module; ctx 906 source4/lib/ldb/ldb_tdb/ldb_tdb.c struct ldb_request *req = ctx->req; ctx 988 source4/lib/ldb/ldb_tdb/ldb_tdb.c static void ltdb_request_done(struct ltdb_context *ctx, int error) ctx 994 source4/lib/ldb/ldb_tdb/ldb_tdb.c ldb = ldb_module_get_ctx(ctx->module); ctx 995 source4/lib/ldb/ldb_tdb/ldb_tdb.c req = ctx->req; ctx 1019 source4/lib/ldb/ldb_tdb/ldb_tdb.c struct ltdb_context *ctx; ctx 1020 source4/lib/ldb/ldb_tdb/ldb_tdb.c ctx = talloc_get_type(private_data, struct ltdb_context); ctx 1022 source4/lib/ldb/ldb_tdb/ldb_tdb.c if (!ctx->request_terminated) { ctx 1024 source4/lib/ldb/ldb_tdb/ldb_tdb.c ltdb_request_done(ctx, LDB_ERR_TIME_LIMIT_EXCEEDED); ctx 1027 source4/lib/ldb/ldb_tdb/ldb_tdb.c if (!ctx->request_terminated) { ctx 1029 source4/lib/ldb/ldb_tdb/ldb_tdb.c ctx->spy->ctx = NULL; ctx 1031 source4/lib/ldb/ldb_tdb/ldb_tdb.c talloc_free(ctx); ctx 1034 source4/lib/ldb/ldb_tdb/ldb_tdb.c static void ltdb_request_extended_done(struct ltdb_context *ctx, ctx 1042 source4/lib/ldb/ldb_tdb/ldb_tdb.c ldb = ldb_module_get_ctx(ctx->module); ctx 1043 source4/lib/ldb/ldb_tdb/ldb_tdb.c req = ctx->req; ctx 1063 source4/lib/ldb/ldb_tdb/ldb_tdb.c static void ltdb_handle_extended(struct ltdb_context *ctx) ctx 1068 source4/lib/ldb/ldb_tdb/ldb_tdb.c if (strcmp(ctx->req->op.extended.oid, ctx 1071 source4/lib/ldb/ldb_tdb/ldb_tdb.c ret = ltdb_sequence_number(ctx, &ext); ctx 1077 source4/lib/ldb/ldb_tdb/ldb_tdb.c ltdb_request_extended_done(ctx, ext, ret); ctx 1085 source4/lib/ldb/ldb_tdb/ldb_tdb.c struct ltdb_context *ctx; ctx 1088 source4/lib/ldb/ldb_tdb/ldb_tdb.c ctx = talloc_get_type(private_data, struct ltdb_context); ctx 1090 source4/lib/ldb/ldb_tdb/ldb_tdb.c if (ctx->request_terminated) { ctx 1094 source4/lib/ldb/ldb_tdb/ldb_tdb.c switch (ctx->req->operation) { ctx 1096 source4/lib/ldb/ldb_tdb/ldb_tdb.c ret = ltdb_search(ctx); ctx 1099 source4/lib/ldb/ldb_tdb/ldb_tdb.c ret = ltdb_add(ctx); ctx 1102 source4/lib/ldb/ldb_tdb/ldb_tdb.c ret = ltdb_modify(ctx); ctx 1105 source4/lib/ldb/ldb_tdb/ldb_tdb.c ret = ltdb_delete(ctx); ctx 1108 source4/lib/ldb/ldb_tdb/ldb_tdb.c ret = ltdb_rename(ctx); ctx 1111 source4/lib/ldb/ldb_tdb/ldb_tdb.c ltdb_handle_extended(ctx); ctx 1118 source4/lib/ldb/ldb_tdb/ldb_tdb.c if (!ctx->request_terminated) { ctx 1120 source4/lib/ldb/ldb_tdb/ldb_tdb.c ltdb_request_done(ctx, ret); ctx 1124 source4/lib/ldb/ldb_tdb/ldb_tdb.c if (!ctx->request_terminated) { ctx 1126 source4/lib/ldb/ldb_tdb/ldb_tdb.c ctx->spy->ctx = NULL; ctx 1128 source4/lib/ldb/ldb_tdb/ldb_tdb.c talloc_free(ctx); ctx 1135 source4/lib/ldb/ldb_tdb/ldb_tdb.c if (spy->ctx != NULL) { ctx 1136 source4/lib/ldb/ldb_tdb/ldb_tdb.c spy->ctx->request_terminated = true; ctx 1195 source4/lib/ldb/ldb_tdb/ldb_tdb.c ac->spy->ctx = ac; ctx 40 source4/lib/ldb/ldb_tdb/ldb_tdb.h struct ltdb_context *ctx; ctx 86 source4/lib/ldb/ldb_tdb/ldb_tdb.h int ltdb_search_indexed(struct ltdb_context *ctx); ctx 119 source4/lib/ldb/ldb_tdb/ldb_tdb.h int ltdb_search(struct ltdb_context *ctx); ctx 299 source4/lib/ldb/modules/operational.c static int operational_init(struct ldb_module *ctx) ctx 307 source4/lib/ldb/modules/operational.c return ldb_next_init(ctx); ctx 88 source4/lib/ldb/modules/skel.c static int skel_destructor(struct ldb_module *ctx) ctx 92 source4/lib/ldb/modules/skel.c data = talloc_get_type(ldb_module_get_private(ctx), struct private_data); ctx 156 source4/lib/ldb/nssldb/ldb-grp.c TALLOC_CTX *ctx; ctx 165 source4/lib/ldb/nssldb/ldb-grp.c ctx = talloc_new(_ldb_nss_ctx->ldb); ctx 166 source4/lib/ldb/nssldb/ldb-grp.c if ( ! ctx) { ctx 172 source4/lib/ldb/nssldb/ldb-grp.c filter = talloc_asprintf(ctx, _LDB_NSS_GRNAM_FILTER, name); ctx 195 source4/lib/ldb/nssldb/ldb-grp.c talloc_steal(ctx, gr_res); ctx 211 source4/lib/ldb/nssldb/ldb-grp.c mem_res = talloc_zero(ctx, struct ldb_result); ctx 241 source4/lib/ldb/nssldb/ldb-grp.c talloc_free(ctx); ctx 249 source4/lib/ldb/nssldb/ldb-grp.c TALLOC_CTX *ctx; ctx 263 source4/lib/ldb/nssldb/ldb-grp.c ctx = talloc_new(_ldb_nss_ctx->ldb); ctx 264 source4/lib/ldb/nssldb/ldb-grp.c if ( ! ctx) { ctx 270 source4/lib/ldb/nssldb/ldb-grp.c filter = talloc_asprintf(ctx, _LDB_NSS_GRGID_FILTER, gid); ctx 293 source4/lib/ldb/nssldb/ldb-grp.c talloc_steal(ctx, gr_res); ctx 309 source4/lib/ldb/nssldb/ldb-grp.c mem_res = talloc_zero(ctx, struct ldb_result); ctx 339 source4/lib/ldb/nssldb/ldb-grp.c talloc_free(ctx); ctx 57 source4/lib/messaging/irpc.h #define IRPC_CALL(msg_ctx, server_id, pipename, funcname, ptr, ctx) \ ctx 58 source4/lib/messaging/irpc.h irpc_call(msg_ctx, server_id, &ndr_table_ ## pipename, NDR_ ## funcname, ptr, ctx) ctx 60 source4/lib/messaging/irpc.h #define IRPC_CALL_SEND(msg_ctx, server_id, pipename, funcname, ptr, ctx) \ ctx 61 source4/lib/messaging/irpc.h irpc_call_send(msg_ctx, server_id, &ndr_table_ ## pipename, NDR_ ## funcname, ptr, ctx) ctx 118 source4/lib/messaging/irpc.h int callnum, void *r, TALLOC_CTX *ctx); ctx 123 source4/lib/messaging/irpc.h int callnum, void *r, TALLOC_CTX *ctx); ctx 112 source4/lib/messaging/messaging.c struct messaging_context *ctx = talloc_get_type(msg->private_data, struct messaging_context); ctx 113 source4/lib/messaging/messaging.c *r->out.start_time = timeval_to_nttime(&ctx->start_time); ctx 864 source4/lib/messaging/messaging.c int callnum, void *r, TALLOC_CTX *ctx) ctx 884 source4/lib/messaging/messaging.c irpc->mem_ctx = ctx; ctx 231 source4/lib/registry/dir.c static WERROR reg_dir_get_info(TALLOC_CTX *ctx, const struct hive_key *key, ctx 271 source4/lib/registry/dir.c char *path = talloc_asprintf(ctx, "%s/%s", ctx 82 source4/lib/registry/hive.c _PUBLIC_ WERROR hive_key_add_name(TALLOC_CTX *ctx, ctx 90 source4/lib/registry/hive.c return parent_key->ops->add_key(ctx, parent_key, name, classname, ctx 57 source4/lib/registry/interface.c _PUBLIC_ WERROR reg_get_predefined_key_by_name(struct registry_context *ctx, ctx 65 source4/lib/registry/interface.c return reg_get_predefined_key(ctx, ctx 76 source4/lib/registry/interface.c _PUBLIC_ WERROR reg_get_predefined_key(struct registry_context *ctx, ctx 79 source4/lib/registry/interface.c return ctx->ops->get_predefined_key(ctx, hkey, key); ctx 243 source4/lib/registry/interface.c _PUBLIC_ WERROR reg_get_sec_desc(TALLOC_CTX *ctx, ctx 254 source4/lib/registry/interface.c return key->context->ops->get_sec_desc(ctx, key, secdesc); ctx 93 source4/lib/registry/ldb.c static struct ldb_message *reg_ldb_pack_value(struct ldb_context *ctx, ctx 48 source4/lib/registry/local.c struct registry_key *reg_import_hive_key(struct registry_context *ctx, ctx 59 source4/lib/registry/local.c local_key = talloc(ctx, struct local_key); ctx 61 source4/lib/registry/local.c local_key->global.context = talloc_reference(local_key, ctx); ctx 125 source4/lib/registry/local.c WERROR local_get_predefined_key(struct registry_context *ctx, ctx 128 source4/lib/registry/local.c struct registry_local *rctx = talloc_get_type(ctx, ctx 141 source4/lib/registry/local.c *key = reg_import_hive_key(ctx, mp->key, ctx 309 source4/lib/registry/local.c WERROR reg_open_local(TALLOC_CTX *mem_ctx, struct registry_context **ctx) ctx 318 source4/lib/registry/local.c *ctx = (struct registry_context *)ret; ctx 347 source4/lib/registry/patchfile.c struct registry_context *ctx = (struct registry_context *)_ctx; ctx 353 source4/lib/registry/patchfile.c buf = talloc_strdup(ctx, key_name); ctx 359 source4/lib/registry/patchfile.c error = reg_key_add_abs(ctx, ctx, buf, 0, NULL, &tmp); ctx 372 source4/lib/registry/patchfile.c error = reg_key_add_abs(ctx, ctx, key_name, 0, NULL, &tmp); ctx 385 source4/lib/registry/patchfile.c struct registry_context *ctx = (struct registry_context *)_ctx; ctx 392 source4/lib/registry/patchfile.c reg_key_del_abs(ctx, key_name); ctx 401 source4/lib/registry/patchfile.c struct registry_context *ctx = (struct registry_context *)_ctx; ctx 406 source4/lib/registry/patchfile.c error = reg_open_key_abs(ctx, ctx, path, &tmp); ctx 427 source4/lib/registry/patchfile.c struct registry_context *ctx = (struct registry_context *)_ctx; ctx 432 source4/lib/registry/patchfile.c error = reg_open_key_abs(ctx, ctx, key_name, &tmp); ctx 451 source4/lib/registry/patchfile.c struct registry_context *ctx = (struct registry_context *)_ctx; ctx 456 source4/lib/registry/patchfile.c error = reg_open_key_abs(ctx, ctx, key_name, &key); ctx 463 source4/lib/registry/patchfile.c W_ERROR_NOT_OK_RETURN(reg_key_get_info(ctx, key, NULL, ctx 467 source4/lib/registry/patchfile.c ctx, key, 0, &value_name, NULL, NULL))) { ctx 481 source4/lib/registry/patchfile.c _PUBLIC_ WERROR reg_diff_apply(struct registry_context *ctx, ctx 495 source4/lib/registry/patchfile.c &callbacks, ctx); ctx 101 source4/lib/registry/patchfile_dotreg.c _PUBLIC_ WERROR reg_dotreg_diff_save(TALLOC_CTX *ctx, const char *filename, ctx 108 source4/lib/registry/patchfile_dotreg.c data = talloc_zero(ctx, struct dotreg_data); ctx 125 source4/lib/registry/patchfile_dotreg.c *callbacks = talloc(ctx, struct reg_diff_callbacks); ctx 29 source4/lib/registry/patchfile_preg.c TALLOC_CTX *ctx; ctx 93 source4/lib/registry/patchfile_preg.c parent_name = talloc_strndup(data->ctx, key_name, strrchr(key_name, '\\')-key_name); ctx 94 source4/lib/registry/patchfile_preg.c blob.data = (uint8_t *)talloc_strndup(data->ctx, key_name+(strrchr(key_name, '\\')-key_name)+1, ctx 110 source4/lib/registry/patchfile_preg.c val = talloc_asprintf(data->ctx, "**Del.%s", value_name); ctx 112 source4/lib/registry/patchfile_preg.c blob.data = (uint8_t *)talloc(data->ctx, uint32_t); ctx 123 source4/lib/registry/patchfile_preg.c blob.data = (uint8_t *)talloc(data->ctx, uint32_t); ctx 142 source4/lib/registry/patchfile_preg.c _PUBLIC_ WERROR reg_preg_diff_save(TALLOC_CTX *ctx, const char *filename, ctx 154 source4/lib/registry/patchfile_preg.c data = talloc_zero(ctx, struct preg_data); ctx 171 source4/lib/registry/patchfile_preg.c data->ctx = ctx; ctx 174 source4/lib/registry/patchfile_preg.c *callbacks = talloc(ctx, struct reg_diff_callbacks); ctx 47 source4/lib/registry/pyregistry.c struct registry_context *ctx = PyRegistry_AsRegistryContext(self); ctx 53 source4/lib/registry/pyregistry.c result = reg_get_predefined_key_by_name(ctx, name, &key); ctx 63 source4/lib/registry/pyregistry.c struct registry_context *ctx = PyRegistry_AsRegistryContext(self); ctx 68 source4/lib/registry/pyregistry.c result = reg_key_del_abs(ctx, path); ctx 77 source4/lib/registry/pyregistry.c struct registry_context *ctx = PyRegistry_AsRegistryContext(self); ctx 84 source4/lib/registry/pyregistry.c result = reg_get_predefined_key(ctx, hkey, &key); ctx 94 source4/lib/registry/pyregistry.c struct registry_context *ctx = PyRegistry_AsRegistryContext(self); ctx 98 source4/lib/registry/pyregistry.c result = reg_diff_apply(ctx, py_iconv_convenience(NULL), filename); ctx 106 source4/lib/registry/pyregistry.c struct registry_context *ctx = PyRegistry_AsRegistryContext(self); ctx 129 source4/lib/registry/pyregistry.c SMB_ASSERT(ctx != NULL); ctx 131 source4/lib/registry/pyregistry.c result = reg_mount_hive(ctx, PyHiveKey_AsHiveKey(py_hivekey), hkey, elements); ctx 140 source4/lib/registry/pyregistry.c struct registry_context *ctx; ctx 141 source4/lib/registry/pyregistry.c result = reg_open_local(NULL, &ctx); ctx 143 source4/lib/registry/pyregistry.c return py_talloc_import(&PyRegistry, ctx); ctx 135 source4/lib/registry/regf.c TALLOC_CTX *ctx, tdr_pull_fn_t pull_fn, void *p) ctx 146 source4/lib/registry/regf.c if (NT_STATUS_IS_ERR(pull_fn(pull, ctx, p))) { ctx 468 source4/lib/registry/regf.c static struct regf_key_data *regf_get_key(TALLOC_CTX *ctx, ctx 475 source4/lib/registry/regf.c ret = talloc_zero(ctx, struct regf_key_data); ctx 501 source4/lib/registry/regf.c static WERROR regf_get_value(TALLOC_CTX *ctx, struct hive_key *key, ctx 539 source4/lib/registry/regf.c *name = talloc_strndup(ctx, vk->data_name, vk->name_length); ctx 546 source4/lib/registry/regf.c data->data = (uint8_t *)talloc_memdup(ctx, (uint8_t *)&vk->data_offset, vk->data_length); ctx 585 source4/lib/registry/regf.c static WERROR regf_get_subkey_by_index(TALLOC_CTX *ctx, ctx 670 source4/lib/registry/regf.c struct tdr_pull *pull = tdr_pull_init(ctx, private_data->hive->iconv_convenience); ctx 762 source4/lib/registry/regf.c ret = regf_get_key (ctx, private_data->hive, key_off); ctx 768 source4/lib/registry/regf.c *classname = talloc_strndup(ctx, ctx 779 source4/lib/registry/regf.c *name = talloc_steal(ctx, ret->nk->key_name); ctx 786 source4/lib/registry/regf.c static WERROR regf_match_subkey_by_name(TALLOC_CTX *ctx, ctx 803 source4/lib/registry/regf.c pull = tdr_pull_init(ctx, private_data->hive->iconv_convenience); ctx 807 source4/lib/registry/regf.c if (NT_STATUS_IS_ERR(tdr_pull_nk_block(pull, ctx, &subkey))) { ctx 827 source4/lib/registry/regf.c static WERROR regf_get_subkey_by_name(TALLOC_CTX *ctx, ctx 846 source4/lib/registry/regf.c struct tdr_pull *pull = tdr_pull_init(ctx, private_data->hive->iconv_convenience); ctx 877 source4/lib/registry/regf.c struct tdr_pull *pull = tdr_pull_init(ctx, private_data->hive->iconv_convenience); ctx 912 source4/lib/registry/regf.c struct tdr_pull *pull = tdr_pull_init(ctx, private_data->hive->iconv_convenience); ctx 949 source4/lib/registry/regf.c struct tdr_pull *pull = tdr_pull_init(ctx, private_data->hive->iconv_convenience); ctx 1032 source4/lib/registry/regf.c *ret = (struct hive_key *)regf_get_key(ctx, private_data->hive, ctx 1182 source4/lib/registry/regf.c static WERROR regf_get_sec_desc(TALLOC_CTX *ctx, const struct hive_key *key, ctx 1191 source4/lib/registry/regf.c if (!hbin_get_tdr(regf, private_data->nk->sk_offset, ctx, ctx 1202 source4/lib/registry/regf.c *sd = talloc(ctx, struct security_descriptor); ctx 1207 source4/lib/registry/regf.c if (!NDR_ERR_CODE_IS_SUCCESS(ndr_pull_struct_blob(&data, ctx, NULL, *sd, ctx 1695 source4/lib/registry/regf.c static WERROR regf_add_key(TALLOC_CTX *ctx, const struct hive_key *parent, ctx 1725 source4/lib/registry/regf.c root = talloc_zero(ctx, struct nk_block); ctx 1752 source4/lib/registry/regf.c *ret = (struct hive_key *)regf_get_key(ctx, regf, offset); ctx 72 source4/lib/registry/registry.h WERROR (*add_key) (TALLOC_CTX *ctx, ctx 132 source4/lib/registry/registry.h WERROR (*get_sec_desc) (TALLOC_CTX *ctx, ctx 165 source4/lib/registry/registry.h WERROR hive_key_add_name(TALLOC_CTX *ctx, const struct hive_key *parent_key, ctx 291 source4/lib/registry/registry.h WERROR (*get_predefined_key) (struct registry_context *ctx, ctx 367 source4/lib/registry/registry.h struct registry_context **ctx); ctx 370 source4/lib/registry/registry.h struct registry_context **ctx, ctx 379 source4/lib/registry/registry.h WERROR reg_open_remote(struct registry_context **ctx, ctx 385 source4/lib/registry/registry.h WERROR reg_open_wine(struct registry_context **ctx, const char *path); ctx 388 source4/lib/registry/registry.h WERROR reg_get_predefined_key_by_name(struct registry_context *ctx, ctx 391 source4/lib/registry/registry.h WERROR reg_get_predefined_key(struct registry_context *ctx, ctx 435 source4/lib/registry/registry.h WERROR reg_get_sec_desc(TALLOC_CTX *ctx, const struct registry_key *key, ctx 455 source4/lib/registry/registry.h WERROR reg_key_del_abs(struct registry_context *ctx, const char *path); ctx 456 source4/lib/registry/registry.h WERROR reg_key_add_abs(TALLOC_CTX *mem_ctx, struct registry_context *ctx, ctx 460 source4/lib/registry/registry.h WERROR reg_load_key(struct registry_context *ctx, struct registry_key *key, ctx 468 source4/lib/registry/registry.h struct registry_key *reg_import_hive_key(struct registry_context *ctx, ctx 487 source4/lib/registry/registry.h WERROR reg_diff_apply(struct registry_context *ctx, ctx 494 source4/lib/registry/registry.h WERROR reg_dotreg_diff_save(TALLOC_CTX *ctx, const char *filename, ctx 498 source4/lib/registry/registry.h WERROR reg_preg_diff_save(TALLOC_CTX *ctx, const char *filename, ctx 522 source4/lib/registry/registry.h WERROR local_get_predefined_key(struct registry_context *ctx, ctx 99 source4/lib/registry/rpc.c static WERROR rpc_get_predefined_key(struct registry_context *ctx, ctx 105 source4/lib/registry/rpc.c struct rpc_registry_context *rctx = talloc_get_type(ctx, struct rpc_registry_context); ctx 119 source4/lib/registry/rpc.c mykeydata = talloc_zero(ctx, struct rpc_key); ctx 120 source4/lib/registry/rpc.c mykeydata->key.context = ctx; ctx 479 source4/lib/registry/rpc.c _PUBLIC_ WERROR reg_open_remote(struct registry_context **ctx, ctx 508 source4/lib/registry/rpc.c *ctx = NULL; ctx 512 source4/lib/registry/rpc.c *ctx = (struct registry_context *)rctx; ctx 513 source4/lib/registry/rpc.c (*ctx)->ops = ®_backend_rpc; ctx 28 source4/lib/registry/samba.c static WERROR mount_samba_hive(struct registry_context *ctx, ctx 40 source4/lib/registry/samba.c location = talloc_asprintf(ctx, "%s/%s.ldb", ctx 44 source4/lib/registry/samba.c error = reg_open_hive(ctx, location, auth_info, creds, event_ctx, lp_ctx, &hive); ctx 47 source4/lib/registry/samba.c error = reg_open_ldb_file(ctx, location, auth_info, ctx 53 source4/lib/registry/samba.c return reg_mount_hive(ctx, hive, hive_id, NULL); ctx 58 source4/lib/registry/samba.c struct registry_context **ctx, ctx 66 source4/lib/registry/samba.c result = reg_open_local(mem_ctx, ctx); ctx 71 source4/lib/registry/samba.c mount_samba_hive(*ctx, ev_ctx, lp_ctx, session_info, credentials, ctx 74 source4/lib/registry/samba.c mount_samba_hive(*ctx, ev_ctx, lp_ctx, session_info, credentials, ctx 79 source4/lib/registry/samba.c mount_samba_hive(*ctx, ev_ctx, lp_ctx, session_info, credentials, ctx 82 source4/lib/registry/samba.c mount_samba_hive(*ctx, ev_ctx, lp_ctx, session_info, credentials, ctx 32 source4/lib/registry/tests/generic.c static bool test_str_regtype(struct torture_context *ctx) ctx 34 source4/lib/registry/tests/generic.c torture_assert_str_equal(ctx, str_regtype(1), ctx 36 source4/lib/registry/tests/generic.c torture_assert_str_equal(ctx, str_regtype(4), ctx 43 source4/lib/registry/tests/generic.c static bool test_reg_val_data_string_dword(struct torture_context *ctx) ctx 47 source4/lib/registry/tests/generic.c torture_assert_str_equal(ctx, "0x20", ctx 48 source4/lib/registry/tests/generic.c reg_val_data_string(ctx, lp_iconv_convenience(ctx->lp_ctx), REG_DWORD, db), ctx 53 source4/lib/registry/tests/generic.c static bool test_reg_val_data_string_sz(struct torture_context *ctx) ctx 56 source4/lib/registry/tests/generic.c convert_string_talloc_convenience(ctx, lp_iconv_convenience(ctx->lp_ctx), CH_UTF8, CH_UTF16, ctx 58 source4/lib/registry/tests/generic.c torture_assert_str_equal(ctx, "bla", ctx 59 source4/lib/registry/tests/generic.c reg_val_data_string(ctx, lp_iconv_convenience(ctx->lp_ctx), REG_SZ, db), ctx 62 source4/lib/registry/tests/generic.c torture_assert_str_equal(ctx, "bl", ctx 63 source4/lib/registry/tests/generic.c reg_val_data_string(ctx, lp_iconv_convenience(ctx->lp_ctx), REG_SZ, db), ctx 68 source4/lib/registry/tests/generic.c static bool test_reg_val_data_string_binary(struct torture_context *ctx) ctx 72 source4/lib/registry/tests/generic.c torture_assert_str_equal(ctx, "01020304", ctx 73 source4/lib/registry/tests/generic.c reg_val_data_string(ctx, lp_iconv_convenience(ctx->lp_ctx), REG_BINARY, db), ctx 79 source4/lib/registry/tests/generic.c static bool test_reg_val_data_string_empty(struct torture_context *ctx) ctx 82 source4/lib/registry/tests/generic.c torture_assert_str_equal(ctx, "", ctx 83 source4/lib/registry/tests/generic.c reg_val_data_string(ctx, lp_iconv_convenience(ctx->lp_ctx), REG_BINARY, db), ctx 88 source4/lib/registry/tests/generic.c static bool test_reg_val_description(struct torture_context *ctx) ctx 91 source4/lib/registry/tests/generic.c convert_string_talloc_convenience(ctx, lp_iconv_convenience(ctx->lp_ctx), CH_UTF8, CH_UTF16, ctx 95 source4/lib/registry/tests/generic.c torture_assert_str_equal(ctx, "camel = REG_SZ : stationary traveller", ctx 96 source4/lib/registry/tests/generic.c reg_val_description(ctx, lp_iconv_convenience(ctx->lp_ctx), "camel", REG_SZ, data), ctx 102 source4/lib/registry/tests/generic.c static bool test_reg_val_description_nullname(struct torture_context *ctx) ctx 105 source4/lib/registry/tests/generic.c convert_string_talloc_convenience(ctx, lp_iconv_convenience(ctx->lp_ctx), CH_UTF8, CH_UTF16, ctx 109 source4/lib/registry/tests/generic.c torture_assert_str_equal(ctx, "<No Name> = REG_SZ : west berlin", ctx 110 source4/lib/registry/tests/generic.c reg_val_description(ctx, lp_iconv_convenience(ctx->lp_ctx), NULL, REG_SZ, data), ctx 38 source4/lib/registry/tools/regdiff.c struct registry_context *ctx; ctx 45 source4/lib/registry/tools/regdiff.c error = reg_open_samba(NULL, &ctx, ev_ctx, lp_ctx, NULL, cmdline_credentials); ctx 48 source4/lib/registry/tools/regdiff.c error = reg_open_remote(&ctx, NULL, cmdline_credentials, lp_ctx, ctx 52 source4/lib/registry/tools/regdiff.c error = reg_open_local(NULL, &ctx); ctx 61 source4/lib/registry/tools/regdiff.c return ctx; ctx 84 source4/lib/registry/tools/regdiff.c TALLOC_CTX *ctx; ctx 89 source4/lib/registry/tools/regdiff.c ctx = talloc_init("regdiff"); ctx 133 source4/lib/registry/tools/regdiff.c error = reg_dotreg_diff_save(ctx, outputfile, lp_iconv_convenience(cmdline_lp_ctx), &callbacks, ctx 51 source4/lib/registry/tools/regshell.c static WERROR cmd_info(struct regshell_context *ctx, int argc, char **argv) ctx 64 source4/lib/registry/tools/regshell.c error = reg_key_get_info(ctx, ctx->current, &classname, &num_subkeys, &num_values, ctx 72 source4/lib/registry/tools/regshell.c printf("Name: %s\n", strchr(ctx->path, '\\')?strrchr(ctx->path, '\\')+1: ctx 73 source4/lib/registry/tools/regshell.c ctx->path); ctx 74 source4/lib/registry/tools/regshell.c printf("Full path: %s\n", ctx->path); ctx 91 source4/lib/registry/tools/regshell.c error = reg_get_sec_desc(ctx, ctx->current, &sec_desc); ctx 103 source4/lib/registry/tools/regshell.c static WERROR cmd_predef(struct regshell_context *ctx, int argc, char **argv) ctx 108 source4/lib/registry/tools/regshell.c } else if (!ctx) { ctx 111 source4/lib/registry/tools/regshell.c WERROR error = reg_get_predefined_key_by_name(ctx->registry, ctx 120 source4/lib/registry/tools/regshell.c ctx->path = strupper_talloc(ctx, argv[1]); ctx 121 source4/lib/registry/tools/regshell.c ctx->current = ret; ctx 127 source4/lib/registry/tools/regshell.c static WERROR cmd_pwd(struct regshell_context *ctx, ctx 130 source4/lib/registry/tools/regshell.c printf("%s\n", ctx->path); ctx 134 source4/lib/registry/tools/regshell.c static WERROR cmd_set(struct regshell_context *ctx, int argc, char **argv) ctx 144 source4/lib/registry/tools/regshell.c if (!reg_string_to_val(ctx, lp_iconv_convenience(cmdline_lp_ctx), ctx 151 source4/lib/registry/tools/regshell.c error = reg_val_set(ctx->current, argv[1], val.data_type, val.data); ctx 160 source4/lib/registry/tools/regshell.c static WERROR cmd_ck(struct regshell_context *ctx, int argc, char **argv) ctx 166 source4/lib/registry/tools/regshell.c error = reg_open_key(ctx->registry, ctx->current, argv[1], ctx 174 source4/lib/registry/tools/regshell.c ctx->path = talloc_asprintf(ctx, "%s\\%s", ctx->path, argv[1]); ctx 175 source4/lib/registry/tools/regshell.c ctx->current = nkey; ctx 177 source4/lib/registry/tools/regshell.c printf("New path is: %s\n", ctx->path); ctx 182 source4/lib/registry/tools/regshell.c static WERROR cmd_print(struct regshell_context *ctx, int argc, char **argv) ctx 193 source4/lib/registry/tools/regshell.c error = reg_key_get_value_by_name(ctx, ctx->current, argv[1], ctx 201 source4/lib/registry/tools/regshell.c reg_val_data_string(ctx, lp_iconv_convenience(cmdline_lp_ctx), value_type, value_data)); ctx 206 source4/lib/registry/tools/regshell.c static WERROR cmd_ls(struct regshell_context *ctx, int argc, char **argv) ctx 214 source4/lib/registry/tools/regshell.c for (i = 0; W_ERROR_IS_OK(error = reg_key_get_subkey_by_index(ctx, ctx 215 source4/lib/registry/tools/regshell.c ctx->current, ctx 229 source4/lib/registry/tools/regshell.c for (i = 0; W_ERROR_IS_OK(error = reg_key_get_value_by_index(ctx, ctx 230 source4/lib/registry/tools/regshell.c ctx->current, i, &name, &valuetype, &valuedata)); i++) ctx 232 source4/lib/registry/tools/regshell.c reg_val_data_string(ctx, lp_iconv_convenience(cmdline_lp_ctx), valuetype, valuedata)); ctx 236 source4/lib/registry/tools/regshell.c static WERROR cmd_mkkey(struct regshell_context *ctx, int argc, char **argv) ctx 246 source4/lib/registry/tools/regshell.c error = reg_key_add_name(ctx, ctx->current, argv[1], 0, NULL, &tmp); ctx 257 source4/lib/registry/tools/regshell.c static WERROR cmd_rmkey(struct regshell_context *ctx, ctx 267 source4/lib/registry/tools/regshell.c error = reg_key_del(ctx->current, argv[1]); ctx 278 source4/lib/registry/tools/regshell.c static WERROR cmd_rmval(struct regshell_context *ctx, int argc, char **argv) ctx 287 source4/lib/registry/tools/regshell.c error = reg_del_value(ctx->current, argv[1]); ctx 298 source4/lib/registry/tools/regshell.c _NORETURN_ static WERROR cmd_exit(struct regshell_context *ctx, ctx 305 source4/lib/registry/tools/regshell.c static WERROR cmd_help(struct regshell_context *ctx, int, char **); ctx 311 source4/lib/registry/tools/regshell.c WERROR (*handle)(struct regshell_context *ctx, int argc, char **argv); ctx 328 source4/lib/registry/tools/regshell.c static WERROR cmd_help(struct regshell_context *ctx, ctx 340 source4/lib/registry/tools/regshell.c static WERROR process_cmd(struct regshell_context *ctx, ctx 355 source4/lib/registry/tools/regshell.c return regshell_cmds[i].handle(ctx, argc, argv); ctx 495 source4/lib/registry/tools/regshell.c struct regshell_context *ctx; ctx 513 source4/lib/registry/tools/regshell.c ctx = talloc_zero(NULL, struct regshell_context); ctx 515 source4/lib/registry/tools/regshell.c ev_ctx = s4_event_context_init(ctx); ctx 518 source4/lib/registry/tools/regshell.c ctx->registry = reg_common_open_remote(remote, ev_ctx, ctx 521 source4/lib/registry/tools/regshell.c ctx->current = reg_common_open_file(file, ev_ctx, cmdline_lp_ctx, cmdline_credentials); ctx 522 source4/lib/registry/tools/regshell.c if (ctx->current == NULL) ctx 524 source4/lib/registry/tools/regshell.c ctx->registry = ctx->current->context; ctx 525 source4/lib/registry/tools/regshell.c ctx->path = talloc_strdup(ctx, ""); ctx 527 source4/lib/registry/tools/regshell.c ctx->registry = reg_common_open_local(cmdline_credentials, ev_ctx, cmdline_lp_ctx); ctx 530 source4/lib/registry/tools/regshell.c if (ctx->registry == NULL) ctx 533 source4/lib/registry/tools/regshell.c if (ctx->current == NULL) { ctx 537 source4/lib/registry/tools/regshell.c (ctx->current == NULL); i++) { ctx 539 source4/lib/registry/tools/regshell.c err = reg_get_predefined_key(ctx->registry, ctx 541 source4/lib/registry/tools/regshell.c &ctx->current); ctx 543 source4/lib/registry/tools/regshell.c ctx->path = talloc_strdup(ctx, ctx 547 source4/lib/registry/tools/regshell.c ctx->current = NULL; ctx 552 source4/lib/registry/tools/regshell.c if (ctx->current == NULL) { ctx 562 source4/lib/registry/tools/regshell.c asprintf(&prompt, "%s> ", ctx->path); ctx 564 source4/lib/registry/tools/regshell.c current_key = ctx->current; /* No way to pass a void * pointer ctx 574 source4/lib/registry/tools/regshell.c ret = W_ERROR_IS_OK(process_cmd(ctx, line)); ctx 579 source4/lib/registry/tools/regshell.c talloc_free(ctx); ctx 183 source4/lib/registry/util.c static WERROR get_abs_parent(TALLOC_CTX *mem_ctx, struct registry_context *ctx, ctx 196 source4/lib/registry/util.c error = reg_open_key_abs(mem_ctx, ctx, parent_name, parent); ctx 206 source4/lib/registry/util.c WERROR reg_key_del_abs(struct registry_context *ctx, const char *path) ctx 217 source4/lib/registry/util.c error = get_abs_parent(mem_ctx, ctx, path, &parent, &n); ctx 227 source4/lib/registry/util.c WERROR reg_key_add_abs(TALLOC_CTX *mem_ctx, struct registry_context *ctx, ctx 240 source4/lib/registry/util.c error = get_abs_parent(mem_ctx, ctx, path, &parent, &n); ctx 41 source4/lib/registry/wine.c WERROR reg_open_wine(struct registry_key **ctx) ctx 154 source4/lib/socket/connect.c struct composite_context *ctx; ctx 155 source4/lib/socket/connect.c ctx = socket_connect_send(sock, my_address, ctx 157 source4/lib/socket/connect.c return socket_connect_recv(ctx); ctx 247 source4/lib/socket/connect_multi.c _PUBLIC_ NTSTATUS socket_connect_multi_recv(struct composite_context *ctx, ctx 252 source4/lib/socket/connect_multi.c NTSTATUS status = composite_wait(ctx); ctx 255 source4/lib/socket/connect_multi.c talloc_get_type(ctx->private_data, ctx 260 source4/lib/socket/connect_multi.c talloc_free(ctx); ctx 272 source4/lib/socket/connect_multi.c struct composite_context *ctx = ctx 277 source4/lib/socket/connect_multi.c return socket_connect_multi_recv(ctx, mem_ctx, result, result_port); ctx 185 source4/lib/socket/socket.h NTSTATUS socket_connect_recv(struct composite_context *ctx); ctx 198 source4/lib/socket/socket.h NTSTATUS socket_connect_multi_recv(struct composite_context *ctx, ctx 65 source4/lib/tdr/tdr.c NTSTATUS tdr_pull_uint8(struct tdr_pull *tdr, TALLOC_CTX *ctx, uint8_t *v) ctx 87 source4/lib/tdr/tdr.c NTSTATUS tdr_pull_uint16(struct tdr_pull *tdr, TALLOC_CTX *ctx, uint16_t *v) ctx 109 source4/lib/tdr/tdr.c NTSTATUS tdr_pull_uint32(struct tdr_pull *tdr, TALLOC_CTX *ctx, uint32_t *v) ctx 131 source4/lib/tdr/tdr.c NTSTATUS tdr_pull_charset(struct tdr_pull *tdr, TALLOC_CTX *ctx, const char **v, uint32_t length, uint32_t el_size, charset_t chset) ctx 150 source4/lib/tdr/tdr.c *v = talloc_strdup(ctx, ""); ctx 156 source4/lib/tdr/tdr.c if (!convert_string_talloc_convenience(ctx, tdr->iconv_convenience, chset, CH_UNIX, tdr->data.data+tdr->offset, el_size*length, discard_const_p(void *, v), &ret, false)) { ctx 199 source4/lib/tdr/tdr.c NTSTATUS tdr_pull_hyper(struct tdr_pull *tdr, TALLOC_CTX *ctx, uint64_t *v) ctx 232 source4/lib/tdr/tdr.c NTSTATUS tdr_pull_NTTIME(struct tdr_pull *tdr, TALLOC_CTX *ctx, NTTIME *t) ctx 234 source4/lib/tdr/tdr.c TDR_CHECK(tdr_pull_hyper(tdr, ctx, t)); ctx 249 source4/lib/tdr/tdr.c NTSTATUS tdr_pull_time_t(struct tdr_pull *tdr, TALLOC_CTX *ctx, time_t *t) ctx 252 source4/lib/tdr/tdr.c TDR_CHECK(tdr_pull_uint32(tdr, ctx, &tt)); ctx 309 source4/lib/tdr/tdr.c NTSTATUS tdr_pull_DATA_BLOB(struct tdr_pull *tdr, TALLOC_CTX *ctx, DATA_BLOB *blob) ctx 57 source4/lib/tdr/tdr.h #define TDR_ALLOC(ctx, s, n) do { \ ctx 58 source4/lib/tdr/tdr.h (s) = talloc_array_size(ctx, sizeof(*(s)), n); \ ctx 165 source4/lib/wmi/tools/wmic.c struct com_context *ctx = NULL; ctx 169 source4/lib/wmi/tools/wmic.c wmi_init(&ctx, cmdline_credentials); ctx 173 source4/lib/wmi/tools/wmic.c result = WBEM_ConnectServer(ctx, args.hostname, args.ns, 0, 0, 0, 0, 0, 0, &pWS); ctx 178 source4/lib/wmi/tools/wmic.c result = IWbemServices_ExecQuery(pWS, ctx, queryLanguage, query, WBEM_FLAG_RETURN_IMMEDIATELY | WBEM_FLAG_ENSURE_LOCATABLE, NULL, &pEnum); ctx 181 source4/lib/wmi/tools/wmic.c IEnumWbemClassObject_Reset(pEnum, ctx); ctx 188 source4/lib/wmi/tools/wmic.c result = IEnumWbemClassObject_SmartNext(pEnum, ctx, 0xFFFFFFFF, cnt, co, &ret); ctx 200 source4/lib/wmi/tools/wmic.c class_name = talloc_strdup(ctx, co[i]->obj_class->__CLASS); ctx 208 source4/lib/wmi/tools/wmic.c s = string_CIMVAR(ctx, &co[i]->instance->data[j], co[i]->obj_class->properties[j].property.desc->cimtype & CIM_TYPEMASK); ctx 214 source4/lib/wmi/tools/wmic.c talloc_free(ctx); ctx 219 source4/lib/wmi/tools/wmic.c talloc_free(ctx); ctx 143 source4/lib/wmi/tools/wmis.c TALLOC_CTX *ctx; ctx 146 source4/lib/wmi/tools/wmis.c ctx = talloc_new(0); ctx 150 source4/lib/wmi/tools/wmis.c result = IWbemServices_GetObject(pWS, ctx, objectPath, ctx 154 source4/lib/wmi/tools/wmis.c result = IWbemClassObject_GetMethod(wco, ctx, "Create", 0, &inc, &outc); ctx 157 source4/lib/wmi/tools/wmis.c result = IWbemClassObject_SpawnInstance(inc, ctx, 0, &in); ctx 161 source4/lib/wmi/tools/wmis.c result = IWbemClassObject_Put(in, ctx, "CommandLine", 0, &v, 0); ctx 165 source4/lib/wmi/tools/wmis.c result = IWbemServices_ExecMethod(pWS, ctx, objectPath, methodName, 0, NULL, in, &out, ctx 170 source4/lib/wmi/tools/wmis.c result = WbemClassObject_Get(out->object_data, ctx, "ReturnValue", 0, &v, 0, 0); ctx 175 source4/lib/wmi/tools/wmis.c talloc_free(ctx); ctx 182 source4/lib/wmi/tools/wmis.c struct com_context *ctx = NULL; ctx 193 source4/lib/wmi/tools/wmis.c wmi_init(&ctx, cmdline_credentials); ctx 194 source4/lib/wmi/tools/wmis.c result = WBEM_ConnectServer(ctx, args.hostname, "root\\cimv2", 0, 0, 0, 0, 0, 0, &pWS); ctx 205 source4/lib/wmi/tools/wmis.c result = IWbemServices_ExecNotificationQuery(pWS, ctx, queryLanguage, ctx 211 source4/lib/wmi/tools/wmis.c result = IEnumWbemClassObject_SmartNext(pEnum, ctx, 0xFFFFFFFF, 1, &co, &ret); ctx 219 source4/lib/wmi/tools/wmis.c talloc_free(ctx); ctx 118 source4/lib/wmi/wbemdata.c WERROR dcom_IWbemClassObject_from_WbemClassObject(struct com_context *ctx, struct IWbemClassObject **_p, struct IWbemClassObject *wco) ctx 122 source4/lib/wmi/wbemdata.c p = talloc_zero(ctx, struct IWbemClassObject); ctx 123 source4/lib/wmi/wbemdata.c p->ctx = ctx; ctx 142 source4/lib/wmi/wbemdata.c if (in) dcom_IWbemClassObject_from_WbemClassObject(d->ctx, in, wco->obj_methods->method[i].in); ctx 143 source4/lib/wmi/wbemdata.c if (out) dcom_IWbemClassObject_from_WbemClassObject(d->ctx, out, wco->obj_methods->method[i].out); ctx 179 source4/lib/wmi/wbemdata.c dcom_IWbemClassObject_from_WbemClassObject(d->ctx, instance, nwco); ctx 278 source4/lib/wmi/wbemdata.c ndr->current_mem_ctx = d->ctx; ctx 323 source4/lib/wmi/wbemdata.c apObjects[i] = talloc_zero(d->ctx, struct IWbemClassObject); ctx 326 source4/lib/wmi/wbemdata.c ndr->current_mem_ctx = d->ctx; ctx 330 source4/lib/wmi/wbemdata.c apObjects[i] = talloc_zero(d->ctx, struct IWbemClassObject); ctx 335 source4/lib/wmi/wbemdata.c ndr->current_mem_ctx = d->ctx; ctx 402 source4/lib/wmi/wbemdata.c c = composite_create(d->ctx, d->ctx->event_ctx); ctx 406 source4/lib/wmi/wbemdata.c ox = object_exporter_by_ip(d->ctx, d); ctx 29 source4/lib/wmi/wmi.h WERROR WBEM_ConnectServer(struct com_context *ctx, const char *server, const char *nspace, ctx 46 source4/lib/wmi/wmi.h void wmi_init(struct com_context **ctx, struct cli_credentials *credentials); ctx 2575 source4/lib/wmi/wmi_wrap.c WERROR WBEM_ConnectServer(struct com_context *ctx, const char *server, const char *nspace, const char *user, const char *password, ctx 40 source4/lib/wmi/wmicore.c void wmi_init(struct com_context **ctx, struct cli_credentials *credentials, ctx 48 source4/lib/wmi/wmicore.c com_init_ctx(ctx, NULL); ctx 49 source4/lib/wmi/wmicore.c dcom_client_init(*ctx, credentials); ctx 53 source4/lib/wmi/wmicore.c WERROR WBEM_ConnectServer(struct com_context *ctx, const char *server, const uint16_t *nspace, ctx 66 source4/lib/wmi/wmicore.c result = dcom_create_object(ctx, &clsid, server, 1, &iid, &mqi, &coresult); ctx 73 source4/lib/wmi/wmicore.c result = IWbemLevel1Login_NTLMLogin(pL, ctx, nspace, locale, flags, wbem_ctx, services); ctx 76 source4/lib/wmi/wmicore.c IUnknown_Release((struct IUnknown *)pL, ctx); ctx 69 source4/libcli/auth/credentials.c HMACMD5Context ctx; ctx 76 source4/libcli/auth/credentials.c hmac_md5_init_rfc2104(machine_password->hash, sizeof(machine_password->hash), &ctx); ctx 82 source4/libcli/auth/credentials.c hmac_md5_update(tmp, sizeof(tmp), &ctx); ctx 83 source4/libcli/auth/credentials.c hmac_md5_final(creds->session_key, &ctx); ctx 126 source4/libcli/auth/smbencrypt.c HMACMD5Context ctx; ctx 176 source4/libcli/auth/smbencrypt.c hmac_md5_init_limK_to_64(owf, 16, &ctx); ctx 177 source4/libcli/auth/smbencrypt.c hmac_md5_update((const void *)user, user_byte_len, &ctx); ctx 178 source4/libcli/auth/smbencrypt.c hmac_md5_update((const void *)domain, domain_byte_len, &ctx); ctx 179 source4/libcli/auth/smbencrypt.c hmac_md5_final(kr_buf, &ctx); ctx 229 source4/libcli/auth/smbencrypt.c HMACMD5Context ctx; ctx 231 source4/libcli/auth/smbencrypt.c hmac_md5_init_limK_to_64(kr, 16, &ctx); ctx 232 source4/libcli/auth/smbencrypt.c hmac_md5_update(srv_chal->data, srv_chal->length, &ctx); ctx 233 source4/libcli/auth/smbencrypt.c hmac_md5_update(smbcli_chal->data, smbcli_chal->length, &ctx); ctx 234 source4/libcli/auth/smbencrypt.c hmac_md5_final(resp_buf, &ctx); ctx 249 source4/libcli/auth/smbencrypt.c HMACMD5Context ctx; ctx 251 source4/libcli/auth/smbencrypt.c hmac_md5_init_limK_to_64(kr, 16, &ctx); ctx 252 source4/libcli/auth/smbencrypt.c hmac_md5_update(nt_resp, 16, &ctx); ctx 253 source4/libcli/auth/smbencrypt.c hmac_md5_final((uint8_t *)sess_key, &ctx); ctx 106 source4/libcli/composite/composite.c _PUBLIC_ void composite_error(struct composite_context *ctx, NTSTATUS status) ctx 111 source4/libcli/composite/composite.c composite_done(ctx); ctx 114 source4/libcli/composite/composite.c if (!ctx->used_wait && !ctx->async.fn) { ctx 115 source4/libcli/composite/composite.c event_add_timed(ctx->event_ctx, ctx, timeval_zero(), composite_trigger, ctx); ctx 117 source4/libcli/composite/composite.c ctx->status = status; ctx 118 source4/libcli/composite/composite.c ctx->state = COMPOSITE_STATE_ERROR; ctx 119 source4/libcli/composite/composite.c if (ctx->async.fn != NULL) { ctx 120 source4/libcli/composite/composite.c ctx->async.fn(ctx); ctx 124 source4/libcli/composite/composite.c _PUBLIC_ bool composite_nomem(const void *p, struct composite_context *ctx) ctx 129 source4/libcli/composite/composite.c composite_error(ctx, NT_STATUS_NO_MEMORY); ctx 133 source4/libcli/composite/composite.c _PUBLIC_ bool composite_is_ok(struct composite_context *ctx) ctx 135 source4/libcli/composite/composite.c if (NT_STATUS_IS_OK(ctx->status)) { ctx 138 source4/libcli/composite/composite.c composite_error(ctx, ctx->status); ctx 142 source4/libcli/composite/composite.c _PUBLIC_ void composite_done(struct composite_context *ctx) ctx 144 source4/libcli/composite/composite.c if (!ctx->used_wait && !ctx->async.fn) { ctx 145 source4/libcli/composite/composite.c event_add_timed(ctx->event_ctx, ctx, timeval_zero(), composite_trigger, ctx); ctx 147 source4/libcli/composite/composite.c ctx->state = COMPOSITE_STATE_DONE; ctx 148 source4/libcli/composite/composite.c if (ctx->async.fn != NULL) { ctx 149 source4/libcli/composite/composite.c ctx->async.fn(ctx); ctx 153 source4/libcli/composite/composite.c _PUBLIC_ void composite_continue(struct composite_context *ctx, ctx 158 source4/libcli/composite/composite.c if (composite_nomem(new_ctx, ctx)) return; ctx 170 source4/libcli/composite/composite.c _PUBLIC_ void composite_continue_rpc(struct composite_context *ctx, ctx 175 source4/libcli/composite/composite.c if (composite_nomem(new_req, ctx)) return; ctx 180 source4/libcli/composite/composite.c _PUBLIC_ void composite_continue_irpc(struct composite_context *ctx, ctx 185 source4/libcli/composite/composite.c if (composite_nomem(new_req, ctx)) return; ctx 190 source4/libcli/composite/composite.c _PUBLIC_ void composite_continue_smb(struct composite_context *ctx, ctx 195 source4/libcli/composite/composite.c if (composite_nomem(new_req, ctx)) return; ctx 200 source4/libcli/composite/composite.c _PUBLIC_ void composite_continue_smb2(struct composite_context *ctx, ctx 205 source4/libcli/composite/composite.c if (composite_nomem(new_req, ctx)) return; ctx 210 source4/libcli/composite/composite.c _PUBLIC_ void composite_continue_nbt(struct composite_context *ctx, ctx 215 source4/libcli/composite/composite.c if (composite_nomem(new_req, ctx)) return; ctx 77 source4/libcli/composite/composite.h bool composite_nomem(const void *p, struct composite_context *ctx); ctx 78 source4/libcli/composite/composite.h void composite_continue(struct composite_context *ctx, ctx 82 source4/libcli/composite/composite.h void composite_continue_rpc(struct composite_context *ctx, ctx 86 source4/libcli/composite/composite.h void composite_continue_irpc(struct composite_context *ctx, ctx 90 source4/libcli/composite/composite.h void composite_continue_smb(struct composite_context *ctx, ctx 94 source4/libcli/composite/composite.h void composite_continue_smb2(struct composite_context *ctx, ctx 98 source4/libcli/composite/composite.h void composite_continue_nbt(struct composite_context *ctx, ctx 102 source4/libcli/composite/composite.h bool composite_is_ok(struct composite_context *ctx); ctx 103 source4/libcli/composite/composite.h void composite_done(struct composite_context *ctx); ctx 104 source4/libcli/composite/composite.h void composite_error(struct composite_context *ctx, NTSTATUS status); ctx 33 source4/libcli/finddcs.c struct composite_context *ctx; ctx 50 source4/libcli/finddcs.c static void finddcs_name_resolved(struct composite_context *ctx); ctx 87 source4/libcli/finddcs.c state->ctx = c; ctx 119 source4/libcli/finddcs.c static void finddcs_name_resolved(struct composite_context *ctx) ctx 122 source4/libcli/finddcs.c talloc_get_type(ctx->async.private_data, struct finddcs_state); ctx 127 source4/libcli/finddcs.c state->ctx->status = resolve_name_recv(ctx, state, &address); ctx 128 source4/libcli/finddcs.c if (!composite_is_ok(state->ctx)) return; ctx 135 source4/libcli/finddcs.c if (composite_nomem(state->dcs, state->ctx)) return; ctx 158 source4/libcli/finddcs.c if (composite_nomem(state->r.in.my_accountname, state->ctx)) return; ctx 170 source4/libcli/finddcs.c composite_continue_irpc(state->ctx, ireq, finddcs_getdc_replied, state); ctx 179 source4/libcli/finddcs.c state->ctx->status = irpc_call_recv(ireq); ctx 180 source4/libcli/finddcs.c if (!composite_is_ok(state->ctx)) return; ctx 183 source4/libcli/finddcs.c composite_done(state->ctx); ctx 202 source4/libcli/finddcs.c nbtsock = nbt_name_socket_init(state, state->ctx->event_ctx, ctx 204 source4/libcli/finddcs.c if (composite_nomem(nbtsock, state->ctx)) return; ctx 207 source4/libcli/finddcs.c if (composite_nomem(name_req, state->ctx)) return; ctx 209 source4/libcli/finddcs.c composite_continue_nbt(state->ctx, ctx 220 source4/libcli/finddcs.c state->ctx->status = nbt_name_status_recv(name_req, state, &state->node_status); ctx 221 source4/libcli/finddcs.c if (!composite_is_ok(state->ctx)) return; ctx 235 source4/libcli/finddcs.c composite_done(state->ctx); ctx 239 source4/libcli/finddcs.c composite_error(state->ctx, NT_STATUS_NO_LOGON_SERVERS); ctx 285 source4/libcli/ldap/ldap_client.c struct composite_context *ctx; ctx 289 source4/libcli/ldap/ldap_client.c static void ldap_connect_recv_unix_conn(struct composite_context *ctx); ctx 290 source4/libcli/ldap/ldap_client.c static void ldap_connect_recv_tcp_conn(struct composite_context *ctx); ctx 295 source4/libcli/ldap/ldap_client.c struct composite_context *result, *ctx; ctx 308 source4/libcli/ldap/ldap_client.c state->ctx = result; ctx 340 source4/libcli/ldap/ldap_client.c if (composite_nomem(conn->host, state->ctx)) { ctx 348 source4/libcli/ldap/ldap_client.c composite_error(state->ctx, NT_STATUS_INVALID_PARAMETER); ctx 360 source4/libcli/ldap/ldap_client.c ctx = socket_connect_send(conn->sock, NULL, unix_addr, ctx 362 source4/libcli/ldap/ldap_client.c ctx->async.fn = ldap_connect_recv_unix_conn; ctx 363 source4/libcli/ldap/ldap_client.c ctx->async.private_data = state; ctx 368 source4/libcli/ldap/ldap_client.c if (!NT_STATUS_IS_OK(state->ctx->status)) { ctx 369 source4/libcli/ldap/ldap_client.c composite_error(state->ctx, status); ctx 373 source4/libcli/ldap/ldap_client.c ctx = socket_connect_multi_send(state, conn->host, 1, &conn->port, ctx 375 source4/libcli/ldap/ldap_client.c if (ctx == NULL) goto failed; ctx 377 source4/libcli/ldap/ldap_client.c ctx->async.fn = ldap_connect_recv_tcp_conn; ctx 378 source4/libcli/ldap/ldap_client.c ctx->async.private_data = state; ctx 386 source4/libcli/ldap/ldap_client.c static void ldap_connect_got_sock(struct composite_context *ctx, ctx 394 source4/libcli/ldap/ldap_client.c composite_error(ctx, NT_STATUS_INTERNAL_ERROR); ctx 445 source4/libcli/ldap/ldap_client.c composite_done(ctx); ctx 448 source4/libcli/ldap/ldap_client.c static void ldap_connect_recv_tcp_conn(struct composite_context *ctx) ctx 451 source4/libcli/ldap/ldap_client.c talloc_get_type(ctx->async.private_data, ctx 455 source4/libcli/ldap/ldap_client.c NTSTATUS status = socket_connect_multi_recv(ctx, state, &conn->sock, ctx 458 source4/libcli/ldap/ldap_client.c composite_error(state->ctx, status); ctx 462 source4/libcli/ldap/ldap_client.c ldap_connect_got_sock(state->ctx, conn); ctx 465 source4/libcli/ldap/ldap_client.c static void ldap_connect_recv_unix_conn(struct composite_context *ctx) ctx 468 source4/libcli/ldap/ldap_client.c talloc_get_type(ctx->async.private_data, ctx 472 source4/libcli/ldap/ldap_client.c NTSTATUS status = socket_connect_recv(ctx); ctx 474 source4/libcli/ldap/ldap_client.c if (!NT_STATUS_IS_OK(state->ctx->status)) { ctx 475 source4/libcli/ldap/ldap_client.c composite_error(state->ctx, status); ctx 479 source4/libcli/ldap/ldap_client.c ldap_connect_got_sock(state->ctx, conn); ctx 482 source4/libcli/ldap/ldap_client.c _PUBLIC_ NTSTATUS ldap_connect_recv(struct composite_context *ctx) ctx 484 source4/libcli/ldap/ldap_client.c NTSTATUS status = composite_wait(ctx); ctx 485 source4/libcli/ldap/ldap_client.c talloc_free(ctx); ctx 491 source4/libcli/ldap/ldap_client.c struct composite_context *ctx = ldap_connect_send(conn, url); ctx 492 source4/libcli/ldap/ldap_client.c return ldap_connect_recv(ctx); ctx 116 source4/libcli/ldap/ldap_client.h NTSTATUS ldap_connect_recv(struct composite_context *ctx); ctx 33 source4/libcli/raw/clisocket.c struct composite_context *ctx; ctx 46 source4/libcli/raw/clisocket.c static void smbcli_sock_connect_recv_conn(struct composite_context *ctx); ctx 56 source4/libcli/raw/clisocket.c struct composite_context *result, *ctx; ctx 69 source4/libcli/raw/clisocket.c state->ctx = result; ctx 83 source4/libcli/raw/clisocket.c ctx = socket_connect_multi_send(state, host_addr, ctx 86 source4/libcli/raw/clisocket.c state->ctx->event_ctx); ctx 87 source4/libcli/raw/clisocket.c if (ctx == NULL) goto failed; ctx 88 source4/libcli/raw/clisocket.c ctx->async.fn = smbcli_sock_connect_recv_conn; ctx 89 source4/libcli/raw/clisocket.c ctx->async.private_data = state; ctx 97 source4/libcli/raw/clisocket.c static void smbcli_sock_connect_recv_conn(struct composite_context *ctx) ctx 100 source4/libcli/raw/clisocket.c talloc_get_type(ctx->async.private_data, ctx 105 source4/libcli/raw/clisocket.c state->ctx->status = socket_connect_multi_recv(ctx, state, &sock, ctx 107 source4/libcli/raw/clisocket.c if (!composite_is_ok(state->ctx)) return; ctx 109 source4/libcli/raw/clisocket.c state->ctx->status = ctx 111 source4/libcli/raw/clisocket.c if (!composite_is_ok(state->ctx)) return; ctx 115 source4/libcli/raw/clisocket.c if (composite_nomem(state->result, state->ctx)) return; ctx 121 source4/libcli/raw/clisocket.c state->result->event.ctx = ctx 122 source4/libcli/raw/clisocket.c talloc_reference(state->result, state->ctx->event_ctx); ctx 123 source4/libcli/raw/clisocket.c if (composite_nomem(state->result->event.ctx, state->ctx)) return; ctx 125 source4/libcli/raw/clisocket.c composite_done(state->ctx); ctx 107 source4/libcli/raw/clitransport.c packet_set_event_context(transport->packet, transport->socket->event.ctx); ctx 117 source4/libcli/raw/clitransport.c transport->socket->event.fde = event_add_fd(transport->socket->event.ctx, ctx 316 source4/libcli/raw/clitransport.c transport->socket->event.te = event_add_timed(transport->socket->event.ctx, ctx 340 source4/libcli/raw/clitransport.c transport->socket->event.te = event_add_timed(transport->socket->event.ctx, ctx 606 source4/libcli/raw/clitransport.c event_add_timed(req->transport->socket->event.ctx, req, ctx 84 source4/libcli/raw/libcliraw.h struct tevent_context *ctx; ctx 361 source4/libcli/raw/rawrequest.c if (event_loop_once(req->transport->socket->event.ctx) != 0) { ctx 92 source4/libcli/resolve/bcast.c bool resolve_context_add_bcast_method(struct resolve_context *ctx, struct interface *ifaces, uint16_t nbt_port, int nbt_timeout) ctx 94 source4/libcli/resolve/bcast.c struct resolve_bcast_data *data = talloc(ctx, struct resolve_bcast_data); ctx 98 source4/libcli/resolve/bcast.c return resolve_context_add_method(ctx, resolve_name_bcast_send, resolve_name_bcast_recv, data); ctx 101 source4/libcli/resolve/bcast.c bool resolve_context_add_bcast_method_lp(struct resolve_context *ctx, struct loadparm_context *lp_ctx) ctx 104 source4/libcli/resolve/bcast.c load_interfaces(ctx, lp_interfaces(lp_ctx), &ifaces); ctx 105 source4/libcli/resolve/bcast.c return resolve_context_add_bcast_method(ctx, ifaces, lp_nbt_port(lp_ctx), lp_parm_int(lp_ctx, NULL, "nbt", "timeout", 1)); ctx 56 source4/libcli/resolve/host.c bool resolve_context_add_host_method(struct resolve_context *ctx) ctx 58 source4/libcli/resolve/host.c return resolve_context_add_method(ctx, resolve_name_host_send, resolve_name_host_recv, ctx 32 source4/libcli/resolve/resolve.c struct resolve_context *ctx; ctx 65 source4/libcli/resolve/resolve.c bool resolve_context_add_method(struct resolve_context *ctx, resolve_name_send_fn send_fn, ctx 68 source4/libcli/resolve/resolve.c struct resolve_method *method = talloc_zero(ctx, struct resolve_method); ctx 76 source4/libcli/resolve/resolve.c DLIST_ADD_END(ctx->methods, method, struct resolve_method *); ctx 138 source4/libcli/resolve/resolve.c struct composite_context *resolve_name_all_send(struct resolve_context *ctx, ctx 147 source4/libcli/resolve/resolve.c if (ctx == NULL || event_ctx == NULL) { ctx 151 source4/libcli/resolve/resolve.c c = composite_create(ctx, event_ctx); ctx 166 source4/libcli/resolve/resolve.c state->ctx = talloc_reference(state, ctx); ctx 167 source4/libcli/resolve/resolve.c if (composite_nomem(state->ctx, c)) return c; ctx 188 source4/libcli/resolve/resolve.c state->method = ctx->methods; ctx 223 source4/libcli/resolve/resolve.c struct composite_context *resolve_name_send(struct resolve_context *ctx, ctx 227 source4/libcli/resolve/resolve.c return resolve_name_all_send(ctx, 0, 0, name, event_ctx); ctx 250 source4/libcli/resolve/resolve.c NTSTATUS resolve_name(struct resolve_context *ctx, ctx 256 source4/libcli/resolve/resolve.c struct composite_context *c = resolve_name_send(ctx, name, ev); ctx 66 source4/libcli/resolve/wins.c bool resolve_context_add_wins_method(struct resolve_context *ctx, const char **address_list, struct interface *ifaces, uint16_t nbt_port, int nbt_timeout) ctx 68 source4/libcli/resolve/wins.c struct resolve_wins_data *wins_data = talloc(ctx, struct resolve_wins_data); ctx 73 source4/libcli/resolve/wins.c return resolve_context_add_method(ctx, resolve_name_wins_send, resolve_name_wins_recv, ctx 77 source4/libcli/resolve/wins.c bool resolve_context_add_wins_method_lp(struct resolve_context *ctx, struct loadparm_context *lp_ctx) ctx 80 source4/libcli/resolve/wins.c load_interfaces(ctx, lp_interfaces(lp_ctx), &ifaces); ctx 81 source4/libcli/resolve/wins.c return resolve_context_add_wins_method(ctx, lp_wins_server_list(lp_ctx), ifaces, lp_nbt_port(lp_ctx), lp_parm_int(lp_ctx, NULL, "nbt", "timeout", 1)); ctx 192 source4/libcli/smb2/request.c if (event_loop_once(req->transport->socket->event.ctx) != 0) { ctx 51 source4/libcli/smb2/session.c session->transport->socket->event.ctx, ctx 211 source4/libcli/smb2/session.c c = composite_create(session, session->transport->socket->event.ctx); ctx 99 source4/libcli/smb2/transport.c packet_set_event_context(transport->packet, transport->socket->event.ctx); ctx 105 source4/libcli/smb2/transport.c transport->socket->event.fde = event_add_fd(transport->socket->event.ctx, ctx 375 source4/libcli/smb2/transport.c event_add_timed(req->transport->socket->event.ctx, req, ctx 389 source4/libcli/smb2/transport.c transport->socket->event.te = event_add_timed(transport->socket->event.ctx, ctx 413 source4/libcli/smb2/transport.c transport->socket->event.te = event_add_timed(transport->socket->event.ctx, ctx 250 source4/libcli/smb_composite/appendacl.c c->event_ctx = tree->session->transport->socket->event.ctx; ctx 232 source4/libcli/smb_composite/loadfile.c c->event_ctx = tree->session->transport->socket->event.ctx; ctx 228 source4/libcli/smb_composite/savefile.c c->event_ctx = tree->session->transport->socket->event.ctx; ctx 513 source4/libcli/smb_composite/sesssetup.c c = composite_create(session, session->transport->socket->event.ctx); ctx 39 source4/libcli/smb_composite/smb2.c struct composite_context *ctx = talloc_get_type(req->async.private_data, ctx 45 source4/libcli/smb_composite/smb2.c composite_error(ctx, status); ctx 53 source4/libcli/smb_composite/smb2.c struct composite_context *ctx = talloc_get_type(req->async.private_data, ctx 60 source4/libcli/smb_composite/smb2.c status = smb2_create_recv(req, ctx, &create_parm); ctx 62 source4/libcli/smb_composite/smb2.c composite_error(ctx, status); ctx 70 source4/libcli/smb_composite/smb2.c composite_continue_smb2(ctx, req, continue_close, ctx); ctx 79 source4/libcli/smb_composite/smb2.c struct composite_context *ctx; ctx 83 source4/libcli/smb_composite/smb2.c ctx = composite_create(tree, tree->session->transport->socket->event.ctx); ctx 84 source4/libcli/smb_composite/smb2.c if (ctx == NULL) return NULL; ctx 89 source4/libcli/smb_composite/smb2.c composite_error(ctx, NT_STATUS_NOT_SUPPORTED); ctx 90 source4/libcli/smb_composite/smb2.c return ctx; ctx 110 source4/libcli/smb_composite/smb2.c composite_continue_smb2(ctx, req, continue_unlink, ctx); ctx 111 source4/libcli/smb_composite/smb2.c return ctx; ctx 132 source4/libcli/smb_composite/smb2.c struct composite_context *ctx = talloc_get_type(req->async.private_data, ctx 139 source4/libcli/smb_composite/smb2.c status = smb2_create_recv(req, ctx, &create_parm); ctx 141 source4/libcli/smb_composite/smb2.c composite_error(ctx, status); ctx 149 source4/libcli/smb_composite/smb2.c composite_continue_smb2(ctx, req, continue_close, ctx); ctx 158 source4/libcli/smb_composite/smb2.c struct composite_context *ctx; ctx 162 source4/libcli/smb_composite/smb2.c ctx = composite_create(tree, tree->session->transport->socket->event.ctx); ctx 163 source4/libcli/smb_composite/smb2.c if (ctx == NULL) return NULL; ctx 181 source4/libcli/smb_composite/smb2.c composite_continue_smb2(ctx, req, continue_mkdir, ctx); ctx 183 source4/libcli/smb_composite/smb2.c return ctx; ctx 203 source4/libcli/smb_composite/smb2.c struct composite_context *ctx = talloc_get_type(req->async.private_data, ctx 210 source4/libcli/smb_composite/smb2.c status = smb2_create_recv(req, ctx, &create_parm); ctx 212 source4/libcli/smb_composite/smb2.c composite_error(ctx, status); ctx 220 source4/libcli/smb_composite/smb2.c composite_continue_smb2(ctx, req, continue_close, ctx); ctx 229 source4/libcli/smb_composite/smb2.c struct composite_context *ctx; ctx 233 source4/libcli/smb_composite/smb2.c ctx = composite_create(tree, tree->session->transport->socket->event.ctx); ctx 234 source4/libcli/smb_composite/smb2.c if (ctx == NULL) return NULL; ctx 253 source4/libcli/smb_composite/smb2.c composite_continue_smb2(ctx, req, continue_rmdir, ctx); ctx 254 source4/libcli/smb_composite/smb2.c return ctx; ctx 273 source4/libcli/smb_composite/smb2.c struct composite_context *ctx = talloc_get_type(req->async.private_data, ctx 278 source4/libcli/smb_composite/smb2.c union smb_setfileinfo *io2 = talloc_get_type(ctx->private_data, ctx 283 source4/libcli/smb_composite/smb2.c composite_error(ctx, status); ctx 291 source4/libcli/smb_composite/smb2.c composite_continue_smb2(ctx, req, continue_close, ctx); ctx 300 source4/libcli/smb_composite/smb2.c struct composite_context *ctx = talloc_get_type(req->async.private_data, ctx 305 source4/libcli/smb_composite/smb2.c union smb_setfileinfo *io2 = talloc_get_type(ctx->private_data, ctx 308 source4/libcli/smb_composite/smb2.c status = smb2_create_recv(req, ctx, &create_parm); ctx 310 source4/libcli/smb_composite/smb2.c composite_error(ctx, status); ctx 317 source4/libcli/smb_composite/smb2.c composite_continue_smb2(ctx, req, continue_setpathinfo_close, ctx); ctx 327 source4/libcli/smb_composite/smb2.c struct composite_context *ctx; ctx 332 source4/libcli/smb_composite/smb2.c ctx = composite_create(tree, tree->session->transport->socket->event.ctx); ctx 333 source4/libcli/smb_composite/smb2.c if (ctx == NULL) return NULL; ctx 350 source4/libcli/smb_composite/smb2.c io2 = talloc(ctx, union smb_setfileinfo); ctx 351 source4/libcli/smb_composite/smb2.c if (composite_nomem(io2, ctx)) { ctx 352 source4/libcli/smb_composite/smb2.c return ctx; ctx 356 source4/libcli/smb_composite/smb2.c ctx->private_data = io2; ctx 358 source4/libcli/smb_composite/smb2.c composite_continue_smb2(ctx, req, continue_setpathinfo, ctx); ctx 359 source4/libcli/smb_composite/smb2.c return ctx; ctx 82 source4/libcli/util/clilsa.c lsa->pipe = dcerpc_pipe_init(lsa, cli->transport->socket->event.ctx, ctx 55 source4/libcli/wbclient/wbclient.c struct wbc_context *ctx; ctx 58 source4/libcli/wbclient/wbclient.c ctx = talloc(mem_ctx, struct wbc_context); ctx 59 source4/libcli/wbclient/wbclient.c if (ctx == NULL) return NULL; ctx 61 source4/libcli/wbclient/wbclient.c status = get_server_id(msg_ctx, mem_ctx, &ctx->ids); ctx 63 source4/libcli/wbclient/wbclient.c talloc_free(ctx); ctx 67 source4/libcli/wbclient/wbclient.c ctx->msg_ctx = msg_ctx; ctx 68 source4/libcli/wbclient/wbclient.c ctx->event_ctx = event_ctx; ctx 70 source4/libcli/wbclient/wbclient.c return ctx; ctx 74 source4/libcli/wbclient/wbclient.c struct composite_context *ctx; ctx 87 source4/libcli/wbclient/wbclient.c struct composite_context *ctx; ctx 92 source4/libcli/wbclient/wbclient.c ctx = composite_create(mem_ctx, wbc_ctx->event_ctx); ctx 93 source4/libcli/wbclient/wbclient.c if (ctx == NULL) return NULL; ctx 95 source4/libcli/wbclient/wbclient.c state = talloc(ctx, struct wbc_idmap_state); ctx 96 source4/libcli/wbclient/wbclient.c if (composite_nomem(state, ctx)) return ctx; ctx 97 source4/libcli/wbclient/wbclient.c ctx->private_data = state; ctx 100 source4/libcli/wbclient/wbclient.c if (composite_nomem(state->req, ctx)) return ctx; ctx 105 source4/libcli/wbclient/wbclient.c state->ctx = ctx; ctx 110 source4/libcli/wbclient/wbclient.c if (composite_nomem(state->irpc_req, ctx)) return ctx; ctx 112 source4/libcli/wbclient/wbclient.c composite_continue_irpc(ctx, state->irpc_req, sids_to_xids_recv_ids, ctx 114 source4/libcli/wbclient/wbclient.c return ctx; ctx 123 source4/libcli/wbclient/wbclient.c state->ctx->status = irpc_call_recv(state->irpc_req); ctx 124 source4/libcli/wbclient/wbclient.c if (!composite_is_ok(state->ctx)) return; ctx 127 source4/libcli/wbclient/wbclient.c composite_done(state->ctx); ctx 130 source4/libcli/wbclient/wbclient.c NTSTATUS wbc_sids_to_xids_recv(struct composite_context *ctx, ctx 133 source4/libcli/wbclient/wbclient.c NTSTATUS status = composite_wait(ctx); ctx 137 source4/libcli/wbclient/wbclient.c ctx->private_data, ctx 152 source4/libcli/wbclient/wbclient.c struct composite_context *ctx; ctx 157 source4/libcli/wbclient/wbclient.c ctx = composite_create(mem_ctx, wbc_ctx->event_ctx); ctx 158 source4/libcli/wbclient/wbclient.c if (ctx == NULL) return NULL; ctx 160 source4/libcli/wbclient/wbclient.c state = talloc(ctx, struct wbc_idmap_state); ctx 161 source4/libcli/wbclient/wbclient.c if (composite_nomem(state, ctx)) return ctx; ctx 162 source4/libcli/wbclient/wbclient.c ctx->private_data = state; ctx 165 source4/libcli/wbclient/wbclient.c if (composite_nomem(state->req, ctx)) return ctx; ctx 170 source4/libcli/wbclient/wbclient.c state->ctx = ctx; ctx 175 source4/libcli/wbclient/wbclient.c if (composite_nomem(state->irpc_req, ctx)) return ctx; ctx 177 source4/libcli/wbclient/wbclient.c composite_continue_irpc(ctx, state->irpc_req, xids_to_sids_recv_ids, ctx 180 source4/libcli/wbclient/wbclient.c return ctx; ctx 189 source4/libcli/wbclient/wbclient.c state->ctx->status = irpc_call_recv(state->irpc_req); ctx 190 source4/libcli/wbclient/wbclient.c if (!composite_is_ok(state->ctx)) return; ctx 193 source4/libcli/wbclient/wbclient.c composite_done(state->ctx); ctx 196 source4/libcli/wbclient/wbclient.c NTSTATUS wbc_xids_to_sids_recv(struct composite_context *ctx, ctx 199 source4/libcli/wbclient/wbclient.c NTSTATUS status = composite_wait(ctx); ctx 203 source4/libcli/wbclient/wbclient.c ctx->private_data, ctx 40 source4/libcli/wbclient/wbclient.h NTSTATUS wbc_sids_to_xids_recv(struct composite_context *ctx, ctx 48 source4/libcli/wbclient/wbclient.h NTSTATUS wbc_xids_to_sids_recv(struct composite_context *ctx, ctx 174 source4/libcli/wrepl/winsrepl.c wrepl_socket->event.ctx = talloc_reference(wrepl_socket, event_ctx); ctx 175 source4/libcli/wrepl/winsrepl.c if (!wrepl_socket->event.ctx) goto failed; ctx 208 source4/libcli/wrepl/winsrepl.c wrepl_socket->event.ctx = talloc_reference(wrepl_socket, event_ctx); ctx 209 source4/libcli/wrepl/winsrepl.c if (wrepl_socket->event.ctx == NULL) goto failed; ctx 217 source4/libcli/wrepl/winsrepl.c wrepl_socket->event.fde = event_add_fd(wrepl_socket->event.ctx, wrepl_socket, ctx 232 source4/libcli/wrepl/winsrepl.c packet_set_event_context(wrepl_socket->packet, wrepl_socket->event.ctx); ctx 264 source4/libcli/wrepl/winsrepl.c event_loop_once(req->wrepl_socket->event.ctx); ctx 288 source4/libcli/wrepl/winsrepl.c wrepl_socket->event.fde = event_add_fd(wrepl_socket->event.ctx, wrepl_socket, ctx 302 source4/libcli/wrepl/winsrepl.c packet_set_event_context(wrepl_socket->packet, wrepl_socket->event.ctx); ctx 331 source4/libcli/wrepl/winsrepl.c result->event_ctx = wrepl_socket->event.ctx; ctx 348 source4/libcli/wrepl/winsrepl.c 0, wrepl_socket->event.ctx); ctx 417 source4/libcli/wrepl/winsrepl.c te = event_add_timed(req->wrepl_socket->event.ctx, ctx 508 source4/libcli/wrepl/winsrepl.c req->te = event_add_timed(wrepl_socket->event.ctx, req, ctx 33 source4/libcli/wrepl/winsrepl.h struct tevent_context *ctx; ctx 29 source4/libnet/libnet.c struct libnet_context *ctx; ctx 37 source4/libnet/libnet.c ctx = talloc(ev, struct libnet_context); ctx 38 source4/libnet/libnet.c if (!ctx) { ctx 42 source4/libnet/libnet.c ctx->event_ctx = ev; ctx 43 source4/libnet/libnet.c ctx->lp_ctx = lp_ctx; ctx 46 source4/libnet/libnet.c ctx->resolve_ctx = lp_resolve_context(lp_ctx); ctx 49 source4/libnet/libnet.c ZERO_STRUCT(ctx->samr); ctx 50 source4/libnet/libnet.c ZERO_STRUCT(ctx->lsa); ctx 53 source4/libnet/libnet.c ctx->samr.buf_size = 128; ctx 55 source4/libnet/libnet.c return ctx; ctx 2968 source4/libnet/libnet_become_dc.c struct composite_context *libnet_BecomeDC_send(struct libnet_context *ctx, TALLOC_CTX *mem_ctx, struct libnet_BecomeDC *r) ctx 2974 source4/libnet/libnet_become_dc.c c = composite_create(mem_ctx, ctx->event_ctx); ctx 2981 source4/libnet/libnet_become_dc.c s->libnet = ctx; ctx 3025 source4/libnet/libnet_become_dc.c NTSTATUS libnet_BecomeDC(struct libnet_context *ctx, TALLOC_CTX *mem_ctx, struct libnet_BecomeDC *r) ctx 3029 source4/libnet/libnet_become_dc.c c = libnet_BecomeDC_send(ctx, mem_ctx, r); ctx 32 source4/libnet/libnet_domain.c struct libnet_context *ctx; ctx 59 source4/libnet/libnet_domain.c static void continue_domain_open_rpc_connect(struct composite_context *ctx) ctx 65 source4/libnet/libnet_domain.c c = talloc_get_type(ctx->async.private_data, struct composite_context); ctx 68 source4/libnet/libnet_domain.c c->status = libnet_RpcConnect_recv(ctx, s->ctx, c, &s->rpcconn); ctx 114 source4/libnet/libnet_domain.c s->ctx->samr.name = NULL; ctx 115 source4/libnet/libnet_domain.c s->ctx->samr.access_mask = 0; ctx 116 source4/libnet/libnet_domain.c ZERO_STRUCT(s->ctx->samr.handle); ctx 261 source4/libnet/libnet_domain.c struct composite_context *libnet_DomainOpenSamr_send(struct libnet_context *ctx, ctx 270 source4/libnet/libnet_domain.c c = composite_create(ctx, ctx->event_ctx); ctx 279 source4/libnet/libnet_domain.c s->ctx = ctx; ctx 280 source4/libnet/libnet_domain.c s->pipe = ctx->samr.pipe; ctx 285 source4/libnet/libnet_domain.c if (ctx->samr.pipe == NULL) { ctx 293 source4/libnet/libnet_domain.c rpcconn_req = libnet_RpcConnect_send(ctx, c, &s->rpcconn, s->monitor_fn); ctx 302 source4/libnet/libnet_domain.c if (!policy_handle_empty(&ctx->samr.handle)) { ctx 303 source4/libnet/libnet_domain.c if (strequal(ctx->samr.name, io->in.domain_name) && ctx 304 source4/libnet/libnet_domain.c ctx->samr.access_mask == io->in.access_mask) { ctx 313 source4/libnet/libnet_domain.c s->close.in.handle = &ctx->samr.handle; ctx 350 source4/libnet/libnet_domain.c NTSTATUS libnet_DomainOpenSamr_recv(struct composite_context *c, struct libnet_context *ctx, ctx 365 source4/libnet/libnet_domain.c ctx->samr.connect_handle = s->connect_handle; ctx 366 source4/libnet/libnet_domain.c ctx->samr.handle = s->domain_handle; ctx 367 source4/libnet/libnet_domain.c ctx->samr.sid = talloc_steal(ctx, *s->lookup.out.sid); ctx 368 source4/libnet/libnet_domain.c ctx->samr.name = talloc_steal(ctx, s->domain_name.string); ctx 369 source4/libnet/libnet_domain.c ctx->samr.access_mask = s->access_mask; ctx 380 source4/libnet/libnet_domain.c struct libnet_context *ctx; ctx 391 source4/libnet/libnet_domain.c static void continue_rpc_connect_lsa(struct composite_context *ctx); ctx 403 source4/libnet/libnet_domain.c struct composite_context* libnet_DomainOpenLsa_send(struct libnet_context *ctx, ctx 414 source4/libnet/libnet_domain.c c = composite_create(ctx, ctx->event_ctx); ctx 425 source4/libnet/libnet_domain.c s->ctx = ctx; ctx 428 source4/libnet/libnet_domain.c if (ctx->lsa.pipe == NULL) { ctx 436 source4/libnet/libnet_domain.c rpcconn_req = libnet_RpcConnect_send(ctx, c, &s->rpcconn, s->monitor_fn); ctx 443 source4/libnet/libnet_domain.c s->pipe = ctx->lsa.pipe; ctx 471 source4/libnet/libnet_domain.c static void continue_rpc_connect_lsa(struct composite_context *ctx) ctx 478 source4/libnet/libnet_domain.c c = talloc_get_type(ctx->async.private_data, struct composite_context); ctx 482 source4/libnet/libnet_domain.c c->status = libnet_RpcConnect_recv(ctx, s->ctx, c, &s->rpcconn); ctx 487 source4/libnet/libnet_domain.c s->pipe = s->ctx->lsa.pipe; ctx 548 source4/libnet/libnet_domain.c NTSTATUS libnet_DomainOpenLsa_recv(struct composite_context *c, struct libnet_context *ctx, ctx 562 source4/libnet/libnet_domain.c ctx->lsa.handle = s->handle; ctx 563 source4/libnet/libnet_domain.c ctx->lsa.name = talloc_steal(ctx, s->name); ctx 564 source4/libnet/libnet_domain.c ctx->lsa.access_mask = s->access_mask; ctx 588 source4/libnet/libnet_domain.c struct composite_context* libnet_DomainOpen_send(struct libnet_context *ctx, ctx 597 source4/libnet/libnet_domain.c c = libnet_DomainOpenLsa_send(ctx, io, monitor); ctx 603 source4/libnet/libnet_domain.c c = libnet_DomainOpenSamr_send(ctx, io, monitor); ctx 620 source4/libnet/libnet_domain.c NTSTATUS libnet_DomainOpen_recv(struct composite_context *c, struct libnet_context *ctx, ctx 627 source4/libnet/libnet_domain.c status = libnet_DomainOpenLsa_recv(c, ctx, mem_ctx, io); ctx 632 source4/libnet/libnet_domain.c status = libnet_DomainOpenSamr_recv(c, ctx, mem_ctx, io); ctx 649 source4/libnet/libnet_domain.c NTSTATUS libnet_DomainOpen(struct libnet_context *ctx, ctx 653 source4/libnet/libnet_domain.c struct composite_context *c = libnet_DomainOpen_send(ctx, io, NULL); ctx 654 source4/libnet/libnet_domain.c return libnet_DomainOpen_recv(c, ctx, mem_ctx, io); ctx 670 source4/libnet/libnet_domain.c struct composite_context* libnet_DomainCloseLsa_send(struct libnet_context *ctx, ctx 679 source4/libnet/libnet_domain.c c = composite_create(ctx, ctx->event_ctx); ctx 690 source4/libnet/libnet_domain.c if (!strequal(ctx->lsa.name, io->in.domain_name)) { ctx 696 source4/libnet/libnet_domain.c s->pipe = ctx->lsa.pipe; ctx 699 source4/libnet/libnet_domain.c s->close.in.handle = &ctx->lsa.handle; ctx 738 source4/libnet/libnet_domain.c NTSTATUS libnet_DomainCloseLsa_recv(struct composite_context *c, struct libnet_context *ctx, ctx 748 source4/libnet/libnet_domain.c ctx->lsa.name = NULL; ctx 749 source4/libnet/libnet_domain.c ZERO_STRUCT(ctx->lsa.handle); ctx 774 source4/libnet/libnet_domain.c struct composite_context* libnet_DomainCloseSamr_send(struct libnet_context *ctx, ctx 783 source4/libnet/libnet_domain.c c = composite_create(ctx, ctx->event_ctx); ctx 794 source4/libnet/libnet_domain.c if (!strequal(ctx->samr.name, io->in.domain_name)) { ctx 801 source4/libnet/libnet_domain.c s->close.in.handle = &ctx->samr.handle; ctx 805 source4/libnet/libnet_domain.c close_req = dcerpc_samr_Close_send(ctx->samr.pipe, ctx, &s->close); ctx 840 source4/libnet/libnet_domain.c NTSTATUS libnet_DomainCloseSamr_recv(struct composite_context *c, struct libnet_context *ctx, ctx 850 source4/libnet/libnet_domain.c ZERO_STRUCT(ctx->samr.handle); ctx 851 source4/libnet/libnet_domain.c talloc_free(discard_const_p(char, ctx->samr.name)); ctx 852 source4/libnet/libnet_domain.c talloc_free(ctx->samr.sid); ctx 853 source4/libnet/libnet_domain.c ctx->samr.name = NULL; ctx 854 source4/libnet/libnet_domain.c ctx->samr.sid = NULL; ctx 868 source4/libnet/libnet_domain.c struct composite_context* libnet_DomainClose_send(struct libnet_context *ctx, ctx 877 source4/libnet/libnet_domain.c c = libnet_DomainCloseLsa_send(ctx, io, monitor); ctx 883 source4/libnet/libnet_domain.c c = libnet_DomainCloseSamr_send(ctx, io, monitor); ctx 891 source4/libnet/libnet_domain.c NTSTATUS libnet_DomainClose_recv(struct composite_context *c, struct libnet_context *ctx, ctx 899 source4/libnet/libnet_domain.c status = libnet_DomainCloseLsa_recv(c, ctx, mem_ctx, io); ctx 905 source4/libnet/libnet_domain.c status = libnet_DomainCloseSamr_recv(c, ctx, mem_ctx, io); ctx 913 source4/libnet/libnet_domain.c NTSTATUS libnet_DomainClose(struct libnet_context *ctx, TALLOC_CTX *mem_ctx, ctx 918 source4/libnet/libnet_domain.c c = libnet_DomainClose_send(ctx, io, NULL); ctx 919 source4/libnet/libnet_domain.c return libnet_DomainClose_recv(c, ctx, mem_ctx, io); ctx 924 source4/libnet/libnet_domain.c struct libnet_context *ctx; ctx 952 source4/libnet/libnet_domain.c static void continue_rpc_connect(struct composite_context *ctx) ctx 958 source4/libnet/libnet_domain.c c = talloc_get_type(ctx->async.private_data, struct composite_context); ctx 961 source4/libnet/libnet_domain.c c->status = libnet_RpcConnect_recv(ctx, s->ctx, c, &s->rpcconn); ctx 968 source4/libnet/libnet_domain.c samrconn_req = dcerpc_samr_Connect_send(s->ctx->samr.pipe, c, &s->samrconn); ctx 1009 source4/libnet/libnet_domain.c enumdom_req = dcerpc_samr_EnumDomains_send(s->ctx->samr.pipe, c, &s->enumdom); ctx 1054 source4/libnet/libnet_domain.c s->enumdom.in.buf_size = s->ctx->samr.buf_size; ctx 1058 source4/libnet/libnet_domain.c enumdom_req = dcerpc_samr_EnumDomains_send(s->ctx->samr.pipe, c, &s->enumdom); ctx 1073 source4/libnet/libnet_domain.c samrclose_req = dcerpc_samr_Close_send(s->ctx->samr.pipe, c, &s->samrclose); ctx 1156 source4/libnet/libnet_domain.c struct composite_context* libnet_DomainList_send(struct libnet_context *ctx, ctx 1167 source4/libnet/libnet_domain.c c = composite_create(ctx, ctx->event_ctx); ctx 1176 source4/libnet/libnet_domain.c s->ctx = ctx; ctx 1181 source4/libnet/libnet_domain.c if (ctx->samr.pipe == NULL) { ctx 1187 source4/libnet/libnet_domain.c rpcconn_req = libnet_RpcConnect_send(ctx, c, &s->rpcconn, s->monitor_fn); ctx 1198 source4/libnet/libnet_domain.c samrconn_req = dcerpc_samr_Connect_send(s->ctx->samr.pipe, c, &s->samrconn); ctx 1217 source4/libnet/libnet_domain.c NTSTATUS libnet_DomainList_recv(struct composite_context *c, struct libnet_context *ctx, ctx 1227 source4/libnet/libnet_domain.c if (NT_STATUS_IS_OK(status) && ctx && mem_ctx && io) { ctx 1252 source4/libnet/libnet_domain.c NTSTATUS libnet_DomainList(struct libnet_context *ctx, TALLOC_CTX *mem_ctx, ctx 1257 source4/libnet/libnet_domain.c c = libnet_DomainList_send(ctx, mem_ctx, io, NULL); ctx 1258 source4/libnet/libnet_domain.c return libnet_DomainList_recv(c, ctx, mem_ctx, io); ctx 32 source4/libnet/libnet_group.c struct libnet_context *ctx; ctx 42 source4/libnet/libnet_group.c static void continue_domain_opened(struct composite_context *ctx); ctx 43 source4/libnet/libnet_group.c static void continue_rpc_group_added(struct composite_context *ctx); ctx 46 source4/libnet/libnet_group.c struct composite_context* libnet_CreateGroup_send(struct libnet_context *ctx, ctx 57 source4/libnet/libnet_group.c c = composite_create(mem_ctx, ctx->event_ctx); ctx 65 source4/libnet/libnet_group.c s->ctx = ctx; ctx 70 source4/libnet/libnet_group.c prereq_met = samr_domain_opened(ctx, s->r.in.domain_name, &c, &s->domain_open, ctx 76 source4/libnet/libnet_group.c s->group_add.in.domain_handle = ctx->samr.handle; ctx 79 source4/libnet/libnet_group.c create_req = libnet_rpc_groupadd_send(ctx->samr.pipe, &s->group_add, monitor); ctx 87 source4/libnet/libnet_group.c static void continue_domain_opened(struct composite_context *ctx) ctx 93 source4/libnet/libnet_group.c c = talloc_get_type(ctx->async.private_data, struct composite_context); ctx 96 source4/libnet/libnet_group.c c->status = libnet_DomainOpen_recv(ctx, s->ctx, c, &s->domain_open); ctx 101 source4/libnet/libnet_group.c s->group_add.in.domain_handle = s->ctx->samr.handle; ctx 104 source4/libnet/libnet_group.c create_req = libnet_rpc_groupadd_send(s->ctx->samr.pipe, &s->group_add, ctx 112 source4/libnet/libnet_group.c static void continue_rpc_group_added(struct composite_context *ctx) ctx 117 source4/libnet/libnet_group.c c = talloc_get_type(ctx->async.private_data, struct composite_context); ctx 121 source4/libnet/libnet_group.c c->status = libnet_rpc_groupadd_recv(ctx, c, &s->group_add); ctx 162 source4/libnet/libnet_group.c NTSTATUS libnet_CreateGroup(struct libnet_context *ctx, TALLOC_CTX *mem_ctx, ctx 167 source4/libnet/libnet_group.c c = libnet_CreateGroup_send(ctx, mem_ctx, io, NULL); ctx 173 source4/libnet/libnet_group.c struct libnet_context *ctx; ctx 187 source4/libnet/libnet_group.c static void continue_domain_open_info(struct composite_context *ctx); ctx 188 source4/libnet/libnet_group.c static void continue_name_found(struct composite_context *ctx); ctx 189 source4/libnet/libnet_group.c static void continue_group_info(struct composite_context *ctx); ctx 200 source4/libnet/libnet_group.c struct composite_context* libnet_GroupInfo_send(struct libnet_context *ctx, ctx 211 source4/libnet/libnet_group.c c = composite_create(mem_ctx, ctx->event_ctx); ctx 221 source4/libnet/libnet_group.c s->ctx = ctx; ctx 236 source4/libnet/libnet_group.c prereq_met = samr_domain_opened(ctx, s->domain_name, &c, &s->domopen, ctx 247 source4/libnet/libnet_group.c lookup_req = libnet_LookupName_send(s->ctx, c, &s->lookup, s->monitor_fn); ctx 255 source4/libnet/libnet_group.c s->info.in.domain_handle = s->ctx->samr.handle; ctx 261 source4/libnet/libnet_group.c info_req = libnet_rpc_groupinfo_send(s->ctx->samr.pipe, &s->info, s->monitor_fn); ctx 276 source4/libnet/libnet_group.c static void continue_domain_open_info(struct composite_context *ctx) ctx 282 source4/libnet/libnet_group.c c = talloc_get_type(ctx->async.private_data, struct composite_context); ctx 286 source4/libnet/libnet_group.c c->status = libnet_DomainOpen_recv(ctx, s->ctx, c, &s->domopen); ctx 296 source4/libnet/libnet_group.c lookup_req = libnet_LookupName_send(s->ctx, c, &s->lookup, s->monitor_fn); ctx 304 source4/libnet/libnet_group.c s->info.in.domain_handle = s->ctx->samr.handle; ctx 310 source4/libnet/libnet_group.c info_req = libnet_rpc_groupinfo_send(s->ctx->samr.pipe, &s->info, s->monitor_fn); ctx 324 source4/libnet/libnet_group.c static void continue_name_found(struct composite_context *ctx) ctx 330 source4/libnet/libnet_group.c c = talloc_get_type(ctx->async.private_data, struct composite_context); ctx 334 source4/libnet/libnet_group.c c->status = libnet_LookupName_recv(ctx, c, &s->lookup); ctx 344 source4/libnet/libnet_group.c s->info.in.domain_handle = s->ctx->samr.handle; ctx 351 source4/libnet/libnet_group.c info_req = libnet_rpc_groupinfo_send(s->ctx->samr.pipe, &s->info, s->monitor_fn); ctx 362 source4/libnet/libnet_group.c static void continue_group_info(struct composite_context *ctx) ctx 367 source4/libnet/libnet_group.c c = talloc_get_type(ctx->async.private_data, struct composite_context); ctx 371 source4/libnet/libnet_group.c c->status = libnet_rpc_groupinfo_recv(ctx, c, &s->info); ctx 423 source4/libnet/libnet_group.c NTSTATUS libnet_GroupInfo(struct libnet_context *ctx, TALLOC_CTX *mem_ctx, ctx 426 source4/libnet/libnet_group.c struct composite_context *c = libnet_GroupInfo_send(ctx, mem_ctx, ctx 433 source4/libnet/libnet_group.c struct libnet_context *ctx; ctx 449 source4/libnet/libnet_group.c static void continue_lsa_domain_opened(struct composite_context *ctx); ctx 451 source4/libnet/libnet_group.c static void continue_samr_domain_opened(struct composite_context *ctx); ctx 465 source4/libnet/libnet_group.c struct composite_context *libnet_GroupList_send(struct libnet_context *ctx, ctx 476 source4/libnet/libnet_group.c c = composite_create(mem_ctx, ctx->event_ctx); ctx 485 source4/libnet/libnet_group.c s->ctx = ctx; ctx 492 source4/libnet/libnet_group.c prereq_met = lsa_domain_opened(ctx, s->domain_name, &c, &s->domain_open, ctx 497 source4/libnet/libnet_group.c s->query_domain.in.handle = &ctx->lsa.handle; ctx 503 source4/libnet/libnet_group.c query_req = dcerpc_lsa_QueryInfoPolicy_send(ctx->lsa.pipe, c, &s->query_domain); ctx 515 source4/libnet/libnet_group.c static void continue_lsa_domain_opened(struct composite_context *ctx) ctx 521 source4/libnet/libnet_group.c c = talloc_get_type(ctx->async.private_data, struct composite_context); ctx 525 source4/libnet/libnet_group.c c->status = libnet_DomainOpen_recv(ctx, s->ctx, c, &s->domain_open); ctx 529 source4/libnet/libnet_group.c s->query_domain.in.handle = &s->ctx->lsa.handle; ctx 535 source4/libnet/libnet_group.c query_req = dcerpc_lsa_QueryInfoPolicy_send(s->ctx->lsa.pipe, c, &s->query_domain); ctx 564 source4/libnet/libnet_group.c prereq_met = samr_domain_opened(s->ctx, s->domain_name, &c, &s->domain_open, ctx 569 source4/libnet/libnet_group.c s->group_list.in.domain_handle = &s->ctx->samr.handle; ctx 579 source4/libnet/libnet_group.c enum_req = dcerpc_samr_EnumDomainGroups_send(s->ctx->samr.pipe, c, &s->group_list); ctx 590 source4/libnet/libnet_group.c static void continue_samr_domain_opened(struct composite_context *ctx) ctx 596 source4/libnet/libnet_group.c c = talloc_get_type(ctx->async.private_data, struct composite_context); ctx 600 source4/libnet/libnet_group.c c->status = libnet_DomainOpen_recv(ctx, s->ctx, c, &s->domain_open); ctx 604 source4/libnet/libnet_group.c s->group_list.in.domain_handle = &s->ctx->samr.handle; ctx 614 source4/libnet/libnet_group.c enum_req = dcerpc_samr_EnumDomainGroups_send(s->ctx->samr.pipe, c, &s->group_list); ctx 738 source4/libnet/libnet_group.c NTSTATUS libnet_GroupList(struct libnet_context *ctx, TALLOC_CTX *mem_ctx, ctx 743 source4/libnet/libnet_group.c c = libnet_GroupList_send(ctx, mem_ctx, io, NULL); ctx 47 source4/libnet/libnet_join.c static NTSTATUS libnet_JoinADSDomain(struct libnet_context *ctx, struct libnet_JoinDomain *r) ctx 116 source4/libnet/libnet_join.c ctx->cred, ctx 117 source4/libnet/libnet_join.c ctx->event_ctx, ctx 118 source4/libnet/libnet_join.c ctx->lp_ctx); ctx 247 source4/libnet/libnet_join.c remote_ldb = ldb_wrap_connect(tmp_ctx, ctx->event_ctx, ctx->lp_ctx, ctx 249 source4/libnet/libnet_join.c NULL, ctx->cred, 0, NULL); ctx 405 source4/libnet/libnet_join.c status = libnet_JoinSite(ctx, remote_ldb, r); ctx 433 source4/libnet/libnet_join.c NTSTATUS libnet_JoinDomain(struct libnet_context *ctx, TALLOC_CTX *mem_ctx, struct libnet_JoinDomain *r) ctx 506 source4/libnet/libnet_join.c status = libnet_RpcConnect(ctx, tmp_ctx, connect_with_info); ctx 525 source4/libnet/libnet_join.c &ndr_table_samr, ctx->cred, ctx->lp_ctx); ctx 556 source4/libnet/libnet_join.c connect_with_info->out.domain_name = talloc_strdup(tmp_ctx, lp_workgroup(ctx->lp_ctx)); ctx 557 source4/libnet/libnet_join.c connect_with_info->out.realm = talloc_strdup(tmp_ctx, lp_realm(ctx->lp_ctx)); ctx 813 source4/libnet/libnet_join.c status = libnet_SetPassword(ctx, tmp_ctx, &r2); ctx 856 source4/libnet/libnet_join.c status = libnet_JoinADSDomain(ctx, r); ctx 863 source4/libnet/libnet_join.c NTSTATUS libnet_set_join_secrets(struct libnet_context *ctx, ctx 889 source4/libnet/libnet_join.c ldb = secrets_db_connect(tmp_mem, ctx->event_ctx, ctx->lp_ctx); ctx 1111 source4/libnet/libnet_join.c static NTSTATUS libnet_Join_primary_domain(struct libnet_context *ctx, ctx 1150 source4/libnet/libnet_join.c netbios_name = talloc_reference(tmp_mem, lp_netbios_name(ctx->lp_ctx)); ctx 1175 source4/libnet/libnet_join.c status = libnet_JoinDomain(ctx, r2, r2); ctx 1199 source4/libnet/libnet_join.c status = libnet_set_join_secrets(ctx, r3, r3); ctx 1218 source4/libnet/libnet_join.c NTSTATUS libnet_Join(struct libnet_context *ctx, TALLOC_CTX *mem_ctx, struct libnet_Join *r) ctx 1222 source4/libnet/libnet_join.c return libnet_Join_primary_domain(ctx, mem_ctx, r); ctx 1224 source4/libnet/libnet_join.c return libnet_Join_primary_domain(ctx, mem_ctx, r); ctx 45 source4/libnet/libnet_lookup.c static void continue_name_resolved(struct composite_context *ctx); ctx 54 source4/libnet/libnet_lookup.c struct composite_context *libnet_Lookup_send(struct libnet_context *ctx, ctx 63 source4/libnet/libnet_lookup.c c = composite_create(ctx, ctx->event_ctx); ctx 87 source4/libnet/libnet_lookup.c resolve_ctx = ctx->resolve_ctx; ctx 99 source4/libnet/libnet_lookup.c static void continue_name_resolved(struct composite_context *ctx) ctx 104 source4/libnet/libnet_lookup.c c = talloc_get_type(ctx->async.private_data, struct composite_context); ctx 107 source4/libnet/libnet_lookup.c c->status = resolve_name_recv(ctx, s, &s->address); ctx 149 source4/libnet/libnet_lookup.c NTSTATUS libnet_Lookup(struct libnet_context *ctx, TALLOC_CTX *mem_ctx, ctx 152 source4/libnet/libnet_lookup.c struct composite_context *c = libnet_Lookup_send(ctx, io); ctx 166 source4/libnet/libnet_lookup.c struct composite_context* libnet_LookupHost_send(struct libnet_context *ctx, ctx 170 source4/libnet/libnet_lookup.c return libnet_Lookup_send(ctx, io); ctx 178 source4/libnet/libnet_lookup.c NTSTATUS libnet_LookupHost(struct libnet_context *ctx, TALLOC_CTX *mem_ctx, ctx 181 source4/libnet/libnet_lookup.c struct composite_context *c = libnet_LookupHost_send(ctx, io); ctx 189 source4/libnet/libnet_lookup.c struct composite_context* libnet_LookupDCs_send(struct libnet_context *ctx, ctx 195 source4/libnet/libnet_lookup.c messaging_client_init(mem_ctx, lp_messaging_path(mem_ctx, ctx->lp_ctx), ctx 196 source4/libnet/libnet_lookup.c lp_iconv_convenience(ctx->lp_ctx), ctx->event_ctx); ctx 198 source4/libnet/libnet_lookup.c c = finddcs_send(mem_ctx, lp_netbios_name(ctx->lp_ctx), lp_nbt_port(ctx->lp_ctx), ctx 200 source4/libnet/libnet_lookup.c NULL, lp_iconv_convenience(ctx->lp_ctx), ctx 201 source4/libnet/libnet_lookup.c ctx->resolve_ctx, ctx->event_ctx, msg_ctx); ctx 229 source4/libnet/libnet_lookup.c NTSTATUS libnet_LookupDCs(struct libnet_context *ctx, TALLOC_CTX *mem_ctx, ctx 232 source4/libnet/libnet_lookup.c struct composite_context *c = libnet_LookupDCs_send(ctx, mem_ctx, io); ctx 238 source4/libnet/libnet_lookup.c struct libnet_context *ctx; ctx 251 source4/libnet/libnet_lookup.c static bool prepare_lookup_params(struct libnet_context *ctx, ctx 254 source4/libnet/libnet_lookup.c static void continue_lookup_name(struct composite_context *ctx); ctx 258 source4/libnet/libnet_lookup.c struct composite_context* libnet_LookupName_send(struct libnet_context *ctx, ctx 268 source4/libnet/libnet_lookup.c c = composite_create(mem_ctx, ctx->event_ctx); ctx 278 source4/libnet/libnet_lookup.c s->ctx = ctx; ctx 280 source4/libnet/libnet_lookup.c prereq_met = lsa_domain_opened(ctx, io->in.domain_name, &c, &s->domopen, ctx 284 source4/libnet/libnet_lookup.c if (!prepare_lookup_params(ctx, c, s)) return c; ctx 286 source4/libnet/libnet_lookup.c lookup_req = dcerpc_lsa_LookupNames_send(ctx->lsa.pipe, c, &s->lookup); ctx 294 source4/libnet/libnet_lookup.c static bool prepare_lookup_params(struct libnet_context *ctx, ctx 303 source4/libnet/libnet_lookup.c s->names = talloc_array(ctx, struct lsa_String, single_name); ctx 307 source4/libnet/libnet_lookup.c s->lookup.in.handle = &ctx->lsa.handle; ctx 315 source4/libnet/libnet_lookup.c s->lookup.out.domains = talloc_zero(ctx, struct lsa_RefDomainList *); ctx 322 source4/libnet/libnet_lookup.c static void continue_lookup_name(struct composite_context *ctx) ctx 328 source4/libnet/libnet_lookup.c c = talloc_get_type(ctx->async.private_data, struct composite_context); ctx 331 source4/libnet/libnet_lookup.c c->status = libnet_DomainOpen_recv(ctx, s->ctx, c, &s->domopen); ctx 334 source4/libnet/libnet_lookup.c if (!prepare_lookup_params(s->ctx, c, s)) return; ctx 336 source4/libnet/libnet_lookup.c lookup_req = dcerpc_lsa_LookupNames_send(s->ctx->lsa.pipe, c, &s->lookup); ctx 410 source4/libnet/libnet_lookup.c NTSTATUS libnet_LookupName(struct libnet_context *ctx, TALLOC_CTX *mem_ctx, ctx 415 source4/libnet/libnet_lookup.c c = libnet_LookupName_send(ctx, mem_ctx, io, NULL); ctx 35 source4/libnet/libnet_passwd.c static NTSTATUS libnet_ChangePassword_samr(struct libnet_context *ctx, TALLOC_CTX *mem_ctx, union libnet_ChangePassword *r) ctx 62 source4/libnet/libnet_passwd.c status = libnet_RpcConnect(ctx, mem_ctx, &c); ctx 257 source4/libnet/libnet_passwd.c static NTSTATUS libnet_ChangePassword_generic(struct libnet_context *ctx, TALLOC_CTX *mem_ctx, union libnet_ChangePassword *r) ctx 268 source4/libnet/libnet_passwd.c status = libnet_ChangePassword(ctx, mem_ctx, &r2); ctx 275 source4/libnet/libnet_passwd.c NTSTATUS libnet_ChangePassword(struct libnet_context *ctx, TALLOC_CTX *mem_ctx, union libnet_ChangePassword *r) ctx 279 source4/libnet/libnet_passwd.c return libnet_ChangePassword_generic(ctx, mem_ctx, r); ctx 281 source4/libnet/libnet_passwd.c return libnet_ChangePassword_samr(ctx, mem_ctx, r); ctx 293 source4/libnet/libnet_passwd.c static NTSTATUS libnet_SetPassword_samr_handle_26(struct libnet_context *ctx, TALLOC_CTX *mem_ctx, union libnet_SetPassword *r) ctx 346 source4/libnet/libnet_passwd.c static NTSTATUS libnet_SetPassword_samr_handle_25(struct libnet_context *ctx, TALLOC_CTX *mem_ctx, union libnet_SetPassword *r) ctx 399 source4/libnet/libnet_passwd.c static NTSTATUS libnet_SetPassword_samr_handle_24(struct libnet_context *ctx, TALLOC_CTX *mem_ctx, union libnet_SetPassword *r) ctx 440 source4/libnet/libnet_passwd.c static NTSTATUS libnet_SetPassword_samr_handle_23(struct libnet_context *ctx, TALLOC_CTX *mem_ctx, union libnet_SetPassword *r) ctx 489 source4/libnet/libnet_passwd.c static NTSTATUS libnet_SetPassword_samr_handle(struct libnet_context *ctx, TALLOC_CTX *mem_ctx, union libnet_SetPassword *r) ctx 503 source4/libnet/libnet_passwd.c status = libnet_SetPassword(ctx, mem_ctx, r); ctx 526 source4/libnet/libnet_passwd.c static NTSTATUS libnet_SetPassword_samr(struct libnet_context *ctx, TALLOC_CTX *mem_ctx, union libnet_SetPassword *r) ctx 549 source4/libnet/libnet_passwd.c status = libnet_RpcConnect(ctx, mem_ctx, &c); ctx 656 source4/libnet/libnet_passwd.c status = libnet_SetPassword(ctx, mem_ctx, &r2); ctx 667 source4/libnet/libnet_passwd.c static NTSTATUS libnet_SetPassword_generic(struct libnet_context *ctx, TALLOC_CTX *mem_ctx, union libnet_SetPassword *r) ctx 678 source4/libnet/libnet_passwd.c status = libnet_SetPassword(ctx, mem_ctx, &r2); ctx 685 source4/libnet/libnet_passwd.c NTSTATUS libnet_SetPassword(struct libnet_context *ctx, TALLOC_CTX *mem_ctx, union libnet_SetPassword *r) ctx 689 source4/libnet/libnet_passwd.c return libnet_SetPassword_generic(ctx, mem_ctx, r); ctx 691 source4/libnet/libnet_passwd.c return libnet_SetPassword_samr(ctx, mem_ctx, r); ctx 693 source4/libnet/libnet_passwd.c return libnet_SetPassword_samr_handle(ctx, mem_ctx, r); ctx 695 source4/libnet/libnet_passwd.c return libnet_SetPassword_samr_handle_26(ctx, mem_ctx, r); ctx 697 source4/libnet/libnet_passwd.c return libnet_SetPassword_samr_handle_25(ctx, mem_ctx, r); ctx 699 source4/libnet/libnet_passwd.c return libnet_SetPassword_samr_handle_24(ctx, mem_ctx, r); ctx 701 source4/libnet/libnet_passwd.c return libnet_SetPassword_samr_handle_23(ctx, mem_ctx, r); ctx 32 source4/libnet/libnet_rpc.c struct libnet_context *ctx; ctx 41 source4/libnet/libnet_rpc.c static void continue_pipe_connect(struct composite_context *ctx); ctx 53 source4/libnet/libnet_rpc.c static struct composite_context* libnet_RpcConnectSrv_send(struct libnet_context *ctx, ctx 64 source4/libnet/libnet_rpc.c c = composite_create(ctx, ctx->event_ctx); ctx 73 source4/libnet/libnet_rpc.c s->ctx = ctx; ctx 118 source4/libnet/libnet_rpc.c ctx->cred, c->event_ctx, ctx 119 source4/libnet/libnet_rpc.c ctx->lp_ctx); ctx 130 source4/libnet/libnet_rpc.c static void continue_pipe_connect(struct composite_context *ctx) ctx 135 source4/libnet/libnet_rpc.c c = talloc_get_type(ctx->async.private_data, struct composite_context); ctx 139 source4/libnet/libnet_rpc.c c->status = dcerpc_pipe_connect_b_recv(ctx, c, &s->r.out.dcerpc_pipe); ctx 174 source4/libnet/libnet_rpc.c struct libnet_context *ctx, ctx 192 source4/libnet/libnet_rpc.c ctx->samr.pipe = talloc_reference(ctx, r->out.dcerpc_pipe); ctx 195 source4/libnet/libnet_rpc.c ctx->lsa.pipe = talloc_reference(ctx, r->out.dcerpc_pipe); ctx 210 source4/libnet/libnet_rpc.c struct libnet_context *ctx; ctx 221 source4/libnet/libnet_rpc.c static void continue_lookup_dc(struct composite_context *ctx); ctx 222 source4/libnet/libnet_rpc.c static void continue_rpc_connect(struct composite_context *ctx); ctx 234 source4/libnet/libnet_rpc.c static struct composite_context* libnet_RpcConnectDC_send(struct libnet_context *ctx, ctx 244 source4/libnet/libnet_rpc.c c = composite_create(ctx, ctx->event_ctx); ctx 253 source4/libnet/libnet_rpc.c s->ctx = ctx; ctx 275 source4/libnet/libnet_rpc.c lookup_dc_req = libnet_LookupDCs_send(ctx, c, &s->f); ctx 287 source4/libnet/libnet_rpc.c static void continue_lookup_dc(struct composite_context *ctx) ctx 295 source4/libnet/libnet_rpc.c c = talloc_get_type(ctx->async.private_data, struct composite_context); ctx 299 source4/libnet/libnet_rpc.c c->status = libnet_LookupDCs_recv(ctx, c, &s->f); ctx 328 source4/libnet/libnet_rpc.c rpc_connect_req = libnet_RpcConnectSrv_send(s->ctx, c, &s->r2, s->monitor_fn); ctx 338 source4/libnet/libnet_rpc.c static void continue_rpc_connect(struct composite_context *ctx) ctx 343 source4/libnet/libnet_rpc.c c = talloc_get_type(ctx->async.private_data, struct composite_context); ctx 346 source4/libnet/libnet_rpc.c c->status = libnet_RpcConnectSrv_recv(ctx, s->ctx, c, &s->r2); ctx 386 source4/libnet/libnet_rpc.c struct libnet_context *ctx, ctx 403 source4/libnet/libnet_rpc.c ctx->samr.pipe = talloc_reference(ctx, r->out.dcerpc_pipe); ctx 406 source4/libnet/libnet_rpc.c ctx->lsa.pipe = talloc_reference(ctx, r->out.dcerpc_pipe); ctx 422 source4/libnet/libnet_rpc.c struct libnet_context *ctx; ctx 440 source4/libnet/libnet_rpc.c static void continue_dci_rpc_connect(struct composite_context *ctx); ctx 444 source4/libnet/libnet_rpc.c static void continue_epm_map_binding(struct composite_context *ctx); ctx 445 source4/libnet/libnet_rpc.c static void continue_secondary_conn(struct composite_context *ctx); ctx 459 source4/libnet/libnet_rpc.c static struct composite_context* libnet_RpcConnectDCInfo_send(struct libnet_context *ctx, ctx 468 source4/libnet/libnet_rpc.c c = composite_create(ctx, ctx->event_ctx); ctx 477 source4/libnet/libnet_rpc.c s->ctx = ctx; ctx 495 source4/libnet/libnet_rpc.c conn_req = libnet_RpcConnect_send(ctx, c, &s->rpc_conn, s->monitor_fn); ctx 507 source4/libnet/libnet_rpc.c static void continue_dci_rpc_connect(struct composite_context *ctx) ctx 513 source4/libnet/libnet_rpc.c c = talloc_get_type(ctx->async.private_data, struct composite_context); ctx 516 source4/libnet/libnet_rpc.c c->status = libnet_RpcConnect_recv(ctx, s->ctx, c, &s->rpc_conn); ctx 540 source4/libnet/libnet_rpc.c s->lsa_pipe = s->ctx->lsa.pipe; ctx 753 source4/libnet/libnet_rpc.c s->lsa_pipe->conn->event_ctx, s->ctx->lp_ctx); ctx 764 source4/libnet/libnet_rpc.c static void continue_epm_map_binding(struct composite_context *ctx) ctx 769 source4/libnet/libnet_rpc.c c = talloc_get_type(ctx->async.private_data, struct composite_context); ctx 772 source4/libnet/libnet_rpc.c c->status = dcerpc_epm_map_binding_recv(ctx); ctx 793 source4/libnet/libnet_rpc.c static void continue_secondary_conn(struct composite_context *ctx) ctx 798 source4/libnet/libnet_rpc.c c = talloc_get_type(ctx->async.private_data, struct composite_context); ctx 801 source4/libnet/libnet_rpc.c c->status = dcerpc_secondary_connection_recv(ctx, &s->final_pipe); ctx 846 source4/libnet/libnet_rpc.c static NTSTATUS libnet_RpcConnectDCInfo_recv(struct composite_context *c, struct libnet_context *ctx, ctx 866 source4/libnet/libnet_rpc.c ctx->samr.pipe = talloc_reference(ctx, r->out.dcerpc_pipe); ctx 869 source4/libnet/libnet_rpc.c ctx->lsa.pipe = talloc_reference(ctx, r->out.dcerpc_pipe); ctx 898 source4/libnet/libnet_rpc.c struct composite_context* libnet_RpcConnect_send(struct libnet_context *ctx, ctx 909 source4/libnet/libnet_rpc.c c = libnet_RpcConnectSrv_send(ctx, mem_ctx, r, monitor); ctx 914 source4/libnet/libnet_rpc.c c = libnet_RpcConnectDC_send(ctx, mem_ctx, r, monitor); ctx 918 source4/libnet/libnet_rpc.c c = libnet_RpcConnectDCInfo_send(ctx, mem_ctx, r, monitor); ctx 940 source4/libnet/libnet_rpc.c NTSTATUS libnet_RpcConnect_recv(struct composite_context *c, struct libnet_context *ctx, ctx 946 source4/libnet/libnet_rpc.c return libnet_RpcConnectSrv_recv(c, ctx, mem_ctx, r); ctx 950 source4/libnet/libnet_rpc.c return libnet_RpcConnectDC_recv(c, ctx, mem_ctx, r); ctx 953 source4/libnet/libnet_rpc.c return libnet_RpcConnectDCInfo_recv(c, ctx, mem_ctx, r); ctx 971 source4/libnet/libnet_rpc.c NTSTATUS libnet_RpcConnect(struct libnet_context *ctx, TALLOC_CTX *mem_ctx, ctx 976 source4/libnet/libnet_rpc.c c = libnet_RpcConnect_send(ctx, mem_ctx, r, NULL); ctx 977 source4/libnet/libnet_rpc.c return libnet_RpcConnect_recv(c, ctx, mem_ctx, r); ctx 147 source4/libnet/libnet_samdump.c NTSTATUS libnet_SamDump(struct libnet_context *ctx, TALLOC_CTX *mem_ctx, ctx 166 source4/libnet/libnet_samdump.c r2.in.rid_crypt = lp_parm_bool(ctx->lp_ctx, NULL, "vampire", "rid decrypt", true); ctx 171 source4/libnet/libnet_samdump.c nt_status = libnet_SamSync_netlogon(ctx, samdump_state, &r2); ctx 188 source4/libnet/libnet_samdump.c if (!convert_string_talloc_convenience(mem_ctx, lp_iconv_convenience(ctx->lp_ctx), CH_UTF16, CH_UNIX, ctx 106 source4/libnet/libnet_samdump_keytab.c NTSTATUS libnet_SamDump_keytab(struct libnet_context *ctx, TALLOC_CTX *mem_ctx, struct libnet_SamDump_keytab *r) ctx 113 source4/libnet/libnet_samdump_keytab.c data.ev_ctx = ctx->event_ctx; ctx 114 source4/libnet/libnet_samdump_keytab.c data.lp_ctx = ctx->lp_ctx; ctx 123 source4/libnet/libnet_samdump_keytab.c nt_status = libnet_SamSync_netlogon(ctx, mem_ctx, &r2); ctx 166 source4/libnet/libnet_samsync.c NTSTATUS libnet_SamSync_netlogon(struct libnet_context *ctx, TALLOC_CTX *mem_ctx, struct libnet_SamSync *r) ctx 190 source4/libnet/libnet_samsync.c cli_credentials_set_conf(machine_account, ctx->lp_ctx); ctx 191 source4/libnet/libnet_samsync.c nt_status = cli_credentials_set_machine_account(machine_account, ctx->lp_ctx); ctx 240 source4/libnet/libnet_samsync.c *machine_net_ctx = *ctx; ctx 275 source4/libnet/libnet_samsync.c machine_account, ctx->lp_ctx, DCERPC_AUTH_LEVEL_PRIVACY); ctx 1216 source4/libnet/libnet_samsync_ldb.c NTSTATUS libnet_samsync_ldb(struct libnet_context *ctx, TALLOC_CTX *mem_ctx, struct libnet_samsync_ldb *r) ctx 1230 source4/libnet/libnet_samsync_ldb.c ctx->event_ctx, ctx 1231 source4/libnet/libnet_samsync_ldb.c ctx->lp_ctx, ctx 1241 source4/libnet/libnet_samsync_ldb.c nt_status = libnet_SamSync_netlogon(ctx, state, &r2); ctx 25 source4/libnet/libnet_share.c NTSTATUS libnet_ListShares(struct libnet_context *ctx, ctx 46 source4/libnet/libnet_share.c status = libnet_RpcConnect(ctx, mem_ctx, &c); ctx 116 source4/libnet/libnet_share.c NTSTATUS libnet_AddShare(struct libnet_context *ctx, ctx 128 source4/libnet/libnet_share.c status = libnet_RpcConnect(ctx, mem_ctx, &c); ctx 166 source4/libnet/libnet_share.c NTSTATUS libnet_DelShare(struct libnet_context *ctx, ctx 177 source4/libnet/libnet_share.c status = libnet_RpcConnect(ctx, mem_ctx, &c); ctx 33 source4/libnet/libnet_site.c NTSTATUS libnet_FindSite(TALLOC_CTX *ctx, struct libnet_context *lctx, struct libnet_JoinSite *r) ctx 45 source4/libnet/libnet_site.c tmp_ctx = talloc_named(ctx, 0, "libnet_FindSite temp context"); ctx 121 source4/libnet/libnet_site.c NTSTATUS libnet_JoinSite(struct libnet_context *ctx, ctx 153 source4/libnet/libnet_site.c status = resolve_name(lp_resolve_context(ctx->lp_ctx), &name, r, &dest_addr, ctx->event_ctx); ctx 164 source4/libnet/libnet_site.c r->in.cldap_port = lp_cldap_port(ctx->lp_ctx); ctx 166 source4/libnet/libnet_site.c status = libnet_FindSite(tmp_ctx, ctx, r); ctx 28 source4/libnet/libnet_time.c static NTSTATUS libnet_RemoteTOD_srvsvc(struct libnet_context *ctx, TALLOC_CTX *mem_ctx, union libnet_RemoteTOD *r) ctx 42 source4/libnet/libnet_time.c status = libnet_RpcConnect(ctx, mem_ctx, &c); ctx 95 source4/libnet/libnet_time.c static NTSTATUS libnet_RemoteTOD_generic(struct libnet_context *ctx, TALLOC_CTX *mem_ctx, union libnet_RemoteTOD *r) ctx 103 source4/libnet/libnet_time.c status = libnet_RemoteTOD(ctx, mem_ctx, &r2); ctx 113 source4/libnet/libnet_time.c NTSTATUS libnet_RemoteTOD(struct libnet_context *ctx, TALLOC_CTX *mem_ctx, union libnet_RemoteTOD *r) ctx 117 source4/libnet/libnet_time.c return libnet_RemoteTOD_generic(ctx, mem_ctx, r); ctx 119 source4/libnet/libnet_time.c return libnet_RemoteTOD_srvsvc(ctx, mem_ctx, r); ctx 677 source4/libnet/libnet_unbecome_dc.c struct composite_context *libnet_UnbecomeDC_send(struct libnet_context *ctx, TALLOC_CTX *mem_ctx, struct libnet_UnbecomeDC *r) ctx 683 source4/libnet/libnet_unbecome_dc.c c = composite_create(mem_ctx, ctx->event_ctx); ctx 690 source4/libnet/libnet_unbecome_dc.c s->libnet = ctx; ctx 729 source4/libnet/libnet_unbecome_dc.c NTSTATUS libnet_UnbecomeDC(struct libnet_context *ctx, TALLOC_CTX *mem_ctx, struct libnet_UnbecomeDC *r) ctx 733 source4/libnet/libnet_unbecome_dc.c c = libnet_UnbecomeDC_send(ctx, mem_ctx, r); ctx 37 source4/libnet/libnet_user.c struct libnet_context *ctx; ctx 44 source4/libnet/libnet_user.c static void continue_rpc_useradd(struct composite_context *ctx); ctx 45 source4/libnet/libnet_user.c static void continue_domain_open_create(struct composite_context *ctx); ctx 57 source4/libnet/libnet_user.c struct composite_context* libnet_CreateUser_send(struct libnet_context *ctx, ctx 68 source4/libnet/libnet_user.c c = composite_create(mem_ctx, ctx->event_ctx); ctx 77 source4/libnet/libnet_user.c s->ctx = ctx; ctx 82 source4/libnet/libnet_user.c prereq_met = samr_domain_opened(ctx, s->r.in.domain_name, &c, &s->domain_open, ctx 88 source4/libnet/libnet_user.c s->user_add.in.domain_handle = ctx->samr.handle; ctx 91 source4/libnet/libnet_user.c create_req = libnet_rpc_useradd_send(ctx->samr.pipe, &s->user_add, monitor); ctx 104 source4/libnet/libnet_user.c static void continue_domain_open_create(struct composite_context *ctx) ctx 111 source4/libnet/libnet_user.c c = talloc_get_type(ctx->async.private_data, struct composite_context); ctx 115 source4/libnet/libnet_user.c c->status = libnet_DomainOpen_recv(ctx, s->ctx, c, &s->domain_open); ctx 123 source4/libnet/libnet_user.c s->user_add.in.domain_handle = s->ctx->samr.handle; ctx 126 source4/libnet/libnet_user.c create_req = libnet_rpc_useradd_send(s->ctx->samr.pipe, &s->user_add, s->monitor_fn); ctx 137 source4/libnet/libnet_user.c static void continue_rpc_useradd(struct composite_context *ctx) ctx 143 source4/libnet/libnet_user.c c = talloc_get_type(ctx->async.private_data, struct composite_context); ctx 147 source4/libnet/libnet_user.c c->status = libnet_rpc_useradd_recv(ctx, c, &s->user_add); ctx 193 source4/libnet/libnet_user.c NTSTATUS libnet_CreateUser(struct libnet_context *ctx, TALLOC_CTX *mem_ctx, ctx 198 source4/libnet/libnet_user.c c = libnet_CreateUser_send(ctx, mem_ctx, r, NULL); ctx 205 source4/libnet/libnet_user.c struct libnet_context *ctx; ctx 214 source4/libnet/libnet_user.c static void continue_rpc_userdel(struct composite_context *ctx); ctx 215 source4/libnet/libnet_user.c static void continue_domain_open_delete(struct composite_context *ctx); ctx 226 source4/libnet/libnet_user.c struct composite_context *libnet_DeleteUser_send(struct libnet_context *ctx, ctx 237 source4/libnet/libnet_user.c c = composite_create(mem_ctx, ctx->event_ctx); ctx 246 source4/libnet/libnet_user.c s->ctx = ctx; ctx 251 source4/libnet/libnet_user.c prereq_met = samr_domain_opened(ctx, s->r.in.domain_name, &c, &s->domain_open, ctx 257 source4/libnet/libnet_user.c s->user_del.in.domain_handle = ctx->samr.handle; ctx 260 source4/libnet/libnet_user.c delete_req = libnet_rpc_userdel_send(ctx->samr.pipe, &s->user_del, monitor); ctx 273 source4/libnet/libnet_user.c static void continue_domain_open_delete(struct composite_context *ctx) ctx 280 source4/libnet/libnet_user.c c = talloc_get_type(ctx->async.private_data, struct composite_context); ctx 284 source4/libnet/libnet_user.c c->status = libnet_DomainOpen_recv(ctx, s->ctx, c, &s->domain_open); ctx 292 source4/libnet/libnet_user.c s->user_del.in.domain_handle = s->ctx->samr.handle; ctx 295 source4/libnet/libnet_user.c delete_req = libnet_rpc_userdel_send(s->ctx->samr.pipe, &s->user_del, s->monitor_fn); ctx 306 source4/libnet/libnet_user.c static void continue_rpc_userdel(struct composite_context *ctx) ctx 312 source4/libnet/libnet_user.c c = talloc_get_type(ctx->async.private_data, struct composite_context); ctx 316 source4/libnet/libnet_user.c c->status = libnet_rpc_userdel_recv(ctx, c, &s->user_del); ctx 360 source4/libnet/libnet_user.c NTSTATUS libnet_DeleteUser(struct libnet_context *ctx, TALLOC_CTX *mem_ctx, ctx 365 source4/libnet/libnet_user.c c = libnet_DeleteUser_send(ctx, mem_ctx, r, NULL); ctx 372 source4/libnet/libnet_user.c struct libnet_context *ctx; ctx 381 source4/libnet/libnet_user.c static void continue_rpc_usermod(struct composite_context *ctx); ctx 382 source4/libnet/libnet_user.c static void continue_domain_open_modify(struct composite_context *ctx); ctx 385 source4/libnet/libnet_user.c static void continue_rpc_userinfo(struct composite_context *ctx); ctx 396 source4/libnet/libnet_user.c struct composite_context *libnet_ModifyUser_send(struct libnet_context *ctx, ctx 407 source4/libnet/libnet_user.c c = composite_create(mem_ctx, ctx->event_ctx); ctx 415 source4/libnet/libnet_user.c s->ctx = ctx; ctx 418 source4/libnet/libnet_user.c prereq_met = samr_domain_opened(ctx, s->r.in.domain_name, &c, &s->domain_open, ctx 423 source4/libnet/libnet_user.c s->user_info.in.domain_handle = ctx->samr.handle; ctx 426 source4/libnet/libnet_user.c userinfo_req = libnet_rpc_userinfo_send(ctx->samr.pipe, &s->user_info, monitor); ctx 438 source4/libnet/libnet_user.c static void continue_domain_open_modify(struct composite_context *ctx) ctx 446 source4/libnet/libnet_user.c c = talloc_get_type(ctx->async.private_data, struct composite_context); ctx 449 source4/libnet/libnet_user.c c->status = libnet_DomainOpen_recv(ctx, s->ctx, c, &s->domain_open); ctx 454 source4/libnet/libnet_user.c s->user_info.in.domain_handle = s->ctx->samr.handle; ctx 458 source4/libnet/libnet_user.c userinfo_req = libnet_rpc_userinfo_send(s->ctx->samr.pipe, &s->user_info, s->monitor_fn); ctx 469 source4/libnet/libnet_user.c static void continue_rpc_userinfo(struct composite_context *ctx) ctx 475 source4/libnet/libnet_user.c c = talloc_get_type(ctx->async.private_data, struct composite_context); ctx 478 source4/libnet/libnet_user.c c->status = libnet_rpc_userinfo_recv(ctx, c, &s->user_info); ctx 481 source4/libnet/libnet_user.c s->user_mod.in.domain_handle = s->ctx->samr.handle; ctx 486 source4/libnet/libnet_user.c usermod_req = libnet_rpc_usermod_send(s->ctx->samr.pipe, &s->user_mod, s->monitor_fn); ctx 546 source4/libnet/libnet_user.c static void continue_rpc_usermod(struct composite_context *ctx) ctx 552 source4/libnet/libnet_user.c c = talloc_get_type(ctx->async.private_data, struct composite_context); ctx 555 source4/libnet/libnet_user.c c->status = libnet_rpc_usermod_recv(ctx, c, &s->user_mod); ctx 587 source4/libnet/libnet_user.c NTSTATUS libnet_ModifyUser(struct libnet_context *ctx, TALLOC_CTX *mem_ctx, ctx 592 source4/libnet/libnet_user.c c = libnet_ModifyUser_send(ctx, mem_ctx, r, NULL); ctx 598 source4/libnet/libnet_user.c struct libnet_context *ctx; ctx 612 source4/libnet/libnet_user.c static void continue_name_found(struct composite_context *ctx); ctx 613 source4/libnet/libnet_user.c static void continue_domain_open_info(struct composite_context *ctx); ctx 614 source4/libnet/libnet_user.c static void continue_info_received(struct composite_context *ctx); ctx 626 source4/libnet/libnet_user.c struct composite_context* libnet_UserInfo_send(struct libnet_context *ctx, ctx 637 source4/libnet/libnet_user.c c = composite_create(mem_ctx, ctx->event_ctx); ctx 647 source4/libnet/libnet_user.c s->ctx = ctx; ctx 662 source4/libnet/libnet_user.c prereq_met = samr_domain_opened(ctx, s->domain_name, &c, &s->domopen, ctx 673 source4/libnet/libnet_user.c lookup_req = libnet_LookupName_send(ctx, c, &s->lookup, ctx 682 source4/libnet/libnet_user.c s->userinfo.in.domain_handle = s->ctx->samr.handle; ctx 687 source4/libnet/libnet_user.c info_req = libnet_rpc_userinfo_send(s->ctx->samr.pipe, ctx 705 source4/libnet/libnet_user.c static void continue_domain_open_info(struct composite_context *ctx) ctx 712 source4/libnet/libnet_user.c c = talloc_get_type(ctx->async.private_data, struct composite_context); ctx 716 source4/libnet/libnet_user.c c->status = libnet_DomainOpen_recv(ctx, s->ctx, c, &s->domopen); ctx 729 source4/libnet/libnet_user.c lookup_req = libnet_LookupName_send(s->ctx, c, &s->lookup, s->monitor_fn); ctx 738 source4/libnet/libnet_user.c s->userinfo.in.domain_handle = s->ctx->samr.handle; ctx 743 source4/libnet/libnet_user.c info_req = libnet_rpc_userinfo_send(s->ctx->samr.pipe, ctx 758 source4/libnet/libnet_user.c static void continue_name_found(struct composite_context *ctx) ctx 764 source4/libnet/libnet_user.c c = talloc_get_type(ctx->async.private_data, struct composite_context); ctx 768 source4/libnet/libnet_user.c c->status = libnet_LookupName_recv(ctx, c, &s->lookup); ctx 778 source4/libnet/libnet_user.c s->userinfo.in.domain_handle = s->ctx->samr.handle; ctx 783 source4/libnet/libnet_user.c info_req = libnet_rpc_userinfo_send(s->ctx->samr.pipe, &s->userinfo, s->monitor_fn); ctx 794 source4/libnet/libnet_user.c static void continue_info_received(struct composite_context *ctx) ctx 799 source4/libnet/libnet_user.c c = talloc_get_type(ctx->async.private_data, struct composite_context); ctx 803 source4/libnet/libnet_user.c c->status = libnet_rpc_userinfo_recv(ctx, c, &s->userinfo); ctx 832 source4/libnet/libnet_user.c r->out.user_sid = dom_sid_add_rid(mem_ctx, s->ctx->samr.sid, info->rid); ctx 833 source4/libnet/libnet_user.c r->out.primary_group_sid = dom_sid_add_rid(mem_ctx, s->ctx->samr.sid, info->primary_gid); ctx 884 source4/libnet/libnet_user.c NTSTATUS libnet_UserInfo(struct libnet_context *ctx, TALLOC_CTX *mem_ctx, ctx 889 source4/libnet/libnet_user.c c = libnet_UserInfo_send(ctx, mem_ctx, r, NULL); ctx 895 source4/libnet/libnet_user.c struct libnet_context *ctx; ctx 911 source4/libnet/libnet_user.c static void continue_lsa_domain_opened(struct composite_context *ctx); ctx 913 source4/libnet/libnet_user.c static void continue_samr_domain_opened(struct composite_context *ctx); ctx 926 source4/libnet/libnet_user.c struct composite_context* libnet_UserList_send(struct libnet_context *ctx, ctx 937 source4/libnet/libnet_user.c c = composite_create(mem_ctx, ctx->event_ctx); ctx 946 source4/libnet/libnet_user.c s->ctx = ctx; ctx 953 source4/libnet/libnet_user.c prereq_met = lsa_domain_opened(ctx, s->domain_name, &c, &s->domain_open, ctx 958 source4/libnet/libnet_user.c s->query_domain.in.handle = &ctx->lsa.handle; ctx 964 source4/libnet/libnet_user.c query_req = dcerpc_lsa_QueryInfoPolicy_send(ctx->lsa.pipe, c, &s->query_domain); ctx 976 source4/libnet/libnet_user.c static void continue_lsa_domain_opened(struct composite_context *ctx) ctx 982 source4/libnet/libnet_user.c c = talloc_get_type(ctx->async.private_data, struct composite_context); ctx 986 source4/libnet/libnet_user.c c->status = libnet_DomainOpen_recv(ctx, s->ctx, c, &s->domain_open); ctx 990 source4/libnet/libnet_user.c s->query_domain.in.handle = &s->ctx->lsa.handle; ctx 996 source4/libnet/libnet_user.c query_req = dcerpc_lsa_QueryInfoPolicy_send(s->ctx->lsa.pipe, c, &s->query_domain); ctx 1025 source4/libnet/libnet_user.c prereq_met = samr_domain_opened(s->ctx, s->domain_name, &c, &s->domain_open, ctx 1030 source4/libnet/libnet_user.c s->user_list.in.domain_handle = &s->ctx->samr.handle; ctx 1041 source4/libnet/libnet_user.c enum_req = dcerpc_samr_EnumDomainUsers_send(s->ctx->samr.pipe, c, &s->user_list); ctx 1052 source4/libnet/libnet_user.c static void continue_samr_domain_opened(struct composite_context *ctx) ctx 1058 source4/libnet/libnet_user.c c = talloc_get_type(ctx->async.private_data, struct composite_context); ctx 1062 source4/libnet/libnet_user.c c->status = libnet_DomainOpen_recv(ctx, s->ctx, c, &s->domain_open); ctx 1066 source4/libnet/libnet_user.c s->user_list.in.domain_handle = &s->ctx->samr.handle; ctx 1077 source4/libnet/libnet_user.c enum_req = dcerpc_samr_EnumDomainUsers_send(s->ctx->samr.pipe, c, &s->user_list); ctx 1201 source4/libnet/libnet_user.c NTSTATUS libnet_UserList(struct libnet_context *ctx, ctx 1207 source4/libnet/libnet_user.c c = libnet_UserList_send(ctx, mem_ctx, r, NULL); ctx 575 source4/libnet/libnet_vampire.c NTSTATUS libnet_Vampire(struct libnet_context *ctx, TALLOC_CTX *mem_ctx, ctx 597 source4/libnet/libnet_vampire.c s->lp_ctx = ctx->lp_ctx; ctx 598 source4/libnet/libnet_vampire.c s->event_ctx = ctx->event_ctx; ctx 608 source4/libnet/libnet_vampire.c netbios_name = talloc_reference(join, lp_netbios_name(ctx->lp_ctx)); ctx 629 source4/libnet/libnet_vampire.c status = libnet_JoinDomain(ctx, join, join); ctx 654 source4/libnet/libnet_vampire.c status = libnet_BecomeDC(ctx, s, &b); ctx 707 source4/libnet/libnet_vampire.c status = libnet_set_join_secrets(ctx, set_secrets, set_secrets); ctx 32 source4/libnet/prereq_domain.c bool samr_domain_opened(struct libnet_context *ctx, const char *domain_name, ctx 48 source4/libnet/prereq_domain.c if (policy_handle_empty(&ctx->samr.handle)) { ctx 50 source4/libnet/prereq_domain.c domain_open->in.domain_name = cli_credentials_get_domain(ctx->cred); ctx 65 source4/libnet/prereq_domain.c if (policy_handle_empty(&ctx->samr.handle) || ctx 66 source4/libnet/prereq_domain.c !strequal(domain_name, ctx->samr.name)) { ctx 79 source4/libnet/prereq_domain.c domopen_req = libnet_DomainOpen_send(ctx, domain_open, monitor); ctx 87 source4/libnet/prereq_domain.c bool lsa_domain_opened(struct libnet_context *ctx, const char *domain_name, ctx 103 source4/libnet/prereq_domain.c if (policy_handle_empty(&ctx->lsa.handle)) { ctx 105 source4/libnet/prereq_domain.c domain_open->in.domain_name = cli_credentials_get_domain(ctx->cred); ctx 122 source4/libnet/prereq_domain.c if (policy_handle_empty(&ctx->lsa.handle) || ctx 123 source4/libnet/prereq_domain.c !strequal(domain_name, ctx->lsa.name)) { ctx 136 source4/libnet/prereq_domain.c domopen_req = libnet_DomainOpen_send(ctx, domain_open, monitor); ctx 758 source4/librpc/rpc/dcerpc.c NTSTATUS dcerpc_bind_recv(struct composite_context *ctx) ctx 760 source4/librpc/rpc/dcerpc.c NTSTATUS result = composite_wait(ctx); ctx 761 source4/librpc/rpc/dcerpc.c talloc_free(ctx); ctx 1116 source4/librpc/rpc/dcerpc.c struct tevent_context *ctx = dcerpc_event_context(req->p); ctx 1117 source4/librpc/rpc/dcerpc.c if (event_loop_once(ctx) != 0) { ctx 1679 source4/librpc/rpc/dcerpc.c NTSTATUS dcerpc_alter_context_recv(struct composite_context *ctx) ctx 1681 source4/librpc/rpc/dcerpc.c NTSTATUS result = composite_wait(ctx); ctx 1682 source4/librpc/rpc/dcerpc.c talloc_free(ctx); ctx 81 source4/librpc/rpc/dcerpc_auth.c NTSTATUS dcerpc_bind_auth_none_recv(struct composite_context *ctx) ctx 83 source4/librpc/rpc/dcerpc_auth.c return dcerpc_bind_recv(ctx); ctx 93 source4/librpc/rpc/dcerpc_auth.c struct composite_context *ctx; ctx 95 source4/librpc/rpc/dcerpc_auth.c ctx = dcerpc_bind_auth_none_send(p, p, table); ctx 96 source4/librpc/rpc/dcerpc_auth.c return dcerpc_bind_auth_none_recv(ctx); ctx 49 source4/librpc/rpc/dcerpc_connect.c static void continue_pipe_open_smb(struct composite_context *ctx) ctx 51 source4/librpc/rpc/dcerpc_connect.c struct composite_context *c = talloc_get_type(ctx->async.private_data, ctx 55 source4/librpc/rpc/dcerpc_connect.c c->status = dcerpc_pipe_open_smb_recv(ctx); ctx 65 source4/librpc/rpc/dcerpc_connect.c static void continue_smb_connect(struct composite_context *ctx) ctx 68 source4/librpc/rpc/dcerpc_connect.c struct composite_context *c = talloc_get_type(ctx->async.private_data, ctx 74 source4/librpc/rpc/dcerpc_connect.c c->status = smb_composite_connect_recv(ctx, c); ctx 174 source4/librpc/rpc/dcerpc_connect.c static void continue_pipe_open_smb2(struct composite_context *ctx) ctx 176 source4/librpc/rpc/dcerpc_connect.c struct composite_context *c = talloc_get_type(ctx->async.private_data, ctx 180 source4/librpc/rpc/dcerpc_connect.c c->status = dcerpc_pipe_open_smb2_recv(ctx); ctx 190 source4/librpc/rpc/dcerpc_connect.c static void continue_smb2_connect(struct composite_context *ctx) ctx 193 source4/librpc/rpc/dcerpc_connect.c struct composite_context *c = talloc_get_type(ctx->async.private_data, ctx 199 source4/librpc/rpc/dcerpc_connect.c c->status = smb2_connect_recv(ctx, c, &s->tree); ctx 289 source4/librpc/rpc/dcerpc_connect.c static void continue_pipe_open_ncacn_ip_tcp(struct composite_context *ctx) ctx 291 source4/librpc/rpc/dcerpc_connect.c struct composite_context *c = talloc_get_type(ctx->async.private_data, ctx 295 source4/librpc/rpc/dcerpc_connect.c c->status = dcerpc_pipe_open_tcp_recv(ctx); ctx 357 source4/librpc/rpc/dcerpc_connect.c static void continue_pipe_open_ncacn_unix_stream(struct composite_context *ctx) ctx 359 source4/librpc/rpc/dcerpc_connect.c struct composite_context *c = talloc_get_type(ctx->async.private_data, ctx 363 source4/librpc/rpc/dcerpc_connect.c c->status = dcerpc_pipe_open_unix_stream_recv(ctx); ctx 430 source4/librpc/rpc/dcerpc_connect.c static void continue_pipe_open_ncalrpc(struct composite_context *ctx) ctx 432 source4/librpc/rpc/dcerpc_connect.c struct composite_context *c = talloc_get_type(ctx->async.private_data, ctx 436 source4/librpc/rpc/dcerpc_connect.c c->status = dcerpc_pipe_connect_ncalrpc_recv(ctx); ctx 494 source4/librpc/rpc/dcerpc_connect.c static void continue_map_binding(struct composite_context *ctx); ctx 496 source4/librpc/rpc/dcerpc_connect.c static void continue_pipe_connect_ncacn_np_smb2(struct composite_context *ctx); ctx 497 source4/librpc/rpc/dcerpc_connect.c static void continue_pipe_connect_ncacn_np_smb(struct composite_context *ctx); ctx 498 source4/librpc/rpc/dcerpc_connect.c static void continue_pipe_connect_ncacn_ip_tcp(struct composite_context *ctx); ctx 499 source4/librpc/rpc/dcerpc_connect.c static void continue_pipe_connect_ncacn_unix(struct composite_context *ctx); ctx 500 source4/librpc/rpc/dcerpc_connect.c static void continue_pipe_connect_ncalrpc(struct composite_context *ctx); ctx 502 source4/librpc/rpc/dcerpc_connect.c static void continue_pipe_auth(struct composite_context *ctx); ctx 508 source4/librpc/rpc/dcerpc_connect.c static void continue_map_binding(struct composite_context *ctx) ctx 510 source4/librpc/rpc/dcerpc_connect.c struct composite_context *c = talloc_get_type(ctx->async.private_data, ctx 515 source4/librpc/rpc/dcerpc_connect.c c->status = dcerpc_epm_map_binding_recv(ctx); ctx 588 source4/librpc/rpc/dcerpc_connect.c static void continue_pipe_connect_ncacn_np_smb2(struct composite_context *ctx) ctx 590 source4/librpc/rpc/dcerpc_connect.c struct composite_context *c = talloc_get_type(ctx->async.private_data, ctx 595 source4/librpc/rpc/dcerpc_connect.c c->status = dcerpc_pipe_connect_ncacn_np_smb2_recv(ctx); ctx 606 source4/librpc/rpc/dcerpc_connect.c static void continue_pipe_connect_ncacn_np_smb(struct composite_context *ctx) ctx 608 source4/librpc/rpc/dcerpc_connect.c struct composite_context *c = talloc_get_type(ctx->async.private_data, ctx 613 source4/librpc/rpc/dcerpc_connect.c c->status = dcerpc_pipe_connect_ncacn_np_smb_recv(ctx); ctx 623 source4/librpc/rpc/dcerpc_connect.c static void continue_pipe_connect_ncacn_ip_tcp(struct composite_context *ctx) ctx 625 source4/librpc/rpc/dcerpc_connect.c struct composite_context *c = talloc_get_type(ctx->async.private_data, ctx 630 source4/librpc/rpc/dcerpc_connect.c c->status = dcerpc_pipe_connect_ncacn_ip_tcp_recv(ctx); ctx 640 source4/librpc/rpc/dcerpc_connect.c static void continue_pipe_connect_ncacn_unix(struct composite_context *ctx) ctx 642 source4/librpc/rpc/dcerpc_connect.c struct composite_context *c = talloc_get_type(ctx->async.private_data, ctx 647 source4/librpc/rpc/dcerpc_connect.c c->status = dcerpc_pipe_connect_ncacn_unix_stream_recv(ctx); ctx 657 source4/librpc/rpc/dcerpc_connect.c static void continue_pipe_connect_ncalrpc(struct composite_context *ctx) ctx 659 source4/librpc/rpc/dcerpc_connect.c struct composite_context *c = talloc_get_type(ctx->async.private_data, ctx 664 source4/librpc/rpc/dcerpc_connect.c c->status = dcerpc_pipe_connect_ncalrpc_recv(ctx); ctx 695 source4/librpc/rpc/dcerpc_connect.c static void continue_pipe_auth(struct composite_context *ctx) ctx 697 source4/librpc/rpc/dcerpc_connect.c struct composite_context *c = talloc_get_type(ctx->async.private_data, ctx 701 source4/librpc/rpc/dcerpc_connect.c c->status = dcerpc_pipe_auth_recv(ctx, s, &s->pipe); ctx 839 source4/librpc/rpc/dcerpc_connect.c static void continue_pipe_connect_b(struct composite_context *ctx); ctx 893 source4/librpc/rpc/dcerpc_connect.c static void continue_pipe_connect_b(struct composite_context *ctx) ctx 895 source4/librpc/rpc/dcerpc_connect.c struct composite_context *c = talloc_get_type(ctx->async.private_data, ctx 900 source4/librpc/rpc/dcerpc_connect.c c->status = dcerpc_pipe_connect_b_recv(ctx, c, &s->pipe); ctx 50 source4/librpc/rpc/dcerpc_schannel.c static void continue_secondary_connection(struct composite_context *ctx); ctx 51 source4/librpc/rpc/dcerpc_schannel.c static void continue_bind_auth_none(struct composite_context *ctx); ctx 60 source4/librpc/rpc/dcerpc_schannel.c static void continue_epm_map_binding(struct composite_context *ctx) ctx 66 source4/librpc/rpc/dcerpc_schannel.c c = talloc_get_type(ctx->async.private_data, struct composite_context); ctx 70 source4/librpc/rpc/dcerpc_schannel.c c->status = dcerpc_epm_map_binding_recv(ctx); ctx 91 source4/librpc/rpc/dcerpc_schannel.c static void continue_secondary_connection(struct composite_context *ctx) ctx 97 source4/librpc/rpc/dcerpc_schannel.c c = talloc_get_type(ctx->async.private_data, struct composite_context); ctx 101 source4/librpc/rpc/dcerpc_schannel.c c->status = dcerpc_secondary_connection_recv(ctx, &s->pipe2); ctx 118 source4/librpc/rpc/dcerpc_schannel.c static void continue_bind_auth_none(struct composite_context *ctx) ctx 124 source4/librpc/rpc/dcerpc_schannel.c c = talloc_get_type(ctx->async.private_data, struct composite_context); ctx 128 source4/librpc/rpc/dcerpc_schannel.c c->status = dcerpc_bind_auth_none_recv(ctx); ctx 298 source4/librpc/rpc/dcerpc_schannel.c static void continue_bind_auth(struct composite_context *ctx); ctx 305 source4/librpc/rpc/dcerpc_schannel.c static void continue_schannel_key(struct composite_context *ctx) ctx 308 source4/librpc/rpc/dcerpc_schannel.c struct composite_context *c = talloc_get_type(ctx->async.private_data, ctx 314 source4/librpc/rpc/dcerpc_schannel.c c->status = dcerpc_schannel_key_recv(ctx); ctx 336 source4/librpc/rpc/dcerpc_schannel.c static void continue_bind_auth(struct composite_context *ctx) ctx 338 source4/librpc/rpc/dcerpc_schannel.c struct composite_context *c = talloc_get_type(ctx->async.private_data, ctx 341 source4/librpc/rpc/dcerpc_schannel.c c->status = dcerpc_bind_auth_recv(ctx); ctx 45 source4/librpc/rpc/dcerpc_secondary.c static void continue_open_smb(struct composite_context *ctx); ctx 46 source4/librpc/rpc/dcerpc_secondary.c static void continue_open_tcp(struct composite_context *ctx); ctx 47 source4/librpc/rpc/dcerpc_secondary.c static void continue_open_pipe(struct composite_context *ctx); ctx 131 source4/librpc/rpc/dcerpc_secondary.c static void continue_open_smb(struct composite_context *ctx) ctx 133 source4/librpc/rpc/dcerpc_secondary.c struct composite_context *c = talloc_get_type(ctx->async.private_data, ctx 136 source4/librpc/rpc/dcerpc_secondary.c c->status = dcerpc_pipe_open_smb_recv(ctx); ctx 146 source4/librpc/rpc/dcerpc_secondary.c static void continue_open_tcp(struct composite_context *ctx) ctx 148 source4/librpc/rpc/dcerpc_secondary.c struct composite_context *c = talloc_get_type(ctx->async.private_data, ctx 151 source4/librpc/rpc/dcerpc_secondary.c c->status = dcerpc_pipe_open_tcp_recv(ctx); ctx 161 source4/librpc/rpc/dcerpc_secondary.c static void continue_open_pipe(struct composite_context *ctx) ctx 163 source4/librpc/rpc/dcerpc_secondary.c struct composite_context *c = talloc_get_type(ctx->async.private_data, ctx 166 source4/librpc/rpc/dcerpc_secondary.c c->status = dcerpc_pipe_open_pipe_recv(ctx); ctx 242 source4/librpc/rpc/dcerpc_secondary.c struct composite_context *ctx; ctx 246 source4/librpc/rpc/dcerpc_secondary.c static void dcerpc_secondary_auth_connection_bind(struct composite_context *ctx); ctx 247 source4/librpc/rpc/dcerpc_secondary.c static void dcerpc_secondary_auth_connection_continue(struct composite_context *ctx); ctx 266 source4/librpc/rpc/dcerpc_secondary.c s->ctx = c; ctx 275 source4/librpc/rpc/dcerpc_secondary.c if (composite_nomem(secondary_conn_ctx, s->ctx)) { ctx 280 source4/librpc/rpc/dcerpc_secondary.c composite_continue(s->ctx, secondary_conn_ctx, dcerpc_secondary_auth_connection_bind, ctx 289 source4/librpc/rpc/dcerpc_secondary.c static void dcerpc_secondary_auth_connection_bind(struct composite_context *ctx) ctx 292 source4/librpc/rpc/dcerpc_secondary.c struct sec_auth_conn_state *s = talloc_get_type(ctx->async.private_data, ctx 295 source4/librpc/rpc/dcerpc_secondary.c s->ctx->status = dcerpc_secondary_connection_recv(ctx, &s->pipe2); ctx 296 source4/librpc/rpc/dcerpc_secondary.c if (!composite_is_ok(s->ctx)) return; ctx 300 source4/librpc/rpc/dcerpc_secondary.c composite_continue(s->ctx, secondary_auth_ctx, dcerpc_secondary_auth_connection_continue, s); ctx 307 source4/librpc/rpc/dcerpc_secondary.c static void dcerpc_secondary_auth_connection_continue(struct composite_context *ctx) ctx 309 source4/librpc/rpc/dcerpc_secondary.c struct sec_auth_conn_state *s = talloc_get_type(ctx->async.private_data, ctx 312 source4/librpc/rpc/dcerpc_secondary.c s->ctx->status = dcerpc_pipe_auth_recv(ctx, s, &s->pipe2); ctx 313 source4/librpc/rpc/dcerpc_secondary.c if (!composite_is_ok(s->ctx)) return; ctx 315 source4/librpc/rpc/dcerpc_secondary.c composite_done(s->ctx); ctx 425 source4/librpc/rpc/dcerpc_smb.c struct composite_context *ctx; ctx 434 source4/librpc/rpc/dcerpc_smb.c struct composite_context *ctx; ctx 453 source4/librpc/rpc/dcerpc_smb.c ctx = composite_create(c, c->event_ctx); ctx 454 source4/librpc/rpc/dcerpc_smb.c if (ctx == NULL) return NULL; ctx 456 source4/librpc/rpc/dcerpc_smb.c state = talloc(ctx, struct pipe_open_smb_state); ctx 457 source4/librpc/rpc/dcerpc_smb.c if (composite_nomem(state, ctx)) return ctx; ctx 458 source4/librpc/rpc/dcerpc_smb.c ctx->private_data = state; ctx 462 source4/librpc/rpc/dcerpc_smb.c state->ctx = ctx; ctx 465 source4/librpc/rpc/dcerpc_smb.c if (composite_nomem(state->open, ctx)) return ctx; ctx 495 source4/librpc/rpc/dcerpc_smb.c if (composite_nomem(state->open->ntcreatex.in.fname, ctx)) return ctx; ctx 498 source4/librpc/rpc/dcerpc_smb.c composite_continue_smb(ctx, req, pipe_open_recv, state); ctx 499 source4/librpc/rpc/dcerpc_smb.c return ctx; ctx 506 source4/librpc/rpc/dcerpc_smb.c struct composite_context *ctx = state->ctx; ctx 510 source4/librpc/rpc/dcerpc_smb.c ctx->status = smb_raw_open_recv(req, state, state->open); ctx 511 source4/librpc/rpc/dcerpc_smb.c if (!composite_is_ok(ctx)) return; ctx 530 source4/librpc/rpc/dcerpc_smb.c if (composite_nomem(smb, ctx)) return; ctx 536 source4/librpc/rpc/dcerpc_smb.c if (composite_nomem(smb->server_name, ctx)) return; ctx 541 source4/librpc/rpc/dcerpc_smb.c composite_done(ctx); ctx 555 source4/librpc/rpc/dcerpc_smb.c struct composite_context *ctx = dcerpc_pipe_open_smb_send(p, tree, ctx 557 source4/librpc/rpc/dcerpc_smb.c return dcerpc_pipe_open_smb_recv(ctx); ctx 388 source4/librpc/rpc/dcerpc_smb2.c struct composite_context *ctx; ctx 397 source4/librpc/rpc/dcerpc_smb2.c struct composite_context *ctx; ctx 403 source4/librpc/rpc/dcerpc_smb2.c ctx = composite_create(c, c->event_ctx); ctx 404 source4/librpc/rpc/dcerpc_smb2.c if (ctx == NULL) return NULL; ctx 406 source4/librpc/rpc/dcerpc_smb2.c state = talloc(ctx, struct pipe_open_smb2_state); ctx 407 source4/librpc/rpc/dcerpc_smb2.c if (composite_nomem(state, ctx)) return ctx; ctx 408 source4/librpc/rpc/dcerpc_smb2.c ctx->private_data = state; ctx 411 source4/librpc/rpc/dcerpc_smb2.c state->ctx = ctx; ctx 440 source4/librpc/rpc/dcerpc_smb2.c composite_continue_smb2(ctx, req, pipe_open_recv, state); ctx 441 source4/librpc/rpc/dcerpc_smb2.c return ctx; ctx 449 source4/librpc/rpc/dcerpc_smb2.c struct composite_context *ctx = state->ctx; ctx 455 source4/librpc/rpc/dcerpc_smb2.c ctx->status = smb2_create_recv(req, state, &io); ctx 456 source4/librpc/rpc/dcerpc_smb2.c if (!composite_is_ok(ctx)) return; ctx 475 source4/librpc/rpc/dcerpc_smb2.c if (composite_nomem(smb, ctx)) return; ctx 481 source4/librpc/rpc/dcerpc_smb2.c if (composite_nomem(smb->server_name, ctx)) return; ctx 486 source4/librpc/rpc/dcerpc_smb2.c composite_done(ctx); ctx 500 source4/librpc/rpc/dcerpc_smb2.c struct composite_context *ctx = dcerpc_pipe_open_smb2_send(p, tree, pipe_name); ctx 501 source4/librpc/rpc/dcerpc_smb2.c return dcerpc_pipe_open_smb2_recv(ctx); ctx 237 source4/librpc/rpc/dcerpc_sock.c static void continue_socket_connect(struct composite_context *ctx) ctx 241 source4/librpc/rpc/dcerpc_sock.c struct composite_context *c = talloc_get_type(ctx->async.private_data, ctx 250 source4/librpc/rpc/dcerpc_sock.c c->status = socket_connect_recv(ctx); ctx 367 source4/librpc/rpc/dcerpc_sock.c static void continue_ipv6_open_socket(struct composite_context *ctx); ctx 369 source4/librpc/rpc/dcerpc_sock.c static void continue_ipv4_open_socket(struct composite_context *ctx); ctx 370 source4/librpc/rpc/dcerpc_sock.c static void continue_ip_resolve_name(struct composite_context *ctx); ctx 372 source4/librpc/rpc/dcerpc_sock.c static void continue_ip_resolve_name(struct composite_context *ctx) ctx 374 source4/librpc/rpc/dcerpc_sock.c struct composite_context *c = talloc_get_type(ctx->async.private_data, ctx 380 source4/librpc/rpc/dcerpc_sock.c c->status = resolve_name_recv(ctx, s, &s->address); ctx 400 source4/librpc/rpc/dcerpc_sock.c static void continue_ipv6_open_socket(struct composite_context *ctx) ctx 402 source4/librpc/rpc/dcerpc_sock.c struct composite_context *c = talloc_get_type(ctx->async.private_data, ctx 409 source4/librpc/rpc/dcerpc_sock.c c->status = dcerpc_pipe_open_socket_recv(ctx); ctx 433 source4/librpc/rpc/dcerpc_sock.c static void continue_ipv4_open_socket(struct composite_context *ctx) ctx 435 source4/librpc/rpc/dcerpc_sock.c struct composite_context *c = talloc_get_type(ctx->async.private_data, ctx 441 source4/librpc/rpc/dcerpc_sock.c c->status = dcerpc_pipe_open_socket_recv(ctx); ctx 520 source4/librpc/rpc/dcerpc_sock.c static void continue_unix_open_socket(struct composite_context *ctx) ctx 522 source4/librpc/rpc/dcerpc_sock.c struct composite_context *c = talloc_get_type(ctx->async.private_data, ctx 525 source4/librpc/rpc/dcerpc_sock.c c->status = dcerpc_pipe_open_socket_recv(ctx); ctx 587 source4/librpc/rpc/dcerpc_sock.c static void continue_np_open_socket(struct composite_context *ctx) ctx 589 source4/librpc/rpc/dcerpc_sock.c struct composite_context *c = talloc_get_type(ctx->async.private_data, ctx 592 source4/librpc/rpc/dcerpc_sock.c c->status = dcerpc_pipe_open_socket_recv(ctx); ctx 113 source4/librpc/rpc/dcerpc_util.c static void continue_epm_recv_binding(struct composite_context *ctx); ctx 121 source4/librpc/rpc/dcerpc_util.c static void continue_epm_recv_binding(struct composite_context *ctx) ctx 125 source4/librpc/rpc/dcerpc_util.c struct composite_context *c = talloc_get_type(ctx->async.private_data, ctx 131 source4/librpc/rpc/dcerpc_util.c c->status = dcerpc_pipe_connect_b_recv(ctx, c, &s->pipe); ctx 325 source4/librpc/rpc/dcerpc_util.c static void continue_auth_schannel(struct composite_context *ctx); ctx 326 source4/librpc/rpc/dcerpc_util.c static void continue_auth(struct composite_context *ctx); ctx 327 source4/librpc/rpc/dcerpc_util.c static void continue_auth_none(struct composite_context *ctx); ctx 328 source4/librpc/rpc/dcerpc_util.c static void continue_ntlmssp_connection(struct composite_context *ctx); ctx 329 source4/librpc/rpc/dcerpc_util.c static void continue_spnego_after_wrong_pass(struct composite_context *ctx); ctx 335 source4/librpc/rpc/dcerpc_util.c static void continue_auth_schannel(struct composite_context *ctx) ctx 337 source4/librpc/rpc/dcerpc_util.c struct composite_context *c = talloc_get_type(ctx->async.private_data, ctx 340 source4/librpc/rpc/dcerpc_util.c c->status = dcerpc_bind_auth_schannel_recv(ctx); ctx 350 source4/librpc/rpc/dcerpc_util.c static void continue_auth(struct composite_context *ctx) ctx 352 source4/librpc/rpc/dcerpc_util.c struct composite_context *c = talloc_get_type(ctx->async.private_data, ctx 355 source4/librpc/rpc/dcerpc_util.c c->status = dcerpc_bind_auth_recv(ctx); ctx 364 source4/librpc/rpc/dcerpc_util.c static void continue_auth_auto(struct composite_context *ctx) ctx 366 source4/librpc/rpc/dcerpc_util.c struct composite_context *c = talloc_get_type(ctx->async.private_data, ctx 371 source4/librpc/rpc/dcerpc_util.c c->status = dcerpc_bind_auth_recv(ctx); ctx 404 source4/librpc/rpc/dcerpc_util.c static void continue_ntlmssp_connection(struct composite_context *ctx) ctx 411 source4/librpc/rpc/dcerpc_util.c c = talloc_get_type(ctx->async.private_data, struct composite_context); ctx 415 source4/librpc/rpc/dcerpc_util.c c->status = dcerpc_secondary_connection_recv(ctx, &p2); ctx 437 source4/librpc/rpc/dcerpc_util.c static void continue_spnego_after_wrong_pass(struct composite_context *ctx) ctx 444 source4/librpc/rpc/dcerpc_util.c c = talloc_get_type(ctx->async.private_data, struct composite_context); ctx 448 source4/librpc/rpc/dcerpc_util.c c->status = dcerpc_secondary_connection_recv(ctx, &p2); ctx 469 source4/librpc/rpc/dcerpc_util.c static void continue_auth_none(struct composite_context *ctx) ctx 471 source4/librpc/rpc/dcerpc_util.c struct composite_context *c = talloc_get_type(ctx->async.private_data, ctx 474 source4/librpc/rpc/dcerpc_util.c c->status = dcerpc_bind_auth_none_recv(ctx); ctx 40 source4/nbt_server/wins/winswack.c struct composite_context *ctx = talloc_get_type(req->async.private_data, struct composite_context); ctx 41 source4/nbt_server/wins/winswack.c struct wins_challenge_state *state = talloc_get_type(ctx->private_data, struct wins_challenge_state); ctx 43 source4/nbt_server/wins/winswack.c ctx->status = nbt_name_query_recv(req, state, &state->query); ctx 46 source4/nbt_server/wins/winswack.c if (NT_STATUS_EQUAL(ctx->status, NT_STATUS_IO_TIMEOUT)) { ctx 56 source4/nbt_server/wins/winswack.c composite_error(ctx, NT_STATUS_INTERNAL_ERROR); ctx 62 source4/nbt_server/wins/winswack.c composite_continue_nbt(ctx, req, wins_challenge_handler, ctx); ctx 67 source4/nbt_server/wins/winswack.c composite_done(ctx); ctx 70 source4/nbt_server/wins/winswack.c NTSTATUS wins_challenge_recv(struct composite_context *ctx, TALLOC_CTX *mem_ctx, struct wins_challenge_io *io) ctx 72 source4/nbt_server/wins/winswack.c NTSTATUS status = ctx->status; ctx 73 source4/nbt_server/wins/winswack.c struct wins_challenge_state *state = talloc_get_type(ctx->private_data, struct wins_challenge_state); ctx 83 source4/nbt_server/wins/winswack.c talloc_free(ctx); ctx 154 source4/nbt_server/wins/winswack.c struct composite_context *ctx = talloc_get_type(req->async.private_data, struct composite_context); ctx 155 source4/nbt_server/wins/winswack.c struct wins_release_demand_state *state = talloc_get_type(ctx->private_data, struct wins_release_demand_state); ctx 157 source4/nbt_server/wins/winswack.c ctx->status = nbt_name_release_recv(req, state, &state->release); ctx 160 source4/nbt_server/wins/winswack.c if (NT_STATUS_EQUAL(ctx->status, NT_STATUS_IO_TIMEOUT)) { ctx 174 source4/nbt_server/wins/winswack.c composite_error(ctx, NT_STATUS_INTERNAL_ERROR); ctx 180 source4/nbt_server/wins/winswack.c composite_continue_nbt(ctx, req, wins_release_demand_handler, ctx); ctx 185 source4/nbt_server/wins/winswack.c composite_done(ctx); ctx 188 source4/nbt_server/wins/winswack.c static NTSTATUS wins_release_demand_recv(struct composite_context *ctx, ctx 192 source4/nbt_server/wins/winswack.c NTSTATUS status = ctx->status; ctx 193 source4/nbt_server/wins/winswack.c talloc_free(ctx); ctx 127 source4/ntp_signd/ntp_signd.c struct MD5Context ctx; ctx 226 source4/ntp_signd/ntp_signd.c MD5Init(&ctx); ctx 227 source4/ntp_signd/ntp_signd.c MD5Update(&ctx, nt_hash->hash, sizeof(nt_hash->hash)); ctx 228 source4/ntp_signd/ntp_signd.c MD5Update(&ctx, sign_request.packet_to_sign.data, sign_request.packet_to_sign.length); ctx 229 source4/ntp_signd/ntp_signd.c MD5Final(signed_reply.signed_packet.data + sign_request.packet_to_sign.length + 4, &ctx); ctx 317 source4/ntp_signd/ntp_signd.c packet_set_event_context(ntp_signdconn->packet, conn->event.ctx); ctx 146 source4/ntvfs/cifs/vfs_cifs.c struct share_config *scfg = ntvfs->ctx->config; ctx 184 source4/ntvfs/cifs/vfs_cifs.c cli_credentials_set_conf(credentials, ntvfs->ctx->lp_ctx); ctx 193 source4/ntvfs/cifs/vfs_cifs.c cli_credentials_set_conf(credentials, ntvfs->ctx->lp_ctx); ctx 197 source4/ntvfs/cifs/vfs_cifs.c status = cli_credentials_set_machine_account(credentials, ntvfs->ctx->lp_ctx); ctx 211 source4/ntvfs/cifs/vfs_cifs.c io.in.dest_ports = lp_smb_ports(ntvfs->ctx->lp_ctx); ctx 212 source4/ntvfs/cifs/vfs_cifs.c io.in.socket_options = lp_socket_options(ntvfs->ctx->lp_ctx); ctx 216 source4/ntvfs/cifs/vfs_cifs.c io.in.workgroup = lp_workgroup(ntvfs->ctx->lp_ctx); ctx 219 source4/ntvfs/cifs/vfs_cifs.c io.in.iconv_convenience = lp_iconv_convenience(ntvfs->ctx->lp_ctx); ctx 220 source4/ntvfs/cifs/vfs_cifs.c io.in.gensec_settings = lp_gensec_settings(p, ntvfs->ctx->lp_ctx); ctx 221 source4/ntvfs/cifs/vfs_cifs.c lp_smbcli_options(ntvfs->ctx->lp_ctx, &io.in.options); ctx 222 source4/ntvfs/cifs/vfs_cifs.c lp_smbcli_session_options(ntvfs->ctx->lp_ctx, &io.in.session_options); ctx 224 source4/ntvfs/cifs/vfs_cifs.c if (!(ntvfs->ctx->client_caps & NTVFS_CLIENT_CAP_LEVEL_II_OPLOCKS)) { ctx 229 source4/ntvfs/cifs/vfs_cifs.c lp_resolve_context(ntvfs->ctx->lp_ctx), ctx 230 source4/ntvfs/cifs/vfs_cifs.c ntvfs->ctx->event_ctx); ctx 240 source4/ntvfs/cifs/vfs_cifs.c ntvfs->ctx->fs_type = talloc_strdup(ntvfs->ctx, "NTFS"); ctx 241 source4/ntvfs/cifs/vfs_cifs.c NT_STATUS_HAVE_NO_MEMORY(ntvfs->ctx->fs_type); ctx 242 source4/ntvfs/cifs/vfs_cifs.c ntvfs->ctx->dev_type = talloc_strdup(ntvfs->ctx, "A:"); ctx 243 source4/ntvfs/cifs/vfs_cifs.c NT_STATUS_HAVE_NO_MEMORY(ntvfs->ctx->dev_type); ctx 42 source4/ntvfs/cifs_posix_cli/vfs_cifs_posix.c #define CHECK_READ_ONLY(req) do { if (share_bool_option(ntvfs->ctx->config, SHARE_READONLY, true)) return NT_STATUS_ACCESS_DENIED; } while (0) ctx 55 source4/ntvfs/cifs_posix_cli/vfs_cifs_posix.c struct share_config *scfg = ntvfs->ctx->config; ctx 72 source4/ntvfs/cifs_posix_cli/vfs_cifs_posix.c ntvfs->ctx->fs_type = talloc_strdup(ntvfs->ctx, "NTFS"); ctx 73 source4/ntvfs/cifs_posix_cli/vfs_cifs_posix.c NT_STATUS_HAVE_NO_MEMORY(ntvfs->ctx->fs_type); ctx 74 source4/ntvfs/cifs_posix_cli/vfs_cifs_posix.c ntvfs->ctx->dev_type = talloc_strdup(ntvfs->ctx, "A:"); ctx 75 source4/ntvfs/cifs_posix_cli/vfs_cifs_posix.c NT_STATUS_HAVE_NO_MEMORY(ntvfs->ctx->dev_type); ctx 322 source4/ntvfs/cifs_posix_cli/vfs_cifs_posix.c readonly = share_bool_option(ntvfs->ctx->config, SHARE_READONLY, SHARE_READONLY_DEFAULT); ctx 778 source4/ntvfs/cifs_posix_cli/vfs_cifs_posix.c fs->generic.out.volume_name = talloc_strdup(req, ntvfs->ctx->config->name); ctx 779 source4/ntvfs/cifs_posix_cli/vfs_cifs_posix.c fs->generic.out.fs_type = ntvfs->ctx->fs_type; ctx 61 source4/ntvfs/common/brlock_tdb.c struct brl_context *ctx; ctx 135 source4/ntvfs/common/brlock_tdb.c ctx1->ctx == ctx2->ctx); ctx 238 source4/ntvfs/common/brlock_tdb.c if (lock->ntvfs->ctx->protocol == PROTOCOL_SMB2) { ctx 270 source4/ntvfs/common/brlock_tdb.c lock->context.ctx == brlh->last_lock.context.ctx && ctx 329 source4/ntvfs/common/brlock_tdb.c lock.context.ctx = brl; ctx 331 source4/ntvfs/common/brlock_tdb.c lock.context.ctx = brl; ctx 464 source4/ntvfs/common/brlock_tdb.c context.ctx = brl; ctx 630 source4/ntvfs/common/brlock_tdb.c lock.context.ctx = brl; ctx 683 source4/ntvfs/common/brlock_tdb.c if (lock->context.ctx == brl && ctx 285 source4/ntvfs/common/notify.c static void sys_notify_callback(struct sys_notify_context *ctx, ctx 96 source4/ntvfs/ipc/vfs_ipc.c ntvfs->ctx->fs_type = talloc_strdup(ntvfs->ctx, "IPC"); ctx 97 source4/ntvfs/ipc/vfs_ipc.c NT_STATUS_HAVE_NO_MEMORY(ntvfs->ctx->fs_type); ctx 99 source4/ntvfs/ipc/vfs_ipc.c ntvfs->ctx->dev_type = talloc_strdup(ntvfs->ctx, "IPC"); ctx 100 source4/ntvfs/ipc/vfs_ipc.c NT_STATUS_HAVE_NO_MEMORY(ntvfs->ctx->dev_type); ctx 112 source4/ntvfs/ipc/vfs_ipc.c status = dcesrv_init_ipc_context(ipriv, ntvfs->ctx->lp_ctx, &ipriv->dcesrv); ctx 242 source4/ntvfs/ipc/vfs_ipc.c ntvfs->ctx->event_ctx, ctx 243 source4/ntvfs/ipc/vfs_ipc.c ntvfs->ctx->msg_ctx, ctx 244 source4/ntvfs/ipc/vfs_ipc.c ntvfs->ctx->server_id, ctx 808 source4/ntvfs/ipc/vfs_ipc.c return ipc_rap_call(req, ntvfs->ctx->event_ctx, ntvfs->ctx->lp_ctx, trans); ctx 169 source4/ntvfs/ntvfs.h struct ntvfs_context *ctx; ctx 260 source4/ntvfs/ntvfs.h struct ntvfs_context *ctx; ctx 291 source4/ntvfs/ntvfs.h struct ntvfs_context *ctx; ctx 162 source4/ntvfs/ntvfs_base.c struct ntvfs_context *ctx; ctx 168 source4/ntvfs/ntvfs_base.c ctx = talloc_zero(mem_ctx, struct ntvfs_context); ctx 169 source4/ntvfs/ntvfs_base.c NT_STATUS_HAVE_NO_MEMORY(ctx); ctx 170 source4/ntvfs/ntvfs_base.c ctx->protocol = protocol; ctx 171 source4/ntvfs/ntvfs_base.c ctx->client_caps = ntvfs_client_caps; ctx 172 source4/ntvfs/ntvfs_base.c ctx->type = type; ctx 173 source4/ntvfs/ntvfs_base.c ctx->config = talloc_steal(ctx, scfg); ctx 174 source4/ntvfs/ntvfs_base.c ctx->event_ctx = ev; ctx 175 source4/ntvfs/ntvfs_base.c ctx->msg_ctx = msg; ctx 176 source4/ntvfs/ntvfs_base.c ctx->server_id = server_id; ctx 177 source4/ntvfs/ntvfs_base.c ctx->lp_ctx = lp_ctx; ctx 182 source4/ntvfs/ntvfs_base.c ntvfs = talloc_zero(ctx, struct ntvfs_module_context); ctx 184 source4/ntvfs/ntvfs_base.c ntvfs->ctx = ctx; ctx 185 source4/ntvfs/ntvfs_base.c ntvfs->ops = ntvfs_backend_byname(handlers[i], ctx->type); ctx 188 source4/ntvfs/ntvfs_base.c handlers[i], ctx->type)); ctx 192 source4/ntvfs/ntvfs_base.c DLIST_ADD_END(ctx->modules, ntvfs, struct ntvfs_module_context *); ctx 195 source4/ntvfs/ntvfs_base.c if (!ctx->modules) { ctx 199 source4/ntvfs/ntvfs_base.c *_ctx = ctx; ctx 616 source4/ntvfs/ntvfs_generic.c if (bpunit > 64 && req->ctx->protocol <= PROTOCOL_LANMAN2) { ctx 27 source4/ntvfs/ntvfs_interface.c struct ntvfs_module_context *ntvfs = req->ctx->modules; ctx 51 source4/ntvfs/ntvfs_interface.c struct ntvfs_module_context *ntvfs = req->ctx->modules; ctx 61 source4/ntvfs/ntvfs_interface.c struct ntvfs_module_context *ntvfs = req->ctx->modules; ctx 71 source4/ntvfs/ntvfs_interface.c struct ntvfs_module_context *ntvfs = req->ctx->modules; ctx 80 source4/ntvfs/ntvfs_interface.c struct ntvfs_module_context *ntvfs = req->ctx->modules; ctx 89 source4/ntvfs/ntvfs_interface.c struct ntvfs_module_context *ntvfs = req->ctx->modules; ctx 98 source4/ntvfs/ntvfs_interface.c struct ntvfs_module_context *ntvfs = req->ctx->modules; ctx 107 source4/ntvfs/ntvfs_interface.c struct ntvfs_module_context *ntvfs = req->ctx->modules; ctx 116 source4/ntvfs/ntvfs_interface.c struct ntvfs_module_context *ntvfs = req->ctx->modules; ctx 125 source4/ntvfs/ntvfs_interface.c struct ntvfs_module_context *ntvfs = req->ctx->modules; ctx 134 source4/ntvfs/ntvfs_interface.c struct ntvfs_module_context *ntvfs = req->ctx->modules; ctx 143 source4/ntvfs/ntvfs_interface.c struct ntvfs_module_context *ntvfs = req->ctx->modules; ctx 154 source4/ntvfs/ntvfs_interface.c struct ntvfs_module_context *ntvfs = req->ctx->modules; ctx 164 source4/ntvfs/ntvfs_interface.c struct ntvfs_module_context *ntvfs = req->ctx->modules; ctx 173 source4/ntvfs/ntvfs_interface.c struct ntvfs_module_context *ntvfs = req->ctx->modules; ctx 183 source4/ntvfs/ntvfs_interface.c struct ntvfs_module_context *ntvfs = req->ctx->modules; ctx 192 source4/ntvfs/ntvfs_interface.c struct ntvfs_module_context *ntvfs = req->ctx->modules; ctx 201 source4/ntvfs/ntvfs_interface.c struct ntvfs_module_context *ntvfs = req->ctx->modules; ctx 210 source4/ntvfs/ntvfs_interface.c struct ntvfs_module_context *ntvfs = req->ctx->modules; ctx 220 source4/ntvfs/ntvfs_interface.c struct ntvfs_module_context *ntvfs = req->ctx->modules; ctx 229 source4/ntvfs/ntvfs_interface.c struct ntvfs_module_context *ntvfs = req->ctx->modules; ctx 238 source4/ntvfs/ntvfs_interface.c struct ntvfs_module_context *ntvfs = req->ctx->modules; ctx 247 source4/ntvfs/ntvfs_interface.c struct ntvfs_module_context *ntvfs = req->ctx->modules; ctx 256 source4/ntvfs/ntvfs_interface.c struct ntvfs_module_context *ntvfs = req->ctx->modules; ctx 266 source4/ntvfs/ntvfs_interface.c struct ntvfs_module_context *ntvfs = req->ctx->modules; ctx 276 source4/ntvfs/ntvfs_interface.c struct ntvfs_module_context *ntvfs = req->ctx->modules; ctx 286 source4/ntvfs/ntvfs_interface.c struct ntvfs_module_context *ntvfs = req->ctx->modules; ctx 296 source4/ntvfs/ntvfs_interface.c struct ntvfs_module_context *ntvfs = req->ctx->modules; ctx 305 source4/ntvfs/ntvfs_interface.c struct ntvfs_module_context *ntvfs = req->ctx->modules; ctx 317 source4/ntvfs/ntvfs_interface.c struct ntvfs_module_context *ntvfs = req->ctx->modules; ctx 329 source4/ntvfs/ntvfs_interface.c struct ntvfs_module_context *ntvfs = req->ctx->modules; ctx 681 source4/ntvfs/ntvfs_interface.c if (!ntvfs->ctx->oplock.handler) { ctx 685 source4/ntvfs/ntvfs_interface.c return ntvfs->ctx->oplock.handler(ntvfs->ctx->oplock.private_data, handle, level); ctx 702 source4/ntvfs/ntvfs_interface.c if (!ntvfs->ctx->client.get_my_addr) { ctx 706 source4/ntvfs/ntvfs_interface.c return ntvfs->ctx->client.get_my_addr(ntvfs->ctx->client.private_data, mem_ctx); ctx 711 source4/ntvfs/ntvfs_interface.c if (!ntvfs->ctx->client.get_peer_addr) { ctx 715 source4/ntvfs/ntvfs_interface.c return ntvfs->ctx->client.get_peer_addr(ntvfs->ctx->client.private_data, mem_ctx); ctx 28 source4/ntvfs/ntvfs_util.c struct ntvfs_request *ntvfs_request_create(struct ntvfs_context *ctx, TALLOC_CTX *mem_ctx, ctx 41 source4/ntvfs/ntvfs_util.c req->ctx = ctx; ctx 45 source4/ntvfs/ntvfs_util.c req->client_caps = ctx->client_caps; ctx 105 source4/ntvfs/ntvfs_util.c if (!ntvfs->ctx->handles.create_new) { ctx 108 source4/ntvfs/ntvfs_util.c return ntvfs->ctx->handles.create_new(ntvfs->ctx->handles.private_data, req, h); ctx 133 source4/ntvfs/ntvfs_util.c status = h->ctx->handles.make_valid(h->ctx->handles.private_data, h); ctx 169 source4/ntvfs/ntvfs_util.c h->ctx->handles.destroy(h->ctx->handles.private_data, h); ctx 176 source4/ntvfs/ntvfs_util.c if (!ntvfs->ctx->handles.search_by_wire_key) { ctx 179 source4/ntvfs/ntvfs_util.c return ntvfs->ctx->handles.search_by_wire_key(ntvfs->ctx->handles.private_data, req, key); ctx 184 source4/ntvfs/ntvfs_util.c return h->ctx->handles.get_wire_key(h->ctx->handles.private_data, h, mem_ctx); ctx 152 source4/ntvfs/posix/pvfs_acl.c struct composite_context *ctx; ctx 177 source4/ntvfs/posix/pvfs_acl.c ctx = wbc_xids_to_sids_send(pvfs->wbc_ctx, ids, 2, ids); ctx 178 source4/ntvfs/posix/pvfs_acl.c NT_STATUS_HAVE_NO_MEMORY(ctx); ctx 180 source4/ntvfs/posix/pvfs_acl.c status = wbc_xids_to_sids_recv(ctx, &ids); ctx 294 source4/ntvfs/posix/pvfs_acl.c struct composite_context *ctx; ctx 325 source4/ntvfs/posix/pvfs_acl.c ctx = wbc_sids_to_xids_send(pvfs->wbc_ctx, ids, 1, ids); ctx 326 source4/ntvfs/posix/pvfs_acl.c NT_STATUS_HAVE_NO_MEMORY(ctx); ctx 327 source4/ntvfs/posix/pvfs_acl.c status = wbc_sids_to_xids_recv(ctx, &ids); ctx 343 source4/ntvfs/posix/pvfs_acl.c ctx = wbc_sids_to_xids_send(pvfs->wbc_ctx, ids, 1, ids); ctx 344 source4/ntvfs/posix/pvfs_acl.c NT_STATUS_HAVE_NO_MEMORY(ctx); ctx 345 source4/ntvfs/posix/pvfs_acl.c status = wbc_sids_to_xids_recv(ctx, &ids); ctx 489 source4/ntvfs/posix/pvfs_acl.c if (pvfs->ntvfs->ctx->protocol != PROTOCOL_SMB2) { ctx 515 source4/ntvfs/posix/pvfs_acl.c if (pvfs->ntvfs->ctx->protocol == PROTOCOL_SMB2 && ctx 531 source4/ntvfs/posix/pvfs_acl.c if (pvfs->ntvfs->ctx->protocol != PROTOCOL_SMB2) { ctx 555 source4/ntvfs/posix/pvfs_acl.c if (pvfs->ntvfs->ctx->protocol != PROTOCOL_SMB2) { ctx 750 source4/ntvfs/posix/pvfs_acl.c struct composite_context *ctx; ctx 809 source4/ntvfs/posix/pvfs_acl.c ctx = wbc_xids_to_sids_send(pvfs->wbc_ctx, ids, 2, ids); ctx 810 source4/ntvfs/posix/pvfs_acl.c NT_STATUS_HAVE_NO_MEMORY(ctx); ctx 812 source4/ntvfs/posix/pvfs_acl.c status = wbc_xids_to_sids_recv(ctx, &ids); ctx 43 source4/ntvfs/posix/pvfs_acl_nfs4.c struct composite_context *ctx; ctx 98 source4/ntvfs/posix/pvfs_acl_nfs4.c ctx = wbc_xids_to_sids_send(pvfs->wbc_ctx, sd, num_ids, ids); ctx 99 source4/ntvfs/posix/pvfs_acl_nfs4.c NT_STATUS_HAVE_NO_MEMORY(ctx); ctx 100 source4/ntvfs/posix/pvfs_acl_nfs4.c status = wbc_xids_to_sids_recv(ctx, &ids); ctx 131 source4/ntvfs/posix/pvfs_acl_nfs4.c struct composite_context *ctx; ctx 166 source4/ntvfs/posix/pvfs_acl_nfs4.c ctx = wbc_sids_to_xids_send(pvfs->wbc_ctx,ids, acl.a_count, ids); ctx 167 source4/ntvfs/posix/pvfs_acl_nfs4.c if (ctx == NULL) { ctx 171 source4/ntvfs/posix/pvfs_acl_nfs4.c status = wbc_sids_to_xids_recv(ctx, &ids); ctx 86 source4/ntvfs/posix/pvfs_aio.c state->ae = tevent_add_aio(req->ctx->event_ctx, req->ctx->event_ctx, &iocb, ctx 150 source4/ntvfs/posix/pvfs_aio.c state->ae = tevent_add_aio(req->ctx->event_ctx, req->ctx->event_ctx, &iocb, ctx 186 source4/ntvfs/posix/pvfs_dirlist.c enum protocol_types protocol = dir->pvfs->ntvfs->ctx->protocol; ctx 85 source4/ntvfs/posix/pvfs_fileinfo.c if (pvfs->ntvfs->ctx->protocol == PROTOCOL_SMB2) { ctx 131 source4/ntvfs/posix/pvfs_fsinfo.c if (bpunit > 64 && req->ctx->protocol <= PROTOCOL_LANMAN2) { ctx 176 source4/ntvfs/posix/pvfs_fsinfo.c fs->attribute_info.out.fs_type.s = ntvfs->ctx->fs_type; ctx 110 source4/ntvfs/posix/pvfs_notify.c event_add_timed(req->ctx->event_ctx, ctx 1270 source4/ntvfs/posix/pvfs_open.c if (req->ctx->protocol == PROTOCOL_SMB2 && ctx 1468 source4/ntvfs/posix/pvfs_open.c req->ctx->protocol == PROTOCOL_SMB2) { ctx 229 source4/ntvfs/posix/pvfs_oplock.c opl->msg_ctx = f->pvfs->ntvfs->ctx->msg_ctx; ctx 223 source4/ntvfs/posix/pvfs_qfileinfo.c if (req->ctx->protocol == PROTOCOL_SMB2) { ctx 62 source4/ntvfs/posix/pvfs_read.c if (maxcnt > UINT16_MAX && req->ctx->protocol < PROTOCOL_SMB2) { ctx 98 source4/ntvfs/posix/pvfs_read.c if (req->ctx->protocol == PROTOCOL_SMB2) { ctx 286 source4/ntvfs/posix/pvfs_rename.c fname2 = pvfs_resolve_wildcard(mem_ctx, lp_iconv_convenience(pvfs->ntvfs->ctx->lp_ctx), fname1, fname2); ctx 293 source4/ntvfs/posix/pvfs_resolve.c ic = lp_iconv_convenience(pvfs->ntvfs->ctx->lp_ctx); ctx 525 source4/ntvfs/posix/pvfs_resolve.c status = pvfs_reduce_name(*name, lp_iconv_convenience(pvfs->ntvfs->ctx->lp_ctx), &cifs_name, flags); ctx 61 source4/ntvfs/posix/pvfs_search.c struct tevent_context *ev = search->pvfs->ntvfs->ctx->event_ctx; ctx 130 source4/ntvfs/posix/pvfs_setfileinfo.c (req->ctx->protocol != PROTOCOL_SMB2)) { ctx 143 source4/ntvfs/posix/pvfs_setfileinfo.c (req->ctx->protocol != PROTOCOL_SMB2)) { ctx 148 source4/ntvfs/posix/pvfs_setfileinfo.c if (req->ctx->protocol == PROTOCOL_SMB2) { ctx 78 source4/ntvfs/posix/pvfs_shortname.c #define FLAG_CHECK(c, flag) (ctx->char_flags[(uint8_t)(c)] & (flag)) ctx 118 source4/ntvfs/posix/pvfs_shortname.c static uint32_t mangle_hash(struct pvfs_mangle_context *ctx, ctx 121 source4/ntvfs/posix/pvfs_shortname.c return pvfs_name_hash(key, length) % ctx->mangle_modulus; ctx 127 source4/ntvfs/posix/pvfs_shortname.c static void cache_insert(struct pvfs_mangle_context *ctx, ctx 130 source4/ntvfs/posix/pvfs_shortname.c int i = hash % ctx->cache_size; ctx 132 source4/ntvfs/posix/pvfs_shortname.c if (ctx->prefix_cache[i]) { ctx 133 source4/ntvfs/posix/pvfs_shortname.c talloc_free(ctx->prefix_cache[i]); ctx 136 source4/ntvfs/posix/pvfs_shortname.c ctx->prefix_cache[i] = talloc_strndup(ctx->prefix_cache, prefix, length); ctx 137 source4/ntvfs/posix/pvfs_shortname.c ctx->prefix_cache_hashes[i] = hash; ctx 143 source4/ntvfs/posix/pvfs_shortname.c static const char *cache_lookup(struct pvfs_mangle_context *ctx, uint32_t hash) ctx 145 source4/ntvfs/posix/pvfs_shortname.c int i = hash % ctx->cache_size; ctx 148 source4/ntvfs/posix/pvfs_shortname.c if (!ctx->prefix_cache[i] || hash != ctx->prefix_cache_hashes[i]) { ctx 153 source4/ntvfs/posix/pvfs_shortname.c return ctx->prefix_cache[i]; ctx 164 source4/ntvfs/posix/pvfs_shortname.c static bool is_mangled_component(struct pvfs_mangle_context *ctx, ctx 191 source4/ntvfs/posix/pvfs_shortname.c for (i=0;i<ctx->mangle_prefix;i++) { ctx 201 source4/ntvfs/posix/pvfs_shortname.c for (i=ctx->mangle_prefix;i<6;i++) { ctx 225 source4/ntvfs/posix/pvfs_shortname.c static bool is_mangled(struct pvfs_mangle_context *ctx, const char *name) ctx 233 source4/ntvfs/posix/pvfs_shortname.c if (is_mangled_component(ctx, s, PTR_DIFF(p, s))) { ctx 239 source4/ntvfs/posix/pvfs_shortname.c return is_mangled_component(ctx, s, strlen(s)); ctx 250 source4/ntvfs/posix/pvfs_shortname.c static bool is_8_3(struct pvfs_mangle_context *ctx, ctx 318 source4/ntvfs/posix/pvfs_shortname.c static char *check_cache(struct pvfs_mangle_context *ctx, ctx 327 source4/ntvfs/posix/pvfs_shortname.c if (!is_mangled(ctx, name)) { ctx 333 source4/ntvfs/posix/pvfs_shortname.c hash = ctx->base_reverse[(unsigned char)name[7]]; ctx 334 source4/ntvfs/posix/pvfs_shortname.c for (multiplier=36, i=5;i>=ctx->mangle_prefix;i--) { ctx 335 source4/ntvfs/posix/pvfs_shortname.c uint32_t v = ctx->base_reverse[(unsigned char)name[i]]; ctx 341 source4/ntvfs/posix/pvfs_shortname.c prefix = cache_lookup(ctx, hash); ctx 366 source4/ntvfs/posix/pvfs_shortname.c static bool is_reserved_name(struct pvfs_mangle_context *ctx, const char *name) ctx 389 source4/ntvfs/posix/pvfs_shortname.c static bool is_legal_name(struct pvfs_mangle_context *ctx, const char *name) ctx 393 source4/ntvfs/posix/pvfs_shortname.c codepoint_t c = next_codepoint_convenience(ctx->iconv_convenience, name, &c_size); ctx 422 source4/ntvfs/posix/pvfs_shortname.c static char *name_map(struct pvfs_mangle_context *ctx, ctx 435 source4/ntvfs/posix/pvfs_shortname.c if (!is_reserved_name(ctx, name)) { ctx 438 source4/ntvfs/posix/pvfs_shortname.c if (is_8_3(ctx, name, false, false)) { ctx 444 source4/ntvfs/posix/pvfs_shortname.c if (!need83 && is_legal_name(ctx, name)) { ctx 469 source4/ntvfs/posix/pvfs_shortname.c for (i=0;i<ctx->mangle_prefix && name[i];i++) { ctx 476 source4/ntvfs/posix/pvfs_shortname.c for (;i<ctx->mangle_prefix;i++) { ctx 500 source4/ntvfs/posix/pvfs_shortname.c v = hash = mangle_hash(ctx, name, prefix_len); ctx 502 source4/ntvfs/posix/pvfs_shortname.c new_name = talloc_array(ctx, char, 13); ctx 508 source4/ntvfs/posix/pvfs_shortname.c for (i=0;i<ctx->mangle_prefix;i++) { ctx 513 source4/ntvfs/posix/pvfs_shortname.c for (i=5; i>=ctx->mangle_prefix; i--) { ctx 529 source4/ntvfs/posix/pvfs_shortname.c cache_insert(ctx, name, prefix_len, hash); ctx 546 source4/ntvfs/posix/pvfs_shortname.c static void init_tables(struct pvfs_mangle_context *ctx) ctx 552 source4/ntvfs/posix/pvfs_shortname.c ZERO_STRUCT(ctx->char_flags); ctx 558 source4/ntvfs/posix/pvfs_shortname.c ctx->char_flags[i] |= (FLAG_ASCII | FLAG_BASECHAR); ctx 561 source4/ntvfs/posix/pvfs_shortname.c ctx->char_flags[i] |= FLAG_ASCII; ctx 565 source4/ntvfs/posix/pvfs_shortname.c ctx->char_flags[i] |= FLAG_ILLEGAL; ctx 569 source4/ntvfs/posix/pvfs_shortname.c ctx->char_flags[i] |= FLAG_WILDCARD; ctx 573 source4/ntvfs/posix/pvfs_shortname.c ZERO_STRUCT(ctx->base_reverse); ctx 575 source4/ntvfs/posix/pvfs_shortname.c ctx->base_reverse[(uint8_t)basechars[i]] = i; ctx 588 source4/ntvfs/posix/pvfs_shortname.c ctx->char_flags[c1] |= FLAG_POSSIBLE1; ctx 589 source4/ntvfs/posix/pvfs_shortname.c ctx->char_flags[c2] |= FLAG_POSSIBLE2; ctx 590 source4/ntvfs/posix/pvfs_shortname.c ctx->char_flags[c3] |= FLAG_POSSIBLE3; ctx 591 source4/ntvfs/posix/pvfs_shortname.c ctx->char_flags[c4] |= FLAG_POSSIBLE4; ctx 592 source4/ntvfs/posix/pvfs_shortname.c ctx->char_flags[tolower(c1)] |= FLAG_POSSIBLE1; ctx 593 source4/ntvfs/posix/pvfs_shortname.c ctx->char_flags[tolower(c2)] |= FLAG_POSSIBLE2; ctx 594 source4/ntvfs/posix/pvfs_shortname.c ctx->char_flags[tolower(c3)] |= FLAG_POSSIBLE3; ctx 595 source4/ntvfs/posix/pvfs_shortname.c ctx->char_flags[tolower(c4)] |= FLAG_POSSIBLE4; ctx 597 source4/ntvfs/posix/pvfs_shortname.c ctx->char_flags[(unsigned char)'.'] |= FLAG_POSSIBLE4; ctx 600 source4/ntvfs/posix/pvfs_shortname.c ctx->mangle_modulus = 1; ctx 601 source4/ntvfs/posix/pvfs_shortname.c for (i=0;i<(7-ctx->mangle_prefix);i++) { ctx 602 source4/ntvfs/posix/pvfs_shortname.c ctx->mangle_modulus *= 36; ctx 611 source4/ntvfs/posix/pvfs_shortname.c struct pvfs_mangle_context *ctx; ctx 613 source4/ntvfs/posix/pvfs_shortname.c ctx = talloc(pvfs, struct pvfs_mangle_context); ctx 614 source4/ntvfs/posix/pvfs_shortname.c if (ctx == NULL) { ctx 618 source4/ntvfs/posix/pvfs_shortname.c ctx->iconv_convenience = lp_iconv_convenience(pvfs->ntvfs->ctx->lp_ctx); ctx 621 source4/ntvfs/posix/pvfs_shortname.c ctx->cache_size = lp_parm_int(pvfs->ntvfs->ctx->lp_ctx, NULL, "mangle", "cachesize", 512); ctx 623 source4/ntvfs/posix/pvfs_shortname.c ctx->prefix_cache = talloc_array(ctx, char *, ctx->cache_size); ctx 624 source4/ntvfs/posix/pvfs_shortname.c if (ctx->prefix_cache == NULL) { ctx 627 source4/ntvfs/posix/pvfs_shortname.c ctx->prefix_cache_hashes = talloc_array(ctx, uint32_t, ctx->cache_size); ctx 628 source4/ntvfs/posix/pvfs_shortname.c if (ctx->prefix_cache_hashes == NULL) { ctx 632 source4/ntvfs/posix/pvfs_shortname.c memset(ctx->prefix_cache, 0, sizeof(char *) * ctx->cache_size); ctx 633 source4/ntvfs/posix/pvfs_shortname.c memset(ctx->prefix_cache_hashes, 0, sizeof(uint32_t) * ctx->cache_size); ctx 635 source4/ntvfs/posix/pvfs_shortname.c ctx->mangle_prefix = lp_parm_int(pvfs->ntvfs->ctx->lp_ctx, NULL, "mangle", "prefix", -1); ctx 636 source4/ntvfs/posix/pvfs_shortname.c if (ctx->mangle_prefix < 0 || ctx->mangle_prefix > 6) { ctx 637 source4/ntvfs/posix/pvfs_shortname.c ctx->mangle_prefix = DEFAULT_MANGLE_PREFIX; ctx 640 source4/ntvfs/posix/pvfs_shortname.c init_tables(ctx); ctx 642 source4/ntvfs/posix/pvfs_shortname.c pvfs->mangle_ctx = ctx; ctx 31 source4/ntvfs/posix/pvfs_streams.c static const char *stream_name_normalise(TALLOC_CTX *ctx, const char *name) ctx 37 source4/ntvfs/posix/pvfs_streams.c return talloc_strndup(ctx, name, c-name); ctx 149 source4/ntvfs/posix/pvfs_wait.c pwait->msg_ctx = pvfs->ntvfs->ctx->msg_ctx; ctx 150 source4/ntvfs/posix/pvfs_wait.c pwait->ev = pvfs->ntvfs->ctx->event_ctx; ctx 71 source4/ntvfs/posix/pvfs_write.c h->write_time.update_event = event_add_timed(pvfs->ntvfs->ctx->event_ctx, ctx 120 source4/ntvfs/posix/pvfs_xattr.c ndr_err = ndr_pull_struct_blob(&blob, mem_ctx, lp_iconv_convenience(pvfs->ntvfs->ctx->lp_ctx), ctx 143 source4/ntvfs/posix/pvfs_xattr.c ndr_err = ndr_push_struct_blob(&blob, mem_ctx, lp_iconv_convenience(pvfs->ntvfs->ctx->lp_ctx), p, (ndr_push_flags_fn_t)push_fn); ctx 40 source4/ntvfs/posix/vfs_posix.c struct share_config *scfg = pvfs->ntvfs->ctx->config; ctx 182 source4/ntvfs/posix/vfs_posix.c status = pvfs_acl_init(ntvfs->ctx->lp_ctx); ctx 189 source4/ntvfs/posix/vfs_posix.c base_directory = talloc_strdup(pvfs, share_string_option(ntvfs->ctx->config, SHARE_PATH, "")); ctx 206 source4/ntvfs/posix/vfs_posix.c ntvfs->ctx->fs_type = talloc_strdup(ntvfs->ctx, "NTFS"); ctx 207 source4/ntvfs/posix/vfs_posix.c NT_STATUS_HAVE_NO_MEMORY(ntvfs->ctx->fs_type); ctx 209 source4/ntvfs/posix/vfs_posix.c ntvfs->ctx->dev_type = talloc_strdup(ntvfs->ctx, "A:"); ctx 210 source4/ntvfs/posix/vfs_posix.c NT_STATUS_HAVE_NO_MEMORY(ntvfs->ctx->dev_type); ctx 215 source4/ntvfs/posix/vfs_posix.c pvfs->ntvfs->ctx->server_id, ctx 216 source4/ntvfs/posix/vfs_posix.c pvfs->ntvfs->ctx->lp_ctx, ctx 217 source4/ntvfs/posix/vfs_posix.c pvfs->ntvfs->ctx->msg_ctx); ctx 222 source4/ntvfs/posix/vfs_posix.c pvfs->odb_context = odb_init(pvfs, pvfs->ntvfs->ctx); ctx 229 source4/ntvfs/posix/vfs_posix.c pvfs->ntvfs->ctx->server_id, ctx 230 source4/ntvfs/posix/vfs_posix.c pvfs->ntvfs->ctx->msg_ctx, ctx 231 source4/ntvfs/posix/vfs_posix.c pvfs->ntvfs->ctx->lp_ctx, ctx 232 source4/ntvfs/posix/vfs_posix.c pvfs->ntvfs->ctx->event_ctx, ctx 233 source4/ntvfs/posix/vfs_posix.c pvfs->ntvfs->ctx->config); ctx 236 source4/ntvfs/posix/vfs_posix.c pvfs->ntvfs->ctx->msg_ctx, ctx 237 source4/ntvfs/posix/vfs_posix.c pvfs->ntvfs->ctx->event_ctx); ctx 37 source4/ntvfs/print/vfs_print.c ntvfs->ctx->fs_type = talloc_strdup(ntvfs->ctx, "NTFS"); ctx 38 source4/ntvfs/print/vfs_print.c NT_STATUS_HAVE_NO_MEMORY(ntvfs->ctx->fs_type); ctx 40 source4/ntvfs/print/vfs_print.c ntvfs->ctx->dev_type = talloc_strdup(ntvfs->ctx, "LPT1:"); ctx 41 source4/ntvfs/print/vfs_print.c NT_STATUS_HAVE_NO_MEMORY(ntvfs->ctx->dev_type); ctx 86 source4/ntvfs/print/vfs_print.c push_string(p+2, lp_netbios_name(ntvfs->ctx->lp_ctx), 15, STR_TERMINATE|STR_ASCII); ctx 87 source4/ntvfs/print/vfs_print.c push_string(p+18, ntvfs->ctx->config->name, 13, STR_TERMINATE|STR_ASCII); ctx 41 source4/ntvfs/simple/vfs_simple.c #define CHECK_READ_ONLY(req) do { if (share_bool_option(ntvfs->ctx->config, SHARE_READONLY, true)) return NT_STATUS_ACCESS_DENIED; } while (0) ctx 54 source4/ntvfs/simple/vfs_simple.c struct share_config *scfg = ntvfs->ctx->config; ctx 71 source4/ntvfs/simple/vfs_simple.c ntvfs->ctx->fs_type = talloc_strdup(ntvfs->ctx, "NTFS"); ctx 72 source4/ntvfs/simple/vfs_simple.c NT_STATUS_HAVE_NO_MEMORY(ntvfs->ctx->fs_type); ctx 73 source4/ntvfs/simple/vfs_simple.c ntvfs->ctx->dev_type = talloc_strdup(ntvfs->ctx, "A:"); ctx 74 source4/ntvfs/simple/vfs_simple.c NT_STATUS_HAVE_NO_MEMORY(ntvfs->ctx->dev_type); ctx 319 source4/ntvfs/simple/vfs_simple.c readonly = share_bool_option(ntvfs->ctx->config, SHARE_READONLY, SHARE_READONLY_DEFAULT); ctx 775 source4/ntvfs/simple/vfs_simple.c fs->generic.out.volume_name = talloc_strdup(req, ntvfs->ctx->config->name); ctx 776 source4/ntvfs/simple/vfs_simple.c fs->generic.out.fs_type = ntvfs->ctx->fs_type; ctx 163 source4/ntvfs/smb2/vfs_smb2.c struct share_config *scfg = ntvfs->ctx->config; ctx 202 source4/ntvfs/smb2/vfs_smb2.c cli_credentials_set_conf(credentials, ntvfs->ctx->lp_ctx); ctx 211 source4/ntvfs/smb2/vfs_smb2.c cli_credentials_set_conf(credentials, ntvfs->ctx->lp_ctx); ctx 215 source4/ntvfs/smb2/vfs_smb2.c status = cli_credentials_set_machine_account(credentials, ntvfs->ctx->lp_ctx); ctx 227 source4/ntvfs/smb2/vfs_smb2.c lp_smbcli_options(ntvfs->ctx->lp_ctx, &options); ctx 230 source4/ntvfs/smb2/vfs_smb2.c lp_parm_string_list(p, ntvfs->ctx->lp_ctx, NULL, "smb2", "ports", NULL), ctx 232 source4/ntvfs/smb2/vfs_smb2.c lp_resolve_context(ntvfs->ctx->lp_ctx), ctx 234 source4/ntvfs/smb2/vfs_smb2.c ntvfs->ctx->event_ctx, &options, ctx 235 source4/ntvfs/smb2/vfs_smb2.c lp_socket_options(ntvfs->ctx->lp_ctx), ctx 236 source4/ntvfs/smb2/vfs_smb2.c lp_gensec_settings(p, ntvfs->ctx->lp_ctx) ctx 249 source4/ntvfs/smb2/vfs_smb2.c ntvfs->ctx->fs_type = talloc_strdup(ntvfs->ctx, "NTFS"); ctx 250 source4/ntvfs/smb2/vfs_smb2.c NT_STATUS_HAVE_NO_MEMORY(ntvfs->ctx->fs_type); ctx 251 source4/ntvfs/smb2/vfs_smb2.c ntvfs->ctx->dev_type = talloc_strdup(ntvfs->ctx, "A:"); ctx 252 source4/ntvfs/smb2/vfs_smb2.c NT_STATUS_HAVE_NO_MEMORY(ntvfs->ctx->dev_type); ctx 70 source4/ntvfs/sysdep/inotify.c struct sys_notify_context *ctx; ctx 174 source4/ntvfs/sysdep/inotify.c w->callback(in->ctx, w->private_data, &ne); ctx 193 source4/ntvfs/sysdep/inotify.c w->callback(in->ctx, w->private_data, &ne); ctx 249 source4/ntvfs/sysdep/inotify.c static NTSTATUS inotify_setup(struct sys_notify_context *ctx) ctx 254 source4/ntvfs/sysdep/inotify.c in = talloc(ctx, struct inotify_private); ctx 263 source4/ntvfs/sysdep/inotify.c in->ctx = ctx; ctx 266 source4/ntvfs/sysdep/inotify.c ctx->private_data = in; ctx 269 source4/ntvfs/sysdep/inotify.c fde = tevent_add_fd(ctx->ev, in, in->fd, ctx 340 source4/ntvfs/sysdep/inotify.c static NTSTATUS inotify_watch(struct sys_notify_context *ctx, ctx 354 source4/ntvfs/sysdep/inotify.c if (ctx->private_data == NULL) { ctx 356 source4/ntvfs/sysdep/inotify.c status = inotify_setup(ctx); ctx 360 source4/ntvfs/sysdep/inotify.c in = talloc_get_type(ctx->private_data, struct inotify_private); ctx 46 source4/ntvfs/sysdep/sys_lease.c struct sys_lease_context *ctx; ctx 59 source4/ntvfs/sysdep/sys_lease.c ctx = talloc_zero(mem_ctx, struct sys_lease_context); ctx 60 source4/ntvfs/sysdep/sys_lease.c if (ctx == NULL) { ctx 64 source4/ntvfs/sysdep/sys_lease.c ctx->event_ctx = ev; ctx 65 source4/ntvfs/sysdep/sys_lease.c ctx->msg_ctx = msg; ctx 66 source4/ntvfs/sysdep/sys_lease.c ctx->break_send = break_send; ctx 70 source4/ntvfs/sysdep/sys_lease.c talloc_free(ctx); ctx 76 source4/ntvfs/sysdep/sys_lease.c ctx->ops = &backends[i]; ctx 81 source4/ntvfs/sysdep/sys_lease.c if (!ctx->ops) { ctx 82 source4/ntvfs/sysdep/sys_lease.c talloc_free(ctx); ctx 86 source4/ntvfs/sysdep/sys_lease.c status = ctx->ops->init(ctx); ctx 88 source4/ntvfs/sysdep/sys_lease.c talloc_free(ctx); ctx 92 source4/ntvfs/sysdep/sys_lease.c return ctx; ctx 129 source4/ntvfs/sysdep/sys_lease.c NTSTATUS sys_lease_setup(struct sys_lease_context *ctx, ctx 132 source4/ntvfs/sysdep/sys_lease.c return ctx->ops->setup(ctx, e); ctx 135 source4/ntvfs/sysdep/sys_lease.c NTSTATUS sys_lease_update(struct sys_lease_context *ctx, ctx 138 source4/ntvfs/sysdep/sys_lease.c return ctx->ops->update(ctx, e); ctx 141 source4/ntvfs/sysdep/sys_lease.c NTSTATUS sys_lease_remove(struct sys_lease_context *ctx, ctx 144 source4/ntvfs/sysdep/sys_lease.c return ctx->ops->remove(ctx, e); ctx 33 source4/ntvfs/sysdep/sys_lease.h NTSTATUS (*init)(struct sys_lease_context *ctx); ctx 34 source4/ntvfs/sysdep/sys_lease.h NTSTATUS (*setup)(struct sys_lease_context *ctx, ctx 36 source4/ntvfs/sysdep/sys_lease.h NTSTATUS (*update)(struct sys_lease_context *ctx, ctx 38 source4/ntvfs/sysdep/sys_lease.h NTSTATUS (*remove)(struct sys_lease_context *ctx, ctx 59 source4/ntvfs/sysdep/sys_lease.h NTSTATUS sys_lease_setup(struct sys_lease_context *ctx, ctx 62 source4/ntvfs/sysdep/sys_lease.h NTSTATUS sys_lease_update(struct sys_lease_context *ctx, ctx 65 source4/ntvfs/sysdep/sys_lease.h NTSTATUS sys_lease_remove(struct sys_lease_context *ctx, ctx 37 source4/ntvfs/sysdep/sys_lease_linux.c struct sys_lease_context *ctx; ctx 49 source4/ntvfs/sysdep/sys_lease_linux.c struct sys_lease_context *ctx = talloc_get_type(private_data, ctx 67 source4/ntvfs/sysdep/sys_lease_linux.c ctx->break_send(ctx->msg_ctx, &c->e, OPLOCK_BREAK_TO_NONE); ctx 90 source4/ntvfs/sysdep/sys_lease_linux.c static NTSTATUS linux_lease_init(struct sys_lease_context *ctx) ctx 94 source4/ntvfs/sysdep/sys_lease_linux.c se = tevent_add_signal(ctx->event_ctx, ctx, ctx 96 source4/ntvfs/sysdep/sys_lease_linux.c linux_lease_signal_handler, ctx); ctx 102 source4/ntvfs/sysdep/sys_lease_linux.c static NTSTATUS linux_lease_setup(struct sys_lease_context *ctx, ctx 123 source4/ntvfs/sysdep/sys_lease_linux.c p = talloc(ctx, struct linux_lease_pending); ctx 126 source4/ntvfs/sysdep/sys_lease_linux.c p->ctx = ctx; ctx 148 source4/ntvfs/sysdep/sys_lease_linux.c static NTSTATUS linux_lease_remove(struct sys_lease_context *ctx, ctx 151 source4/ntvfs/sysdep/sys_lease_linux.c static NTSTATUS linux_lease_update(struct sys_lease_context *ctx, ctx 178 source4/ntvfs/sysdep/sys_lease_linux.c static NTSTATUS linux_lease_remove(struct sys_lease_context *ctx, ctx 45 source4/ntvfs/sysdep/sys_notify.c struct sys_notify_context *ctx; ctx 57 source4/ntvfs/sysdep/sys_notify.c ctx = talloc_zero(mem_ctx, struct sys_notify_context); ctx 58 source4/ntvfs/sysdep/sys_notify.c if (ctx == NULL) { ctx 62 source4/ntvfs/sysdep/sys_notify.c ctx->ev = ev; ctx 91 source4/ntvfs/sysdep/sys_notify.c ctx->name = bname; ctx 92 source4/ntvfs/sysdep/sys_notify.c ctx->notify_watch = NULL; ctx 95 source4/ntvfs/sysdep/sys_notify.c ctx->notify_watch = backends[i].notify_watch; ctx 98 source4/ntvfs/sysdep/sys_notify.c return ctx; ctx 108 source4/ntvfs/sysdep/sys_notify.c _PUBLIC_ NTSTATUS sys_notify_watch(struct sys_notify_context *ctx, ctx 113 source4/ntvfs/sysdep/sys_notify.c if (!ctx->notify_watch) { ctx 116 source4/ntvfs/sysdep/sys_notify.c return ctx->notify_watch(ctx, e, callback, private_data, handle); ctx 28 source4/ntvfs/sysdep/sys_notify.h typedef NTSTATUS (*notify_watch_t)(struct sys_notify_context *ctx, ctx 50 source4/ntvfs/sysdep/sys_notify.h NTSTATUS sys_notify_watch(struct sys_notify_context *ctx, struct notify_entry *e, ctx 106 source4/ntvfs/unixuid/vfs_unixuid.c struct composite_context *ctx; ctx 135 source4/ntvfs/unixuid/vfs_unixuid.c ctx = wbc_sids_to_xids_send(priv->wbc_ctx, ids, token->num_sids, ids); ctx 136 source4/ntvfs/unixuid/vfs_unixuid.c NT_STATUS_HAVE_NO_MEMORY(ctx); ctx 138 source4/ntvfs/unixuid/vfs_unixuid.c status = wbc_sids_to_xids_recv(ctx, &ids); ctx 244 source4/ntvfs/unixuid/vfs_unixuid.c priv->wbc_ctx = wbc_init(priv, ntvfs->ctx->msg_ctx, ctx 245 source4/ntvfs/unixuid/vfs_unixuid.c ntvfs->ctx->event_ctx); ctx 25 source4/param/generic.c struct param_section *param_get_section(struct param_context *ctx, const char *name) ctx 32 source4/param/generic.c for (sect = ctx->sections; sect; sect = sect->next) { ctx 53 source4/param/generic.c struct param_opt *param_get (struct param_context *ctx, const char *name, const char *section_name) ctx 55 source4/param/generic.c struct param_section *section = param_get_section(ctx, section_name); ctx 62 source4/param/generic.c struct param_section *param_add_section(struct param_context *ctx, const char *section_name) ctx 65 source4/param/generic.c section = talloc_zero(ctx, struct param_section); ctx 70 source4/param/generic.c DLIST_ADD_END(ctx->sections, section, struct param_section *); ctx 75 source4/param/generic.c struct param_opt *param_get_add(struct param_context *ctx, const char *name, const char *section_name) ctx 83 source4/param/generic.c section = param_get_section(ctx, section_name); ctx 86 source4/param/generic.c section = param_add_section(ctx, section_name); ctx 102 source4/param/generic.c const char *param_get_string(struct param_context *ctx, const char *param, const char *section) ctx 104 source4/param/generic.c struct param_opt *p = param_get(ctx, param, section); ctx 112 source4/param/generic.c int param_set_string(struct param_context *ctx, const char *param, const char *value, const char *section) ctx 114 source4/param/generic.c struct param_opt *p = param_get_add(ctx, param, section); ctx 124 source4/param/generic.c const char **param_get_string_list(struct param_context *ctx, const char *param, const char *separator, const char *section) ctx 126 source4/param/generic.c struct param_opt *p = param_get(ctx, param, section); ctx 131 source4/param/generic.c return (const char **)str_list_make(ctx, p->value, separator); ctx 134 source4/param/generic.c int param_set_string_list(struct param_context *ctx, const char *param, const char **list, const char *section) ctx 136 source4/param/generic.c struct param_opt *p = param_get_add(ctx, param, section); ctx 143 source4/param/generic.c int param_get_int(struct param_context *ctx, const char *param, int default_v, const char *section) ctx 145 source4/param/generic.c const char *value = param_get_string(ctx, param, section); ctx 153 source4/param/generic.c void param_set_int(struct param_context *ctx, const char *param, int value, const char *section) ctx 155 source4/param/generic.c struct param_opt *p = param_get_add(ctx, section, param); ctx 163 source4/param/generic.c unsigned long param_get_ulong(struct param_context *ctx, const char *param, unsigned long default_v, const char *section) ctx 165 source4/param/generic.c const char *value = param_get_string(ctx, param, section); ctx 173 source4/param/generic.c void param_set_ulong(struct param_context *ctx, const char *name, unsigned long value, const char *section) ctx 175 source4/param/generic.c struct param_opt *p = param_get_add(ctx, name, section); ctx 185 source4/param/generic.c struct param_context *ctx = (struct param_context *)_ctx; ctx 186 source4/param/generic.c struct param_section *section = param_get_section(ctx, name); ctx 189 source4/param/generic.c section = talloc_zero(ctx, struct param_section); ctx 195 source4/param/generic.c DLIST_ADD_END(ctx->sections, section, struct param_section *); ctx 199 source4/param/generic.c DLIST_PROMOTE(ctx->sections, section); ctx 206 source4/param/generic.c struct param_context *ctx = (struct param_context *)_ctx; ctx 207 source4/param/generic.c struct param_opt *p = param_section_get(ctx->sections, name); ctx 210 source4/param/generic.c p = talloc_zero(ctx->sections, struct param_opt); ctx 216 source4/param/generic.c DLIST_ADD(ctx->sections->parameters, p); ctx 231 source4/param/generic.c int param_read(struct param_context *ctx, const char *fn) ctx 233 source4/param/generic.c ctx->sections = talloc_zero(ctx, struct param_section); ctx 234 source4/param/generic.c if (ctx->sections == NULL) ctx 237 source4/param/generic.c ctx->sections->name = talloc_strdup(ctx->sections, "global"); ctx 238 source4/param/generic.c if (!pm_process( fn, param_sfunc, param_pfunc, ctx)) { ctx 245 source4/param/generic.c int param_use(struct loadparm_context *lp_ctx, struct param_context *ctx) ctx 249 source4/param/generic.c for (section = ctx->sections; section; section = section->next) { ctx 268 source4/param/generic.c int param_write(struct param_context *ctx, const char *fn) ctx 273 source4/param/generic.c if (fn == NULL || ctx == NULL) ctx 281 source4/param/generic.c for (section = ctx->sections; section; section = section->next) { ctx 336 source4/param/param.h struct param_section *param_get_section(struct param_context *ctx, const char *name); ctx 339 source4/param/param.h struct param_opt *param_get (struct param_context *ctx, const char *name, const char *section_name); ctx 340 source4/param/param.h struct param_section *param_add_section(struct param_context *ctx, const char *section_name); ctx 341 source4/param/param.h struct param_opt *param_get_add(struct param_context *ctx, const char *name, const char *section_name); ctx 342 source4/param/param.h const char *param_get_string(struct param_context *ctx, const char *param, const char *section); ctx 343 source4/param/param.h int param_set_string(struct param_context *ctx, const char *param, const char *value, const char *section); ctx 344 source4/param/param.h const char **param_get_string_list(struct param_context *ctx, const char *param, const char *separator, const char *section); ctx 345 source4/param/param.h int param_set_string_list(struct param_context *ctx, const char *param, const char **list, const char *section); ctx 346 source4/param/param.h int param_get_int(struct param_context *ctx, const char *param, int default_v, const char *section); ctx 347 source4/param/param.h void param_set_int(struct param_context *ctx, const char *param, int value, const char *section); ctx 348 source4/param/param.h unsigned long param_get_ulong(struct param_context *ctx, const char *param, unsigned long default_v, const char *section); ctx 349 source4/param/param.h void param_set_ulong(struct param_context *ctx, const char *name, unsigned long value, const char *section); ctx 351 source4/param/param.h int param_read(struct param_context *ctx, const char *fn); ctx 352 source4/param/param.h int param_use(struct loadparm_context *lp_ctx, struct param_context *ctx); ctx 353 source4/param/param.h int param_write(struct param_context *ctx, const char *fn); ctx 28 source4/param/share.c return scfg->ctx->ops->string_option(scfg, opt_name, defval); ctx 33 source4/param/share.c return scfg->ctx->ops->int_option(scfg, opt_name, defval); ctx 38 source4/param/share.c return scfg->ctx->ops->bool_option(scfg, opt_name, defval); ctx 43 source4/param/share.c return scfg->ctx->ops->string_list_option(mem_ctx, scfg, opt_name); ctx 131 source4/param/share.c struct share_context **ctx) ctx 141 source4/param/share.c return ops->init(mem_ctx, ops, event_ctx, lp_ctx, ctx); ctx 34 source4/param/share.h struct share_context *ctx; ctx 30 source4/param/share_classic.c struct share_context **ctx) ctx 32 source4/param/share_classic.c *ctx = talloc(mem_ctx, struct share_context); ctx 33 source4/param/share_classic.c if (!*ctx) { ctx 38 source4/param/share_classic.c (*ctx)->ops = ops; ctx 39 source4/param/share_classic.c (*ctx)->priv_data = lp_ctx; ctx 50 source4/param/share_classic.c struct loadparm_context *lp_ctx = talloc_get_type(scfg->ctx->priv_data, ctx 112 source4/param/share_classic.c struct loadparm_context *lp_ctx = talloc_get_type(scfg->ctx->priv_data, ctx 170 source4/param/share_classic.c struct loadparm_context *lp_ctx = talloc_get_type(scfg->ctx->priv_data, ctx 243 source4/param/share_classic.c struct loadparm_context *lp_ctx = talloc_get_type(scfg->ctx->priv_data, ctx 281 source4/param/share_classic.c struct share_context *ctx, ctx 289 source4/param/share_classic.c num_services = lp_numservices((struct loadparm_context *)ctx->priv_data); ctx 298 source4/param/share_classic.c n[i] = talloc_strdup(n, lp_servicename(lp_servicebynum((struct loadparm_context *)ctx->priv_data, i))); ctx 313 source4/param/share_classic.c struct share_context *ctx, ctx 320 source4/param/share_classic.c service = lp_service((struct loadparm_context *)ctx->priv_data, name); ctx 340 source4/param/share_classic.c s->ctx = ctx; ctx 33 source4/param/share_ldb.c struct share_context **ctx) ctx 37 source4/param/share_ldb.c *ctx = talloc(mem_ctx, struct share_context); ctx 38 source4/param/share_ldb.c if (!*ctx) { ctx 43 source4/param/share_ldb.c sdb = ldb_wrap_connect(*ctx, ev_ctx, lp_ctx, ctx 44 source4/param/share_ldb.c private_path(*ctx, lp_ctx, "share.ldb"), ctx 45 source4/param/share_ldb.c system_session(*ctx, lp_ctx), ctx 49 source4/param/share_ldb.c talloc_free(*ctx); ctx 53 source4/param/share_ldb.c (*ctx)->ops = ops; ctx 54 source4/param/share_ldb.c (*ctx)->priv_data = (void *)sdb; ctx 159 source4/param/share_ldb.c struct share_context *ctx, ctx 175 source4/param/share_ldb.c ldb = talloc_get_type(ctx->priv_data, struct ldb_context); ctx 208 source4/param/share_ldb.c struct share_context *ctx, ctx 224 source4/param/share_ldb.c ldb = talloc_get_type(ctx->priv_data, struct ldb_context); ctx 258 source4/param/share_ldb.c s->ctx = ctx; ctx 290 source4/param/share_ldb.c static NTSTATUS sldb_create(struct share_context *ctx, const char *name, struct share_info *info, int count) ctx 317 source4/param/share_ldb.c ldb = talloc_get_type(ctx->priv_data, struct ldb_context); ctx 429 source4/param/share_ldb.c static NTSTATUS sldb_set(struct share_context *ctx, const char *name, struct share_info *info, int count) ctx 449 source4/param/share_ldb.c ldb = talloc_get_type(ctx->priv_data, struct ldb_context); ctx 538 source4/param/share_ldb.c static NTSTATUS sldb_remove(struct share_context *ctx, const char *name) ctx 552 source4/param/share_ldb.c ldb = talloc_get_type(ctx->priv_data, struct ldb_context); ctx 31 source4/param/tests/share.c struct share_context *ctx = (struct share_context *)discard_const(tcase_data); ctx 35 source4/param/tests/share.c torture_assert_ntstatus_ok(tctx, share_list_all(tctx, ctx, &count, &names), ctx 45 source4/param/tests/share.c struct share_context *ctx = (struct share_context *)discard_const(tcase_data); ctx 56 source4/param/tests/share.c status = share_create(ctx, "bloe", inf, 2); ctx 63 source4/param/tests/share.c torture_assert_ntstatus_ok(tctx, share_list_all(tctx, ctx, &count, &names), ctx 83 source4/param/tests/share.c struct share_context *ctx = (struct share_context *)discard_const(tcase_data); ctx 86 source4/param/tests/share.c status = share_create(ctx, "bla", NULL, 0); ctx 96 source4/param/tests/share.c share_create(ctx, NULL, NULL, 0), ctx 106 source4/param/tests/share.c struct share_context *ctx = (struct share_context *)discard_const(tcase_data); ctx 109 source4/param/tests/share.c status = share_remove(ctx, "nonexistant"); ctx 125 source4/param/tests/share.c struct share_context *ctx = (struct share_context *)discard_const(tcase_data); ctx 132 source4/param/tests/share.c status = share_create(ctx, "blie", inf, 2); ctx 139 source4/param/tests/share.c torture_assert_ntstatus_ok(tctx, share_remove(ctx, "blie"), "remove failed"); ctx 148 source4/param/tests/share.c struct share_context *ctx = (struct share_context *)discard_const(tcase_data); ctx 155 source4/param/tests/share.c status = share_create(ctx, "bla", inf, 2); ctx 163 source4/param/tests/share.c share_create(ctx, "bla", inf, 2), ctx 594 source4/rpc_server/samr/samr_password.c struct MD5Context ctx; ctx 606 source4/rpc_server/samr/samr_password.c MD5Init(&ctx); ctx 607 source4/rpc_server/samr/samr_password.c MD5Update(&ctx, &pwbuf->data[516], 16); ctx 608 source4/rpc_server/samr/samr_password.c MD5Update(&ctx, session_key.data, session_key.length); ctx 609 source4/rpc_server/samr/samr_password.c MD5Final(co_session_key.data, &ctx); ctx 111 source4/rpc_server/service_rpc.c srv_conn->event.ctx, ctx 126 source4/rpc_server/service_rpc.c srv_conn->event.ctx, ctx 55 source4/rpc_server/unixinfo/dcesrv_unixinfo.c struct composite_context *ctx; ctx 65 source4/rpc_server/unixinfo/dcesrv_unixinfo.c ctx = wbc_sids_to_xids_send(wbc_ctx, ids, 1, ids); ctx 66 source4/rpc_server/unixinfo/dcesrv_unixinfo.c NT_STATUS_HAVE_NO_MEMORY(ctx); ctx 68 source4/rpc_server/unixinfo/dcesrv_unixinfo.c status = wbc_sids_to_xids_recv(ctx, &ids); ctx 88 source4/rpc_server/unixinfo/dcesrv_unixinfo.c struct composite_context *ctx; ctx 111 source4/rpc_server/unixinfo/dcesrv_unixinfo.c ctx = wbc_xids_to_sids_send(wbc_ctx, ids, 1, ids); ctx 112 source4/rpc_server/unixinfo/dcesrv_unixinfo.c NT_STATUS_HAVE_NO_MEMORY(ctx); ctx 114 source4/rpc_server/unixinfo/dcesrv_unixinfo.c status = wbc_xids_to_sids_recv(ctx, &ids); ctx 130 source4/rpc_server/unixinfo/dcesrv_unixinfo.c struct composite_context *ctx; ctx 140 source4/rpc_server/unixinfo/dcesrv_unixinfo.c ctx = wbc_sids_to_xids_send(wbc_ctx, ids, 1, ids); ctx 141 source4/rpc_server/unixinfo/dcesrv_unixinfo.c NT_STATUS_HAVE_NO_MEMORY(ctx); ctx 143 source4/rpc_server/unixinfo/dcesrv_unixinfo.c status = wbc_sids_to_xids_recv(ctx, &ids); ctx 163 source4/rpc_server/unixinfo/dcesrv_unixinfo.c struct composite_context *ctx; ctx 186 source4/rpc_server/unixinfo/dcesrv_unixinfo.c ctx = wbc_xids_to_sids_send(wbc_ctx, ids, 1, ids); ctx 187 source4/rpc_server/unixinfo/dcesrv_unixinfo.c NT_STATUS_HAVE_NO_MEMORY(ctx); ctx 189 source4/rpc_server/unixinfo/dcesrv_unixinfo.c status = wbc_xids_to_sids_recv(ctx, &ids); ctx 37 source4/rpc_server/winreg/rpc_winreg.c struct registry_context *ctx; ctx 41 source4/rpc_server/winreg/rpc_winreg.c &ctx, dce_call->event_ctx, dce_call->conn->dce_ctx->lp_ctx, dce_call->conn->auth_state.session_info, ctx 49 source4/rpc_server/winreg/rpc_winreg.c dce_call->context->private_data = ctx; ctx 60 source4/rpc_server/winreg/rpc_winreg.c struct registry_context *ctx = dce_call->context->private_data; ctx 66 source4/rpc_server/winreg/rpc_winreg.c result = reg_get_predefined_key(ctx, hkey, ctx 48 source4/smb_server/smb/negprot.c smb_conn->connection->event.ctx, ctx 370 source4/smb_server/smb/negprot.c req->smb_conn->connection->event.ctx, ctx 729 source4/smb_server/smb/request.c h->ctx = ntvfs->ctx; ctx 56 source4/smb_server/smb/service.c req->smb_conn->connection->event.ctx, ctx 73 source4/smb_server/smb/sesssetup.c status = auth_generate_session_info(req, req->smb_conn->connection->event.ctx, req->smb_conn->lp_ctx, ctx 169 source4/smb_server/smb/sesssetup.c status = auth_generate_session_info(req, req->smb_conn->connection->event.ctx, ctx 237 source4/smb_server/smb/sesssetup.c req->smb_conn->connection->event.ctx, ctx 367 source4/smb_server/smb/sesssetup.c req->smb_conn->connection->event.ctx, ctx 61 source4/smb_server/smb2/negprot.c req->smb_conn->connection->event.ctx, ctx 65 source4/smb_server/smb2/sesssetup.c struct smb2srv_sesssetup_callback_ctx *ctx = talloc_get_type(private_data, ctx 67 source4/smb_server/smb2/sesssetup.c struct smb2srv_request *req = ctx->req; ctx 68 source4/smb_server/smb2/sesssetup.c union smb_sesssetup *io = ctx->io; ctx 69 source4/smb_server/smb2/sesssetup.c struct smbsrv_session *smb_sess = ctx->smb_sess; ctx 128 source4/smb_server/smb2/sesssetup.c req->smb_conn->connection->event.ctx, ctx 198 source4/smb_server/smb2/tcon.c h->ctx = ntvfs->ctx; ctx 293 source4/smb_server/smb2/tcon.c req->smb_conn->connection->event.ctx, ctx 145 source4/smb_server/smb_server.c packet_set_event_context(smb_conn->packet, conn->event.ctx); ctx 160 source4/smb_server/smb_server.c smb_conn->connection->event.ctx, ctx 158 source4/smbd/service_named_pipe.c conn->event.ctx, ctx 286 source4/smbd/service_named_pipe.c packet_set_event_context(pipe_conn->packet, conn->event.ctx); ctx 59 source4/smbd/service_stream.c struct tevent_context *event_ctx = srv_conn->event.ctx; ctx 145 source4/smbd/service_stream.c srv_conn->event.ctx = ev; ctx 185 source4/smbd/service_stream.c srv_conn->event.ctx = ev; ctx 368 source4/smbd/service_stream.c conn->model_ops->set_title(conn->event.ctx, title); ctx 45 source4/smbd/service_stream.h struct tevent_context *ctx; ctx 366 source4/torture/basic/base.c event_loop_once(cli->transport->socket->event.ctx); ctx 44 source4/torture/libnet/libnet_BecomeDC.c struct libnet_context *ctx; ctx 604 source4/torture/libnet/libnet_BecomeDC.c s->ctx = libnet_context_init(torture->ev, torture->lp_ctx); ctx 605 source4/torture/libnet/libnet_BecomeDC.c s->ctx->cred = cmdline_credentials; ctx 623 source4/torture/libnet/libnet_BecomeDC.c status = libnet_BecomeDC(s->ctx, s, &b); ctx 698 source4/torture/libnet/libnet_BecomeDC.c status = libnet_UnbecomeDC(s->ctx, s, &u); ctx 130 source4/torture/libnet/libnet_domain.c struct libnet_context *ctx; ctx 141 source4/torture/libnet/libnet_domain.c ctx = libnet_context_init(torture->ev, torture->lp_ctx); ctx 142 source4/torture/libnet/libnet_domain.c if (ctx == NULL) { ctx 147 source4/torture/libnet/libnet_domain.c ctx->cred = cmdline_credentials; ctx 154 source4/torture/libnet/libnet_domain.c status = libnet_DomainOpen(ctx, torture, &r); ctx 162 source4/torture/libnet/libnet_domain.c lsa_close.in.handle = &ctx->lsa.handle; ctx 165 source4/torture/libnet/libnet_domain.c status = dcerpc_lsa_Close(ctx->lsa.pipe, ctx, &lsa_close); ctx 172 source4/torture/libnet/libnet_domain.c talloc_free(ctx); ctx 182 source4/torture/libnet/libnet_domain.c struct libnet_context *ctx; ctx 195 source4/torture/libnet/libnet_domain.c ctx = libnet_context_init(torture->ev, torture->lp_ctx); ctx 196 source4/torture/libnet/libnet_domain.c if (ctx == NULL) { ctx 202 source4/torture/libnet/libnet_domain.c ctx->cred = cmdline_credentials; ctx 221 source4/torture/libnet/libnet_domain.c ctx->lsa.pipe = p; ctx 222 source4/torture/libnet/libnet_domain.c ctx->lsa.name = domain_name.string; ctx 223 source4/torture/libnet/libnet_domain.c ctx->lsa.access_mask = access_mask; ctx 224 source4/torture/libnet/libnet_domain.c ctx->lsa.handle = h; ctx 227 source4/torture/libnet/libnet_domain.c ctx->event_ctx = p->conn->event_ctx; ctx 233 source4/torture/libnet/libnet_domain.c status = libnet_DomainClose(ctx, mem_ctx, &r); ctx 241 source4/torture/libnet/libnet_domain.c talloc_free(ctx); ctx 249 source4/torture/libnet/libnet_domain.c struct libnet_context *ctx; ctx 259 source4/torture/libnet/libnet_domain.c ctx = libnet_context_init(torture->ev, torture->lp_ctx); ctx 260 source4/torture/libnet/libnet_domain.c ctx->cred = cmdline_credentials; ctx 276 source4/torture/libnet/libnet_domain.c status = libnet_DomainOpen(ctx, mem_ctx, &io); ctx 283 source4/torture/libnet/libnet_domain.c domain_handle = ctx->samr.handle; ctx 290 source4/torture/libnet/libnet_domain.c status = dcerpc_samr_Close(ctx->samr.pipe, mem_ctx, &r); ctx 299 source4/torture/libnet/libnet_domain.c talloc_free(ctx); ctx 310 source4/torture/libnet/libnet_domain.c struct libnet_context *ctx; ctx 324 source4/torture/libnet/libnet_domain.c ctx = libnet_context_init(torture->ev, torture->lp_ctx); ctx 325 source4/torture/libnet/libnet_domain.c if (ctx == NULL) { ctx 331 source4/torture/libnet/libnet_domain.c ctx->cred = cmdline_credentials; ctx 335 source4/torture/libnet/libnet_domain.c ctx->cred, torture->ev, torture->lp_ctx); ctx 350 source4/torture/libnet/libnet_domain.c ctx->samr.pipe = p; ctx 351 source4/torture/libnet/libnet_domain.c ctx->samr.name = talloc_steal(ctx, domain_name.string); ctx 352 source4/torture/libnet/libnet_domain.c ctx->samr.access_mask = access_mask; ctx 353 source4/torture/libnet/libnet_domain.c ctx->samr.handle = h; ctx 354 source4/torture/libnet/libnet_domain.c ctx->samr.sid = talloc_steal(ctx, sid); ctx 358 source4/torture/libnet/libnet_domain.c ctx->event_ctx = p->conn->event_ctx; ctx 364 source4/torture/libnet/libnet_domain.c status = libnet_DomainClose(ctx, mem_ctx, &r); ctx 372 source4/torture/libnet/libnet_domain.c talloc_free(ctx); ctx 383 source4/torture/libnet/libnet_domain.c struct libnet_context *ctx; ctx 392 source4/torture/libnet/libnet_domain.c ctx = libnet_context_init(torture->ev, torture->lp_ctx); ctx 393 source4/torture/libnet/libnet_domain.c if (ctx == NULL) { ctx 399 source4/torture/libnet/libnet_domain.c ctx->cred = cmdline_credentials; ctx 410 source4/torture/libnet/libnet_domain.c status = libnet_DomainList(ctx, mem_ctx, &r); ctx 426 source4/torture/libnet/libnet_domain.c ctx->samr.buf_size = 32; ctx 431 source4/torture/libnet/libnet_domain.c status = libnet_DomainList(ctx, mem_ctx, &r); ctx 447 source4/torture/libnet/libnet_domain.c talloc_free(ctx); ctx 235 source4/torture/libnet/libnet_group.c struct libnet_context *ctx; ctx 243 source4/torture/libnet/libnet_group.c ctx = libnet_context_init(torture->ev, torture->lp_ctx); ctx 244 source4/torture/libnet/libnet_group.c ctx->cred = cmdline_credentials; ctx 272 source4/torture/libnet/libnet_group.c status = libnet_GroupInfo(ctx, mem_ctx, &req); ctx 280 source4/torture/libnet/libnet_group.c if (!test_cleanup(ctx->samr.pipe, mem_ctx, &ctx->samr.handle, TEST_GROUPNAME)) { ctx 286 source4/torture/libnet/libnet_group.c if (!test_samr_close(ctx->samr.pipe, mem_ctx, &ctx->samr.handle)) { ctx 291 source4/torture/libnet/libnet_group.c talloc_free(ctx); ctx 304 source4/torture/libnet/libnet_group.c struct libnet_context *ctx; ctx 309 source4/torture/libnet/libnet_group.c ctx = libnet_context_init(torture->ev, torture->lp_ctx); ctx 310 source4/torture/libnet/libnet_group.c ctx->cred = cmdline_credentials; ctx 324 source4/torture/libnet/libnet_group.c status = libnet_GroupList(ctx, mem_ctx, &req); ctx 342 source4/torture/libnet/libnet_group.c if (!test_samr_close(ctx->samr.pipe, mem_ctx, &ctx->samr.handle)) { ctx 347 source4/torture/libnet/libnet_group.c if (!test_lsa_close(ctx->lsa.pipe, mem_ctx, &ctx->lsa.handle)) { ctx 352 source4/torture/libnet/libnet_group.c talloc_free(ctx); ctx 365 source4/torture/libnet/libnet_group.c struct libnet_context *ctx; ctx 370 source4/torture/libnet/libnet_group.c ctx = libnet_context_init(torture->ev, torture->lp_ctx); ctx 371 source4/torture/libnet/libnet_group.c ctx->cred = cmdline_credentials; ctx 377 source4/torture/libnet/libnet_group.c status = libnet_CreateGroup(ctx, mem_ctx, &req); ctx 384 source4/torture/libnet/libnet_group.c if (!test_cleanup(ctx->samr.pipe, mem_ctx, &ctx->samr.handle, TEST_GROUPNAME)) { ctx 390 source4/torture/libnet/libnet_group.c if (!test_samr_close(ctx->samr.pipe, mem_ctx, &ctx->samr.handle)) { ctx 396 source4/torture/libnet/libnet_group.c talloc_free(ctx); ctx 37 source4/torture/libnet/libnet_lookup.c struct libnet_context *ctx; ctx 43 source4/torture/libnet/libnet_lookup.c ctx = libnet_context_init(torture->ev, torture->lp_ctx); ctx 44 source4/torture/libnet/libnet_lookup.c ctx->cred = cmdline_credentials; ctx 58 source4/torture/libnet/libnet_lookup.c status = libnet_Lookup(ctx, mem_ctx, &lookup); ctx 81 source4/torture/libnet/libnet_lookup.c struct libnet_context *ctx; ctx 87 source4/torture/libnet/libnet_lookup.c ctx = libnet_context_init(torture->ev, torture->lp_ctx); ctx 88 source4/torture/libnet/libnet_lookup.c ctx->cred = cmdline_credentials; ctx 101 source4/torture/libnet/libnet_lookup.c status = libnet_LookupHost(ctx, mem_ctx, &lookup); ctx 124 source4/torture/libnet/libnet_lookup.c struct libnet_context *ctx; ctx 130 source4/torture/libnet/libnet_lookup.c ctx = libnet_context_init(torture->ev, torture->lp_ctx); ctx 131 source4/torture/libnet/libnet_lookup.c ctx->cred = cmdline_credentials; ctx 133 source4/torture/libnet/libnet_lookup.c talloc_steal(ctx, mem_ctx); ctx 144 source4/torture/libnet/libnet_lookup.c status = libnet_LookupDCs(ctx, mem_ctx, lookup); ctx 171 source4/torture/libnet/libnet_lookup.c struct libnet_context *ctx; ctx 174 source4/torture/libnet/libnet_lookup.c ctx = libnet_context_init(torture->ev, torture->lp_ctx); ctx 175 source4/torture/libnet/libnet_lookup.c ctx->cred = cmdline_credentials; ctx 183 source4/torture/libnet/libnet_lookup.c status = libnet_LookupName(ctx, mem_ctx, &r); ctx 186 source4/torture/libnet/libnet_lookup.c talloc_free(ctx); ctx 36 source4/torture/libnet/libnet_rpc.c static bool test_connect_service(struct libnet_context *ctx, ctx 53 source4/torture/libnet/libnet_rpc.c cli_credentials_set_username(ctx->cred, "baduser", CRED_SPECIFIED); ctx 54 source4/torture/libnet/libnet_rpc.c cli_credentials_set_password(ctx->cred, "badpassword", CRED_SPECIFIED); ctx 57 source4/torture/libnet/libnet_rpc.c status = libnet_RpcConnect(ctx, ctx, &connect_r); ctx 74 source4/torture/libnet/libnet_rpc.c d_printf("\tDomain SID:\t %s\n", dom_sid_string(ctx, connect_r.out.domain_sid)); ctx 76 source4/torture/libnet/libnet_rpc.c d_printf("\tGUID:\t\t %s\n", GUID_string(ctx, connect_r.out.guid)); ctx 90 source4/torture/libnet/libnet_rpc.c struct libnet_context *ctx; ctx 92 source4/torture/libnet/libnet_rpc.c ctx = libnet_context_init(torture->ev, torture->lp_ctx); ctx 93 source4/torture/libnet/libnet_rpc.c ctx->cred = cmdline_credentials; ctx 96 source4/torture/libnet/libnet_rpc.c if (!test_connect_service(ctx, &ndr_table_lsarpc, bindstr, ctx 103 source4/torture/libnet/libnet_rpc.c if (!test_connect_service(ctx, &ndr_table_samr, bindstr, ctx 110 source4/torture/libnet/libnet_rpc.c if (!test_connect_service(ctx, &ndr_table_srvsvc, bindstr, ctx 117 source4/torture/libnet/libnet_rpc.c if (!test_connect_service(ctx, &ndr_table_lsarpc, bindstr, ctx 124 source4/torture/libnet/libnet_rpc.c if (!test_connect_service(ctx, &ndr_table_samr, bindstr, ctx 130 source4/torture/libnet/libnet_rpc.c talloc_free(ctx); ctx 243 source4/torture/libnet/libnet_user.c struct libnet_context *ctx; ctx 249 source4/torture/libnet/libnet_user.c ctx = libnet_context_init(torture->ev, torture->lp_ctx); ctx 250 source4/torture/libnet/libnet_user.c ctx->cred = cmdline_credentials; ctx 256 source4/torture/libnet/libnet_user.c status = libnet_CreateUser(ctx, mem_ctx, &req); ctx 263 source4/torture/libnet/libnet_user.c if (!test_cleanup(ctx->samr.pipe, mem_ctx, &ctx->samr.handle, TEST_USERNAME)) { ctx 269 source4/torture/libnet/libnet_user.c if (!test_samr_close(ctx->samr.pipe, mem_ctx, &ctx->samr.handle)) { ctx 275 source4/torture/libnet/libnet_user.c talloc_free(ctx); ctx 289 source4/torture/libnet/libnet_user.c struct libnet_context *ctx; ctx 295 source4/torture/libnet/libnet_user.c ctx = libnet_context_init(torture->ev, torture->lp_ctx); ctx 296 source4/torture/libnet/libnet_user.c ctx->cred = cmdline_credentials; ctx 322 source4/torture/libnet/libnet_user.c status = libnet_DeleteUser(ctx, mem_ctx, &req); ctx 331 source4/torture/libnet/libnet_user.c talloc_free(ctx); ctx 482 source4/torture/libnet/libnet_user.c struct libnet_context *ctx; ctx 490 source4/torture/libnet/libnet_user.c ctx = libnet_context_init(torture->ev, torture->lp_ctx); ctx 491 source4/torture/libnet/libnet_user.c ctx->cred = cmdline_credentials; ctx 529 source4/torture/libnet/libnet_user.c status = libnet_ModifyUser(ctx, torture, &req); ctx 541 source4/torture/libnet/libnet_user.c status = libnet_UserInfo(ctx, torture, &user_req); ctx 581 source4/torture/libnet/libnet_user.c status = libnet_ModifyUser(ctx, torture, &req); ctx 593 source4/torture/libnet/libnet_user.c if (!test_cleanup(ctx->samr.pipe, torture, &ctx->samr.handle, name)) { ctx 599 source4/torture/libnet/libnet_user.c if (!test_samr_close(ctx->samr.pipe, torture, &ctx->samr.handle)) { ctx 605 source4/torture/libnet/libnet_user.c talloc_free(ctx); ctx 617 source4/torture/libnet/libnet_user.c struct libnet_context *ctx; ctx 625 source4/torture/libnet/libnet_user.c ctx = libnet_context_init(torture->ev, torture->lp_ctx); ctx 626 source4/torture/libnet/libnet_user.c ctx->cred = cmdline_credentials; ctx 654 source4/torture/libnet/libnet_user.c status = libnet_UserInfo(ctx, mem_ctx, &req); ctx 662 source4/torture/libnet/libnet_user.c if (!test_cleanup(ctx->samr.pipe, mem_ctx, &ctx->samr.handle, TEST_USERNAME)) { ctx 668 source4/torture/libnet/libnet_user.c if (!test_samr_close(ctx->samr.pipe, mem_ctx, &ctx->samr.handle)) { ctx 673 source4/torture/libnet/libnet_user.c talloc_free(ctx); ctx 686 source4/torture/libnet/libnet_user.c struct libnet_context *ctx; ctx 691 source4/torture/libnet/libnet_user.c ctx = libnet_context_init(torture->ev, torture->lp_ctx); ctx 692 source4/torture/libnet/libnet_user.c ctx->cred = cmdline_credentials; ctx 707 source4/torture/libnet/libnet_user.c status = libnet_UserList(ctx, mem_ctx, &req); ctx 725 source4/torture/libnet/libnet_user.c if (!test_samr_close(ctx->samr.pipe, mem_ctx, &ctx->samr.handle)) { ctx 731 source4/torture/libnet/libnet_user.c if (!test_lsa_close(ctx->lsa.pipe, mem_ctx, &ctx->lsa.handle)) { ctx 736 source4/torture/libnet/libnet_user.c talloc_free(ctx); ctx 544 source4/torture/nbt/winsreplication.c struct test_wrepl_conflict_conn *ctx; ctx 552 source4/torture/nbt/winsreplication.c ctx = talloc_zero(tctx, struct test_wrepl_conflict_conn); ctx 553 source4/torture/nbt/winsreplication.c if (!ctx) return NULL; ctx 555 source4/torture/nbt/winsreplication.c ctx->address = address; ctx 556 source4/torture/nbt/winsreplication.c ctx->pull = wrepl_socket_init(ctx, tctx->ev, lp_iconv_convenience(tctx->lp_ctx)); ctx 557 source4/torture/nbt/winsreplication.c if (!ctx->pull) return NULL; ctx 560 source4/torture/nbt/winsreplication.c status = wrepl_connect(ctx->pull, wrepl_best_ip(tctx->lp_ctx, ctx->address), ctx->address); ctx 563 source4/torture/nbt/winsreplication.c status = wrepl_associate(ctx->pull, &associate); ctx 566 source4/torture/nbt/winsreplication.c ctx->pull_assoc = associate.out.assoc_ctx; ctx 568 source4/torture/nbt/winsreplication.c ctx->a.address = TEST_OWNER_A_ADDRESS; ctx 569 source4/torture/nbt/winsreplication.c ctx->a.max_version = 0; ctx 570 source4/torture/nbt/winsreplication.c ctx->a.min_version = 0; ctx 571 source4/torture/nbt/winsreplication.c ctx->a.type = 1; ctx 573 source4/torture/nbt/winsreplication.c ctx->b.address = TEST_OWNER_B_ADDRESS; ctx 574 source4/torture/nbt/winsreplication.c ctx->b.max_version = 0; ctx 575 source4/torture/nbt/winsreplication.c ctx->b.min_version = 0; ctx 576 source4/torture/nbt/winsreplication.c ctx->b.type = 1; ctx 578 source4/torture/nbt/winsreplication.c ctx->x.address = TEST_OWNER_X_ADDRESS; ctx 579 source4/torture/nbt/winsreplication.c ctx->x.max_version = 0; ctx 580 source4/torture/nbt/winsreplication.c ctx->x.min_version = 0; ctx 581 source4/torture/nbt/winsreplication.c ctx->x.type = 1; ctx 583 source4/torture/nbt/winsreplication.c ctx->c.address = address; ctx 584 source4/torture/nbt/winsreplication.c ctx->c.max_version = 0; ctx 585 source4/torture/nbt/winsreplication.c ctx->c.min_version = 0; ctx 586 source4/torture/nbt/winsreplication.c ctx->c.type = 1; ctx 588 source4/torture/nbt/winsreplication.c pull_table.in.assoc_ctx = ctx->pull_assoc; ctx 589 source4/torture/nbt/winsreplication.c status = wrepl_pull_table(ctx->pull, ctx->pull, &pull_table); ctx 594 source4/torture/nbt/winsreplication.c ctx->a.max_version = pull_table.out.partners[i].max_version; ctx 595 source4/torture/nbt/winsreplication.c ctx->a.min_version = pull_table.out.partners[i].min_version; ctx 598 source4/torture/nbt/winsreplication.c ctx->b.max_version = pull_table.out.partners[i].max_version; ctx 599 source4/torture/nbt/winsreplication.c ctx->b.min_version = pull_table.out.partners[i].min_version; ctx 602 source4/torture/nbt/winsreplication.c ctx->x.max_version = pull_table.out.partners[i].max_version; ctx 603 source4/torture/nbt/winsreplication.c ctx->x.min_version = pull_table.out.partners[i].min_version; ctx 606 source4/torture/nbt/winsreplication.c ctx->c.max_version = pull_table.out.partners[i].max_version; ctx 607 source4/torture/nbt/winsreplication.c ctx->c.min_version = pull_table.out.partners[i].min_version; ctx 613 source4/torture/nbt/winsreplication.c ctx->nbtsock = nbt_name_socket_init(ctx, tctx->ev, lp_iconv_convenience(tctx->lp_ctx)); ctx 614 source4/torture/nbt/winsreplication.c if (!ctx->nbtsock) return NULL; ctx 618 source4/torture/nbt/winsreplication.c ctx->myaddr = socket_address_from_strings(tctx, ctx->nbtsock->sock->backend_name, iface_best_ip(ifaces, address), 0); ctx 619 source4/torture/nbt/winsreplication.c if (!ctx->myaddr) return NULL; ctx 622 source4/torture/nbt/winsreplication.c if (strcmp(ctx->myaddr->addr, iface_n_ip(ifaces, i)) == 0) continue; ctx 623 source4/torture/nbt/winsreplication.c ctx->myaddr2 = socket_address_from_strings(tctx, ctx->nbtsock->sock->backend_name, iface_n_ip(ifaces, i), 0); ctx 624 source4/torture/nbt/winsreplication.c if (!ctx->myaddr2) return NULL; ctx 628 source4/torture/nbt/winsreplication.c status = socket_listen(ctx->nbtsock->sock, ctx->myaddr, 0, 0); ctx 631 source4/torture/nbt/winsreplication.c ctx->nbtsock_srv = nbt_name_socket_init(ctx, tctx->ev, lp_iconv_convenience(tctx->lp_ctx)); ctx 632 source4/torture/nbt/winsreplication.c if (!ctx->nbtsock_srv) return NULL; ctx 635 source4/torture/nbt/winsreplication.c nbt_srv_addr = socket_address_from_strings(tctx, ctx->nbtsock_srv->sock->backend_name, ctx->myaddr->addr, lp_nbt_port(tctx->lp_ctx)); ctx 639 source4/torture/nbt/winsreplication.c status = socket_listen(ctx->nbtsock_srv->sock, nbt_srv_addr, 0, 0); ctx 643 source4/torture/nbt/winsreplication.c talloc_free(ctx->nbtsock_srv); ctx 644 source4/torture/nbt/winsreplication.c ctx->nbtsock_srv = NULL; ctx 647 source4/torture/nbt/winsreplication.c if (ctx->myaddr2 && ctx->nbtsock_srv) { ctx 648 source4/torture/nbt/winsreplication.c ctx->nbtsock2 = nbt_name_socket_init(ctx, tctx->ev, lp_iconv_convenience(tctx->lp_ctx)); ctx 649 source4/torture/nbt/winsreplication.c if (!ctx->nbtsock2) return NULL; ctx 651 source4/torture/nbt/winsreplication.c status = socket_listen(ctx->nbtsock2->sock, ctx->myaddr2, 0, 0); ctx 654 source4/torture/nbt/winsreplication.c ctx->nbtsock_srv2 = nbt_name_socket_init(ctx, ctx->nbtsock_srv->event_ctx, lp_iconv_convenience(tctx->lp_ctx)); ctx 655 source4/torture/nbt/winsreplication.c if (!ctx->nbtsock_srv2) return NULL; ctx 659 source4/torture/nbt/winsreplication.c ctx->nbtsock_srv->sock->backend_name, ctx 660 source4/torture/nbt/winsreplication.c ctx->myaddr2->addr, ctx 665 source4/torture/nbt/winsreplication.c status = socket_listen(ctx->nbtsock_srv2->sock, ctx->myaddr2, 0, 0); ctx 669 source4/torture/nbt/winsreplication.c talloc_free(ctx->nbtsock_srv2); ctx 670 source4/torture/nbt/winsreplication.c ctx->nbtsock_srv2 = NULL; ctx 674 source4/torture/nbt/winsreplication.c ctx->addresses_best_num = 1; ctx 675 source4/torture/nbt/winsreplication.c ctx->addresses_best = talloc_array(ctx, struct wrepl_ip, ctx->addresses_best_num); ctx 676 source4/torture/nbt/winsreplication.c if (!ctx->addresses_best) return NULL; ctx 677 source4/torture/nbt/winsreplication.c ctx->addresses_best[0].owner = ctx->b.address; ctx 678 source4/torture/nbt/winsreplication.c ctx->addresses_best[0].ip = ctx->myaddr->addr; ctx 680 source4/torture/nbt/winsreplication.c ctx->addresses_all_num = iface_count(ifaces); ctx 681 source4/torture/nbt/winsreplication.c ctx->addresses_all = talloc_array(ctx, struct wrepl_ip, ctx->addresses_all_num); ctx 682 source4/torture/nbt/winsreplication.c if (!ctx->addresses_all) return NULL; ctx 683 source4/torture/nbt/winsreplication.c for (i=0; i < ctx->addresses_all_num; i++) { ctx 684 source4/torture/nbt/winsreplication.c ctx->addresses_all[i].owner = ctx->b.address; ctx 685 source4/torture/nbt/winsreplication.c ctx->addresses_all[i].ip = talloc_strdup(ctx->addresses_all, iface_n_ip(ifaces, i)); ctx 686 source4/torture/nbt/winsreplication.c if (!ctx->addresses_all[i].ip) return NULL; ctx 689 source4/torture/nbt/winsreplication.c if (ctx->nbtsock_srv2) { ctx 690 source4/torture/nbt/winsreplication.c ctx->addresses_best2_num = 1; ctx 691 source4/torture/nbt/winsreplication.c ctx->addresses_best2 = talloc_array(ctx, struct wrepl_ip, ctx->addresses_best2_num); ctx 692 source4/torture/nbt/winsreplication.c if (!ctx->addresses_best2) return NULL; ctx 693 source4/torture/nbt/winsreplication.c ctx->addresses_best2[0].owner = ctx->b.address; ctx 694 source4/torture/nbt/winsreplication.c ctx->addresses_best2[0].ip = ctx->myaddr2->addr; ctx 696 source4/torture/nbt/winsreplication.c ctx->addresses_mhomed_num = 2; ctx 697 source4/torture/nbt/winsreplication.c ctx->addresses_mhomed = talloc_array(ctx, struct wrepl_ip, ctx->addresses_mhomed_num); ctx 698 source4/torture/nbt/winsreplication.c if (!ctx->addresses_mhomed) return NULL; ctx 699 source4/torture/nbt/winsreplication.c ctx->addresses_mhomed[0].owner = ctx->b.address; ctx 700 source4/torture/nbt/winsreplication.c ctx->addresses_mhomed[0].ip = ctx->myaddr->addr; ctx 701 source4/torture/nbt/winsreplication.c ctx->addresses_mhomed[1].owner = ctx->b.address; ctx 702 source4/torture/nbt/winsreplication.c ctx->addresses_mhomed[1].ip = ctx->myaddr2->addr; ctx 705 source4/torture/nbt/winsreplication.c return ctx; ctx 709 source4/torture/nbt/winsreplication.c struct test_wrepl_conflict_conn *ctx, ctx 725 source4/torture/nbt/winsreplication.c wrepl_socket = wrepl_socket_init(ctx, tctx->ev, lp_iconv_convenience(tctx->lp_ctx)); ctx 727 source4/torture/nbt/winsreplication.c status = wrepl_connect(wrepl_socket, wrepl_best_ip(tctx->lp_ctx, ctx->address), ctx->address); ctx 778 source4/torture/nbt/winsreplication.c struct test_wrepl_conflict_conn *ctx, ctx 787 source4/torture/nbt/winsreplication.c pull_names.in.assoc_ctx = ctx->pull_assoc; ctx 791 source4/torture/nbt/winsreplication.c status = wrepl_pull_names(ctx->pull, ctx->pull, &pull_names); ctx 823 source4/torture/nbt/winsreplication.c struct test_wrepl_conflict_conn *ctx, ctx 846 source4/torture/nbt/winsreplication.c pull_names.in.assoc_ctx = ctx->pull_assoc; ctx 850 source4/torture/nbt/winsreplication.c status = wrepl_pull_names(ctx->pull, ctx->pull, &pull_names); ctx 900 source4/torture/nbt/winsreplication.c struct test_wrepl_conflict_conn *ctx, ctx 917 source4/torture/nbt/winsreplication.c merge_owner = &ctx->c; ctx 921 source4/torture/nbt/winsreplication.c if (owner1 != &ctx->c && strcmp(ips1[i].owner,owner2->address) == 0) { ctx 934 source4/torture/nbt/winsreplication.c pull_names.in.assoc_ctx = ctx->pull_assoc; ctx 939 source4/torture/nbt/winsreplication.c status = wrepl_pull_names(ctx->pull, ctx->pull, &pull_names); ctx 958 source4/torture/nbt/winsreplication.c torture_comment(tctx, "%s: Name '%s' not found\n", __location__, nbt_name_string(ctx, name2->name)); ctx 991 source4/torture/nbt/winsreplication.c if (owner1 == &ctx->c) { ctx 1009 source4/torture/nbt/winsreplication.c struct test_wrepl_conflict_conn *ctx) ctx 1127 source4/torture/nbt/winsreplication.c nbt_name_string(ctx, &name), ctx->a.address); ctx 1151 source4/torture/nbt/winsreplication.c wins_name_cur->id = ++ctx->a.max_version; ctx 1160 source4/torture/nbt/winsreplication.c ret &= test_wrepl_update_one(tctx, ctx, &ctx->a,wins_name_cur); ctx 1162 source4/torture/nbt/winsreplication.c ret &= test_wrepl_is_applied(tctx, ctx, &ctx->a, wins_name_last, false); ctx 1163 source4/torture/nbt/winsreplication.c ret &= test_wrepl_is_applied(tctx, ctx, &ctx->a, wins_name_cur, false); ctx 1165 source4/torture/nbt/winsreplication.c ret &= test_wrepl_is_applied(tctx, ctx, &ctx->a, wins_name_cur, true); ctx 1181 source4/torture/nbt/winsreplication.c struct test_wrepl_conflict_conn *ctx) ctx 1219 source4/torture/nbt/winsreplication.c .owner = &ctx->b, ctx 1229 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 1251 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 1261 source4/torture/nbt/winsreplication.c .owner = &ctx->b, ctx 1280 source4/torture/nbt/winsreplication.c .owner = &ctx->b, ctx 1290 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 1309 source4/torture/nbt/winsreplication.c .owner = &ctx->b, ctx 1319 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 1338 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 1348 source4/torture/nbt/winsreplication.c .owner = &ctx->b, ctx 1367 source4/torture/nbt/winsreplication.c .owner = &ctx->b, ctx 1377 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 1396 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 1406 source4/torture/nbt/winsreplication.c .owner = &ctx->b, ctx 1429 source4/torture/nbt/winsreplication.c .owner = &ctx->b, ctx 1439 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 1458 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 1468 source4/torture/nbt/winsreplication.c .owner = &ctx->b, ctx 1487 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 1497 source4/torture/nbt/winsreplication.c .owner = &ctx->b, ctx 1516 source4/torture/nbt/winsreplication.c .owner = &ctx->b, ctx 1526 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 1545 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 1555 source4/torture/nbt/winsreplication.c .owner = &ctx->b, ctx 1574 source4/torture/nbt/winsreplication.c .owner = &ctx->b, ctx 1584 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 1606 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 1616 source4/torture/nbt/winsreplication.c .owner = &ctx->b, ctx 1635 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 1645 source4/torture/nbt/winsreplication.c .owner = &ctx->b, ctx 1664 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 1674 source4/torture/nbt/winsreplication.c .owner = &ctx->b, ctx 1693 source4/torture/nbt/winsreplication.c .owner = &ctx->b, ctx 1703 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 1722 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 1732 source4/torture/nbt/winsreplication.c .owner = &ctx->b, ctx 1751 source4/torture/nbt/winsreplication.c .owner = &ctx->b, ctx 1761 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 1783 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 1793 source4/torture/nbt/winsreplication.c .owner = &ctx->b, ctx 1812 source4/torture/nbt/winsreplication.c .owner = &ctx->b, ctx 1822 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 1841 source4/torture/nbt/winsreplication.c .owner = &ctx->b, ctx 1851 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 1870 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 1880 source4/torture/nbt/winsreplication.c .owner = &ctx->b, ctx 1899 source4/torture/nbt/winsreplication.c .owner = &ctx->b, ctx 1909 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 1928 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 1938 source4/torture/nbt/winsreplication.c .owner = &ctx->b, ctx 1960 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 1970 source4/torture/nbt/winsreplication.c .owner = &ctx->b, ctx 1989 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 1999 source4/torture/nbt/winsreplication.c .owner = &ctx->b, ctx 2018 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 2028 source4/torture/nbt/winsreplication.c .owner = &ctx->b, ctx 2047 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 2057 source4/torture/nbt/winsreplication.c .owner = &ctx->b, ctx 2076 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 2086 source4/torture/nbt/winsreplication.c .owner = &ctx->b, ctx 2105 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 2115 source4/torture/nbt/winsreplication.c .owner = &ctx->b, ctx 2137 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 2147 source4/torture/nbt/winsreplication.c .owner = &ctx->b, ctx 2166 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 2176 source4/torture/nbt/winsreplication.c .owner = &ctx->b, ctx 2195 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 2205 source4/torture/nbt/winsreplication.c .owner = &ctx->b, ctx 2224 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 2234 source4/torture/nbt/winsreplication.c .owner = &ctx->b, ctx 2253 source4/torture/nbt/winsreplication.c .owner = &ctx->b, ctx 2263 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 2282 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 2292 source4/torture/nbt/winsreplication.c .owner = &ctx->b, ctx 2314 source4/torture/nbt/winsreplication.c .owner = &ctx->b, ctx 2324 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 2343 source4/torture/nbt/winsreplication.c .owner = &ctx->b, ctx 2353 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 2372 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 2382 source4/torture/nbt/winsreplication.c .owner = &ctx->b, ctx 2401 source4/torture/nbt/winsreplication.c .owner = &ctx->b, ctx 2411 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 2430 source4/torture/nbt/winsreplication.c .owner = &ctx->b, ctx 2440 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 2459 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 2469 source4/torture/nbt/winsreplication.c .owner = &ctx->b, ctx 2491 source4/torture/nbt/winsreplication.c .owner = &ctx->b, ctx 2501 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 2520 source4/torture/nbt/winsreplication.c .owner = &ctx->b, ctx 2530 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 2549 source4/torture/nbt/winsreplication.c .owner = &ctx->b, ctx 2559 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 2578 source4/torture/nbt/winsreplication.c .owner = &ctx->b, ctx 2588 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 2607 source4/torture/nbt/winsreplication.c .owner = &ctx->b, ctx 2617 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 2636 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 2646 source4/torture/nbt/winsreplication.c .owner = &ctx->b, ctx 2668 source4/torture/nbt/winsreplication.c .owner = &ctx->b, ctx 2678 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 2697 source4/torture/nbt/winsreplication.c .owner = &ctx->b, ctx 2707 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 2726 source4/torture/nbt/winsreplication.c .owner = &ctx->b, ctx 2736 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 2755 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 2765 source4/torture/nbt/winsreplication.c .owner = &ctx->b, ctx 2784 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 2794 source4/torture/nbt/winsreplication.c .owner = &ctx->b, ctx 2813 source4/torture/nbt/winsreplication.c .owner = &ctx->b, ctx 2823 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 2845 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 2855 source4/torture/nbt/winsreplication.c .owner = &ctx->b, ctx 2874 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 2884 source4/torture/nbt/winsreplication.c .owner = &ctx->b, ctx 2903 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 2913 source4/torture/nbt/winsreplication.c .owner = &ctx->b, ctx 2932 source4/torture/nbt/winsreplication.c .owner = &ctx->b, ctx 2942 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 2961 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 2971 source4/torture/nbt/winsreplication.c .owner = &ctx->b, ctx 2990 source4/torture/nbt/winsreplication.c .owner = &ctx->b, ctx 3000 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 3022 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 3032 source4/torture/nbt/winsreplication.c .owner = &ctx->b, ctx 3051 source4/torture/nbt/winsreplication.c .owner = &ctx->b, ctx 3061 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 3080 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 3090 source4/torture/nbt/winsreplication.c .owner = &ctx->b, ctx 3109 source4/torture/nbt/winsreplication.c .owner = &ctx->b, ctx 3119 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 3141 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 3151 source4/torture/nbt/winsreplication.c .owner = &ctx->b, ctx 3170 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 3180 source4/torture/nbt/winsreplication.c .owner = &ctx->b, ctx 3199 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 3209 source4/torture/nbt/winsreplication.c .owner = &ctx->b, ctx 3228 source4/torture/nbt/winsreplication.c .owner = &ctx->b, ctx 3238 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 3257 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 3267 source4/torture/nbt/winsreplication.c .owner = &ctx->b, ctx 3286 source4/torture/nbt/winsreplication.c .owner = &ctx->b, ctx 3296 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 3318 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 3328 source4/torture/nbt/winsreplication.c .owner = &ctx->b, ctx 3347 source4/torture/nbt/winsreplication.c .owner = &ctx->b, ctx 3357 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 3376 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 3386 source4/torture/nbt/winsreplication.c .owner = &ctx->b, ctx 3405 source4/torture/nbt/winsreplication.c .owner = &ctx->b, ctx 3415 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 3434 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 3444 source4/torture/nbt/winsreplication.c .owner = &ctx->b, ctx 3463 source4/torture/nbt/winsreplication.c .owner = &ctx->b, ctx 3473 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 3495 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 3505 source4/torture/nbt/winsreplication.c .owner = &ctx->b, ctx 3524 source4/torture/nbt/winsreplication.c .owner = &ctx->b, ctx 3534 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 3553 source4/torture/nbt/winsreplication.c .owner = &ctx->b, ctx 3563 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 3582 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 3592 source4/torture/nbt/winsreplication.c .owner = &ctx->b, ctx 3611 source4/torture/nbt/winsreplication.c .owner = &ctx->b, ctx 3621 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 3640 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 3650 source4/torture/nbt/winsreplication.c .owner = &ctx->b, ctx 3672 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 3682 source4/torture/nbt/winsreplication.c .owner = &ctx->b, ctx 3701 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 3711 source4/torture/nbt/winsreplication.c .owner = &ctx->b, ctx 3730 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 3740 source4/torture/nbt/winsreplication.c .owner = &ctx->b, ctx 3759 source4/torture/nbt/winsreplication.c .owner = &ctx->b, ctx 3769 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 3788 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 3798 source4/torture/nbt/winsreplication.c .owner = &ctx->b, ctx 3817 source4/torture/nbt/winsreplication.c .owner = &ctx->b, ctx 3827 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 3849 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 3859 source4/torture/nbt/winsreplication.c .owner = &ctx->b, ctx 3878 source4/torture/nbt/winsreplication.c .owner = &ctx->b, ctx 3888 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 3907 source4/torture/nbt/winsreplication.c .owner = &ctx->b, ctx 3917 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 3936 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 3946 source4/torture/nbt/winsreplication.c .owner = &ctx->b, ctx 3965 source4/torture/nbt/winsreplication.c .owner = &ctx->b, ctx 3975 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 3994 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 4004 source4/torture/nbt/winsreplication.c .owner = &ctx->b, ctx 4019 source4/torture/nbt/winsreplication.c .owner = &ctx->b, ctx 4029 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 4052 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 4062 source4/torture/nbt/winsreplication.c .owner = &ctx->b, ctx 4083 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 4093 source4/torture/nbt/winsreplication.c .owner = &ctx->b, ctx 4114 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 4124 source4/torture/nbt/winsreplication.c .owner = &ctx->b, ctx 4139 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 4149 source4/torture/nbt/winsreplication.c .owner = &ctx->x, ctx 4169 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 4179 source4/torture/nbt/winsreplication.c .owner = &ctx->b, ctx 4200 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 4210 source4/torture/nbt/winsreplication.c .owner = &ctx->b, ctx 4231 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 4241 source4/torture/nbt/winsreplication.c .owner = &ctx->b, ctx 4262 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 4272 source4/torture/nbt/winsreplication.c .owner = &ctx->b, ctx 4293 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 4303 source4/torture/nbt/winsreplication.c .owner = &ctx->b, ctx 4311 source4/torture/nbt/winsreplication.c .merge_owner = &ctx->b, ctx 4320 source4/torture/nbt/winsreplication.c .owner = &ctx->b, ctx 4330 source4/torture/nbt/winsreplication.c .owner = &ctx->b, ctx 4350 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 4360 source4/torture/nbt/winsreplication.c .owner = &ctx->b, ctx 4376 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 4386 source4/torture/nbt/winsreplication.c .owner = &ctx->x, ctx 4406 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 4416 source4/torture/nbt/winsreplication.c .owner = &ctx->b, ctx 4424 source4/torture/nbt/winsreplication.c .merge_owner = &ctx->b, ctx 4432 source4/torture/nbt/winsreplication.c .owner = &ctx->b, ctx 4442 source4/torture/nbt/winsreplication.c .owner = &ctx->x, ctx 4462 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 4472 source4/torture/nbt/winsreplication.c .owner = &ctx->b, ctx 4488 source4/torture/nbt/winsreplication.c .owner = &ctx->b, ctx 4498 source4/torture/nbt/winsreplication.c .owner = &ctx->x, ctx 4518 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 4528 source4/torture/nbt/winsreplication.c .owner = &ctx->b, ctx 4536 source4/torture/nbt/winsreplication.c .merge_owner = &ctx->b, ctx 4545 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 4555 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 4575 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 4585 source4/torture/nbt/winsreplication.c .owner = &ctx->b, ctx 4593 source4/torture/nbt/winsreplication.c .merge_owner = &ctx->b, ctx 4602 source4/torture/nbt/winsreplication.c .owner = &ctx->x, ctx 4612 source4/torture/nbt/winsreplication.c .owner = &ctx->x, ctx 4633 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 4643 source4/torture/nbt/winsreplication.c .owner = &ctx->b, ctx 4663 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 4673 source4/torture/nbt/winsreplication.c .owner = &ctx->b, ctx 4693 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 4703 source4/torture/nbt/winsreplication.c .owner = &ctx->b, ctx 4723 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 4733 source4/torture/nbt/winsreplication.c .owner = &ctx->b, ctx 4754 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 4764 source4/torture/nbt/winsreplication.c .owner = &ctx->a, ctx 4844 source4/torture/nbt/winsreplication.c ret &= test_wrepl_update_one(tctx, ctx, records[i].r1.owner, wins_name_r1); ctx 4845 source4/torture/nbt/winsreplication.c ret &= test_wrepl_is_applied(tctx, ctx, records[i].r1.owner, ctx 4866 source4/torture/nbt/winsreplication.c ret &= test_wrepl_update_one(tctx, ctx, records[i].r2.owner, wins_name_r2); ctx 4868 source4/torture/nbt/winsreplication.c ret &= test_wrepl_is_applied(tctx, ctx, records[i].r1.owner, ctx 4871 source4/torture/nbt/winsreplication.c ret &= test_wrepl_sgroup_merged(tctx, ctx, records[i].r2.merge_owner, ctx 4880 source4/torture/nbt/winsreplication.c ret &= test_wrepl_is_applied(tctx, ctx, records[i].r1.owner, ctx 4884 source4/torture/nbt/winsreplication.c ret &= test_wrepl_is_applied(tctx, ctx, records[i].r2.owner, ctx 4887 source4/torture/nbt/winsreplication.c ret &= test_wrepl_is_applied(tctx, ctx, records[i].r2.owner, ctx 4906 source4/torture/nbt/winsreplication.c ret &= test_wrepl_update_one(tctx, ctx, records[i].r1.owner, wins_name_r1); ctx 4910 source4/torture/nbt/winsreplication.c ret &= test_wrepl_sgroup_merged(tctx, ctx, NULL, ctx 4927 source4/torture/nbt/winsreplication.c ret &= test_wrepl_update_one(tctx, ctx, records[i].r2.owner, wins_name_r2); ctx 4938 source4/torture/nbt/winsreplication.c ret &= test_wrepl_update_one(tctx, ctx, records[i].r2.owner, wins_name_r2); ctx 4939 source4/torture/nbt/winsreplication.c ret &= test_wrepl_is_applied(tctx, ctx, records[i].r2.owner, wins_name_r2, true); ctx 4950 source4/torture/nbt/winsreplication.c ret &= test_wrepl_update_one(tctx, ctx, records[i].r2.owner, wins_name_r2); ctx 4951 source4/torture/nbt/winsreplication.c ret &= test_wrepl_is_applied(tctx, ctx, records[i].r2.owner, wins_name_r2, true); ctx 4972 source4/torture/nbt/winsreplication.c struct test_wrepl_conflict_conn *ctx) ctx 5015 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 5016 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 5024 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 5025 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 5038 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 5039 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 5061 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 5062 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 5070 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 5071 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 5084 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 5085 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 5110 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 5111 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 5119 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 5120 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 5133 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 5134 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 5156 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 5157 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 5165 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 5166 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 5179 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 5180 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 5205 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 5206 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 5214 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 5215 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 5228 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 5229 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 5251 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 5252 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 5260 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 5261 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 5274 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 5275 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 5300 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 5301 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 5309 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 5310 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 5323 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 5324 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 5346 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 5347 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 5355 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 5356 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 5369 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 5370 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 5395 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 5396 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 5404 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 5405 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 5418 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 5419 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 5441 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 5442 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 5450 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 5451 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 5464 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 5465 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 5490 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 5491 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 5499 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 5500 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 5513 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 5514 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 5536 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 5537 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 5545 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 5546 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 5559 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 5560 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 5585 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 5586 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 5594 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 5595 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 5608 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 5609 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 5631 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 5632 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 5640 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 5641 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 5654 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 5655 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 5680 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 5681 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 5689 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 5690 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 5703 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 5704 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 5726 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 5727 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 5735 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 5736 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 5749 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 5750 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 5775 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 5776 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 5784 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 5785 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 5798 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 5799 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 5821 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 5822 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 5830 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 5831 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 5844 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 5845 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 5870 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 5871 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 5879 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 5880 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 5893 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 5894 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 5916 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 5917 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 5925 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 5926 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 5939 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 5940 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 5965 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 5966 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 5974 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 5975 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 5988 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 5989 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 6011 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 6012 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 6020 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 6021 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 6034 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 6035 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 6060 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 6061 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 6069 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 6070 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 6083 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 6084 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 6106 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 6107 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 6115 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 6116 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 6129 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 6130 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 6155 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 6156 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 6164 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 6165 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 6178 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 6179 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 6201 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 6202 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 6210 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 6211 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 6224 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 6225 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 6250 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 6251 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 6259 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 6260 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 6273 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 6274 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 6296 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 6297 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 6305 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 6306 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 6319 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 6320 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 6345 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 6346 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 6354 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 6355 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 6368 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 6369 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 6391 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 6392 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 6400 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 6401 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 6414 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 6415 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 6440 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 6441 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 6449 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 6450 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 6463 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 6464 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 6486 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 6487 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 6495 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 6496 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 6509 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 6510 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 6528 source4/torture/nbt/winsreplication.c torture_comment(tctx, "%s => %s\n", nbt_name_string(ctx, &records[i].name), ctx 6535 source4/torture/nbt/winsreplication.c name_register->in.dest_addr = ctx->address; ctx 6546 source4/torture/nbt/winsreplication.c status = nbt_name_register(ctx->nbtsock, ctx, name_register); ctx 6548 source4/torture/nbt/winsreplication.c torture_comment(tctx, "No response from %s for name register\n", ctx->address); ctx 6553 source4/torture/nbt/winsreplication.c ctx->address, nt_errstr(status)); ctx 6557 source4/torture/nbt/winsreplication.c CHECK_VALUE_STRING(tctx, name_register->out.reply_from, ctx->address); ctx 6566 source4/torture/nbt/winsreplication.c release->in.dest_addr = ctx->address; ctx 6573 source4/torture/nbt/winsreplication.c status = nbt_name_release(ctx->nbtsock, ctx, release); ctx 6575 source4/torture/nbt/winsreplication.c torture_comment(tctx, "No response from %s for name release\n", ctx->address); ctx 6580 source4/torture/nbt/winsreplication.c ctx->address, nt_errstr(status)); ctx 6593 source4/torture/nbt/winsreplication.c wins_name->id = ++ctx->b.max_version; ctx 6602 source4/torture/nbt/winsreplication.c ret &= test_wrepl_update_one(tctx, ctx, &ctx->b, wins_name); ctx 6603 source4/torture/nbt/winsreplication.c ret &= test_wrepl_is_applied(tctx, ctx, &ctx->b, wins_name, ctx 6611 source4/torture/nbt/winsreplication.c wins_name->id = ++ctx->b.max_version; ctx 6615 source4/torture/nbt/winsreplication.c ret &= test_wrepl_update_one(tctx, ctx, &ctx->b, wins_name); ctx 6616 source4/torture/nbt/winsreplication.c ret &= test_wrepl_is_applied(tctx, ctx, &ctx->b, wins_name, true); ctx 6619 source4/torture/nbt/winsreplication.c release->in.dest_addr = ctx->address; ctx 6627 source4/torture/nbt/winsreplication.c status = nbt_name_release(ctx->nbtsock, ctx, release); ctx 6629 source4/torture/nbt/winsreplication.c torture_comment(tctx, "No response from %s for name release\n", ctx->address); ctx 6634 source4/torture/nbt/winsreplication.c ctx->address, nt_errstr(status)); ctx 6689 source4/torture/nbt/winsreplication.c struct test_wrepl_conflict_conn *ctx) ctx 6713 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 6714 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 6725 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 6726 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 6739 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 6740 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 6766 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 6767 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 6795 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 6796 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 6822 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 6823 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 6834 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 6835 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 6848 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 6849 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 6877 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 6878 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 6890 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 6891 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 6904 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 6905 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 6931 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 6932 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 6943 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 6944 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 6957 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 6958 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 6986 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 6987 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 6999 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 7000 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 7013 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 7014 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 7040 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 7041 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 7052 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 7053 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 7066 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 7067 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 7095 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 7096 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 7107 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 7108 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 7121 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 7122 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 7133 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_all_num, ctx 7134 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_all, ctx 7147 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 7148 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 7174 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 7175 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 7203 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 7204 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 7230 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 7231 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 7242 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 7243 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 7256 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 7257 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 7285 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 7286 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 7297 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 7298 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 7311 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 7312 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 7337 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 7338 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 7349 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 7350 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 7363 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 7364 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 7392 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 7393 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 7404 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 7405 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 7418 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 7419 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 7444 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 7445 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 7456 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 7457 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 7470 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 7471 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 7499 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 7500 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 7511 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 7512 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 7525 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 7526 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 7551 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 7552 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 7563 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 7564 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 7577 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 7578 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 7606 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 7607 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 7618 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 7619 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 7632 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 7633 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 7658 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 7659 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 7670 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 7671 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 7684 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 7685 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 7713 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 7714 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 7725 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 7726 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 7739 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 7740 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 7765 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 7766 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 7777 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 7778 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 7791 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 7792 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 7820 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 7821 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 7832 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 7833 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 7846 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 7847 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 7872 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 7873 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 7884 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 7885 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 7898 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 7899 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 7927 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 7928 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 7939 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 7940 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 7953 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 7954 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 7979 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 7980 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 7991 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 7992 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 8005 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 8006 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 8034 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 8035 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 8046 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 8047 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 8060 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 8061 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 8087 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 8088 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 8116 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 8117 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 8143 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 8144 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 8155 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 8156 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 8169 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 8170 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 8198 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 8199 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 8211 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 8212 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 8225 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 8226 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 8252 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 8253 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 8264 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 8265 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 8278 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 8279 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 8307 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 8308 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 8320 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 8321 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 8334 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 8335 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 8361 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 8362 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 8373 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 8374 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 8387 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 8388 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 8416 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 8417 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 8428 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 8429 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 8442 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 8443 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 8454 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_all_num, ctx 8455 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_all, ctx 8468 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 8469 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 8495 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 8496 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 8524 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 8525 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 8551 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 8552 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 8563 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 8564 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 8577 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 8578 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 8605 source4/torture/nbt/winsreplication.c .skip = (ctx->addresses_all_num < 3), ctx 8609 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_mhomed_num, ctx 8610 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_mhomed, ctx 8621 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_all_num, ctx 8622 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_all, ctx 8633 source4/torture/nbt/winsreplication.c .skip = (ctx->addresses_mhomed_num < 2), ctx 8637 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_mhomed_num, ctx 8638 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_mhomed, ctx 8649 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_mhomed_num, ctx 8650 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_mhomed, ctx 8661 source4/torture/nbt/winsreplication.c .skip = (ctx->addresses_mhomed_num < 2), ctx 8665 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_mhomed_num, ctx 8666 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_mhomed, ctx 8678 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 8679 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 8690 source4/torture/nbt/winsreplication.c .skip = (ctx->addresses_all_num < 3), ctx 8694 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_mhomed_num, ctx 8695 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_mhomed, ctx 8701 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_all_num, ctx 8702 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_all, ctx 8709 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 8710 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 8723 source4/torture/nbt/winsreplication.c .skip = (ctx->addresses_all_num < 2), ctx 8727 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_mhomed_num, ctx 8728 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_mhomed, ctx 8734 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 8735 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 8743 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 8744 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 8755 source4/torture/nbt/winsreplication.c .skip = (ctx->addresses_all_num < 2), ctx 8759 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_mhomed_num, ctx 8760 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_mhomed, ctx 8774 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 8775 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 8786 source4/torture/nbt/winsreplication.c .skip = (ctx->addresses_mhomed_num < 2), ctx 8790 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_mhomed_num, ctx 8791 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_mhomed, ctx 8803 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 8804 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 8819 source4/torture/nbt/winsreplication.c .skip = (ctx->addresses_all_num < 2), ctx 8823 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_mhomed_num, ctx 8824 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_mhomed, ctx 8836 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 8837 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 8850 source4/torture/nbt/winsreplication.c .skip = (ctx->addresses_all_num < 2), ctx 8854 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 8855 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 8861 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best2_num, ctx 8862 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best2, ctx 8870 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best2_num, ctx 8871 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best2, ctx 8882 source4/torture/nbt/winsreplication.c .skip = (ctx->addresses_all_num < 3), ctx 8886 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 8887 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 8893 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_all_num, ctx 8894 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_all, ctx 8901 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best2_num, ctx 8902 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best2, ctx 8913 source4/torture/nbt/winsreplication.c .skip = (ctx->addresses_all_num < 3), ctx 8917 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 8918 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 8924 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_all_num, ctx 8925 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_all, ctx 8932 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best2_num, ctx 8933 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best2, ctx 8947 source4/torture/nbt/winsreplication.c .skip = (ctx->addresses_all_num < 3), ctx 8951 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_mhomed_num, ctx 8952 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_mhomed, ctx 8974 source4/torture/nbt/winsreplication.c .skip = (ctx->addresses_all_num < 3), ctx 8978 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_mhomed_num, ctx 8979 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_mhomed, ctx 8990 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_mhomed_num, ctx 8991 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_mhomed, ctx 9001 source4/torture/nbt/winsreplication.c .skip = (ctx->addresses_all_num < 3), ctx 9005 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_mhomed_num, ctx 9006 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_mhomed, ctx 9017 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_all_num, ctx 9018 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_all, ctx 9028 source4/torture/nbt/winsreplication.c .skip = (ctx->addresses_all_num < 3), ctx 9032 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_mhomed_num, ctx 9033 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_mhomed, ctx 9044 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 9045 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 9055 source4/torture/nbt/winsreplication.c .skip = (ctx->addresses_all_num < 3), ctx 9059 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_mhomed_num, ctx 9060 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_mhomed, ctx 9082 source4/torture/nbt/winsreplication.c .skip = (ctx->addresses_all_num < 3), ctx 9086 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_mhomed_num, ctx 9087 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_mhomed, ctx 9098 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_mhomed_num, ctx 9099 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_mhomed, ctx 9109 source4/torture/nbt/winsreplication.c .skip = (ctx->addresses_all_num < 3), ctx 9113 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_mhomed_num, ctx 9114 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_mhomed, ctx 9125 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_all_num, ctx 9126 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_all, ctx 9136 source4/torture/nbt/winsreplication.c .skip = (ctx->addresses_all_num < 3), ctx 9140 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_mhomed_num, ctx 9141 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_mhomed, ctx 9152 source4/torture/nbt/winsreplication.c .num_ips = ctx->addresses_best_num, ctx 9153 source4/torture/nbt/winsreplication.c .ips = ctx->addresses_best, ctx 9159 source4/torture/nbt/winsreplication.c if (!ctx->nbtsock_srv) { ctx 9182 source4/torture/nbt/winsreplication.c torture_comment(tctx, "%s => SKIPPED\n", nbt_name_string(ctx, &records[i].name)); ctx 9197 source4/torture/nbt/winsreplication.c nbt_name_string(ctx, &records[i].name), ctx 9206 source4/torture/nbt/winsreplication.c nbt_set_incoming_handler(ctx->nbtsock_srv, ctx 9209 source4/torture/nbt/winsreplication.c if (ctx->nbtsock_srv2) { ctx 9210 source4/torture/nbt/winsreplication.c nbt_set_incoming_handler(ctx->nbtsock_srv2, ctx 9222 source4/torture/nbt/winsreplication.c name_register->in.dest_addr = ctx->address; ctx 9233 source4/torture/nbt/winsreplication.c req = nbt_name_register_send(ctx->nbtsock, name_register); ctx 9236 source4/torture/nbt/winsreplication.c event_loop_once(ctx->nbtsock->event_ctx); ctx 9247 source4/torture/nbt/winsreplication.c event_loop_once(ctx->nbtsock_srv->event_ctx); ctx 9253 source4/torture/nbt/winsreplication.c status = nbt_name_register_recv(req, ctx, name_register); ctx 9255 source4/torture/nbt/winsreplication.c torture_comment(tctx, "No response from %s for name register\n", ctx->address); ctx 9260 source4/torture/nbt/winsreplication.c ctx->address, nt_errstr(status)); ctx 9264 source4/torture/nbt/winsreplication.c CHECK_VALUE_STRING(tctx, name_register->out.reply_from, ctx->address); ctx 9273 source4/torture/nbt/winsreplication.c nbt_set_incoming_handler(ctx->nbtsock_srv, ctx 9276 source4/torture/nbt/winsreplication.c if (ctx->nbtsock_srv2) { ctx 9277 source4/torture/nbt/winsreplication.c nbt_set_incoming_handler(ctx->nbtsock_srv2, ctx 9290 source4/torture/nbt/winsreplication.c wins_name->id = ++ctx->b.max_version; ctx 9299 source4/torture/nbt/winsreplication.c ret &= test_wrepl_update_one(tctx, ctx, &ctx->b, wins_name); ctx 9308 source4/torture/nbt/winsreplication.c event_loop_once(ctx->nbtsock_srv->event_ctx); ctx 9323 source4/torture/nbt/winsreplication.c event_loop_once(ctx->nbtsock_srv->event_ctx); ctx 9330 source4/torture/nbt/winsreplication.c ret &= test_wrepl_mhomed_merged(tctx, ctx, &ctx->c, ctx 9332 source4/torture/nbt/winsreplication.c &ctx->b, ctx 9336 source4/torture/nbt/winsreplication.c ret &= test_wrepl_sgroup_merged(tctx, ctx, NULL, ctx 9337 source4/torture/nbt/winsreplication.c &ctx->c, ctx 9339 source4/torture/nbt/winsreplication.c &ctx->b, ctx 9343 source4/torture/nbt/winsreplication.c ret &= test_wrepl_is_applied(tctx, ctx, &ctx->b, wins_name, ctx 9353 source4/torture/nbt/winsreplication.c wins_name->id = ++ctx->b.max_version; ctx 9357 source4/torture/nbt/winsreplication.c ret &= test_wrepl_update_one(tctx, ctx, &ctx->b, wins_name); ctx 9358 source4/torture/nbt/winsreplication.c ret &= test_wrepl_is_applied(tctx, ctx, &ctx->b, wins_name, true); ctx 9361 source4/torture/nbt/winsreplication.c struct nbt_name_socket *nbtsock = ctx->nbtsock; ctx 9363 source4/torture/nbt/winsreplication.c if (ctx->myaddr2 && strcmp(records[i].wins.ips[j].ip, ctx->myaddr2->addr) == 0) { ctx 9364 source4/torture/nbt/winsreplication.c nbtsock = ctx->nbtsock2; ctx 9368 source4/torture/nbt/winsreplication.c release->in.dest_addr = ctx->address; ctx 9376 source4/torture/nbt/winsreplication.c status = nbt_name_release(nbtsock, ctx, release); ctx 9378 source4/torture/nbt/winsreplication.c torture_comment(tctx, "No response from %s for name release\n", ctx->address); ctx 9383 source4/torture/nbt/winsreplication.c ctx->address, nt_errstr(status)); ctx 9395 source4/torture/nbt/winsreplication.c wins_name->id = ++ctx->b.max_version; ctx 9399 source4/torture/nbt/winsreplication.c ret &= test_wrepl_update_one(tctx, ctx, &ctx->b, wins_name); ctx 9406 source4/torture/nbt/winsreplication.c wins_name->id = ++ctx->b.max_version; ctx 9410 source4/torture/nbt/winsreplication.c ret &= test_wrepl_update_one(tctx, ctx, &ctx->b, wins_name); ctx 9411 source4/torture/nbt/winsreplication.c ret &= test_wrepl_is_applied(tctx, ctx, &ctx->b, wins_name, true); ctx 9418 source4/torture/nbt/winsreplication.c wins_name->id = ++ctx->b.max_version; ctx 9421 source4/torture/nbt/winsreplication.c ret &= test_wrepl_update_one(tctx, ctx, &ctx->b, wins_name); ctx 9422 source4/torture/nbt/winsreplication.c ret &= test_wrepl_is_applied(tctx, ctx, &ctx->b, wins_name, true); ctx 9636 source4/torture/nbt/winsreplication.c struct test_wrepl_conflict_conn *ctx; ctx 9644 source4/torture/nbt/winsreplication.c ctx = test_create_conflict_ctx(tctx, address); ctx 9645 source4/torture/nbt/winsreplication.c if (!ctx) return false; ctx 9647 source4/torture/nbt/winsreplication.c ret &= test_conflict_same_owner(tctx, ctx); ctx 9648 source4/torture/nbt/winsreplication.c ret &= test_conflict_different_owner(tctx, ctx); ctx 9661 source4/torture/nbt/winsreplication.c struct test_wrepl_conflict_conn *ctx; ctx 9670 source4/torture/nbt/winsreplication.c ctx = test_create_conflict_ctx(tctx, address); ctx 9671 source4/torture/nbt/winsreplication.c torture_assert(tctx, ctx != NULL, "Creating context failed"); ctx 9673 source4/torture/nbt/winsreplication.c ret &= test_conflict_owned_released_vs_replica(tctx, ctx); ctx 9674 source4/torture/nbt/winsreplication.c ret &= test_conflict_owned_active_vs_replica(tctx, ctx); ctx 196 source4/torture/ndr/atsvc.c struct torture_suite *ndr_atsvc_suite(TALLOC_CTX *ctx) ctx 198 source4/torture/ndr/atsvc.c struct torture_suite *suite = torture_suite_create(ctx, "atsvc"); ctx 103 source4/torture/ndr/dfs.c struct torture_suite *ndr_dfs_suite(TALLOC_CTX *ctx) ctx 105 source4/torture/ndr/dfs.c struct torture_suite *suite = torture_suite_create(ctx, "dfs"); ctx 289 source4/torture/ndr/drsuapi.c struct torture_suite *ndr_drsuapi_suite(TALLOC_CTX *ctx) ctx 291 source4/torture/ndr/drsuapi.c struct torture_suite *suite = torture_suite_create(ctx, "drsuapi"); ctx 68 source4/torture/ndr/epmap.c struct torture_suite *ndr_epmap_suite(TALLOC_CTX *ctx) ctx 70 source4/torture/ndr/epmap.c struct torture_suite *suite = torture_suite_create(ctx, "epmap"); ctx 1984 source4/torture/ndr/lsa.c struct torture_suite *ndr_lsa_suite(TALLOC_CTX *ctx) ctx 1986 source4/torture/ndr/lsa.c struct torture_suite *suite = torture_suite_create(ctx, "lsa"); ctx 39 source4/torture/ndr/ndr.c bool (*check_fn) (struct torture_context *ctx, void *data) = test->fn; ctx 65 source4/torture/ndr/ndr.c bool (*check_fn) (struct torture_context *ctx, void *data)) ctx 108 source4/torture/ndr/netlogon.c struct torture_suite *ndr_netlogon_suite(TALLOC_CTX *ctx) ctx 110 source4/torture/ndr/netlogon.c struct torture_suite *suite = torture_suite_create(ctx, "netlogon"); ctx 176 source4/torture/ndr/samr.c struct torture_suite *ndr_samr_suite(TALLOC_CTX *ctx) ctx 178 source4/torture/ndr/samr.c struct torture_suite *suite = torture_suite_create(ctx, "samr"); ctx 437 source4/torture/ndr/spoolss.c struct torture_suite *ndr_spoolss_suite(TALLOC_CTX *ctx) ctx 439 source4/torture/ndr/spoolss.c struct torture_suite *suite = torture_suite_create(ctx, "spoolss"); ctx 526 source4/torture/ndr/winreg.c struct torture_suite *ndr_winreg_suite(TALLOC_CTX *ctx) ctx 528 source4/torture/ndr/winreg.c struct torture_suite *suite = torture_suite_create(ctx, "winreg"); ctx 90 source4/torture/raw/composite.c event_loop_once(cli->transport->socket->event.ctx); ctx 173 source4/torture/raw/composite.c event_ctx = cli->transport->socket->event.ctx; ctx 147 source4/torture/raw/lockbench.c static void reopen_connection_complete(struct composite_context *ctx) ctx 149 source4/torture/raw/lockbench.c struct benchlock_state *state = (struct benchlock_state *)ctx->async.private_data; ctx 153 source4/torture/raw/lockbench.c status = smb_composite_connect_recv(ctx, state->mem_ctx); ctx 178 source4/torture/raw/lockbench.c struct composite_context *ctx; ctx 207 source4/torture/raw/lockbench.c ctx = smb_composite_connect_send(io, state->mem_ctx, ctx 210 source4/torture/raw/lockbench.c if (ctx == NULL) { ctx 215 source4/torture/raw/lockbench.c ctx->async.fn = reopen_connection_complete; ctx 216 source4/torture/raw/lockbench.c ctx->async.private_data = state; ctx 78 source4/torture/raw/offline.c static char *filename(TALLOC_CTX *ctx, int i) ctx 80 source4/torture/raw/offline.c char *s = talloc_asprintf(ctx, BASEDIR "\\file%u.dat", i); ctx 88 source4/torture/raw/offline.c static void loadfile_callback(struct composite_context *ctx) ctx 90 source4/torture/raw/offline.c struct offline_state *state = ctx->async.private_data; ctx 94 source4/torture/raw/offline.c status = smb_composite_loadfile_recv(ctx, state->mem_ctx); ctx 135 source4/torture/raw/offline.c static void savefile_callback(struct composite_context *ctx) ctx 137 source4/torture/raw/offline.c struct offline_state *state = ctx->async.private_data; ctx 140 source4/torture/raw/offline.c status = smb_composite_savefile_recv(ctx); ctx 219 source4/torture/raw/offline.c struct composite_context *ctx; ctx 240 source4/torture/raw/offline.c ctx = smb_composite_loadfile_send(state->tree, state->loadfile); ctx 241 source4/torture/raw/offline.c if (ctx == NULL) { ctx 246 source4/torture/raw/offline.c talloc_steal(state->loadfile, ctx); ctx 248 source4/torture/raw/offline.c ctx->async.fn = loadfile_callback; ctx 249 source4/torture/raw/offline.c ctx->async.private_data = state; ctx 260 source4/torture/raw/offline.c ctx = smb_composite_savefile_send(state->tree, state->savefile); ctx 261 source4/torture/raw/offline.c if (ctx == NULL) { ctx 266 source4/torture/raw/offline.c talloc_steal(state->savefile, ctx); ctx 268 source4/torture/raw/offline.c ctx->async.fn = savefile_callback; ctx 269 source4/torture/raw/offline.c ctx->async.private_data = state; ctx 84 source4/torture/raw/openbench.c static void reopen_connection_complete(struct composite_context *ctx) ctx 86 source4/torture/raw/openbench.c struct benchopen_state *state = (struct benchopen_state *)ctx->async.private_data; ctx 90 source4/torture/raw/openbench.c status = smb_composite_connect_recv(ctx, state->mem_ctx); ctx 120 source4/torture/raw/openbench.c struct composite_context *ctx; ctx 150 source4/torture/raw/openbench.c ctx = smb_composite_connect_send(io, state->mem_ctx, ctx 153 source4/torture/raw/openbench.c if (ctx == NULL) { ctx 158 source4/torture/raw/openbench.c ctx->async.fn = reopen_connection_complete; ctx 159 source4/torture/raw/openbench.c ctx->async.private_data = state; ctx 3040 source4/torture/raw/oplock.c (struct tevent_context *)cli->transport->socket->event.ctx; ctx 850 source4/torture/raw/qfileinfo.c if (!(p = dcerpc_pipe_init(torture, cli->tree->session->transport->socket->event.ctx, ctx 805 source4/torture/raw/samba3misc.c event_loop_once(req->transport->socket->event.ctx); ctx 86 source4/torture/rpc/dssync.c struct DsSyncTest *ctx; ctx 90 source4/torture/rpc/dssync.c ctx = talloc_zero(tctx, struct DsSyncTest); ctx 91 source4/torture/rpc/dssync.c if (!ctx) return NULL; ctx 93 source4/torture/rpc/dssync.c status = dcerpc_parse_binding(ctx, binding, &ctx->drsuapi_binding); ctx 98 source4/torture/rpc/dssync.c ctx->drsuapi_binding->flags |= DCERPC_SIGN | DCERPC_SEAL; ctx 100 source4/torture/rpc/dssync.c ctx->ldap_url = talloc_asprintf(ctx, "ldap://%s/", ctx->drsuapi_binding->host); ctx 103 source4/torture/rpc/dssync.c ctx->admin.credentials = cmdline_credentials; ctx 105 source4/torture/rpc/dssync.c our_bind_info28 = &ctx->admin.drsuapi.our_bind_info28; ctx 112 source4/torture/rpc/dssync.c our_bind_info_ctr = &ctx->admin.drsuapi.our_bind_info_ctr; ctx 116 source4/torture/rpc/dssync.c GUID_from_string(DRSUAPI_DS_BIND_GUID, &ctx->admin.drsuapi.bind_guid); ctx 118 source4/torture/rpc/dssync.c ctx->admin.drsuapi.req.in.bind_guid = &ctx->admin.drsuapi.bind_guid; ctx 119 source4/torture/rpc/dssync.c ctx->admin.drsuapi.req.in.bind_info = our_bind_info_ctr; ctx 120 source4/torture/rpc/dssync.c ctx->admin.drsuapi.req.out.bind_handle = &ctx->admin.drsuapi.bind_handle; ctx 123 source4/torture/rpc/dssync.c ctx->new_dc.credentials = cmdline_credentials; ctx 125 source4/torture/rpc/dssync.c our_bind_info28 = &ctx->new_dc.drsuapi.our_bind_info28; ctx 161 source4/torture/rpc/dssync.c our_bind_info_ctr = &ctx->new_dc.drsuapi.our_bind_info_ctr; ctx 165 source4/torture/rpc/dssync.c GUID_from_string(DRSUAPI_DS_BIND_GUID_W2K3, &ctx->new_dc.drsuapi.bind_guid); ctx 167 source4/torture/rpc/dssync.c ctx->new_dc.drsuapi.req.in.bind_guid = &ctx->new_dc.drsuapi.bind_guid; ctx 168 source4/torture/rpc/dssync.c ctx->new_dc.drsuapi.req.in.bind_info = our_bind_info_ctr; ctx 169 source4/torture/rpc/dssync.c ctx->new_dc.drsuapi.req.out.bind_handle = &ctx->new_dc.drsuapi.bind_handle; ctx 171 source4/torture/rpc/dssync.c ctx->new_dc.invocation_id = ctx->new_dc.drsuapi.bind_guid; ctx 175 source4/torture/rpc/dssync.c return ctx; ctx 179 source4/torture/rpc/dssync.c struct DsSyncTest *ctx, struct cli_credentials *credentials, struct DsSyncBindInfo *b) ctx 184 source4/torture/rpc/dssync.c status = dcerpc_pipe_connect_b(ctx, ctx 185 source4/torture/rpc/dssync.c &b->pipe, ctx->drsuapi_binding, ctx 194 source4/torture/rpc/dssync.c status = dcerpc_drsuapi_DsBind(b->pipe, ctx, &b->req); ctx 198 source4/torture/rpc/dssync.c errstr = dcerpc_errstr(ctx, b->pipe->last_fault_code); ctx 240 source4/torture/rpc/dssync.c static bool test_LDAPBind(struct torture_context *tctx, struct DsSyncTest *ctx, ctx 246 source4/torture/rpc/dssync.c status = torture_ldap_connection(tctx, &l->conn, ctx->ldap_url); ctx 248 source4/torture/rpc/dssync.c printf("failed to connect to LDAP: %s\n", ctx->ldap_url); ctx 252 source4/torture/rpc/dssync.c printf("connected to LDAP: %s\n", ctx->ldap_url); ctx 264 source4/torture/rpc/dssync.c static bool test_GetInfo(struct torture_context *tctx, struct DsSyncTest *ctx) ctx 276 source4/torture/rpc/dssync.c cldap = cldap_socket_init(ctx, tctx->ev, lp_iconv_convenience(tctx->lp_ctx)); ctx 278 source4/torture/rpc/dssync.c r.in.bind_handle = &ctx->admin.drsuapi.bind_handle; ctx 288 source4/torture/rpc/dssync.c names[0].str = talloc_asprintf(ctx, "%s\\", lp_workgroup(tctx->lp_ctx)); ctx 293 source4/torture/rpc/dssync.c status = dcerpc_drsuapi_DsCrackNames(ctx->admin.drsuapi.pipe, ctx, &r); ctx 297 source4/torture/rpc/dssync.c errstr = dcerpc_errstr(ctx, ctx->admin.drsuapi.pipe->last_fault_code); ctx 306 source4/torture/rpc/dssync.c ctx->domain_dn = r.out.ctr->ctr1->array[0].result_name; ctx 309 source4/torture/rpc/dssync.c search.in.dest_address = ctx->drsuapi_binding->host; ctx 314 source4/torture/rpc/dssync.c status = cldap_netlogon(cldap, ctx, &search); ctx 317 source4/torture/rpc/dssync.c ctx->site_name = talloc_asprintf(ctx, "%s", "Default-First-Site-Name"); ctx 318 source4/torture/rpc/dssync.c printf("cldap_netlogon() returned %s. Defaulting to Site-Name: %s\n", errstr, ctx->site_name); ctx 320 source4/torture/rpc/dssync.c ctx->site_name = talloc_steal(ctx, search.out.netlogon.data.nt5_ex.client_site); ctx 321 source4/torture/rpc/dssync.c printf("cldap_netlogon() returned Client Site-Name: %s.\n",ctx->site_name); ctx 325 source4/torture/rpc/dssync.c if (!ctx->domain_dn) { ctx 326 source4/torture/rpc/dssync.c struct ldb_context *ldb = ldb_init(ctx, tctx->ev); ctx 327 source4/torture/rpc/dssync.c struct ldb_dn *dn = samdb_dns_domain_to_dn(ldb, ctx, search.out.netlogon.data.nt5_ex.dns_domain); ctx 328 source4/torture/rpc/dssync.c ctx->domain_dn = ldb_dn_alloc_linearized(ctx, dn); ctx 450 source4/torture/rpc/dssync.c struct DsSyncTest *ctx, ctx 510 source4/torture/rpc/dssync.c ptr = talloc(ctx, struct supplementalCredentialsBlob); ctx 522 source4/torture/rpc/dssync.c ptr = talloc(ctx, struct trustAuthInOutBlob); ctx 528 source4/torture/rpc/dssync.c ptr = talloc(ctx, struct trustAuthInOutBlob); ctx 547 source4/torture/rpc/dssync.c plain_data = decrypt_blob(ctx, gensec_skey, rcrypt, ctx 562 source4/torture/rpc/dssync.c fname = talloc_asprintf(ctx, "%s/%s%02d", ctx 594 source4/torture/rpc/dssync.c static bool test_FetchData(struct torture_context *tctx, struct DsSyncTest *ctx) ctx 626 source4/torture/rpc/dssync.c partition = ctx->domain_dn; ctx 627 source4/torture/rpc/dssync.c printf("dssync:partition not specified, defaulting to %s.\n", ctx->domain_dn); ctx 636 source4/torture/rpc/dssync.c nthash = cli_credentials_get_nt_hash(ctx->new_dc.credentials, ctx); ctx 641 source4/torture/rpc/dssync.c status = gensec_session_key(ctx->new_dc.drsuapi.pipe->conn->security_state.generic_state, ctx 652 source4/torture/rpc/dssync.c r.in.bind_handle = &ctx->new_dc.drsuapi.bind_handle; ctx 662 source4/torture/rpc/dssync.c r.in.req->req5.destination_dsa_guid = ctx->new_dc.invocation_id; ctx 694 source4/torture/rpc/dssync.c r.in.req->req8.destination_dsa_guid = ctx->new_dc.invocation_id; ctx 748 source4/torture/rpc/dssync.c status = dcerpc_drsuapi_DsGetNCChanges(ctx->new_dc.drsuapi.pipe, ctx, &r); ctx 752 source4/torture/rpc/dssync.c errstr = dcerpc_errstr(ctx, ctx->new_dc.drsuapi.pipe->last_fault_code); ctx 775 source4/torture/rpc/dssync.c test_analyse_objects(tctx, ctx, &gensec_skey, ctr1->first_object); ctx 805 source4/torture/rpc/dssync.c test_analyse_objects(tctx, ctx, &gensec_skey, ctr6->first_object); ctx 821 source4/torture/rpc/dssync.c struct DsSyncTest *ctx) ctx 838 source4/torture/rpc/dssync.c r.in.bind_handle = &ctx->new_dc.drsuapi.bind_handle; ctx 852 source4/torture/rpc/dssync.c status = dcerpc_drsuapi_DsGetNT4ChangeLog(ctx->new_dc.drsuapi.pipe, ctx, &r); ctx 859 source4/torture/rpc/dssync.c errstr = dcerpc_errstr(ctx, ctx->new_dc.drsuapi.pipe->last_fault_code); ctx 892 source4/torture/rpc/dssync.c struct DsSyncTest *ctx; ctx 895 source4/torture/rpc/dssync.c ctx = test_create_context(torture); ctx 897 source4/torture/rpc/dssync.c ret &= _test_DsBind(torture, ctx, ctx->admin.credentials, &ctx->admin.drsuapi); ctx 901 source4/torture/rpc/dssync.c ret &= test_LDAPBind(torture, ctx, ctx->admin.credentials, &ctx->admin.ldap); ctx 905 source4/torture/rpc/dssync.c ret &= test_GetInfo(torture, ctx); ctx 906 source4/torture/rpc/dssync.c ret &= _test_DsBind(torture, ctx, ctx->new_dc.credentials, &ctx->new_dc.drsuapi); ctx 910 source4/torture/rpc/dssync.c ret &= test_FetchData(torture, ctx); ctx 911 source4/torture/rpc/dssync.c ret &= test_FetchNT4Data(torture, ctx); ctx 237 source4/torture/rpc/echo.c struct tevent_context *ctx; ctx 254 source4/torture/rpc/echo.c ctx = dcerpc_event_context(p); ctx 256 source4/torture/rpc/echo.c torture_assert(tctx, event_loop_once(ctx) == 0, ctx 105 source4/torture/rpc/samba3rpc.c lsa_pipe = dcerpc_pipe_init(mem_ctx, cli->transport->socket->event.ctx, ctx 225 source4/torture/rpc/samba3rpc.c cli->transport->socket->event.ctx, ctx 380 source4/torture/rpc/samba3rpc.c cli->transport->socket->event.ctx, ctx 760 source4/torture/rpc/samba3rpc.c struct MD5Context ctx; ctx 787 source4/torture/rpc/samba3rpc.c MD5Init(&ctx); ctx 788 source4/torture/rpc/samba3rpc.c MD5Update(&ctx, confounder, 16); ctx 789 source4/torture/rpc/samba3rpc.c MD5Update(&ctx, session_key.data, session_key.length); ctx 790 source4/torture/rpc/samba3rpc.c MD5Final(confounded_session_key.data, &ctx); ctx 918 source4/torture/rpc/samba3rpc.c cli->transport->socket->event.ctx, ctx 1021 source4/torture/rpc/samba3rpc.c cli->transport->socket->event.ctx, ctx 1510 source4/torture/rpc/samba3rpc.c mem_ctx, tree->session->transport->socket->event.ctx, ctx 2116 source4/torture/rpc/samba3rpc.c mem_ctx, cli->transport->socket->event.ctx, ctx 2548 source4/torture/rpc/samba3rpc.c static NTSTATUS find_printers(TALLOC_CTX *ctx, struct loadparm_context *lp_ctx, ctx 2562 source4/torture/rpc/samba3rpc.c mem_ctx = talloc_new(ctx); ctx 2603 source4/torture/rpc/samba3rpc.c if (!add_string_to_array(ctx, c1->array[i].name, ctx 2605 source4/torture/rpc/samba3rpc.c talloc_free(ctx); ctx 2669 source4/torture/rpc/samba3rpc.c static NTSTATUS getprinterinfo(TALLOC_CTX *ctx, struct dcerpc_pipe *pipe, ctx 2679 source4/torture/rpc/samba3rpc.c mem_ctx = talloc_new(ctx); ctx 2728 source4/torture/rpc/samba3rpc.c *res = talloc_steal(ctx, r.out.info); ctx 3215 source4/torture/rpc/samba3rpc.c cli->transport->socket->event.ctx, ctx 3284 source4/torture/rpc/samba3rpc.c cli->transport->socket->event.ctx, ctx 751 source4/torture/rpc/samr.c struct MD5Context ctx; ctx 784 source4/torture/rpc/samr.c MD5Init(&ctx); ctx 785 source4/torture/rpc/samr.c MD5Update(&ctx, confounder, 16); ctx 786 source4/torture/rpc/samr.c MD5Update(&ctx, session_key.data, session_key.length); ctx 787 source4/torture/rpc/samr.c MD5Final(confounded_session_key.data, &ctx); ctx 833 source4/torture/rpc/samr.c struct MD5Context ctx; ctx 867 source4/torture/rpc/samr.c MD5Init(&ctx); ctx 868 source4/torture/rpc/samr.c MD5Update(&ctx, confounder, 16); ctx 869 source4/torture/rpc/samr.c MD5Update(&ctx, session_key.data, session_key.length); ctx 870 source4/torture/rpc/samr.c MD5Final(confounded_session_key.data, &ctx); ctx 1107 source4/torture/rpc/samr.c struct MD5Context ctx; ctx 1216 source4/torture/rpc/samr.c MD5Init(&ctx); ctx 1217 source4/torture/rpc/samr.c MD5Update(&ctx, confounder, 16); ctx 1218 source4/torture/rpc/samr.c MD5Update(&ctx, session_key.data, session_key.length); ctx 1219 source4/torture/rpc/samr.c MD5Final(confounded_session_key.data, &ctx); ctx 2363 source4/torture/rpc/samr.c struct MD5Context ctx; ctx 2405 source4/torture/rpc/samr.c MD5Init(&ctx); ctx 2406 source4/torture/rpc/samr.c MD5Update(&ctx, confounder, 16); ctx 2407 source4/torture/rpc/samr.c MD5Update(&ctx, session_key.data, session_key.length); ctx 2408 source4/torture/rpc/samr.c MD5Final(confounded_session_key.data, &ctx); ctx 77 source4/torture/rpc/spoolss.c static bool test_OpenPrinter_server(struct torture_context *tctx, struct dcerpc_pipe *p, struct test_spoolss_context *ctx) ctx 82 source4/torture/rpc/spoolss.c op.in.printername = talloc_asprintf(ctx, "\\\\%s", dcerpc_server_name(p)); ctx 86 source4/torture/rpc/spoolss.c op.out.handle = &ctx->server_handle; ctx 90 source4/torture/rpc/spoolss.c status = dcerpc_spoolss_OpenPrinter(p, ctx, &op); ctx 99 source4/torture/rpc/spoolss.c struct test_spoolss_context *ctx) ctx 123 source4/torture/rpc/spoolss.c status = dcerpc_spoolss_EnumPorts(p, ctx, &r); ctx 132 source4/torture/rpc/spoolss.c blob = data_blob_talloc(ctx, NULL, needed); ctx 137 source4/torture/rpc/spoolss.c status = dcerpc_spoolss_EnumPorts(p, ctx, &r); ctx 144 source4/torture/rpc/spoolss.c ctx->port_count[level] = count; ctx 145 source4/torture/rpc/spoolss.c ctx->ports[level] = info; ctx 151 source4/torture/rpc/spoolss.c torture_assert_int_equal(tctx, ctx->port_count[level], ctx->port_count[old_level], ctx 158 source4/torture/rpc/spoolss.c for (j=0;j<ctx->port_count[level];j++) { ctx 159 source4/torture/rpc/spoolss.c union spoolss_PortInfo *cur = &ctx->ports[level][j]; ctx 160 source4/torture/rpc/spoolss.c union spoolss_PortInfo *ref = &ctx->ports[2][j]; ctx 177 source4/torture/rpc/spoolss.c struct test_spoolss_context *ctx) ctx 195 source4/torture/rpc/spoolss.c .server = talloc_asprintf(ctx, "\\\\%s", dcerpc_server_name(p)) ctx 198 source4/torture/rpc/spoolss.c .server = talloc_asprintf(ctx, "\\\\%s", dcerpc_server_name(p)) ctx 217 source4/torture/rpc/spoolss.c status = dcerpc_spoolss_GetPrintProcessorDirectory(p, ctx, &r); ctx 223 source4/torture/rpc/spoolss.c blob = data_blob_talloc(ctx, NULL, needed); ctx 228 source4/torture/rpc/spoolss.c status = dcerpc_spoolss_GetPrintProcessorDirectory(p, ctx, &r); ctx 240 source4/torture/rpc/spoolss.c struct test_spoolss_context *ctx) ctx 258 source4/torture/rpc/spoolss.c .server = talloc_asprintf(ctx, "\\\\%s", dcerpc_server_name(p)) ctx 261 source4/torture/rpc/spoolss.c .server = talloc_asprintf(ctx, "\\\\%s", dcerpc_server_name(p)) ctx 280 source4/torture/rpc/spoolss.c status = dcerpc_spoolss_GetPrinterDriverDirectory(p, ctx, &r); ctx 286 source4/torture/rpc/spoolss.c blob = data_blob_talloc(ctx, NULL, needed); ctx 291 source4/torture/rpc/spoolss.c status = dcerpc_spoolss_GetPrinterDriverDirectory(p, ctx, &r); ctx 302 source4/torture/rpc/spoolss.c struct test_spoolss_context *ctx) ctx 331 source4/torture/rpc/spoolss.c status = dcerpc_spoolss_EnumPrinterDrivers(p, ctx, &r); ctx 339 source4/torture/rpc/spoolss.c blob = data_blob_talloc(ctx, NULL, needed); ctx 344 source4/torture/rpc/spoolss.c status = dcerpc_spoolss_EnumPrinterDrivers(p, ctx, &r); ctx 350 source4/torture/rpc/spoolss.c ctx->driver_count[level] = count; ctx 351 source4/torture/rpc/spoolss.c ctx->drivers[level] = info; ctx 357 source4/torture/rpc/spoolss.c torture_assert_int_equal(tctx, ctx->driver_count[level], ctx->driver_count[old_level], ctx 363 source4/torture/rpc/spoolss.c for (j=0;j<ctx->driver_count[level];j++) { ctx 364 source4/torture/rpc/spoolss.c union spoolss_DriverInfo *cur = &ctx->drivers[level][j]; ctx 365 source4/torture/rpc/spoolss.c union spoolss_DriverInfo *ref = &ctx->drivers[6][j]; ctx 426 source4/torture/rpc/spoolss.c struct test_spoolss_context *ctx) ctx 450 source4/torture/rpc/spoolss.c status = dcerpc_spoolss_EnumMonitors(p, ctx, &r); ctx 459 source4/torture/rpc/spoolss.c blob = data_blob_talloc(ctx, NULL, needed); ctx 464 source4/torture/rpc/spoolss.c status = dcerpc_spoolss_EnumMonitors(p, ctx, &r); ctx 469 source4/torture/rpc/spoolss.c ctx->monitor_count[level] = count; ctx 470 source4/torture/rpc/spoolss.c ctx->monitors[level] = info; ctx 476 source4/torture/rpc/spoolss.c torture_assert_int_equal(tctx, ctx->monitor_count[level], ctx->monitor_count[old_level], ctx 482 source4/torture/rpc/spoolss.c for (j=0;j<ctx->monitor_count[level];j++) { ctx 483 source4/torture/rpc/spoolss.c union spoolss_MonitorInfo *cur = &ctx->monitors[level][j]; ctx 484 source4/torture/rpc/spoolss.c union spoolss_MonitorInfo *ref = &ctx->monitors[2][j]; ctx 501 source4/torture/rpc/spoolss.c struct test_spoolss_context *ctx) ctx 526 source4/torture/rpc/spoolss.c status = dcerpc_spoolss_EnumPrintProcessors(p, ctx, &r); ctx 535 source4/torture/rpc/spoolss.c blob = data_blob_talloc(ctx, NULL, needed); ctx 540 source4/torture/rpc/spoolss.c status = dcerpc_spoolss_EnumPrintProcessors(p, ctx, &r); ctx 545 source4/torture/rpc/spoolss.c ctx->print_processor_count[level] = count; ctx 546 source4/torture/rpc/spoolss.c ctx->print_processors[level] = info; ctx 552 source4/torture/rpc/spoolss.c torture_assert_int_equal(tctx, ctx->print_processor_count[level], ctx->print_processor_count[old_level], ctx 558 source4/torture/rpc/spoolss.c for (j=0;j<ctx->print_processor_count[level];j++) { ctx 560 source4/torture/rpc/spoolss.c union spoolss_PrintProcessorInfo *cur = &ctx->print_processors[level][j]; ctx 561 source4/torture/rpc/spoolss.c union spoolss_PrintProcessorInfo *ref = &ctx->print_processors[1][j]; ctx 576 source4/torture/rpc/spoolss.c struct test_spoolss_context *ctx) ctx 601 source4/torture/rpc/spoolss.c status = dcerpc_spoolss_EnumPrintProcDataTypes(p, ctx, &r); ctx 610 source4/torture/rpc/spoolss.c blob = data_blob_talloc(ctx, NULL, needed); ctx 615 source4/torture/rpc/spoolss.c status = dcerpc_spoolss_EnumPrintProcDataTypes(p, ctx, &r); ctx 627 source4/torture/rpc/spoolss.c struct test_spoolss_context *ctx) ctx 652 source4/torture/rpc/spoolss.c status = dcerpc_spoolss_EnumPrinters(p, ctx, &r); ctx 661 source4/torture/rpc/spoolss.c blob = data_blob_talloc(ctx, NULL, needed); ctx 666 source4/torture/rpc/spoolss.c status = dcerpc_spoolss_EnumPrinters(p, ctx, &r); ctx 671 source4/torture/rpc/spoolss.c ctx->printer_count[level] = count; ctx 672 source4/torture/rpc/spoolss.c ctx->printers[level] = info; ctx 678 source4/torture/rpc/spoolss.c torture_assert_int_equal(tctx, ctx->printer_count[level], ctx->printer_count[old_level], ctx 684 source4/torture/rpc/spoolss.c for (j=0;j<ctx->printer_count[level];j++) { ctx 685 source4/torture/rpc/spoolss.c union spoolss_PrinterInfo *cur = &ctx->printers[level][j]; ctx 686 source4/torture/rpc/spoolss.c union spoolss_PrinterInfo *ref = &ctx->printers[2][j]; ctx 2008 source4/torture/rpc/spoolss.c struct test_spoolss_context *ctx; ctx 2015 source4/torture/rpc/spoolss.c ctx = talloc_zero(torture, struct test_spoolss_context); ctx 2017 source4/torture/rpc/spoolss.c ret &= test_OpenPrinter_server(torture, p, ctx); ctx 2019 source4/torture/rpc/spoolss.c ret &= test_GetPrinterData(torture, p, &ctx->server_handle, "W3SvcInstalled"); ctx 2020 source4/torture/rpc/spoolss.c ret &= test_GetPrinterData(torture, p, &ctx->server_handle, "BeepEnabled"); ctx 2021 source4/torture/rpc/spoolss.c ret &= test_GetPrinterData(torture, p, &ctx->server_handle, "EventLog"); ctx 2022 source4/torture/rpc/spoolss.c ret &= test_GetPrinterData(torture, p, &ctx->server_handle, "NetPopup"); ctx 2023 source4/torture/rpc/spoolss.c ret &= test_GetPrinterData(torture, p, &ctx->server_handle, "NetPopupToComputer"); ctx 2024 source4/torture/rpc/spoolss.c ret &= test_GetPrinterData(torture, p, &ctx->server_handle, "MajorVersion"); ctx 2025 source4/torture/rpc/spoolss.c ret &= test_GetPrinterData(torture, p, &ctx->server_handle, "MinorVersion"); ctx 2026 source4/torture/rpc/spoolss.c ret &= test_GetPrinterData(torture, p, &ctx->server_handle, "DefaultSpoolDirectory"); ctx 2027 source4/torture/rpc/spoolss.c ret &= test_GetPrinterData(torture, p, &ctx->server_handle, "Architecture"); ctx 2028 source4/torture/rpc/spoolss.c ret &= test_GetPrinterData(torture, p, &ctx->server_handle, "DsPresent"); ctx 2029 source4/torture/rpc/spoolss.c ret &= test_GetPrinterData(torture, p, &ctx->server_handle, "OSVersion"); ctx 2030 source4/torture/rpc/spoolss.c ret &= test_GetPrinterData(torture, p, &ctx->server_handle, "OSVersionEx"); ctx 2031 source4/torture/rpc/spoolss.c ret &= test_GetPrinterData(torture, p, &ctx->server_handle, "DNSMachineName"); ctx 2032 source4/torture/rpc/spoolss.c ret &= test_EnumForms(torture, p, &ctx->server_handle, true); ctx 2033 source4/torture/rpc/spoolss.c ret &= test_AddForm(torture, p, &ctx->server_handle, true); ctx 2034 source4/torture/rpc/spoolss.c ret &= test_EnumPorts(torture, p, ctx); ctx 2035 source4/torture/rpc/spoolss.c ret &= test_GetPrinterDriverDirectory(torture, p, ctx); ctx 2036 source4/torture/rpc/spoolss.c ret &= test_GetPrintProcessorDirectory(torture, p, ctx); ctx 2037 source4/torture/rpc/spoolss.c ret &= test_EnumPrinterDrivers(torture, p, ctx); ctx 2038 source4/torture/rpc/spoolss.c ret &= test_EnumMonitors(torture, p, ctx); ctx 2039 source4/torture/rpc/spoolss.c ret &= test_EnumPrintProcessors(torture, p, ctx); ctx 2040 source4/torture/rpc/spoolss.c ret &= test_EnumPrintProcDataTypes(torture, p, ctx); ctx 2041 source4/torture/rpc/spoolss.c ret &= test_EnumPrinters(torture, p, ctx); ctx 187 source4/torture/rpc/spoolss_win.c struct test_spoolss_win_context *ctx, ctx 192 source4/torture/rpc/spoolss_win.c DATA_BLOB blob = data_blob_talloc_zero(ctx, initial_blob_size); ctx 206 source4/torture/rpc/spoolss_win.c status = dcerpc_spoolss_EnumPrinters(p, ctx, &ep); ctx 210 source4/torture/rpc/spoolss_win.c blob = data_blob_talloc_zero(ctx, needed); ctx 213 source4/torture/rpc/spoolss_win.c status = dcerpc_spoolss_EnumPrinters(p, ctx, &ep); ctx 219 source4/torture/rpc/spoolss_win.c ctx->printer_count = count; ctx 220 source4/torture/rpc/spoolss_win.c ctx->printer_info = info; ctx 222 source4/torture/rpc/spoolss_win.c torture_comment(tctx, "Found %d printer(s).\n", ctx->printer_count); ctx 230 source4/torture/rpc/spoolss_win.c struct test_spoolss_win_context *ctx, ctx 236 source4/torture/rpc/spoolss_win.c DATA_BLOB blob = data_blob_talloc_zero(ctx, initial_blob_size); ctx 251 source4/torture/rpc/spoolss_win.c blob = data_blob_talloc_zero(ctx, needed); ctx 260 source4/torture/rpc/spoolss_win.c ctx->current_info = gp.out.info; ctx 263 source4/torture/rpc/spoolss_win.c ctx->printer_has_driver = gp.out.info->info2.drivername && ctx 307 source4/torture/rpc/spoolss_win.c struct test_spoolss_win_context *ctx, ctx 333 source4/torture/rpc/spoolss_win.c if (ctx->printer_has_driver) { ctx 383 source4/torture/rpc/spoolss_win.c struct test_spoolss_win_context *ctx) ctx 411 source4/torture/rpc/spoolss_win.c ctx->printer_keys = key_buffer; ctx 472 source4/torture/rpc/spoolss_win.c struct test_spoolss_win_context *ctx, *tmp_ctx; ctx 482 source4/torture/rpc/spoolss_win.c ctx = talloc_zero(tctx, struct test_spoolss_win_context); ctx 490 source4/torture/rpc/spoolss_win.c server_name = talloc_asprintf(ctx, "\\\\%s", dcerpc_server_name(p)); ctx 493 source4/torture/rpc/spoolss_win.c ret &= test_EnumPrinters(tctx, p, ctx, 1024); ctx 501 source4/torture/rpc/spoolss_win.c if (ctx->printer_count == 0) { ctx 506 source4/torture/rpc/spoolss_win.c ctx->printer_info[0].info2.printername, ctx 508 source4/torture/rpc/spoolss_win.c ret &= test_GetPrinter(tctx, p, &handle02, ctx, 2, 0); ctx 510 source4/torture/rpc/spoolss_win.c torture_assert_str_equal(tctx, ctx->current_info->info2.printername, ctx 511 source4/torture/rpc/spoolss_win.c ctx->printer_info[0].info2.printername, ctx 516 source4/torture/rpc/spoolss_win.c ctx->printer_info[0].info2.printername, 0); ctx 517 source4/torture/rpc/spoolss_win.c ret &= test_GetPrinter(tctx, p, &handle03, ctx, 0, 1164); ctx 518 source4/torture/rpc/spoolss_win.c ret &= test_GetPrinter(tctx, p, &handle03, ctx, 2, 0); ctx 521 source4/torture/rpc/spoolss_win.c ctx->printer_info[0].info2.printername, 0); ctx 522 source4/torture/rpc/spoolss_win.c ret &= test_GetPrinter(tctx, p, &handle04, ctx, 2, 0); ctx 526 source4/torture/rpc/spoolss_win.c ctx->printer_info[0].info2.printername, 0); ctx 527 source4/torture/rpc/spoolss_win.c ret &= test_GetPrinter(tctx, p, &handle04, ctx, 2, 4096); ctx 531 source4/torture/rpc/spoolss_win.c ctx->printer_info[0].info2.printername); ctx 534 source4/torture/rpc/spoolss_win.c ctx->printer_info[0].info2.printername, PRINTER_READ); ctx 540 source4/torture/rpc/spoolss_win.c ctx->printer_info[0].info2.printername, 0); ctx 543 source4/torture/rpc/spoolss_win.c ret &= test_GetPrinter(tctx, p, &handle04, ctx, 2, 4096); ctx 548 source4/torture/rpc/spoolss_win.c ret &= test_EnumPrinters(tctx, p, ctx, 1556); ctx 549 source4/torture/rpc/spoolss_win.c ret &= test_GetPrinterDriver2(tctx, p, ctx, &handle03); ctx 552 source4/torture/rpc/spoolss_win.c ret &= test_EnumPrinterKey(tctx, p, &handle03, "", ctx); ctx 554 source4/torture/rpc/spoolss_win.c for (i=0; ctx->printer_keys[i] != NULL; i++) { ctx 557 source4/torture/rpc/spoolss_win.c ctx->printer_keys[i], ctx 560 source4/torture/rpc/spoolss_win.c ctx->printer_keys[i], 0, ctx 570 source4/torture/rpc/spoolss_win.c ctx->printer_info[0].info2.printername, 0); ctx 576 source4/torture/rpc/spoolss_win.c ctx->printer_info[0].info2.printername, 0); ctx 580 source4/torture/rpc/spoolss_win.c ctx->printer_info[0].info2.printername, 0); ctx 586 source4/torture/rpc/spoolss_win.c ctx->printer_info[0].info2.printername, 0); ctx 592 source4/torture/rpc/spoolss_win.c ctx->printer_info[0].info2.printername, 0); ctx 604 source4/torture/rpc/spoolss_win.c ctx->printer_info[0].info2.sharename, 0); ctx 612 source4/torture/rpc/spoolss_win.c talloc_free(ctx); ctx 1164 source4/torture/rpc/wkssvc.c struct MD5Context ctx; ctx 1175 source4/torture/rpc/wkssvc.c MD5Init(&ctx); ctx 1176 source4/torture/rpc/wkssvc.c MD5Update(&ctx, session_key->data, session_key->length); ctx 1177 source4/torture/rpc/wkssvc.c MD5Update(&ctx, confounder, confounder_len); ctx 1178 source4/torture/rpc/wkssvc.c MD5Final(confounded_session_key.data, &ctx); ctx 77 source4/torture/smb2/notify.c if (event_loop_once(req->transport->socket->event.ctx) != 0) { ctx 99 source4/torture/smb2/notify.c if (event_loop_once(req->transport->socket->event.ctx) != 0) { ctx 118 source4/torture/smb2/notify.c if (event_loop_once(req->transport->socket->event.ctx) != 0) { ctx 150 source4/torture/smb2/notify.c if (event_loop_once(req->transport->socket->event.ctx) != 0) { ctx 164 source4/torture/smb2/notify.c if (event_loop_once(req->transport->socket->event.ctx) != 0) { ctx 314 source4/torture/smbtorture.c static void simple_suite_start(struct torture_context *ctx, ctx 321 source4/torture/smbtorture.c static void simple_suite_finish(struct torture_context *ctx, ctx 370 source4/torture/smbtorture.c static void quiet_suite_start(struct torture_context *ctx, ctx 374 source4/torture/smbtorture.c ctx->results->quiet = true; ctx 375 source4/torture/smbtorture.c for (i = 1; i < ctx->level; i++) putchar('\t'); ctx 380 source4/torture/smbtorture.c static void quiet_suite_finish(struct torture_context *ctx, ctx 394 source4/utils/ad2oLschema.c TALLOC_CTX *ctx; ctx 403 source4/utils/ad2oLschema.c ctx = talloc_new(NULL); ctx 404 source4/utils/ad2oLschema.c ldb = ldb_init(ctx, NULL); ctx 56 source4/utils/net/net.c int net_run_function(struct net_context *ctx, ctx 59 source4/utils/net/net.c int (*usage_fn)(struct net_context *ctx, int argc, const char **argv)) ctx 64 source4/utils/net/net.c return usage_fn(ctx, argc, argv); ctx 67 source4/utils/net/net.c return net_help(ctx, functable); ctx 72 source4/utils/net/net.c return functable[i].fn(ctx, argc-1, argv+1); ctx 76 source4/utils/net/net.c return usage_fn(ctx, argc, argv); ctx 82 source4/utils/net/net.c int net_run_usage(struct net_context *ctx, ctx 91 source4/utils/net/net.c return functable[i].usage(ctx, argc-1, argv+1); ctx 115 source4/utils/net/net.c int net_help(struct net_context *ctx, const struct net_functable *ftable) ctx 131 source4/utils/net/net.c static int net_usage(struct net_context *ctx, int argc, const char **argv) ctx 148 source4/utils/net/net.c struct net_context *ctx = NULL; ctx 169 source4/utils/net/net.c net_usage(ctx, argc, argv); ctx 185 source4/utils/net/net.c return net_usage(ctx, argc, argv); ctx 195 source4/utils/net/net.c ctx = talloc(ev, struct net_context); ctx 196 source4/utils/net/net.c if (!ctx) { ctx 201 source4/utils/net/net.c ZERO_STRUCTP(ctx); ctx 202 source4/utils/net/net.c ctx->lp_ctx = cmdline_lp_ctx; ctx 203 source4/utils/net/net.c ctx->credentials = cmdline_credentials; ctx 204 source4/utils/net/net.c ctx->event_ctx = ev; ctx 206 source4/utils/net/net.c rc = net_run_function(ctx, argc_new-1, argv_new+1, net_functable, net_usage); ctx 33 source4/utils/net/net.h int (*fn)(struct net_context *ctx, int argc, const char **argv); ctx 34 source4/utils/net/net.h int (*usage)(struct net_context *ctx, int argc, const char **argv); ctx 29 source4/utils/net/net_join.c int net_join(struct net_context *ctx, int argc, const char **argv) ctx 40 source4/utils/net/net_join.c return net_join_usage(ctx, argc, argv); ctx 42 source4/utils/net/net_join.c tmp = talloc_strdup(ctx, argv[0]); ctx 45 source4/utils/net/net_join.c tmp = talloc_strdup(ctx, argv[0]); ctx 52 source4/utils/net/net_join.c return net_join_usage(ctx, argc, argv); ctx 56 source4/utils/net/net_join.c return net_join_usage(ctx, argc, argv); ctx 61 source4/utils/net/net_join.c libnetctx = libnet_context_init(ctx->event_ctx, ctx->lp_ctx); ctx 65 source4/utils/net/net_join.c libnetctx->cred = ctx->credentials; ctx 66 source4/utils/net/net_join.c r = talloc(ctx, struct libnet_Join); ctx 71 source4/utils/net/net_join.c r->in.netbios_name = lp_netbios_name(ctx->lp_ctx); ctx 87 source4/utils/net/net_join.c d_printf("Joined domain %s (%s)\n", r->out.domain_name, dom_sid_string(ctx, r->out.domain_sid)); ctx 93 source4/utils/net/net_join.c int net_join_usage(struct net_context *ctx, int argc, const char **argv) ctx 99 source4/utils/net/net_join.c int net_join_help(struct net_context *ctx, int argc, const char **argv) ctx 105 source4/utils/net/net_join.c int net_vampire(struct net_context *ctx, int argc, const char **argv) ctx 115 source4/utils/net/net_join.c return net_vampire_usage(ctx, argc, argv); ctx 117 source4/utils/net/net_join.c tmp = talloc_strdup(ctx, argv[0]); ctx 120 source4/utils/net/net_join.c tmp = talloc_strdup(ctx, argv[0]); ctx 121 source4/utils/net/net_join.c targetdir = talloc_strdup(ctx, argv[1]); ctx 124 source4/utils/net/net_join.c return net_vampire_usage(ctx, argc, argv); ctx 129 source4/utils/net/net_join.c libnetctx = libnet_context_init(ctx->event_ctx, ctx->lp_ctx); ctx 133 source4/utils/net/net_join.c libnetctx->cred = ctx->credentials; ctx 134 source4/utils/net/net_join.c r = talloc(ctx, struct libnet_Vampire); ctx 139 source4/utils/net/net_join.c r->in.netbios_name = lp_netbios_name(ctx->lp_ctx); ctx 154 source4/utils/net/net_join.c d_printf("Vampired domain %s (%s)\n", r->out.domain_name, dom_sid_string(ctx, r->out.domain_sid)); ctx 160 source4/utils/net/net_join.c int net_vampire_usage(struct net_context *ctx, int argc, const char **argv) ctx 166 source4/utils/net/net_join.c int net_vampire_help(struct net_context *ctx, int argc, const char **argv) ctx 30 source4/utils/net/net_machinepw.c int net_machinepw_usage(struct net_context *ctx, int argc, const char **argv) ctx 36 source4/utils/net/net_machinepw.c int net_machinepw(struct net_context *ctx, int argc, const char **argv) ctx 47 source4/utils/net/net_machinepw.c net_machinepw_usage(ctx, argc, argv); ctx 51 source4/utils/net/net_machinepw.c mem_ctx = talloc_new(ctx); ctx 63 source4/utils/net/net_machinepw.c secrets = secrets_db_connect(mem_ctx, ev, ctx->lp_ctx); ctx 32 source4/utils/net/net_password.c static int net_password_change_usage(struct net_context *ctx, int argc, const char **argv) ctx 39 source4/utils/net/net_password.c static int net_password_change(struct net_context *ctx, int argc, const char **argv) ctx 50 source4/utils/net/net_password.c password_prompt = talloc_asprintf(ctx, "Enter new password for account [%s\\%s]:", ctx 51 source4/utils/net/net_password.c cli_credentials_get_domain(ctx->credentials), ctx 52 source4/utils/net/net_password.c cli_credentials_get_username(ctx->credentials)); ctx 56 source4/utils/net/net_password.c libnetctx = libnet_context_init(ctx->event_ctx, ctx->lp_ctx); ctx 60 source4/utils/net/net_password.c libnetctx->cred = ctx->credentials; ctx 64 source4/utils/net/net_password.c r.generic.in.account_name = cli_credentials_get_username(ctx->credentials); ctx 65 source4/utils/net/net_password.c r.generic.in.domain_name = cli_credentials_get_domain(ctx->credentials); ctx 66 source4/utils/net/net_password.c r.generic.in.oldpassword = cli_credentials_get_password(ctx->credentials); ctx 70 source4/utils/net/net_password.c status = libnet_ChangePassword(libnetctx, ctx, &r); ctx 82 source4/utils/net/net_password.c static int net_password_set_usage(struct net_context *ctx, int argc, const char **argv) ctx 89 source4/utils/net/net_password.c static int net_password_set(struct net_context *ctx, int argc, const char **argv) ctx 103 source4/utils/net/net_password.c return net_password_set_usage(ctx, argc, argv); ctx 105 source4/utils/net/net_password.c tmp = talloc_strdup(ctx, argv[0]); ctx 108 source4/utils/net/net_password.c tmp = talloc_strdup(ctx, argv[0]); ctx 113 source4/utils/net/net_password.c return net_password_usage(ctx, argc, argv); ctx 119 source4/utils/net/net_password.c account_name = talloc_strdup(ctx, p+1); ctx 122 source4/utils/net/net_password.c domain_name = cli_credentials_get_domain(ctx->credentials); ctx 126 source4/utils/net/net_password.c password_prompt = talloc_asprintf(ctx, "Enter new password for account [%s\\%s]:", ctx 131 source4/utils/net/net_password.c libnetctx = libnet_context_init(ctx->event_ctx, ctx->lp_ctx); ctx 135 source4/utils/net/net_password.c libnetctx->cred = ctx->credentials; ctx 144 source4/utils/net/net_password.c status = libnet_SetPassword(libnetctx, ctx, &r); ctx 162 source4/utils/net/net_password.c int net_password(struct net_context *ctx, int argc, const char **argv) ctx 164 source4/utils/net/net_password.c return net_run_function(ctx, argc, argv, net_password_functable, net_password_usage); ctx 167 source4/utils/net/net_password.c int net_password_usage(struct net_context *ctx, int argc, const char **argv) ctx 31 source4/utils/net/net_time.c int net_time(struct net_context *ctx, int argc, const char **argv) ctx 43 source4/utils/net/net_time.c return net_time_usage(ctx, argc, argv); ctx 46 source4/utils/net/net_time.c libnetctx = libnet_context_init(ctx->event_ctx, ctx->lp_ctx); ctx 50 source4/utils/net/net_time.c libnetctx->cred = ctx->credentials; ctx 57 source4/utils/net/net_time.c status = libnet_RemoteTOD(libnetctx, ctx, &r); ctx 74 source4/utils/net/net_time.c int net_time_usage(struct net_context *ctx, int argc, const char **argv) ctx 27 source4/utils/net/net_user.c static int net_user_add(struct net_context *ctx, int argc, const char **argv) ctx 37 source4/utils/net/net_user.c return net_user_usage(ctx, argc, argv); ctx 40 source4/utils/net/net_user.c user_name = talloc_strdup(ctx, argv[0]); ctx 43 source4/utils/net/net_user.c return net_user_usage(ctx, argc, argv); ctx 47 source4/utils/net/net_user.c lnet_ctx = libnet_context_init(ctx->event_ctx, ctx->lp_ctx); ctx 50 source4/utils/net/net_user.c lnet_ctx->cred = ctx->credentials; ctx 56 source4/utils/net/net_user.c status = libnet_CreateUser(lnet_ctx, ctx, &r); ctx 67 source4/utils/net/net_user.c static int net_user_delete(struct net_context *ctx, int argc, const char **argv) ctx 77 source4/utils/net/net_user.c return net_user_usage(ctx, argc, argv); ctx 80 source4/utils/net/net_user.c user_name = talloc_strdup(ctx, argv[0]); ctx 83 source4/utils/net/net_user.c return net_user_usage(ctx, argc, argv); ctx 87 source4/utils/net/net_user.c lnet_ctx = libnet_context_init(ctx->event_ctx, ctx->lp_ctx); ctx 90 source4/utils/net/net_user.c lnet_ctx->cred = ctx->credentials; ctx 96 source4/utils/net/net_user.c status = libnet_DeleteUser(lnet_ctx, ctx, &r); ctx 115 source4/utils/net/net_user.c int net_user(struct net_context *ctx, int argc, const char **argv) ctx 117 source4/utils/net/net_user.c return net_run_function(ctx, argc, argv, net_user_functable, net_user_usage); ctx 121 source4/utils/net/net_user.c int net_user_usage(struct net_context *ctx, int argc, const char **argv) ctx 30 source4/utils/net/net_vampire.c static int net_samdump_keytab_usage(struct net_context *ctx, int argc, const char **argv) ctx 36 source4/utils/net/net_vampire.c static int net_samdump_keytab_help(struct net_context *ctx, int argc, const char **argv) ctx 42 source4/utils/net/net_vampire.c static int net_samdump_keytab(struct net_context *ctx, int argc, const char **argv) ctx 50 source4/utils/net/net_vampire.c return net_samdump_keytab_usage(ctx, argc, argv); ctx 57 source4/utils/net/net_vampire.c libnetctx = libnet_context_init(ctx->event_ctx, ctx->lp_ctx); ctx 61 source4/utils/net/net_vampire.c libnetctx->cred = ctx->credentials; ctx 67 source4/utils/net/net_vampire.c status = libnet_SamDump_keytab(libnetctx, ctx, &r); ctx 86 source4/utils/net/net_vampire.c int net_samdump(struct net_context *ctx, int argc, const char **argv) ctx 98 source4/utils/net/net_vampire.c rc = net_run_function(ctx, argc, argv, net_samdump_functable, ctx 103 source4/utils/net/net_vampire.c libnetctx = libnet_context_init(ctx->event_ctx, ctx->lp_ctx); ctx 107 source4/utils/net/net_vampire.c libnetctx->cred = ctx->credentials; ctx 113 source4/utils/net/net_vampire.c status = libnet_SamDump(libnetctx, ctx, &r); ctx 126 source4/utils/net/net_vampire.c int net_samdump_usage(struct net_context *ctx, int argc, const char **argv) ctx 133 source4/utils/net/net_vampire.c int net_samdump_help(struct net_context *ctx, int argc, const char **argv) ctx 139 source4/utils/net/net_vampire.c int net_samsync_ldb(struct net_context *ctx, int argc, const char **argv) ctx 145 source4/utils/net/net_vampire.c libnetctx = libnet_context_init(ctx->event_ctx, ctx->lp_ctx); ctx 149 source4/utils/net/net_vampire.c libnetctx->cred = ctx->credentials; ctx 156 source4/utils/net/net_vampire.c r.in.session_info = system_session(libnetctx, ctx->lp_ctx); ctx 171 source4/utils/net/net_vampire.c int net_samsync_ldb_usage(struct net_context *ctx, int argc, const char **argv) ctx 177 source4/utils/net/net_vampire.c int net_samsync_ldb_help(struct net_context *ctx, int argc, const char **argv) ctx 115 source4/utils/oLschema2ldif.c static char *get_def_value(TALLOC_CTX *ctx, char **string) ctx 124 source4/utils/oLschema2ldif.c value = talloc_strndup(ctx, c, n); ctx 129 source4/utils/oLschema2ldif.c value = talloc_strndup(ctx, c, n); ctx 137 source4/utils/oLschema2ldif.c static struct schema_token *get_next_schema_token(TALLOC_CTX *ctx, char **string) ctx 144 source4/utils/oLschema2ldif.c token = talloc(ctx, struct schema_token); ctx 165 source4/utils/oLschema2ldif.c token->value = get_def_value(ctx, &c); ctx 180 source4/utils/oLschema2ldif.c token->value = talloc_strndup(ctx, c, n); ctx 184 source4/utils/oLschema2ldif.c token->value = get_def_value(ctx, &c); ctx 220 source4/utils/oLschema2ldif.c token->value = talloc_strndup(ctx, c, n); ctx 224 source4/utils/oLschema2ldif.c token->value = get_def_value(ctx, &c); ctx 239 source4/utils/oLschema2ldif.c token->value = talloc_strndup(ctx, c, n); ctx 243 source4/utils/oLschema2ldif.c token->value = get_def_value(ctx, &c); ctx 262 source4/utils/oLschema2ldif.c token->value = get_def_value(ctx, &c); ctx 273 source4/utils/oLschema2ldif.c token->value = get_def_value(ctx, &c); ctx 284 source4/utils/oLschema2ldif.c token->value = get_def_value(ctx, &c); ctx 295 source4/utils/oLschema2ldif.c token->value = get_def_value(ctx, &c); ctx 306 source4/utils/oLschema2ldif.c token->value = get_def_value(ctx, &c); ctx 333 source4/utils/oLschema2ldif.c TALLOC_CTX *ctx; ctx 339 source4/utils/oLschema2ldif.c ctx = talloc_new(mem_ctx); ctx 340 source4/utils/oLschema2ldif.c msg = ldb_msg_new(ctx); ctx 344 source4/utils/oLschema2ldif.c c = talloc_strdup(ctx, entry); ctx 454 source4/utils/oLschema2ldif.c talloc_free(ctx); ctx 458 source4/utils/oLschema2ldif.c talloc_free(ctx); ctx 464 source4/utils/oLschema2ldif.c TALLOC_CTX *ctx; ctx 472 source4/utils/oLschema2ldif.c ctx = talloc_new(NULL); ctx 492 source4/utils/oLschema2ldif.c entry = talloc_array(ctx, char, 1024); ctx 500 source4/utils/oLschema2ldif.c ldif.msg = process_entry(ctx, entry); ctx 515 source4/utils/oLschema2ldif.c entry = talloc_realloc(ctx, entry, char, t + 1024); ctx 524 source4/utils/oLschema2ldif.c ldif.msg = process_entry(ctx, entry); ctx 559 source4/utils/oLschema2ldif.c TALLOC_CTX *ctx; ctx 564 source4/utils/oLschema2ldif.c ctx = talloc_new(NULL); ctx 565 source4/utils/oLschema2ldif.c ldb_ctx = ldb_init(ctx, NULL); ctx 574 source4/utils/oLschema2ldif.c basedn = ldb_dn_new(ctx, ldb_ctx, options->basedn); ctx 267 source4/web_server/web_server.c event_add_timed(conn->event.ctx, web, ctx 39 source4/winbind/wb_async_helpers.c struct composite_context *ctx; ctx 68 source4/winbind/wb_async_helpers.c state->ctx = result; ctx 116 source4/winbind/wb_async_helpers.c state->ctx->status = dcerpc_ndr_request_recv(req); ctx 117 source4/winbind/wb_async_helpers.c if (!composite_is_ok(state->ctx)) return; ctx 118 source4/winbind/wb_async_helpers.c state->ctx->status = state->r.out.result; ctx 119 source4/winbind/wb_async_helpers.c if (!NT_STATUS_IS_OK(state->ctx->status) && ctx 120 source4/winbind/wb_async_helpers.c !NT_STATUS_EQUAL(state->ctx->status, STATUS_SOME_UNMAPPED)) { ctx 121 source4/winbind/wb_async_helpers.c composite_error(state->ctx, state->ctx->status); ctx 127 source4/winbind/wb_async_helpers.c if (composite_nomem(state->result, state->ctx)) return; ctx 138 source4/winbind/wb_async_helpers.c if (composite_nomem(state->result[i], state->ctx)) return; ctx 146 source4/winbind/wb_async_helpers.c composite_error(state->ctx, ctx 164 source4/winbind/wb_async_helpers.c if (composite_nomem(state->result[i]->name, state->ctx)) { ctx 169 source4/winbind/wb_async_helpers.c composite_done(state->ctx); ctx 189 source4/winbind/wb_async_helpers.c struct composite_context *ctx; ctx 219 source4/winbind/wb_async_helpers.c state->ctx = result; ctx 265 source4/winbind/wb_async_helpers.c state->ctx->status = dcerpc_ndr_request_recv(req); ctx 266 source4/winbind/wb_async_helpers.c if (!composite_is_ok(state->ctx)) return; ctx 267 source4/winbind/wb_async_helpers.c state->ctx->status = state->r.out.result; ctx 268 source4/winbind/wb_async_helpers.c if (!NT_STATUS_IS_OK(state->ctx->status) && ctx 269 source4/winbind/wb_async_helpers.c !NT_STATUS_EQUAL(state->ctx->status, STATUS_SOME_UNMAPPED)) { ctx 270 source4/winbind/wb_async_helpers.c composite_error(state->ctx, state->ctx->status); ctx 276 source4/winbind/wb_async_helpers.c if (composite_nomem(state->result, state->ctx)) return; ctx 285 source4/winbind/wb_async_helpers.c if (composite_nomem(state->result[i], state->ctx)) return; ctx 293 source4/winbind/wb_async_helpers.c composite_error(state->ctx, ctx 304 source4/winbind/wb_async_helpers.c composite_done(state->ctx); ctx 322 source4/winbind/wb_async_helpers.c struct composite_context *ctx; ctx 355 source4/winbind/wb_async_helpers.c state->ctx = result; ctx 385 source4/winbind/wb_async_helpers.c state->ctx->status = dcerpc_ndr_request_recv(req); ctx 386 source4/winbind/wb_async_helpers.c if (!composite_is_ok(state->ctx)) return; ctx 387 source4/winbind/wb_async_helpers.c state->ctx->status = state->o.out.result; ctx 388 source4/winbind/wb_async_helpers.c if (!composite_is_ok(state->ctx)) return; ctx 395 source4/winbind/wb_async_helpers.c composite_continue_rpc(state->ctx, req, samr_usergroups_recv_groups, ctx 405 source4/winbind/wb_async_helpers.c state->ctx->status = dcerpc_ndr_request_recv(req); ctx 406 source4/winbind/wb_async_helpers.c if (!composite_is_ok(state->ctx)) return; ctx 407 source4/winbind/wb_async_helpers.c state->ctx->status = state->g.out.result; ctx 408 source4/winbind/wb_async_helpers.c if (!composite_is_ok(state->ctx)) return; ctx 414 source4/winbind/wb_async_helpers.c composite_continue_rpc(state->ctx, req, samr_usergroups_recv_close, ctx 424 source4/winbind/wb_async_helpers.c state->ctx->status = dcerpc_ndr_request_recv(req); ctx 425 source4/winbind/wb_async_helpers.c if (!composite_is_ok(state->ctx)) return; ctx 426 source4/winbind/wb_async_helpers.c state->ctx->status = state->c.out.result; ctx 427 source4/winbind/wb_async_helpers.c if (!composite_is_ok(state->ctx)) return; ctx 429 source4/winbind/wb_async_helpers.c composite_done(state->ctx); ctx 432 source4/winbind/wb_async_helpers.c NTSTATUS wb_samr_userdomgroups_recv(struct composite_context *ctx, ctx 437 source4/winbind/wb_async_helpers.c talloc_get_type(ctx->private_data, ctx 441 source4/winbind/wb_async_helpers.c NTSTATUS status = composite_wait(ctx); ctx 456 source4/winbind/wb_async_helpers.c talloc_free(ctx); ctx 30 source4/winbind/wb_cmd_getdcname.c struct composite_context *ctx; ctx 36 source4/winbind/wb_cmd_getdcname.c static void getdcname_recv_domain(struct composite_context *ctx); ctx 43 source4/winbind/wb_cmd_getdcname.c struct composite_context *result, *ctx; ctx 51 source4/winbind/wb_cmd_getdcname.c state->ctx = result; ctx 57 source4/winbind/wb_cmd_getdcname.c ctx = wb_sid2domain_send(state, service, service->primary_sid); ctx 58 source4/winbind/wb_cmd_getdcname.c if (ctx == NULL) goto failed; ctx 60 source4/winbind/wb_cmd_getdcname.c ctx->async.fn = getdcname_recv_domain; ctx 61 source4/winbind/wb_cmd_getdcname.c ctx->async.private_data = state; ctx 69 source4/winbind/wb_cmd_getdcname.c static void getdcname_recv_domain(struct composite_context *ctx) ctx 72 source4/winbind/wb_cmd_getdcname.c talloc_get_type(ctx->async.private_data, ctx 77 source4/winbind/wb_cmd_getdcname.c state->ctx->status = wb_sid2domain_recv(ctx, &domain); ctx 78 source4/winbind/wb_cmd_getdcname.c if (!composite_is_ok(state->ctx)) return; ctx 88 source4/winbind/wb_cmd_getdcname.c if (composite_nomem(req, state->ctx)) return; ctx 90 source4/winbind/wb_cmd_getdcname.c composite_continue_rpc(state->ctx, req, getdcname_recv_dcname, state); ctx 99 source4/winbind/wb_cmd_getdcname.c state->ctx->status = dcerpc_ndr_request_recv(req); ctx 100 source4/winbind/wb_cmd_getdcname.c if (!composite_is_ok(state->ctx)) return; ctx 101 source4/winbind/wb_cmd_getdcname.c state->ctx->status = werror_to_ntstatus(state->g.out.result); ctx 102 source4/winbind/wb_cmd_getdcname.c if (!composite_is_ok(state->ctx)) return; ctx 104 source4/winbind/wb_cmd_getdcname.c composite_done(state->ctx); ctx 34 source4/winbind/wb_cmd_getgrgid.c struct composite_context *ctx; ctx 44 source4/winbind/wb_cmd_getgrgid.c static void cmd_getgrgid_recv_sid(struct composite_context *ctx); ctx 45 source4/winbind/wb_cmd_getgrgid.c static void cmd_getgrgid_recv_domain(struct composite_context *ctx); ctx 46 source4/winbind/wb_cmd_getgrgid.c static void cmd_getgrgid_recv_group_info(struct composite_context *ctx); ctx 54 source4/winbind/wb_cmd_getgrgid.c struct composite_context *ctx, *result; ctx 64 source4/winbind/wb_cmd_getgrgid.c state->ctx = result; ctx 69 source4/winbind/wb_cmd_getgrgid.c ctx = wb_gid2sid_send(state, service, gid); ctx 70 source4/winbind/wb_cmd_getgrgid.c if (composite_nomem(ctx, state->ctx)) return result; ctx 72 source4/winbind/wb_cmd_getgrgid.c composite_continue(result, ctx, cmd_getgrgid_recv_sid, state); ctx 79 source4/winbind/wb_cmd_getgrgid.c static void cmd_getgrgid_recv_sid(struct composite_context *ctx) ctx 82 source4/winbind/wb_cmd_getgrgid.c talloc_get_type(ctx->async.private_data, ctx 85 source4/winbind/wb_cmd_getgrgid.c DEBUG(5, ("cmd_getgrgid_recv_sid called %p\n", ctx->private_data)); ctx 87 source4/winbind/wb_cmd_getgrgid.c state->ctx->status = wb_gid2sid_recv(ctx, state, &state->sid); ctx 88 source4/winbind/wb_cmd_getgrgid.c if (!composite_is_ok(state->ctx)) return; ctx 90 source4/winbind/wb_cmd_getgrgid.c ctx = wb_sid2domain_send(state, state->service, state->sid); ctx 92 source4/winbind/wb_cmd_getgrgid.c composite_continue(state->ctx, ctx, cmd_getgrgid_recv_domain, state); ctx 97 source4/winbind/wb_cmd_getgrgid.c static void cmd_getgrgid_recv_domain(struct composite_context *ctx) ctx 100 source4/winbind/wb_cmd_getgrgid.c talloc_get_type(ctx->async.private_data, ctx 106 source4/winbind/wb_cmd_getgrgid.c state->ctx->status = wb_sid2domain_recv(ctx, &state->domain); ctx 107 source4/winbind/wb_cmd_getgrgid.c if (!composite_is_ok(state->ctx)) return; ctx 110 source4/winbind/wb_cmd_getgrgid.c if (composite_nomem(group_info, state->ctx)) return; ctx 119 source4/winbind/wb_cmd_getgrgid.c if (composite_nomem(state->workgroup, state->ctx)) return; ctx 121 source4/winbind/wb_cmd_getgrgid.c ctx = libnet_GroupInfo_send(state->domain->libnet_ctx, state,group_info, ctx 124 source4/winbind/wb_cmd_getgrgid.c composite_continue(state->ctx, ctx, cmd_getgrgid_recv_group_info,state); ctx 129 source4/winbind/wb_cmd_getgrgid.c static void cmd_getgrgid_recv_group_info(struct composite_context *ctx) ctx 132 source4/winbind/wb_cmd_getgrgid.c talloc_get_type(ctx->async.private_data, ctx 140 source4/winbind/wb_cmd_getgrgid.c if (composite_nomem(gr, state->ctx)) return; ctx 143 source4/winbind/wb_cmd_getgrgid.c if(composite_nomem(group_info, state->ctx)) return; ctx 145 source4/winbind/wb_cmd_getgrgid.c state->ctx->status = libnet_GroupInfo_recv(ctx, state, group_info); ctx 146 source4/winbind/wb_cmd_getgrgid.c if (!composite_is_ok(state->ctx)) return; ctx 155 source4/winbind/wb_cmd_getgrgid.c composite_done(state->ctx); ctx 158 source4/winbind/wb_cmd_getgrgid.c NTSTATUS wb_cmd_getgrgid_recv(struct composite_context *ctx, ctx 161 source4/winbind/wb_cmd_getgrgid.c NTSTATUS status = composite_wait(ctx); ctx 169 source4/winbind/wb_cmd_getgrgid.c talloc_get_type(ctx->private_data, ctx 173 source4/winbind/wb_cmd_getgrgid.c talloc_free(ctx); ctx 33 source4/winbind/wb_cmd_getgrnam.c struct composite_context *ctx; ctx 42 source4/winbind/wb_cmd_getgrnam.c static void cmd_getgrnam_recv_domain(struct composite_context *ctx); ctx 43 source4/winbind/wb_cmd_getgrnam.c static void cmd_getgrnam_recv_group_info(struct composite_context *ctx); ctx 44 source4/winbind/wb_cmd_getgrnam.c static void cmd_getgrnam_recv_gid(struct composite_context *ctx); ctx 50 source4/winbind/wb_cmd_getgrnam.c struct composite_context *result, *ctx; ctx 60 source4/winbind/wb_cmd_getgrnam.c state->ctx = result; ctx 66 source4/winbind/wb_cmd_getgrnam.c ctx = wb_name2domain_send(state, service, name); ctx 67 source4/winbind/wb_cmd_getgrnam.c if (composite_nomem(ctx, result)) return result; ctx 69 source4/winbind/wb_cmd_getgrnam.c composite_continue(result, ctx, cmd_getgrnam_recv_domain, state); ctx 73 source4/winbind/wb_cmd_getgrnam.c static void cmd_getgrnam_recv_domain(struct composite_context *ctx) ctx 76 source4/winbind/wb_cmd_getgrnam.c ctx->async.private_data, struct cmd_getgrnam_state); ctx 82 source4/winbind/wb_cmd_getgrnam.c state->ctx->status = wb_name2domain_recv(ctx, &domain); ctx 83 source4/winbind/wb_cmd_getgrnam.c if(!composite_is_ok(state->ctx)) return; ctx 86 source4/winbind/wb_cmd_getgrnam.c if (composite_nomem(group_info, state->ctx)) return; ctx 91 source4/winbind/wb_cmd_getgrnam.c composite_error(state->ctx, NT_STATUS_OBJECT_NAME_INVALID); ctx 99 source4/winbind/wb_cmd_getgrnam.c if(composite_nomem(state->workgroup_name, state->ctx)) return; ctx 101 source4/winbind/wb_cmd_getgrnam.c ctx = libnet_GroupInfo_send(domain->libnet_ctx, state, group_info,NULL); ctx 103 source4/winbind/wb_cmd_getgrnam.c composite_continue(state->ctx, ctx, cmd_getgrnam_recv_group_info,state); ctx 106 source4/winbind/wb_cmd_getgrnam.c static void cmd_getgrnam_recv_group_info(struct composite_context *ctx) ctx 109 source4/winbind/wb_cmd_getgrnam.c ctx->async.private_data, struct cmd_getgrnam_state); ctx 116 source4/winbind/wb_cmd_getgrnam.c if(composite_nomem(group_info, state->ctx)) return; ctx 119 source4/winbind/wb_cmd_getgrnam.c if(composite_nomem(gr, state->ctx)) return; ctx 121 source4/winbind/wb_cmd_getgrnam.c state->ctx->status = libnet_GroupInfo_recv(ctx, state, group_info); ctx 122 source4/winbind/wb_cmd_getgrnam.c if(!composite_is_ok(state->ctx)) return; ctx 131 source4/winbind/wb_cmd_getgrnam.c ctx = wb_sid2gid_send(state, state->service, group_info->out.group_sid); ctx 132 source4/winbind/wb_cmd_getgrnam.c composite_continue(state->ctx, ctx, cmd_getgrnam_recv_gid, state); ctx 135 source4/winbind/wb_cmd_getgrnam.c static void cmd_getgrnam_recv_gid(struct composite_context *ctx) ctx 138 source4/winbind/wb_cmd_getgrnam.c ctx->async.private_data, struct cmd_getgrnam_state); ctx 143 source4/winbind/wb_cmd_getgrnam.c state->ctx->status = wb_sid2gid_recv(ctx, &gid); ctx 144 source4/winbind/wb_cmd_getgrnam.c if(!composite_is_ok(state->ctx)) return; ctx 148 source4/winbind/wb_cmd_getgrnam.c composite_done(state->ctx); ctx 151 source4/winbind/wb_cmd_getgrnam.c NTSTATUS wb_cmd_getgrnam_recv(struct composite_context *ctx, ctx 154 source4/winbind/wb_cmd_getgrnam.c NTSTATUS status = composite_wait(ctx); ctx 160 source4/winbind/wb_cmd_getgrnam.c talloc_get_type(ctx->private_data, ctx 164 source4/winbind/wb_cmd_getgrnam.c talloc_free(ctx); ctx 31 source4/winbind/wb_cmd_getpwent.c struct composite_context *ctx; ctx 41 source4/winbind/wb_cmd_getpwent.c static void cmd_getpwent_recv_pwnam(struct composite_context *ctx); ctx 43 source4/winbind/wb_cmd_getpwent.c static void cmd_getpwent_recv_user_list(struct composite_context *ctx); ctx 50 source4/winbind/wb_cmd_getpwent.c struct composite_context *ctx, *result; ctx 61 source4/winbind/wb_cmd_getpwent.c state->ctx = result; ctx 77 source4/winbind/wb_cmd_getpwent.c ctx = wb_cmd_getpwnam_send(state, service, username); ctx 78 source4/winbind/wb_cmd_getpwent.c if (composite_nomem(ctx, state->ctx)) return result; ctx 80 source4/winbind/wb_cmd_getpwent.c composite_continue(state->ctx, ctx, cmd_getpwent_recv_pwnam, ctx 85 source4/winbind/wb_cmd_getpwent.c composite_error(state->ctx, NT_STATUS_NO_MORE_ENTRIES); ctx 90 source4/winbind/wb_cmd_getpwent.c static void cmd_getpwent_recv_pwnam(struct composite_context *ctx) ctx 93 source4/winbind/wb_cmd_getpwent.c talloc_get_type(ctx->async.private_data, ctx 99 source4/winbind/wb_cmd_getpwent.c state->ctx->status = wb_cmd_getpwnam_recv(ctx, state, &pw); ctx 100 source4/winbind/wb_cmd_getpwent.c if (!composite_is_ok(state->ctx)) return; ctx 105 source4/winbind/wb_cmd_getpwent.c composite_done(state->ctx); ctx 108 source4/winbind/wb_cmd_getpwent.c NTSTATUS wb_cmd_getpwent_recv(struct composite_context *ctx, ctx 112 source4/winbind/wb_cmd_getpwent.c NTSTATUS status = composite_wait(ctx); ctx 118 source4/winbind/wb_cmd_getpwent.c talloc_get_type(ctx->private_data, ctx 125 source4/winbind/wb_cmd_getpwent.c talloc_free(ctx); ctx 33 source4/winbind/wb_cmd_getpwnam.c struct composite_context *ctx; ctx 42 source4/winbind/wb_cmd_getpwnam.c static void cmd_getpwnam_recv_domain(struct composite_context *ctx); ctx 43 source4/winbind/wb_cmd_getpwnam.c static void cmd_getpwnam_recv_user_info(struct composite_context *ctx); ctx 44 source4/winbind/wb_cmd_getpwnam.c static void cmd_getpwnam_recv_uid(struct composite_context *ctx); ctx 45 source4/winbind/wb_cmd_getpwnam.c static void cmd_getpwnam_recv_gid(struct composite_context *ctx); ctx 51 source4/winbind/wb_cmd_getpwnam.c struct composite_context *result, *ctx; ctx 61 source4/winbind/wb_cmd_getpwnam.c state->ctx = result; ctx 67 source4/winbind/wb_cmd_getpwnam.c ctx = wb_name2domain_send(state, service, name); ctx 68 source4/winbind/wb_cmd_getpwnam.c if (composite_nomem(ctx, result)) return result; ctx 70 source4/winbind/wb_cmd_getpwnam.c composite_continue(result, ctx, cmd_getpwnam_recv_domain, state); ctx 74 source4/winbind/wb_cmd_getpwnam.c static void cmd_getpwnam_recv_domain(struct composite_context *ctx) ctx 77 source4/winbind/wb_cmd_getpwnam.c ctx->async.private_data, struct cmd_getpwnam_state); ctx 83 source4/winbind/wb_cmd_getpwnam.c state->ctx->status = wb_name2domain_recv(ctx, &domain); ctx 84 source4/winbind/wb_cmd_getpwnam.c if(!composite_is_ok(state->ctx)) return; ctx 87 source4/winbind/wb_cmd_getpwnam.c if (composite_nomem(user_info, state->ctx)) return; ctx 91 source4/winbind/wb_cmd_getpwnam.c composite_error(state->ctx, NT_STATUS_OBJECT_NAME_INVALID); ctx 100 source4/winbind/wb_cmd_getpwnam.c if(composite_nomem(state->workgroup_name, state->ctx)) return; ctx 102 source4/winbind/wb_cmd_getpwnam.c ctx = libnet_UserInfo_send(domain->libnet_ctx, state, user_info, NULL); ctx 104 source4/winbind/wb_cmd_getpwnam.c composite_continue(state->ctx, ctx, cmd_getpwnam_recv_user_info, state); ctx 107 source4/winbind/wb_cmd_getpwnam.c static void cmd_getpwnam_recv_user_info(struct composite_context *ctx) ctx 110 source4/winbind/wb_cmd_getpwnam.c ctx->async.private_data, struct cmd_getpwnam_state); ctx 117 source4/winbind/wb_cmd_getpwnam.c if(composite_nomem(user_info, state->ctx)) return; ctx 120 source4/winbind/wb_cmd_getpwnam.c if(composite_nomem(pw, state->ctx)) return; ctx 122 source4/winbind/wb_cmd_getpwnam.c state->ctx->status = libnet_UserInfo_recv(ctx, state, user_info); ctx 123 source4/winbind/wb_cmd_getpwnam.c if(!composite_is_ok(state->ctx)) return; ctx 138 source4/winbind/wb_cmd_getpwnam.c if(composite_nomem(state->group_sid, state->ctx)) return; ctx 142 source4/winbind/wb_cmd_getpwnam.c ctx = wb_sid2uid_send(state, state->service, user_info->out.user_sid); ctx 143 source4/winbind/wb_cmd_getpwnam.c composite_continue(state->ctx, ctx, cmd_getpwnam_recv_uid, state); ctx 146 source4/winbind/wb_cmd_getpwnam.c static void cmd_getpwnam_recv_uid(struct composite_context *ctx) ctx 149 source4/winbind/wb_cmd_getpwnam.c ctx->async.private_data, struct cmd_getpwnam_state); ctx 154 source4/winbind/wb_cmd_getpwnam.c state->ctx->status = wb_sid2uid_recv(ctx, &uid); ctx 155 source4/winbind/wb_cmd_getpwnam.c if(!composite_is_ok(state->ctx)) return; ctx 159 source4/winbind/wb_cmd_getpwnam.c ctx = wb_sid2gid_send(state, state->service, state->group_sid); ctx 160 source4/winbind/wb_cmd_getpwnam.c composite_continue(state->ctx, ctx, cmd_getpwnam_recv_gid, state); ctx 163 source4/winbind/wb_cmd_getpwnam.c static void cmd_getpwnam_recv_gid(struct composite_context *ctx) ctx 166 source4/winbind/wb_cmd_getpwnam.c ctx->async.private_data, struct cmd_getpwnam_state); ctx 171 source4/winbind/wb_cmd_getpwnam.c state->ctx->status = wb_sid2gid_recv(ctx, &gid); ctx 172 source4/winbind/wb_cmd_getpwnam.c if(!composite_is_ok(state->ctx)) return; ctx 176 source4/winbind/wb_cmd_getpwnam.c composite_done(state->ctx); ctx 179 source4/winbind/wb_cmd_getpwnam.c NTSTATUS wb_cmd_getpwnam_recv(struct composite_context *ctx, ctx 182 source4/winbind/wb_cmd_getpwnam.c NTSTATUS status = composite_wait(ctx); ctx 188 source4/winbind/wb_cmd_getpwnam.c talloc_get_type(ctx->private_data, ctx 192 source4/winbind/wb_cmd_getpwnam.c talloc_free(ctx); ctx 34 source4/winbind/wb_cmd_getpwuid.c struct composite_context *ctx; ctx 44 source4/winbind/wb_cmd_getpwuid.c static void cmd_getpwuid_recv_sid(struct composite_context *ctx); ctx 45 source4/winbind/wb_cmd_getpwuid.c static void cmd_getpwuid_recv_domain(struct composite_context *ctx); ctx 46 source4/winbind/wb_cmd_getpwuid.c static void cmd_getpwuid_recv_user_info(struct composite_context *ctx); ctx 47 source4/winbind/wb_cmd_getpwuid.c static void cmd_getpwuid_recv_gid(struct composite_context *ctx); ctx 55 source4/winbind/wb_cmd_getpwuid.c struct composite_context *ctx, *result; ctx 65 source4/winbind/wb_cmd_getpwuid.c state->ctx = result; ctx 70 source4/winbind/wb_cmd_getpwuid.c ctx = wb_uid2sid_send(state, service, uid); ctx 71 source4/winbind/wb_cmd_getpwuid.c if (composite_nomem(ctx, state->ctx)) return result; ctx 73 source4/winbind/wb_cmd_getpwuid.c composite_continue(result, ctx, cmd_getpwuid_recv_sid, state); ctx 80 source4/winbind/wb_cmd_getpwuid.c static void cmd_getpwuid_recv_sid(struct composite_context *ctx) ctx 83 source4/winbind/wb_cmd_getpwuid.c talloc_get_type(ctx->async.private_data, ctx 86 source4/winbind/wb_cmd_getpwuid.c DEBUG(5, ("cmd_getpwuid_recv_sid called %p\n", ctx->private_data)); ctx 88 source4/winbind/wb_cmd_getpwuid.c state->ctx->status = wb_uid2sid_recv(ctx, state, &state->sid); ctx 89 source4/winbind/wb_cmd_getpwuid.c if (!composite_is_ok(state->ctx)) return; ctx 91 source4/winbind/wb_cmd_getpwuid.c ctx = wb_sid2domain_send(state, state->service, state->sid); ctx 93 source4/winbind/wb_cmd_getpwuid.c composite_continue(state->ctx, ctx, cmd_getpwuid_recv_domain, state); ctx 98 source4/winbind/wb_cmd_getpwuid.c static void cmd_getpwuid_recv_domain(struct composite_context *ctx) ctx 101 source4/winbind/wb_cmd_getpwuid.c talloc_get_type(ctx->async.private_data, ctx 107 source4/winbind/wb_cmd_getpwuid.c state->ctx->status = wb_sid2domain_recv(ctx, &state->domain); ctx 108 source4/winbind/wb_cmd_getpwuid.c if (!composite_is_ok(state->ctx)) return; ctx 111 source4/winbind/wb_cmd_getpwuid.c if (composite_nomem(user_info, state->ctx)) return; ctx 120 source4/winbind/wb_cmd_getpwuid.c if (composite_nomem(state->workgroup, state->ctx)) return; ctx 122 source4/winbind/wb_cmd_getpwuid.c ctx = libnet_UserInfo_send(state->domain->libnet_ctx, state, user_info, ctx 125 source4/winbind/wb_cmd_getpwuid.c composite_continue(state->ctx, ctx, cmd_getpwuid_recv_user_info, state); ctx 130 source4/winbind/wb_cmd_getpwuid.c static void cmd_getpwuid_recv_user_info(struct composite_context *ctx) ctx 133 source4/winbind/wb_cmd_getpwuid.c talloc_get_type(ctx->async.private_data, ctx 141 source4/winbind/wb_cmd_getpwuid.c if (composite_nomem(pw, state->ctx)) return; ctx 144 source4/winbind/wb_cmd_getpwuid.c if(composite_nomem(user_info, state->ctx)) return; ctx 146 source4/winbind/wb_cmd_getpwuid.c state->ctx->status = libnet_UserInfo_recv(ctx, state, user_info); ctx 147 source4/winbind/wb_cmd_getpwuid.c if (!composite_is_ok(state->ctx)) return; ctx 165 source4/winbind/wb_cmd_getpwuid.c ctx = wb_sid2gid_send(state, state->service, ctx 168 source4/winbind/wb_cmd_getpwuid.c composite_continue(state->ctx, ctx, cmd_getpwuid_recv_gid, state); ctx 171 source4/winbind/wb_cmd_getpwuid.c static void cmd_getpwuid_recv_gid(struct composite_context *ctx) ctx 174 source4/winbind/wb_cmd_getpwuid.c talloc_get_type(ctx->async.private_data, ctx 180 source4/winbind/wb_cmd_getpwuid.c state->ctx->status = wb_sid2gid_recv(ctx, &gid); ctx 181 source4/winbind/wb_cmd_getpwuid.c if (!composite_is_ok(state->ctx)) return; ctx 185 source4/winbind/wb_cmd_getpwuid.c composite_done(state->ctx); ctx 188 source4/winbind/wb_cmd_getpwuid.c NTSTATUS wb_cmd_getpwuid_recv(struct composite_context *ctx, ctx 191 source4/winbind/wb_cmd_getpwuid.c NTSTATUS status = composite_wait(ctx); ctx 197 source4/winbind/wb_cmd_getpwuid.c talloc_get_type(ctx->private_data, ctx 201 source4/winbind/wb_cmd_getpwuid.c talloc_free(ctx); ctx 31 source4/winbind/wb_cmd_list_groups.c struct composite_context *ctx; ctx 40 source4/winbind/wb_cmd_list_groups.c static void cmd_list_groups_recv_domain(struct composite_context *ctx); ctx 41 source4/winbind/wb_cmd_list_groups.c static void cmd_list_groups_recv_group_list(struct composite_context *ctx); ctx 46 source4/winbind/wb_cmd_list_groups.c struct composite_context *ctx, *result; ctx 57 source4/winbind/wb_cmd_list_groups.c state->ctx = result; ctx 62 source4/winbind/wb_cmd_list_groups.c if (composite_nomem(state->result, state->ctx)) return result; ctx 70 source4/winbind/wb_cmd_list_groups.c if (composite_nomem(state->domain_name, state->ctx)) ctx 76 source4/winbind/wb_cmd_list_groups.c ctx = wb_sid2domain_send(state, service, service->primary_sid); ctx 77 source4/winbind/wb_cmd_list_groups.c if (composite_nomem(ctx, state->ctx)) return result; ctx 79 source4/winbind/wb_cmd_list_groups.c composite_continue(state->ctx, ctx, cmd_list_groups_recv_domain, state); ctx 83 source4/winbind/wb_cmd_list_groups.c static void cmd_list_groups_recv_domain(struct composite_context *ctx) ctx 86 source4/winbind/wb_cmd_list_groups.c ctx->async.private_data, struct cmd_list_groups_state); ctx 92 source4/winbind/wb_cmd_list_groups.c state->ctx->status = wb_sid2domain_recv(ctx, &domain); ctx 93 source4/winbind/wb_cmd_list_groups.c if (!composite_is_ok(state->ctx)) return; ctx 102 source4/winbind/wb_cmd_list_groups.c if (composite_nomem(state->domain_name, state->ctx)) return; ctx 106 source4/winbind/wb_cmd_list_groups.c if (composite_nomem(group_list, state->ctx)) return; ctx 116 source4/winbind/wb_cmd_list_groups.c ctx = libnet_GroupList_send(domain->libnet_ctx, state, group_list,NULL); ctx 118 source4/winbind/wb_cmd_list_groups.c composite_continue(state->ctx, ctx, cmd_list_groups_recv_group_list, ctx 122 source4/winbind/wb_cmd_list_groups.c static void cmd_list_groups_recv_group_list(struct composite_context *ctx) ctx 125 source4/winbind/wb_cmd_list_groups.c ctx->async.private_data, struct cmd_list_groups_state); ctx 133 source4/winbind/wb_cmd_list_groups.c if (composite_nomem(group_list, state->ctx)) return; ctx 135 source4/winbind/wb_cmd_list_groups.c status = libnet_GroupList_recv(ctx, state, group_list); ctx 140 source4/winbind/wb_cmd_list_groups.c composite_error(state->ctx, status); ctx 158 source4/winbind/wb_cmd_list_groups.c composite_done(state->ctx); ctx 173 source4/winbind/wb_cmd_list_groups.c ctx = libnet_GroupList_send(state->domain->libnet_ctx, state,group_list, ctx 176 source4/winbind/wb_cmd_list_groups.c composite_continue(state->ctx, ctx, cmd_list_groups_recv_group_list, ctx 180 source4/winbind/wb_cmd_list_groups.c NTSTATUS wb_cmd_list_groups_recv(struct composite_context *ctx, ctx 184 source4/winbind/wb_cmd_list_groups.c NTSTATUS status = composite_wait(ctx); ctx 190 source4/winbind/wb_cmd_list_groups.c ctx->private_data, struct cmd_list_groups_state); ctx 196 source4/winbind/wb_cmd_list_groups.c talloc_free(ctx); ctx 33 source4/winbind/wb_cmd_list_trustdom.c struct composite_context *ctx; ctx 44 source4/winbind/wb_cmd_list_trustdom.c static void cmd_list_trustdoms_recv_domain(struct composite_context *ctx); ctx 45 source4/winbind/wb_cmd_list_trustdom.c static void cmd_list_trustdoms_recv_lsa(struct composite_context *ctx); ctx 51 source4/winbind/wb_cmd_list_trustdom.c struct composite_context *result, *ctx; ctx 59 source4/winbind/wb_cmd_list_trustdom.c state->ctx = result; ctx 62 source4/winbind/wb_cmd_list_trustdom.c ctx = wb_sid2domain_send(state, service, service->primary_sid); ctx 63 source4/winbind/wb_cmd_list_trustdom.c if (ctx == NULL) goto failed; ctx 64 source4/winbind/wb_cmd_list_trustdom.c ctx->async.fn = cmd_list_trustdoms_recv_domain; ctx 65 source4/winbind/wb_cmd_list_trustdom.c ctx->async.private_data = state; ctx 73 source4/winbind/wb_cmd_list_trustdom.c static void cmd_list_trustdoms_recv_domain(struct composite_context *ctx) ctx 76 source4/winbind/wb_cmd_list_trustdom.c talloc_get_type(ctx->async.private_data, ctx 81 source4/winbind/wb_cmd_list_trustdom.c state->ctx->status = wb_sid2domain_recv(ctx, &domain); ctx 82 source4/winbind/wb_cmd_list_trustdom.c if (!composite_is_ok(state->ctx)) return; ctx 85 source4/winbind/wb_cmd_list_trustdom.c if (composite_nomem(tree, state->ctx)) return; ctx 87 source4/winbind/wb_cmd_list_trustdom.c ctx = wb_init_lsa_send(state, domain); ctx 88 source4/winbind/wb_cmd_list_trustdom.c composite_continue(state->ctx, ctx, cmd_list_trustdoms_recv_lsa, ctx 92 source4/winbind/wb_cmd_list_trustdom.c static void cmd_list_trustdoms_recv_lsa(struct composite_context *ctx) ctx 95 source4/winbind/wb_cmd_list_trustdom.c talloc_get_type(ctx->async.private_data, ctx 99 source4/winbind/wb_cmd_list_trustdom.c state->ctx->status = wb_init_lsa_recv(ctx, state, ctx 102 source4/winbind/wb_cmd_list_trustdom.c if (!composite_is_ok(state->ctx)) return; ctx 118 source4/winbind/wb_cmd_list_trustdom.c composite_continue_rpc(state->ctx, req, cmd_list_trustdoms_recv_doms, ctx 129 source4/winbind/wb_cmd_list_trustdom.c state->ctx->status = dcerpc_ndr_request_recv(req); ctx 130 source4/winbind/wb_cmd_list_trustdom.c if (!composite_is_ok(state->ctx)) return; ctx 131 source4/winbind/wb_cmd_list_trustdom.c state->ctx->status = state->r.out.result; ctx 133 source4/winbind/wb_cmd_list_trustdom.c if (!NT_STATUS_IS_OK(state->ctx->status) && ctx 134 source4/winbind/wb_cmd_list_trustdom.c !NT_STATUS_EQUAL(state->ctx->status, NT_STATUS_NO_MORE_ENTRIES) && ctx 135 source4/winbind/wb_cmd_list_trustdom.c !NT_STATUS_EQUAL(state->ctx->status, STATUS_MORE_ENTRIES)) { ctx 136 source4/winbind/wb_cmd_list_trustdom.c composite_error(state->ctx, state->ctx->status); ctx 147 source4/winbind/wb_cmd_list_trustdom.c composite_nomem(state->domains, state->ctx)) return; ctx 153 source4/winbind/wb_cmd_list_trustdom.c if (composite_nomem(state->domains[i], state->ctx)) return; ctx 162 source4/winbind/wb_cmd_list_trustdom.c if (NT_STATUS_IS_OK(state->ctx->status) || NT_STATUS_EQUAL(state->ctx->status, NT_STATUS_NO_MORE_ENTRIES)) { ctx 163 source4/winbind/wb_cmd_list_trustdom.c state->ctx->status = NT_STATUS_OK; ctx 164 source4/winbind/wb_cmd_list_trustdom.c composite_done(state->ctx); ctx 177 source4/winbind/wb_cmd_list_trustdom.c composite_continue_rpc(state->ctx, req, cmd_list_trustdoms_recv_doms, ctx 181 source4/winbind/wb_cmd_list_trustdom.c NTSTATUS wb_cmd_list_trustdoms_recv(struct composite_context *ctx, ctx 186 source4/winbind/wb_cmd_list_trustdom.c NTSTATUS status = composite_wait(ctx); ctx 189 source4/winbind/wb_cmd_list_trustdom.c talloc_get_type(ctx->private_data, ctx 194 source4/winbind/wb_cmd_list_trustdom.c talloc_free(ctx); ctx 31 source4/winbind/wb_cmd_list_users.c struct composite_context *ctx; ctx 40 source4/winbind/wb_cmd_list_users.c static void cmd_list_users_recv_domain(struct composite_context *ctx); ctx 41 source4/winbind/wb_cmd_list_users.c static void cmd_list_users_recv_user_list(struct composite_context *ctx); ctx 46 source4/winbind/wb_cmd_list_users.c struct composite_context *ctx, *result; ctx 57 source4/winbind/wb_cmd_list_users.c state->ctx = result; ctx 62 source4/winbind/wb_cmd_list_users.c if (composite_nomem(state->result, state->ctx)) return result; ctx 70 source4/winbind/wb_cmd_list_users.c if (composite_nomem(state->domain_name, state->ctx)) ctx 76 source4/winbind/wb_cmd_list_users.c ctx = wb_sid2domain_send(state, service, service->primary_sid); ctx 77 source4/winbind/wb_cmd_list_users.c if (composite_nomem(ctx, state->ctx)) return result; ctx 79 source4/winbind/wb_cmd_list_users.c composite_continue(state->ctx, ctx, cmd_list_users_recv_domain, state); ctx 83 source4/winbind/wb_cmd_list_users.c static void cmd_list_users_recv_domain(struct composite_context *ctx) ctx 86 source4/winbind/wb_cmd_list_users.c ctx->async.private_data, struct cmd_list_users_state); ctx 92 source4/winbind/wb_cmd_list_users.c state->ctx->status = wb_sid2domain_recv(ctx, &domain); ctx 93 source4/winbind/wb_cmd_list_users.c if (!composite_is_ok(state->ctx)) return; ctx 102 source4/winbind/wb_cmd_list_users.c if (composite_nomem(state->domain_name, state->ctx)) return; ctx 106 source4/winbind/wb_cmd_list_users.c if (composite_nomem(user_list, state->ctx)) return; ctx 116 source4/winbind/wb_cmd_list_users.c ctx = libnet_UserList_send(domain->libnet_ctx, state, user_list, NULL); ctx 118 source4/winbind/wb_cmd_list_users.c composite_continue(state->ctx, ctx, cmd_list_users_recv_user_list, ctx 122 source4/winbind/wb_cmd_list_users.c static void cmd_list_users_recv_user_list(struct composite_context *ctx) ctx 125 source4/winbind/wb_cmd_list_users.c ctx->async.private_data, struct cmd_list_users_state); ctx 133 source4/winbind/wb_cmd_list_users.c if (composite_nomem(user_list, state->ctx)) return; ctx 135 source4/winbind/wb_cmd_list_users.c status = libnet_UserList_recv(ctx, state, user_list); ctx 140 source4/winbind/wb_cmd_list_users.c composite_error(state->ctx, status); ctx 156 source4/winbind/wb_cmd_list_users.c composite_done(state->ctx); ctx 171 source4/winbind/wb_cmd_list_users.c ctx = libnet_UserList_send(state->domain->libnet_ctx, state, user_list, ctx 174 source4/winbind/wb_cmd_list_users.c composite_continue(state->ctx, ctx, cmd_list_users_recv_user_list, ctx 178 source4/winbind/wb_cmd_list_users.c NTSTATUS wb_cmd_list_users_recv(struct composite_context *ctx, ctx 182 source4/winbind/wb_cmd_list_users.c NTSTATUS status = composite_wait(ctx); ctx 188 source4/winbind/wb_cmd_list_users.c ctx->private_data, struct cmd_list_users_state); ctx 194 source4/winbind/wb_cmd_list_users.c talloc_free(ctx); ctx 30 source4/winbind/wb_cmd_lookupname.c struct composite_context *ctx; ctx 35 source4/winbind/wb_cmd_lookupname.c static void lookupname_recv_domain(struct composite_context *ctx); ctx 36 source4/winbind/wb_cmd_lookupname.c static void lookupname_recv_sids(struct composite_context *ctx); ctx 43 source4/winbind/wb_cmd_lookupname.c struct composite_context *result, *ctx; ctx 51 source4/winbind/wb_cmd_lookupname.c state->ctx = result; ctx 57 source4/winbind/wb_cmd_lookupname.c ctx = wb_sid2domain_send(state, service, service->primary_sid); ctx 58 source4/winbind/wb_cmd_lookupname.c if (ctx == NULL) goto failed; ctx 60 source4/winbind/wb_cmd_lookupname.c ctx->async.fn = lookupname_recv_domain; ctx 61 source4/winbind/wb_cmd_lookupname.c ctx->async.private_data = state; ctx 69 source4/winbind/wb_cmd_lookupname.c static void lookupname_recv_domain(struct composite_context *ctx) ctx 72 source4/winbind/wb_cmd_lookupname.c talloc_get_type(ctx->async.private_data, ctx 76 source4/winbind/wb_cmd_lookupname.c state->ctx->status = wb_sid2domain_recv(ctx, &domain); ctx 77 source4/winbind/wb_cmd_lookupname.c if (!composite_is_ok(state->ctx)) return; ctx 79 source4/winbind/wb_cmd_lookupname.c ctx = wb_lsa_lookupnames_send(state, domain->libnet_ctx->lsa.pipe, ctx 81 source4/winbind/wb_cmd_lookupname.c composite_continue(state->ctx, ctx, lookupname_recv_sids, state); ctx 84 source4/winbind/wb_cmd_lookupname.c static void lookupname_recv_sids(struct composite_context *ctx) ctx 87 source4/winbind/wb_cmd_lookupname.c talloc_get_type(ctx->async.private_data, ctx 91 source4/winbind/wb_cmd_lookupname.c state->ctx->status = wb_lsa_lookupnames_recv(ctx, state, &sids); ctx 92 source4/winbind/wb_cmd_lookupname.c if (!composite_is_ok(state->ctx)) return; ctx 95 source4/winbind/wb_cmd_lookupname.c composite_done(state->ctx); ctx 30 source4/winbind/wb_cmd_lookupsid.c struct composite_context *ctx; ctx 35 source4/winbind/wb_cmd_lookupsid.c static void lookupsid_recv_domain(struct composite_context *ctx); ctx 36 source4/winbind/wb_cmd_lookupsid.c static void lookupsid_recv_names(struct composite_context *ctx); ctx 42 source4/winbind/wb_cmd_lookupsid.c struct composite_context *result, *ctx; ctx 51 source4/winbind/wb_cmd_lookupsid.c state->ctx = result; ctx 57 source4/winbind/wb_cmd_lookupsid.c ctx = wb_sid2domain_send(state, service, service->primary_sid); ctx 58 source4/winbind/wb_cmd_lookupsid.c if (ctx == NULL) goto failed; ctx 60 source4/winbind/wb_cmd_lookupsid.c ctx->async.fn = lookupsid_recv_domain; ctx 61 source4/winbind/wb_cmd_lookupsid.c ctx->async.private_data = state; ctx 69 source4/winbind/wb_cmd_lookupsid.c static void lookupsid_recv_domain(struct composite_context *ctx) ctx 72 source4/winbind/wb_cmd_lookupsid.c talloc_get_type(ctx->async.private_data, ctx 76 source4/winbind/wb_cmd_lookupsid.c state->ctx->status = wb_sid2domain_recv(ctx, &domain); ctx 77 source4/winbind/wb_cmd_lookupsid.c if (!composite_is_ok(state->ctx)) return; ctx 79 source4/winbind/wb_cmd_lookupsid.c ctx = wb_lsa_lookupsids_send(state, domain->libnet_ctx->lsa.pipe, ctx 81 source4/winbind/wb_cmd_lookupsid.c composite_continue(state->ctx, ctx, lookupsid_recv_names, state); ctx 84 source4/winbind/wb_cmd_lookupsid.c static void lookupsid_recv_names(struct composite_context *ctx) ctx 87 source4/winbind/wb_cmd_lookupsid.c talloc_get_type(ctx->async.private_data, ctx 91 source4/winbind/wb_cmd_lookupsid.c state->ctx->status = wb_lsa_lookupsids_recv(ctx, state, &names); ctx 92 source4/winbind/wb_cmd_lookupsid.c if (!composite_is_ok(state->ctx)) return; ctx 95 source4/winbind/wb_cmd_lookupsid.c composite_done(state->ctx); ctx 31 source4/winbind/wb_cmd_setpwent.c struct composite_context *ctx; ctx 38 source4/winbind/wb_cmd_setpwent.c static void cmd_setpwent_recv_domain(struct composite_context *ctx); ctx 39 source4/winbind/wb_cmd_setpwent.c static void cmd_setpwent_recv_user_list(struct composite_context *ctx); ctx 44 source4/winbind/wb_cmd_setpwent.c struct composite_context *ctx, *result; ctx 55 source4/winbind/wb_cmd_setpwent.c state->ctx = result; ctx 60 source4/winbind/wb_cmd_setpwent.c if (composite_nomem(state->result, state->ctx)) return result; ctx 62 source4/winbind/wb_cmd_setpwent.c ctx = wb_sid2domain_send(state, service, service->primary_sid); ctx 63 source4/winbind/wb_cmd_setpwent.c if (composite_nomem(ctx, state->ctx)) return result; ctx 65 source4/winbind/wb_cmd_setpwent.c composite_continue(state->ctx, ctx, cmd_setpwent_recv_domain, state); ctx 69 source4/winbind/wb_cmd_setpwent.c static void cmd_setpwent_recv_domain(struct composite_context *ctx) ctx 72 source4/winbind/wb_cmd_setpwent.c ctx->async.private_data, struct cmd_setpwent_state); ctx 78 source4/winbind/wb_cmd_setpwent.c state->ctx->status = wb_sid2domain_recv(ctx, &domain); ctx 79 source4/winbind/wb_cmd_setpwent.c if (!composite_is_ok(state->ctx)) return; ctx 84 source4/winbind/wb_cmd_setpwent.c if (composite_nomem(user_list, state->ctx)) return; ctx 88 source4/winbind/wb_cmd_setpwent.c if (composite_nomem(user_list->in.domain_name, state->ctx)) return; ctx 96 source4/winbind/wb_cmd_setpwent.c ctx = libnet_UserList_send(domain->libnet_ctx, state->result, user_list, ctx 99 source4/winbind/wb_cmd_setpwent.c composite_continue(state->ctx, ctx, cmd_setpwent_recv_user_list, state); ctx 102 source4/winbind/wb_cmd_setpwent.c static void cmd_setpwent_recv_user_list(struct composite_context *ctx) ctx 105 source4/winbind/wb_cmd_setpwent.c ctx->async.private_data, struct cmd_setpwent_state); ctx 111 source4/winbind/wb_cmd_setpwent.c if (composite_nomem(user_list, state->ctx)) return; ctx 113 source4/winbind/wb_cmd_setpwent.c state->ctx->status = libnet_UserList_recv(ctx, state->result, ctx 115 source4/winbind/wb_cmd_setpwent.c if (!composite_is_ok(state->ctx)) return; ctx 121 source4/winbind/wb_cmd_setpwent.c composite_done(state->ctx); ctx 124 source4/winbind/wb_cmd_setpwent.c NTSTATUS wb_cmd_setpwent_recv(struct composite_context *ctx, ctx 127 source4/winbind/wb_cmd_setpwent.c NTSTATUS status = composite_wait(ctx); ctx 133 source4/winbind/wb_cmd_setpwent.c talloc_get_type(ctx->private_data, ctx 139 source4/winbind/wb_cmd_setpwent.c talloc_free(ctx); ctx 30 source4/winbind/wb_cmd_userdomgroups.c struct composite_context *ctx; ctx 37 source4/winbind/wb_cmd_userdomgroups.c static void userdomgroups_recv_domain(struct composite_context *ctx); ctx 38 source4/winbind/wb_cmd_userdomgroups.c static void userdomgroups_recv_rids(struct composite_context *ctx); ctx 44 source4/winbind/wb_cmd_userdomgroups.c struct composite_context *result, *ctx; ctx 52 source4/winbind/wb_cmd_userdomgroups.c state->ctx = result; ctx 61 source4/winbind/wb_cmd_userdomgroups.c ctx = wb_sid2domain_send(state, service, sid); ctx 63 source4/winbind/wb_cmd_userdomgroups.c composite_continue(state->ctx, ctx, userdomgroups_recv_domain, state); ctx 65 source4/winbind/wb_cmd_userdomgroups.c if (ctx) { ctx 74 source4/winbind/wb_cmd_userdomgroups.c static void userdomgroups_recv_domain(struct composite_context *ctx) ctx 77 source4/winbind/wb_cmd_userdomgroups.c talloc_get_type(ctx->async.private_data, ctx 81 source4/winbind/wb_cmd_userdomgroups.c state->ctx->status = wb_sid2domain_recv(ctx, &domain); ctx 82 source4/winbind/wb_cmd_userdomgroups.c if (!composite_is_ok(state->ctx)) return; ctx 84 source4/winbind/wb_cmd_userdomgroups.c ctx = wb_samr_userdomgroups_send(state, domain->libnet_ctx->samr.pipe, ctx 87 source4/winbind/wb_cmd_userdomgroups.c composite_continue(state->ctx, ctx, userdomgroups_recv_rids, state); ctx 91 source4/winbind/wb_cmd_userdomgroups.c static void userdomgroups_recv_rids(struct composite_context *ctx) ctx 94 source4/winbind/wb_cmd_userdomgroups.c talloc_get_type(ctx->async.private_data, ctx 97 source4/winbind/wb_cmd_userdomgroups.c state->ctx->status = wb_samr_userdomgroups_recv(ctx, state, ctx 100 source4/winbind/wb_cmd_userdomgroups.c if (!composite_is_ok(state->ctx)) return; ctx 102 source4/winbind/wb_cmd_userdomgroups.c composite_done(state->ctx); ctx 34 source4/winbind/wb_cmd_usersids.c struct composite_context *ctx; ctx 48 source4/winbind/wb_cmd_usersids.c static void usersids_recv_domgroups(struct composite_context *ctx); ctx 49 source4/winbind/wb_cmd_usersids.c static void usersids_recv_domain(struct composite_context *ctx); ctx 56 source4/winbind/wb_cmd_usersids.c struct composite_context *result, *ctx; ctx 65 source4/winbind/wb_cmd_usersids.c state->ctx = result; ctx 72 source4/winbind/wb_cmd_usersids.c ctx = wb_cmd_userdomgroups_send(state, service, sid); ctx 73 source4/winbind/wb_cmd_usersids.c if (ctx == NULL) goto failed; ctx 75 source4/winbind/wb_cmd_usersids.c ctx->async.fn = usersids_recv_domgroups; ctx 76 source4/winbind/wb_cmd_usersids.c ctx->async.private_data = state; ctx 84 source4/winbind/wb_cmd_usersids.c static void usersids_recv_domgroups(struct composite_context *ctx) ctx 87 source4/winbind/wb_cmd_usersids.c talloc_get_type(ctx->async.private_data, ctx 90 source4/winbind/wb_cmd_usersids.c state->ctx->status = wb_cmd_userdomgroups_recv(ctx, state, ctx 93 source4/winbind/wb_cmd_usersids.c if (!composite_is_ok(state->ctx)) return; ctx 95 source4/winbind/wb_cmd_usersids.c ctx = wb_sid2domain_send(state, state->service, ctx 97 source4/winbind/wb_cmd_usersids.c composite_continue(state->ctx, ctx, usersids_recv_domain, state); ctx 100 source4/winbind/wb_cmd_usersids.c static void usersids_recv_domain(struct composite_context *ctx) ctx 103 source4/winbind/wb_cmd_usersids.c talloc_get_type(ctx->async.private_data, ctx 109 source4/winbind/wb_cmd_usersids.c state->ctx->status = wb_sid2domain_recv(ctx, &domain); ctx 110 source4/winbind/wb_cmd_usersids.c if (!composite_is_ok(state->ctx)) return; ctx 115 source4/winbind/wb_cmd_usersids.c if (composite_nomem(state->lsa_sids.sids, state->ctx)) return; ctx 131 source4/winbind/wb_cmd_usersids.c composite_continue_rpc(state->ctx, req, usersids_recv_aliases, state); ctx 141 source4/winbind/wb_cmd_usersids.c state->ctx->status = dcerpc_ndr_request_recv(req); ctx 142 source4/winbind/wb_cmd_usersids.c if (!composite_is_ok(state->ctx)) return; ctx 143 source4/winbind/wb_cmd_usersids.c state->ctx->status = state->r.out.result; ctx 144 source4/winbind/wb_cmd_usersids.c if (!composite_is_ok(state->ctx)) return; ctx 148 source4/winbind/wb_cmd_usersids.c if (composite_nomem(state->sids, state->ctx)) return; ctx 163 source4/winbind/wb_cmd_usersids.c state->ctx)) return; ctx 166 source4/winbind/wb_cmd_usersids.c composite_done(state->ctx); ctx 169 source4/winbind/wb_cmd_usersids.c NTSTATUS wb_cmd_usersids_recv(struct composite_context *ctx, ctx 173 source4/winbind/wb_cmd_usersids.c NTSTATUS status = composite_wait(ctx); ctx 176 source4/winbind/wb_cmd_usersids.c talloc_get_type(ctx->private_data, ctx 181 source4/winbind/wb_cmd_usersids.c talloc_free(ctx); ctx 35 source4/winbind/wb_connect_lsa.c struct composite_context *ctx; ctx 46 source4/winbind/wb_connect_lsa.c static void init_lsa_recv_pipe(struct composite_context *ctx); ctx 52 source4/winbind/wb_connect_lsa.c struct composite_context *result, *ctx; ctx 60 source4/winbind/wb_connect_lsa.c state->ctx = result; ctx 65 source4/winbind/wb_connect_lsa.c ctx = dcerpc_secondary_auth_connection_send(domain->netlogon_pipe, ctx 70 source4/winbind/wb_connect_lsa.c composite_continue(state->ctx, ctx, init_lsa_recv_pipe, state); ctx 78 source4/winbind/wb_connect_lsa.c static void init_lsa_recv_pipe(struct composite_context *ctx) ctx 82 source4/winbind/wb_connect_lsa.c talloc_get_type(ctx->async.private_data, ctx 85 source4/winbind/wb_connect_lsa.c state->ctx->status = dcerpc_secondary_auth_connection_recv(ctx, state, ctx 87 source4/winbind/wb_connect_lsa.c if (!composite_is_ok(state->ctx)) return; ctx 90 source4/winbind/wb_connect_lsa.c if (composite_nomem(state->handle, state->ctx)) return; ctx 102 source4/winbind/wb_connect_lsa.c composite_continue_rpc(state->ctx, req, init_lsa_recv_openpol, state); ctx 111 source4/winbind/wb_connect_lsa.c state->ctx->status = dcerpc_ndr_request_recv(req); ctx 112 source4/winbind/wb_connect_lsa.c if (!composite_is_ok(state->ctx)) return; ctx 113 source4/winbind/wb_connect_lsa.c state->ctx->status = state->openpolicy.out.result; ctx 114 source4/winbind/wb_connect_lsa.c if (!composite_is_ok(state->ctx)) return; ctx 116 source4/winbind/wb_connect_lsa.c composite_done(state->ctx); ctx 36 source4/winbind/wb_connect_sam.c struct composite_context *ctx; ctx 47 source4/winbind/wb_connect_sam.c static void connect_samr_recv_pipe(struct composite_context *ctx); ctx 54 source4/winbind/wb_connect_sam.c struct composite_context *result, *ctx; ctx 62 source4/winbind/wb_connect_sam.c state->ctx = result; ctx 70 source4/winbind/wb_connect_sam.c ctx = dcerpc_secondary_auth_connection_send(domain->netlogon_pipe, ctx 75 source4/winbind/wb_connect_sam.c composite_continue(state->ctx, ctx, connect_samr_recv_pipe, state); ctx 83 source4/winbind/wb_connect_sam.c static void connect_samr_recv_pipe(struct composite_context *ctx) ctx 87 source4/winbind/wb_connect_sam.c talloc_get_type(ctx->async.private_data, ctx 90 source4/winbind/wb_connect_sam.c state->ctx->status = dcerpc_secondary_auth_connection_recv(ctx, state, ctx 92 source4/winbind/wb_connect_sam.c if (!composite_is_ok(state->ctx)) return; ctx 95 source4/winbind/wb_connect_sam.c if (composite_nomem(state->connect_handle, state->ctx)) return; ctx 104 source4/winbind/wb_connect_sam.c composite_continue_rpc(state->ctx, req, connect_samr_recv_conn, state); ctx 114 source4/winbind/wb_connect_sam.c state->ctx->status = dcerpc_ndr_request_recv(req); ctx 115 source4/winbind/wb_connect_sam.c if (!composite_is_ok(state->ctx)) return; ctx 116 source4/winbind/wb_connect_sam.c state->ctx->status = state->c.out.result; ctx 117 source4/winbind/wb_connect_sam.c if (!composite_is_ok(state->ctx)) return; ctx 120 source4/winbind/wb_connect_sam.c if (composite_nomem(state->domain_handle, state->ctx)) return; ctx 128 source4/winbind/wb_connect_sam.c composite_continue_rpc(state->ctx, req, ctx 138 source4/winbind/wb_connect_sam.c state->ctx->status = dcerpc_ndr_request_recv(req); ctx 139 source4/winbind/wb_connect_sam.c if (!composite_is_ok(state->ctx)) return; ctx 140 source4/winbind/wb_connect_sam.c state->ctx->status = state->o.out.result; ctx 141 source4/winbind/wb_connect_sam.c if (!composite_is_ok(state->ctx)) return; ctx 143 source4/winbind/wb_connect_sam.c composite_done(state->ctx); ctx 36 source4/winbind/wb_dom_info.c struct composite_context *ctx; ctx 40 source4/winbind/wb_dom_info.c static void get_dom_info_recv_addrs(struct composite_context *ctx); ctx 47 source4/winbind/wb_dom_info.c struct composite_context *result, *ctx; ctx 55 source4/winbind/wb_dom_info.c state->ctx = result; ctx 70 source4/winbind/wb_dom_info.c ctx = finddcs_send(mem_ctx, lp_netbios_name(service->task->lp_ctx), ctx 78 source4/winbind/wb_dom_info.c if (ctx == NULL) goto failed; ctx 80 source4/winbind/wb_dom_info.c composite_continue(state->ctx, ctx, get_dom_info_recv_addrs, state); ctx 88 source4/winbind/wb_dom_info.c static void get_dom_info_recv_addrs(struct composite_context *ctx) ctx 91 source4/winbind/wb_dom_info.c talloc_get_type(ctx->async.private_data, ctx 94 source4/winbind/wb_dom_info.c state->ctx->status = finddcs_recv(ctx, state->info, ctx 97 source4/winbind/wb_dom_info.c if (!composite_is_ok(state->ctx)) return; ctx 99 source4/winbind/wb_dom_info.c composite_done(state->ctx); ctx 102 source4/winbind/wb_dom_info.c NTSTATUS wb_get_dom_info_recv(struct composite_context *ctx, ctx 106 source4/winbind/wb_dom_info.c NTSTATUS status = composite_wait(ctx); ctx 109 source4/winbind/wb_dom_info.c talloc_get_type(ctx->private_data, ctx 113 source4/winbind/wb_dom_info.c talloc_free(ctx); ctx 123 source4/winbind/wb_dom_info.c struct composite_context *ctx = ctx 125 source4/winbind/wb_dom_info.c return wb_get_dom_info_recv(ctx, mem_ctx, result); ctx 33 source4/winbind/wb_dom_info_trusted.c struct composite_context *ctx; ctx 43 source4/winbind/wb_dom_info_trusted.c static void trusted_dom_info_recv_domain(struct composite_context *ctx); ctx 46 source4/winbind/wb_dom_info_trusted.c static void trusted_dom_info_recv_dcaddr(struct composite_context *ctx); ctx 53 source4/winbind/wb_dom_info_trusted.c struct composite_context *result, *ctx; ctx 61 source4/winbind/wb_dom_info_trusted.c state->ctx = result; ctx 75 source4/winbind/wb_dom_info_trusted.c ctx = wb_sid2domain_send(state, service, service->primary_sid); ctx 76 source4/winbind/wb_dom_info_trusted.c if (ctx == NULL) goto failed; ctx 78 source4/winbind/wb_dom_info_trusted.c ctx->async.fn = trusted_dom_info_recv_domain; ctx 79 source4/winbind/wb_dom_info_trusted.c ctx->async.private_data = state; ctx 87 source4/winbind/wb_dom_info_trusted.c static void trusted_dom_info_recv_domain(struct composite_context *ctx) ctx 90 source4/winbind/wb_dom_info_trusted.c talloc_get_type(ctx->async.private_data, ctx 94 source4/winbind/wb_dom_info_trusted.c state->ctx->status = wb_sid2domain_recv(ctx, &state->my_domain); ctx 95 source4/winbind/wb_dom_info_trusted.c if (!composite_is_ok(state->ctx)) return; ctx 101 source4/winbind/wb_dom_info_trusted.c state->ctx)) return; ctx 108 source4/winbind/wb_dom_info_trusted.c if (composite_nomem(state->d.out.info, state->ctx)) return; ctx 112 source4/winbind/wb_dom_info_trusted.c composite_continue_rpc(state->ctx, req, trusted_dom_info_recv_dsr, ctx 126 source4/winbind/wb_dom_info_trusted.c state->ctx->status = dcerpc_ndr_request_recv(req); ctx 127 source4/winbind/wb_dom_info_trusted.c if (!NT_STATUS_IS_OK(state->ctx->status)) { ctx 129 source4/winbind/wb_dom_info_trusted.c nt_errstr(state->ctx->status))); ctx 133 source4/winbind/wb_dom_info_trusted.c state->ctx->status = ctx 135 source4/winbind/wb_dom_info_trusted.c if (!NT_STATUS_IS_OK(state->ctx->status)) { ctx 137 source4/winbind/wb_dom_info_trusted.c nt_errstr(state->ctx->status))); ctx 157 source4/winbind/wb_dom_info_trusted.c composite_done(state->ctx); ctx 170 source4/winbind/wb_dom_info_trusted.c if (composite_nomem(req, state->ctx)) return; ctx 172 source4/winbind/wb_dom_info_trusted.c composite_continue_rpc(state->ctx, req, trusted_dom_info_recv_dcname, ctx 181 source4/winbind/wb_dom_info_trusted.c struct composite_context *ctx; ctx 184 source4/winbind/wb_dom_info_trusted.c state->ctx->status = dcerpc_ndr_request_recv(req); ctx 185 source4/winbind/wb_dom_info_trusted.c if (!composite_is_ok(state->ctx)) return; ctx 186 source4/winbind/wb_dom_info_trusted.c state->ctx->status = werror_to_ntstatus(state->g.out.result); ctx 187 source4/winbind/wb_dom_info_trusted.c if (!composite_is_ok(state->ctx)) return; ctx 198 source4/winbind/wb_dom_info_trusted.c ctx = resolve_name_send(lp_resolve_context(state->service->task->lp_ctx), ctx 201 source4/winbind/wb_dom_info_trusted.c composite_continue(state->ctx, ctx, trusted_dom_info_recv_dcaddr, ctx 205 source4/winbind/wb_dom_info_trusted.c static void trusted_dom_info_recv_dcaddr(struct composite_context *ctx) ctx 208 source4/winbind/wb_dom_info_trusted.c talloc_get_type(ctx->async.private_data, ctx 211 source4/winbind/wb_dom_info_trusted.c state->ctx->status = resolve_name_recv(ctx, state->info, ctx 213 source4/winbind/wb_dom_info_trusted.c if (!composite_is_ok(state->ctx)) return; ctx 215 source4/winbind/wb_dom_info_trusted.c composite_done(state->ctx); ctx 218 source4/winbind/wb_dom_info_trusted.c NTSTATUS wb_trusted_dom_info_recv(struct composite_context *ctx, ctx 222 source4/winbind/wb_dom_info_trusted.c NTSTATUS status = composite_wait(ctx); ctx 225 source4/winbind/wb_dom_info_trusted.c talloc_get_type(ctx->private_data, ctx 229 source4/winbind/wb_dom_info_trusted.c talloc_free(ctx); ctx 239 source4/winbind/wb_dom_info_trusted.c struct composite_context *ctx = ctx 241 source4/winbind/wb_dom_info_trusted.c return wb_trusted_dom_info_recv(ctx, mem_ctx, result); ctx 31 source4/winbind/wb_gid2sid.c struct composite_context *ctx; ctx 36 source4/winbind/wb_gid2sid.c static void gid2sid_recv_sid(struct composite_context *ctx); ctx 41 source4/winbind/wb_gid2sid.c struct composite_context *result, *ctx; ctx 54 source4/winbind/wb_gid2sid.c state->ctx = result; ctx 68 source4/winbind/wb_gid2sid.c ctx = wb_xids2sids_send(result, service, 1, ids); ctx 69 source4/winbind/wb_gid2sid.c if (composite_nomem(ctx, result)) return result; ctx 71 source4/winbind/wb_gid2sid.c composite_continue(result, ctx, gid2sid_recv_sid, state); ctx 75 source4/winbind/wb_gid2sid.c static void gid2sid_recv_sid(struct composite_context *ctx) ctx 77 source4/winbind/wb_gid2sid.c struct gid2sid_state *state = talloc_get_type(ctx->async.private_data, ctx 80 source4/winbind/wb_gid2sid.c state->ctx->status = wb_xids2sids_recv(ctx, &ids); ctx 81 source4/winbind/wb_gid2sid.c if (!composite_is_ok(state->ctx)) return; ctx 84 source4/winbind/wb_gid2sid.c composite_error(state->ctx, ids->status); ctx 89 source4/winbind/wb_gid2sid.c composite_done(state->ctx); ctx 92 source4/winbind/wb_gid2sid.c NTSTATUS wb_gid2sid_recv(struct composite_context *ctx, TALLOC_CTX *mem_ctx, ctx 95 source4/winbind/wb_gid2sid.c NTSTATUS status = composite_wait(ctx); ctx 101 source4/winbind/wb_gid2sid.c talloc_get_type(ctx->private_data, ctx 105 source4/winbind/wb_gid2sid.c talloc_free(ctx); ctx 66 source4/winbind/wb_init_domain.c struct composite_context *ctx; ctx 76 source4/winbind/wb_init_domain.c static void init_domain_recv_netlogonpipe(struct composite_context *ctx); ctx 77 source4/winbind/wb_init_domain.c static void init_domain_recv_lsa_pipe(struct composite_context *ctx); ctx 80 source4/winbind/wb_init_domain.c static void init_domain_recv_samr(struct composite_context *ctx); ctx 117 source4/winbind/wb_init_domain.c struct composite_context *result, *ctx; ctx 125 source4/winbind/wb_init_domain.c state->ctx = result; ctx 157 source4/winbind/wb_init_domain.c state->ctx->status = ctx 159 source4/winbind/wb_init_domain.c if (!NT_STATUS_IS_OK(state->ctx->status)) goto failed; ctx 182 source4/winbind/wb_init_domain.c ctx = dcerpc_pipe_connect_b_send(state, state->domain->netlogon_binding, ctx 188 source4/winbind/wb_init_domain.c if (composite_nomem(ctx, state->ctx)) { ctx 192 source4/winbind/wb_init_domain.c composite_continue(state->ctx, ctx, init_domain_recv_netlogonpipe, ctx 202 source4/winbind/wb_init_domain.c static void init_domain_recv_netlogonpipe(struct composite_context *ctx) ctx 205 source4/winbind/wb_init_domain.c talloc_get_type(ctx->async.private_data, ctx 208 source4/winbind/wb_init_domain.c state->ctx->status = dcerpc_pipe_connect_b_recv(ctx, state->domain, ctx 211 source4/winbind/wb_init_domain.c if (!composite_is_ok(state->ctx)) { ctx 229 source4/winbind/wb_init_domain.c ctx = dcerpc_secondary_auth_connection_send(state->domain->netlogon_pipe, ctx 235 source4/winbind/wb_init_domain.c composite_continue(state->ctx, ctx, init_domain_recv_lsa_pipe, state); ctx 243 source4/winbind/wb_init_domain.c struct composite_context *ctx; ctx 244 source4/winbind/wb_init_domain.c state->ctx->status = NT_STATUS_OK; ctx 256 source4/winbind/wb_init_domain.c ctx = dcerpc_secondary_auth_connection_send(state->domain->netlogon_pipe, ctx 261 source4/winbind/wb_init_domain.c composite_continue(state->ctx, ctx, continuation, state); ctx 270 source4/winbind/wb_init_domain.c static void init_domain_recv_lsa_pipe(struct composite_context *ctx) ctx 274 source4/winbind/wb_init_domain.c talloc_get_type(ctx->async.private_data, ctx 277 source4/winbind/wb_init_domain.c state->ctx->status = dcerpc_secondary_auth_connection_recv(ctx, state->domain, ctx 279 source4/winbind/wb_init_domain.c if (NT_STATUS_EQUAL(state->ctx->status, NT_STATUS_LOGON_FAILURE)) { ctx 286 source4/winbind/wb_init_domain.c if (!composite_is_ok(state->ctx)) return; ctx 305 source4/winbind/wb_init_domain.c composite_continue_rpc(state->ctx, req, init_domain_recv_lsa_policy, state); ctx 317 source4/winbind/wb_init_domain.c state->ctx->status = dcerpc_ndr_request_recv(req); ctx 318 source4/winbind/wb_init_domain.c if ((!NT_STATUS_IS_OK(state->ctx->status) ctx 326 source4/winbind/wb_init_domain.c if (!composite_is_ok(state->ctx)) return; ctx 327 source4/winbind/wb_init_domain.c state->ctx->status = state->lsa_openpolicy.out.result; ctx 328 source4/winbind/wb_init_domain.c if (!composite_is_ok(state->ctx)) return; ctx 330 source4/winbind/wb_init_domain.c state->info = talloc_zero(state->ctx, union lsa_PolicyInformation); ctx 331 source4/winbind/wb_init_domain.c if (composite_nomem(state->info, state->ctx)) return; ctx 339 source4/winbind/wb_init_domain.c composite_continue_rpc(state->ctx, req, ctx 348 source4/winbind/wb_init_domain.c struct composite_context *ctx; ctx 350 source4/winbind/wb_init_domain.c state->ctx->status = dcerpc_ndr_request_recv(req); ctx 351 source4/winbind/wb_init_domain.c if (!composite_is_ok(state->ctx)) return; ctx 352 source4/winbind/wb_init_domain.c state->ctx->status = state->queryinfo.out.result; ctx 353 source4/winbind/wb_init_domain.c if (!composite_is_ok(state->ctx)) return; ctx 362 source4/winbind/wb_init_domain.c composite_error(state->ctx, NT_STATUS_INVALID_DOMAIN_STATE); ctx 371 source4/winbind/wb_init_domain.c composite_error(state->ctx, NT_STATUS_INVALID_DOMAIN_STATE); ctx 383 source4/winbind/wb_init_domain.c ctx = wb_connect_samr_send(state, state->domain); ctx 384 source4/winbind/wb_init_domain.c composite_continue(state->ctx, ctx, init_domain_recv_samr, state); ctx 389 source4/winbind/wb_init_domain.c static void init_domain_recv_samr(struct composite_context *ctx) ctx 392 source4/winbind/wb_init_domain.c talloc_get_type(ctx->async.private_data, ctx 395 source4/winbind/wb_init_domain.c state->ctx->status = wb_connect_samr_recv( ctx 396 source4/winbind/wb_init_domain.c ctx, state->domain, ctx 400 source4/winbind/wb_init_domain.c if (!composite_is_ok(state->ctx)) return; ctx 409 source4/winbind/wb_init_domain.c composite_done(state->ctx); ctx 34 source4/winbind/wb_irpc.c static void wb_irpc_SamLogon_callback(struct composite_context *ctx); ctx 42 source4/winbind/wb_irpc.c struct composite_context *ctx; ctx 52 source4/winbind/wb_irpc.c ctx = wb_sam_logon_send(msg, service, req); ctx 53 source4/winbind/wb_irpc.c NT_STATUS_HAVE_NO_MEMORY(ctx); ctx 55 source4/winbind/wb_irpc.c ctx->async.fn = wb_irpc_SamLogon_callback; ctx 56 source4/winbind/wb_irpc.c ctx->async.private_data = s; ctx 62 source4/winbind/wb_irpc.c static void wb_irpc_SamLogon_callback(struct composite_context *ctx) ctx 64 source4/winbind/wb_irpc.c struct wb_irpc_SamLogon_state *s = talloc_get_type(ctx->async.private_data, ctx 70 source4/winbind/wb_irpc.c status = wb_sam_logon_recv(ctx, s, s->req); ctx 81 source4/winbind/wb_irpc.c static void wb_irpc_get_idmap_callback(struct composite_context *ctx); ctx 89 source4/winbind/wb_irpc.c struct composite_context *ctx; ctx 102 source4/winbind/wb_irpc.c ctx = wb_sids2xids_send(msg, service, req->in.count, ctx 106 source4/winbind/wb_irpc.c ctx = wb_xids2sids_send(msg, service, req->in.count, ctx 110 source4/winbind/wb_irpc.c NT_STATUS_HAVE_NO_MEMORY(ctx); ctx 112 source4/winbind/wb_irpc.c composite_continue(ctx, ctx, wb_irpc_get_idmap_callback, s); ctx 118 source4/winbind/wb_irpc.c static void wb_irpc_get_idmap_callback(struct composite_context *ctx) ctx 125 source4/winbind/wb_irpc.c s = talloc_get_type(ctx->async.private_data, ctx 130 source4/winbind/wb_irpc.c status = wb_sids2xids_recv(ctx, &s->req->out.ids); ctx 133 source4/winbind/wb_irpc.c status = wb_xids2sids_recv(ctx, &s->req->out.ids); ctx 30 source4/winbind/wb_name2domain.c struct composite_context *ctx; ctx 36 source4/winbind/wb_name2domain.c static void name2domain_recv_sid(struct composite_context *ctx); ctx 37 source4/winbind/wb_name2domain.c static void name2domain_recv_domain(struct composite_context *ctx); ctx 42 source4/winbind/wb_name2domain.c struct composite_context *result, *ctx; ctx 54 source4/winbind/wb_name2domain.c state->ctx = result; ctx 60 source4/winbind/wb_name2domain.c composite_error(state->ctx, NT_STATUS_OBJECT_NAME_INVALID); ctx 64 source4/winbind/wb_name2domain.c ctx = wb_cmd_lookupname_send(state, service, user_dom, user_name); ctx 65 source4/winbind/wb_name2domain.c if (composite_nomem(ctx, state->ctx)) return result; ctx 67 source4/winbind/wb_name2domain.c composite_continue(result, ctx, name2domain_recv_sid, state); ctx 71 source4/winbind/wb_name2domain.c static void name2domain_recv_sid(struct composite_context *ctx) ctx 74 source4/winbind/wb_name2domain.c talloc_get_type(ctx->async.private_data, ctx 80 source4/winbind/wb_name2domain.c state->ctx->status = wb_cmd_lookupname_recv(ctx, state, &sid); ctx 81 source4/winbind/wb_name2domain.c if(!composite_is_ok(state->ctx)) return; ctx 83 source4/winbind/wb_name2domain.c ctx = wb_sid2domain_send(state, state->service, sid->sid); ctx 85 source4/winbind/wb_name2domain.c composite_continue(state->ctx, ctx, name2domain_recv_domain, state); ctx 88 source4/winbind/wb_name2domain.c static void name2domain_recv_domain(struct composite_context *ctx) ctx 91 source4/winbind/wb_name2domain.c talloc_get_type(ctx->async.private_data, ctx 97 source4/winbind/wb_name2domain.c state->ctx->status = wb_sid2domain_recv(ctx, &domain); ctx 98 source4/winbind/wb_name2domain.c if(!composite_is_ok(state->ctx)) return; ctx 102 source4/winbind/wb_name2domain.c composite_done(state->ctx); ctx 105 source4/winbind/wb_name2domain.c NTSTATUS wb_name2domain_recv(struct composite_context *ctx, ctx 108 source4/winbind/wb_name2domain.c NTSTATUS status = composite_wait(ctx); ctx 114 source4/winbind/wb_name2domain.c talloc_get_type(ctx->private_data, ctx 118 source4/winbind/wb_name2domain.c talloc_free(ctx); ctx 36 source4/winbind/wb_pam_auth.c struct composite_context *ctx; ctx 58 source4/winbind/wb_pam_auth.c static void pam_auth_crap_recv_logon(struct composite_context *ctx); ctx 70 source4/winbind/wb_pam_auth.c struct composite_context *result, *ctx; ctx 80 source4/winbind/wb_pam_auth.c state->ctx = result; ctx 117 source4/winbind/wb_pam_auth.c ctx = wb_sam_logon_send(mem_ctx, service, state->req); ctx 118 source4/winbind/wb_pam_auth.c if (ctx == NULL) goto failed; ctx 120 source4/winbind/wb_pam_auth.c composite_continue(result, ctx, pam_auth_crap_recv_logon, state); ctx 133 source4/winbind/wb_pam_auth.c static void pam_auth_crap_recv_logon(struct composite_context *ctx) ctx 139 source4/winbind/wb_pam_auth.c talloc_get_type(ctx->async.private_data, ctx 142 source4/winbind/wb_pam_auth.c state->ctx->status = wb_sam_logon_recv(ctx, state, state->req); ctx 143 source4/winbind/wb_pam_auth.c if (!composite_is_ok(state->ctx)) return; ctx 150 source4/winbind/wb_pam_auth.c state->ctx->status = ndr_map_error2ntstatus(ndr_err); ctx 151 source4/winbind/wb_pam_auth.c if (!composite_is_ok(state->ctx)) return; ctx 158 source4/winbind/wb_pam_auth.c if (composite_nomem(state->info3.data, state->ctx)) return; ctx 184 source4/winbind/wb_pam_auth.c if (composite_nomem(state->unix_username, state->ctx)) return; ctx 186 source4/winbind/wb_pam_auth.c composite_done(state->ctx); ctx 35 source4/winbind/wb_sam_logon.c struct composite_context *ctx; ctx 46 source4/winbind/wb_sam_logon.c static void wb_sam_logon_recv_domain(struct composite_context *ctx); ctx 64 source4/winbind/wb_sam_logon.c s->ctx = c; ctx 85 source4/winbind/wb_sam_logon.c s->ctx->status = wb_sid2domain_recv(creq, &domain); ctx 86 source4/winbind/wb_sam_logon.c if (!composite_is_ok(s->ctx)) return; ctx 93 source4/winbind/wb_sam_logon.c if (composite_nomem(s->r.in.server_name, s->ctx)) return; ctx 103 source4/winbind/wb_sam_logon.c if (composite_nomem(s->r.out.validation, s->ctx)) return; ctx 105 source4/winbind/wb_sam_logon.c if (composite_nomem(s->r.out.authoritative, s->ctx)) return; ctx 115 source4/winbind/wb_sam_logon.c if (composite_nomem(s->r_mem_ctx, s->ctx)) return; ctx 118 source4/winbind/wb_sam_logon.c composite_continue_rpc(s->ctx, req, wb_sam_logon_recv_samlogon, s); ctx 131 source4/winbind/wb_sam_logon.c s->ctx->status = dcerpc_ndr_request_recv(req); ctx 132 source4/winbind/wb_sam_logon.c if (!composite_is_ok(s->ctx)) return; ctx 134 source4/winbind/wb_sam_logon.c s->ctx->status = s->r.out.result; ctx 135 source4/winbind/wb_sam_logon.c if (!composite_is_ok(s->ctx)) return; ctx 141 source4/winbind/wb_sam_logon.c composite_error(s->ctx, NT_STATUS_ACCESS_DENIED); ctx 152 source4/winbind/wb_sam_logon.c composite_done(s->ctx); ctx 138 source4/winbind/wb_samba3_cmd.c static void check_machacc_recv(struct composite_context *ctx); ctx 144 source4/winbind/wb_samba3_cmd.c struct composite_context *ctx; ctx 163 source4/winbind/wb_samba3_cmd.c ctx = wb_cmd_pam_auth_send(s3call, service, creds); ctx 165 source4/winbind/wb_samba3_cmd.c if (!ctx) { ctx 170 source4/winbind/wb_samba3_cmd.c ctx->async.fn = check_machacc_recv; ctx 171 source4/winbind/wb_samba3_cmd.c ctx->async.private_data = s3call; ctx 176 source4/winbind/wb_samba3_cmd.c static void check_machacc_recv(struct composite_context *ctx) ctx 179 source4/winbind/wb_samba3_cmd.c talloc_get_type(ctx->async.private_data, ctx 183 source4/winbind/wb_samba3_cmd.c status = wb_cmd_pam_auth_recv(ctx); ctx 196 source4/winbind/wb_samba3_cmd.c static void getdcname_recv_dc(struct composite_context *ctx); ctx 200 source4/winbind/wb_samba3_cmd.c struct composite_context *ctx; ctx 206 source4/winbind/wb_samba3_cmd.c ctx = wb_cmd_getdcname_send(s3call, service, ctx 208 source4/winbind/wb_samba3_cmd.c NT_STATUS_HAVE_NO_MEMORY(ctx); ctx 210 source4/winbind/wb_samba3_cmd.c ctx->async.fn = getdcname_recv_dc; ctx 211 source4/winbind/wb_samba3_cmd.c ctx->async.private_data = s3call; ctx 216 source4/winbind/wb_samba3_cmd.c static void getdcname_recv_dc(struct composite_context *ctx) ctx 219 source4/winbind/wb_samba3_cmd.c talloc_get_type(ctx->async.private_data, ctx 224 source4/winbind/wb_samba3_cmd.c status = wb_cmd_getdcname_recv(ctx, s3call, &dcname); ctx 238 source4/winbind/wb_samba3_cmd.c static void userdomgroups_recv_groups(struct composite_context *ctx); ctx 242 source4/winbind/wb_samba3_cmd.c struct composite_context *ctx; ctx 254 source4/winbind/wb_samba3_cmd.c ctx = wb_cmd_userdomgroups_send( ctx 256 source4/winbind/wb_samba3_cmd.c NT_STATUS_HAVE_NO_MEMORY(ctx); ctx 258 source4/winbind/wb_samba3_cmd.c ctx->async.fn = userdomgroups_recv_groups; ctx 259 source4/winbind/wb_samba3_cmd.c ctx->async.private_data = s3call; ctx 264 source4/winbind/wb_samba3_cmd.c static void userdomgroups_recv_groups(struct composite_context *ctx) ctx 267 source4/winbind/wb_samba3_cmd.c talloc_get_type(ctx->async.private_data, ctx 274 source4/winbind/wb_samba3_cmd.c status = wb_cmd_userdomgroups_recv(ctx, s3call, &num_sids, &sids); ctx 305 source4/winbind/wb_samba3_cmd.c static void usersids_recv_sids(struct composite_context *ctx); ctx 309 source4/winbind/wb_samba3_cmd.c struct composite_context *ctx; ctx 321 source4/winbind/wb_samba3_cmd.c ctx = wb_cmd_usersids_send( ctx 323 source4/winbind/wb_samba3_cmd.c NT_STATUS_HAVE_NO_MEMORY(ctx); ctx 325 source4/winbind/wb_samba3_cmd.c ctx->async.fn = usersids_recv_sids; ctx 326 source4/winbind/wb_samba3_cmd.c ctx->async.private_data = s3call; ctx 331 source4/winbind/wb_samba3_cmd.c static void usersids_recv_sids(struct composite_context *ctx) ctx 334 source4/winbind/wb_samba3_cmd.c talloc_get_type(ctx->async.private_data, ctx 341 source4/winbind/wb_samba3_cmd.c status = wb_cmd_usersids_recv(ctx, s3call, &num_sids, &sids); ctx 382 source4/winbind/wb_samba3_cmd.c static void lookupname_recv_sid(struct composite_context *ctx); ctx 386 source4/winbind/wb_samba3_cmd.c struct composite_context *ctx; ctx 392 source4/winbind/wb_samba3_cmd.c ctx = wb_cmd_lookupname_send(s3call, service, ctx 395 source4/winbind/wb_samba3_cmd.c NT_STATUS_HAVE_NO_MEMORY(ctx); ctx 398 source4/winbind/wb_samba3_cmd.c ctx->async.fn = lookupname_recv_sid; ctx 399 source4/winbind/wb_samba3_cmd.c ctx->async.private_data = s3call; ctx 404 source4/winbind/wb_samba3_cmd.c static void lookupname_recv_sid(struct composite_context *ctx) ctx 407 source4/winbind/wb_samba3_cmd.c talloc_get_type(ctx->async.private_data, ctx 412 source4/winbind/wb_samba3_cmd.c status = wb_cmd_lookupname_recv(ctx, s3call, &sid); ctx 428 source4/winbind/wb_samba3_cmd.c static void lookupsid_recv_name(struct composite_context *ctx); ctx 432 source4/winbind/wb_samba3_cmd.c struct composite_context *ctx; ctx 446 source4/winbind/wb_samba3_cmd.c ctx = wb_cmd_lookupsid_send(s3call, service, sid); ctx 447 source4/winbind/wb_samba3_cmd.c NT_STATUS_HAVE_NO_MEMORY(ctx); ctx 450 source4/winbind/wb_samba3_cmd.c ctx->async.fn = lookupsid_recv_name; ctx 451 source4/winbind/wb_samba3_cmd.c ctx->async.private_data = s3call; ctx 456 source4/winbind/wb_samba3_cmd.c static void lookupsid_recv_name(struct composite_context *ctx) ctx 459 source4/winbind/wb_samba3_cmd.c talloc_get_type(ctx->async.private_data, ctx 464 source4/winbind/wb_samba3_cmd.c status = wb_cmd_lookupsid_recv(ctx, s3call, &sid); ctx 487 source4/winbind/wb_samba3_cmd.c static void pam_auth_crap_recv(struct composite_context *ctx); ctx 491 source4/winbind/wb_samba3_cmd.c struct composite_context *ctx; ctx 505 source4/winbind/wb_samba3_cmd.c ctx = wb_cmd_pam_auth_crap_send( ctx 512 source4/winbind/wb_samba3_cmd.c NT_STATUS_HAVE_NO_MEMORY(ctx); ctx 514 source4/winbind/wb_samba3_cmd.c ctx->async.fn = pam_auth_crap_recv; ctx 515 source4/winbind/wb_samba3_cmd.c ctx->async.private_data = s3call; ctx 520 source4/winbind/wb_samba3_cmd.c static void pam_auth_crap_recv(struct composite_context *ctx) ctx 523 source4/winbind/wb_samba3_cmd.c talloc_get_type(ctx->async.private_data, ctx 531 source4/winbind/wb_samba3_cmd.c status = wb_cmd_pam_auth_crap_recv(ctx, s3call, &info3, ctx 568 source4/winbind/wb_samba3_cmd.c static void pam_auth_recv(struct composite_context *ctx); ctx 572 source4/winbind/wb_samba3_cmd.c struct composite_context *ctx; ctx 594 source4/winbind/wb_samba3_cmd.c ctx = wb_cmd_pam_auth_send(s3call, service, credentials); ctx 595 source4/winbind/wb_samba3_cmd.c NT_STATUS_HAVE_NO_MEMORY(ctx); ctx 597 source4/winbind/wb_samba3_cmd.c ctx->async.fn = pam_auth_recv; ctx 598 source4/winbind/wb_samba3_cmd.c ctx->async.private_data = s3call; ctx 603 source4/winbind/wb_samba3_cmd.c static void pam_auth_recv(struct composite_context *ctx) ctx 606 source4/winbind/wb_samba3_cmd.c talloc_get_type(ctx->async.private_data, ctx 610 source4/winbind/wb_samba3_cmd.c status = wb_cmd_pam_auth_recv(ctx); ctx 622 source4/winbind/wb_samba3_cmd.c static void list_trustdom_recv_doms(struct composite_context *ctx); ctx 626 source4/winbind/wb_samba3_cmd.c struct composite_context *ctx; ctx 632 source4/winbind/wb_samba3_cmd.c ctx = wb_cmd_list_trustdoms_send(s3call, service); ctx 633 source4/winbind/wb_samba3_cmd.c NT_STATUS_HAVE_NO_MEMORY(ctx); ctx 635 source4/winbind/wb_samba3_cmd.c ctx->async.fn = list_trustdom_recv_doms; ctx 636 source4/winbind/wb_samba3_cmd.c ctx->async.private_data = s3call; ctx 641 source4/winbind/wb_samba3_cmd.c static void list_trustdom_recv_doms(struct composite_context *ctx) ctx 644 source4/winbind/wb_samba3_cmd.c talloc_get_type(ctx->async.private_data, ctx 651 source4/winbind/wb_samba3_cmd.c status = wb_cmd_list_trustdoms_recv(ctx, s3call, &num_domains, ctx 684 source4/winbind/wb_samba3_cmd.c static void list_groups_recv(struct composite_context *ctx); ctx 688 source4/winbind/wb_samba3_cmd.c struct composite_context *ctx; ctx 693 source4/winbind/wb_samba3_cmd.c ctx = wb_cmd_list_groups_send(s3call, service, ctx 695 source4/winbind/wb_samba3_cmd.c NT_STATUS_HAVE_NO_MEMORY(ctx); ctx 697 source4/winbind/wb_samba3_cmd.c ctx->async.fn = list_groups_recv; ctx 698 source4/winbind/wb_samba3_cmd.c ctx->async.private_data = s3call; ctx 703 source4/winbind/wb_samba3_cmd.c static void list_groups_recv(struct composite_context *ctx) ctx 706 source4/winbind/wb_samba3_cmd.c ctx->async.private_data, ctx 714 source4/winbind/wb_samba3_cmd.c status = wb_cmd_list_groups_recv(ctx, s3call, &extra_data_len, ctx 730 source4/winbind/wb_samba3_cmd.c static void list_users_recv(struct composite_context *ctx); ctx 734 source4/winbind/wb_samba3_cmd.c struct composite_context *ctx; ctx 740 source4/winbind/wb_samba3_cmd.c ctx = wb_cmd_list_users_send(s3call, service, ctx 742 source4/winbind/wb_samba3_cmd.c NT_STATUS_HAVE_NO_MEMORY(ctx); ctx 744 source4/winbind/wb_samba3_cmd.c ctx->async.fn = list_users_recv; ctx 745 source4/winbind/wb_samba3_cmd.c ctx->async.private_data = s3call; ctx 750 source4/winbind/wb_samba3_cmd.c static void list_users_recv(struct composite_context *ctx) ctx 753 source4/winbind/wb_samba3_cmd.c talloc_get_type(ctx->async.private_data, ctx 761 source4/winbind/wb_samba3_cmd.c status = wb_cmd_list_users_recv(ctx, s3call, &extra_data_len, ctx 777 source4/winbind/wb_samba3_cmd.c static void getpwnam_recv(struct composite_context *ctx); ctx 781 source4/winbind/wb_samba3_cmd.c struct composite_context *ctx; ctx 787 source4/winbind/wb_samba3_cmd.c ctx = wb_cmd_getpwnam_send(s3call, service, ctx 789 source4/winbind/wb_samba3_cmd.c NT_STATUS_HAVE_NO_MEMORY(ctx); ctx 791 source4/winbind/wb_samba3_cmd.c ctx->async.fn = getpwnam_recv; ctx 792 source4/winbind/wb_samba3_cmd.c ctx->async.private_data = s3call; ctx 797 source4/winbind/wb_samba3_cmd.c static void getpwnam_recv(struct composite_context *ctx) ctx 800 source4/winbind/wb_samba3_cmd.c talloc_get_type(ctx->async.private_data, ctx 807 source4/winbind/wb_samba3_cmd.c status = wb_cmd_getpwnam_recv(ctx, s3call, &pw); ctx 814 source4/winbind/wb_samba3_cmd.c static void getpwuid_recv(struct composite_context *ctx); ctx 818 source4/winbind/wb_samba3_cmd.c struct composite_context *ctx; ctx 823 source4/winbind/wb_samba3_cmd.c ctx = wb_cmd_getpwuid_send(s3call, service, ctx 825 source4/winbind/wb_samba3_cmd.c NT_STATUS_HAVE_NO_MEMORY(ctx); ctx 827 source4/winbind/wb_samba3_cmd.c ctx->async.fn = getpwuid_recv; ctx 828 source4/winbind/wb_samba3_cmd.c ctx->async.private_data = s3call; ctx 833 source4/winbind/wb_samba3_cmd.c static void getpwuid_recv(struct composite_context *ctx) ctx 836 source4/winbind/wb_samba3_cmd.c talloc_get_type(ctx->async.private_data, ctx 843 source4/winbind/wb_samba3_cmd.c status = wb_cmd_getpwuid_recv(ctx, s3call, &pw); ctx 850 source4/winbind/wb_samba3_cmd.c static void setpwent_recv(struct composite_context *ctx); ctx 854 source4/winbind/wb_samba3_cmd.c struct composite_context *ctx; ctx 859 source4/winbind/wb_samba3_cmd.c ctx = wb_cmd_setpwent_send(s3call, service); ctx 860 source4/winbind/wb_samba3_cmd.c NT_STATUS_HAVE_NO_MEMORY(ctx); ctx 862 source4/winbind/wb_samba3_cmd.c ctx->async.fn = setpwent_recv; ctx 863 source4/winbind/wb_samba3_cmd.c ctx->async.private_data = s3call; ctx 868 source4/winbind/wb_samba3_cmd.c static void setpwent_recv(struct composite_context *ctx) ctx 871 source4/winbind/wb_samba3_cmd.c talloc_get_type(ctx->async.private_data, ctx 878 source4/winbind/wb_samba3_cmd.c status = wb_cmd_setpwent_recv(ctx, s3call->wbconn, &pwent); ctx 886 source4/winbind/wb_samba3_cmd.c static void getpwent_recv(struct composite_context *ctx); ctx 890 source4/winbind/wb_samba3_cmd.c struct composite_context *ctx; ctx 902 source4/winbind/wb_samba3_cmd.c ctx = wb_cmd_getpwent_send(s3call, service, pwent, ctx 904 source4/winbind/wb_samba3_cmd.c NT_STATUS_HAVE_NO_MEMORY(ctx); ctx 906 source4/winbind/wb_samba3_cmd.c ctx->async.fn = getpwent_recv; ctx 907 source4/winbind/wb_samba3_cmd.c ctx->async.private_data = s3call; ctx 912 source4/winbind/wb_samba3_cmd.c static void getpwent_recv(struct composite_context *ctx) ctx 915 source4/winbind/wb_samba3_cmd.c talloc_get_type(ctx->async.private_data, ctx 923 source4/winbind/wb_samba3_cmd.c status = wb_cmd_getpwent_recv(ctx, s3call, &pw, &num_users); ctx 950 source4/winbind/wb_samba3_cmd.c static void getgrnam_recv(struct composite_context *ctx); ctx 954 source4/winbind/wb_samba3_cmd.c struct composite_context *ctx; ctx 960 source4/winbind/wb_samba3_cmd.c ctx = wb_cmd_getgrnam_send(s3call, service, ctx 962 source4/winbind/wb_samba3_cmd.c NT_STATUS_HAVE_NO_MEMORY(ctx); ctx 964 source4/winbind/wb_samba3_cmd.c ctx->async.fn = getgrnam_recv; ctx 965 source4/winbind/wb_samba3_cmd.c ctx->async.private_data = s3call; ctx 970 source4/winbind/wb_samba3_cmd.c static void getgrnam_recv(struct composite_context *ctx) ctx 973 source4/winbind/wb_samba3_cmd.c talloc_get_type(ctx->async.private_data, ctx 980 source4/winbind/wb_samba3_cmd.c status = wb_cmd_getgrnam_recv(ctx, s3call, &gr); ctx 987 source4/winbind/wb_samba3_cmd.c static void getgrgid_recv(struct composite_context *ctx); ctx 991 source4/winbind/wb_samba3_cmd.c struct composite_context *ctx; ctx 996 source4/winbind/wb_samba3_cmd.c ctx = wb_cmd_getgrgid_send(s3call, service, ctx 998 source4/winbind/wb_samba3_cmd.c NT_STATUS_HAVE_NO_MEMORY(ctx); ctx 1000 source4/winbind/wb_samba3_cmd.c ctx->async.fn = getgrgid_recv; ctx 1001 source4/winbind/wb_samba3_cmd.c ctx->async.private_data = s3call; ctx 1006 source4/winbind/wb_samba3_cmd.c static void getgrgid_recv(struct composite_context *ctx) ctx 1009 source4/winbind/wb_samba3_cmd.c talloc_get_type(ctx->async.private_data, ctx 1016 source4/winbind/wb_samba3_cmd.c status = wb_cmd_getgrgid_recv(ctx, s3call, &gr); ctx 1051 source4/winbind/wb_samba3_cmd.c static void sid2uid_recv(struct composite_context *ctx); ctx 1055 source4/winbind/wb_samba3_cmd.c struct composite_context *ctx; ctx 1065 source4/winbind/wb_samba3_cmd.c ctx = wb_sid2uid_send(s3call, service, sid); ctx 1066 source4/winbind/wb_samba3_cmd.c NT_STATUS_HAVE_NO_MEMORY(ctx); ctx 1068 source4/winbind/wb_samba3_cmd.c ctx->async.fn = sid2uid_recv; ctx 1069 source4/winbind/wb_samba3_cmd.c ctx->async.private_data = s3call; ctx 1075 source4/winbind/wb_samba3_cmd.c static void sid2uid_recv(struct composite_context *ctx) ctx 1078 source4/winbind/wb_samba3_cmd.c talloc_get_type(ctx->async.private_data, ctx 1084 source4/winbind/wb_samba3_cmd.c status = wb_sid2uid_recv(ctx, &s3call->response.data.uid); ctx 1089 source4/winbind/wb_samba3_cmd.c static void sid2gid_recv(struct composite_context *ctx); ctx 1093 source4/winbind/wb_samba3_cmd.c struct composite_context *ctx; ctx 1103 source4/winbind/wb_samba3_cmd.c ctx = wb_sid2gid_send(s3call, service, sid); ctx 1104 source4/winbind/wb_samba3_cmd.c NT_STATUS_HAVE_NO_MEMORY(ctx); ctx 1106 source4/winbind/wb_samba3_cmd.c ctx->async.fn = sid2gid_recv; ctx 1107 source4/winbind/wb_samba3_cmd.c ctx->async.private_data = s3call; ctx 1113 source4/winbind/wb_samba3_cmd.c static void sid2gid_recv(struct composite_context *ctx) ctx 1116 source4/winbind/wb_samba3_cmd.c talloc_get_type(ctx->async.private_data, ctx 1122 source4/winbind/wb_samba3_cmd.c status = wb_sid2gid_recv(ctx, &s3call->response.data.gid); ctx 1127 source4/winbind/wb_samba3_cmd.c static void uid2sid_recv(struct composite_context *ctx); ctx 1131 source4/winbind/wb_samba3_cmd.c struct composite_context *ctx; ctx 1137 source4/winbind/wb_samba3_cmd.c ctx = wb_uid2sid_send(s3call, service, s3call->request.data.uid); ctx 1138 source4/winbind/wb_samba3_cmd.c NT_STATUS_HAVE_NO_MEMORY(ctx); ctx 1140 source4/winbind/wb_samba3_cmd.c ctx->async.fn = uid2sid_recv; ctx 1141 source4/winbind/wb_samba3_cmd.c ctx->async.private_data = s3call; ctx 1147 source4/winbind/wb_samba3_cmd.c static void uid2sid_recv(struct composite_context *ctx) ctx 1150 source4/winbind/wb_samba3_cmd.c talloc_get_type(ctx->async.private_data, ctx 1158 source4/winbind/wb_samba3_cmd.c status = wb_uid2sid_recv(ctx, s3call, &sid); ctx 1175 source4/winbind/wb_samba3_cmd.c static void gid2sid_recv(struct composite_context *ctx); ctx 1179 source4/winbind/wb_samba3_cmd.c struct composite_context *ctx; ctx 1185 source4/winbind/wb_samba3_cmd.c ctx = wb_gid2sid_send(s3call, service, s3call->request.data.gid); ctx 1186 source4/winbind/wb_samba3_cmd.c NT_STATUS_HAVE_NO_MEMORY(ctx); ctx 1188 source4/winbind/wb_samba3_cmd.c ctx->async.fn = gid2sid_recv; ctx 1189 source4/winbind/wb_samba3_cmd.c ctx->async.private_data = s3call; ctx 1195 source4/winbind/wb_samba3_cmd.c static void gid2sid_recv(struct composite_context *ctx) ctx 1198 source4/winbind/wb_samba3_cmd.c talloc_get_type(ctx->async.private_data, ctx 1206 source4/winbind/wb_samba3_cmd.c status = wb_gid2sid_recv(ctx, s3call, &sid); ctx 65 source4/winbind/wb_samba3_protocol.c call->event_ctx = call->wbconn->conn->event.ctx; ctx 76 source4/winbind/wb_server.c packet_set_event_context(wbconn->packet, conn->event.ctx); ctx 48 source4/winbind/wb_sid2domain.c struct composite_context *ctx; ctx 55 source4/winbind/wb_sid2domain.c static void sid2domain_recv_dom_info(struct composite_context *ctx); ctx 56 source4/winbind/wb_sid2domain.c static void sid2domain_recv_name(struct composite_context *ctx); ctx 57 source4/winbind/wb_sid2domain.c static void sid2domain_recv_trusted_dom_info(struct composite_context *ctx); ctx 58 source4/winbind/wb_sid2domain.c static void sid2domain_recv_init(struct composite_context *ctx); ctx 64 source4/winbind/wb_sid2domain.c struct composite_context *result, *ctx; ctx 72 source4/winbind/wb_sid2domain.c state->ctx = result; ctx 88 source4/winbind/wb_sid2domain.c ctx = wb_get_dom_info_send(state, service, lp_workgroup(service->task->lp_ctx), ctx 90 source4/winbind/wb_sid2domain.c if (ctx == NULL) goto failed; ctx 91 source4/winbind/wb_sid2domain.c ctx->async.fn = sid2domain_recv_dom_info; ctx 92 source4/winbind/wb_sid2domain.c ctx->async.private_data = state; ctx 96 source4/winbind/wb_sid2domain.c ctx = wb_cmd_lookupsid_send(state, service, state->sid); ctx 97 source4/winbind/wb_sid2domain.c if (ctx == NULL) goto failed; ctx 98 source4/winbind/wb_sid2domain.c composite_continue(result, ctx, sid2domain_recv_name, state); ctx 108 source4/winbind/wb_sid2domain.c static void sid2domain_recv_dom_info(struct composite_context *ctx) ctx 111 source4/winbind/wb_sid2domain.c talloc_get_type(ctx->async.private_data, ctx 115 source4/winbind/wb_sid2domain.c state->ctx->status = wb_get_dom_info_recv(ctx, state, &info); ctx 116 source4/winbind/wb_sid2domain.c if (!composite_is_ok(state->ctx)) return; ctx 118 source4/winbind/wb_sid2domain.c ctx = wb_init_domain_send(state, state->service, info); ctx 120 source4/winbind/wb_sid2domain.c composite_continue(state->ctx, ctx, sid2domain_recv_init, state); ctx 123 source4/winbind/wb_sid2domain.c static void sid2domain_recv_name(struct composite_context *ctx) ctx 126 source4/winbind/wb_sid2domain.c talloc_get_type(ctx->async.private_data, ctx 130 source4/winbind/wb_sid2domain.c state->ctx->status = wb_cmd_lookupsid_recv(ctx, state, &name); ctx 131 source4/winbind/wb_sid2domain.c if (!composite_is_ok(state->ctx)) return; ctx 134 source4/winbind/wb_sid2domain.c composite_error(state->ctx, NT_STATUS_NO_SUCH_DOMAIN); ctx 142 source4/winbind/wb_sid2domain.c ctx = wb_trusted_dom_info_send(state, state->service, name->domain, ctx 145 source4/winbind/wb_sid2domain.c composite_continue(state->ctx, ctx, sid2domain_recv_trusted_dom_info, ctx 149 source4/winbind/wb_sid2domain.c static void sid2domain_recv_trusted_dom_info(struct composite_context *ctx) ctx 152 source4/winbind/wb_sid2domain.c talloc_get_type(ctx->async.private_data, ctx 156 source4/winbind/wb_sid2domain.c state->ctx->status = wb_trusted_dom_info_recv(ctx, state, &info); ctx 157 source4/winbind/wb_sid2domain.c if (!composite_is_ok(state->ctx)) return; ctx 159 source4/winbind/wb_sid2domain.c ctx = wb_init_domain_send(state, state->service, info); ctx 161 source4/winbind/wb_sid2domain.c composite_continue(state->ctx, ctx, sid2domain_recv_init, state); ctx 164 source4/winbind/wb_sid2domain.c static void sid2domain_recv_init(struct composite_context *ctx) ctx 167 source4/winbind/wb_sid2domain.c talloc_get_type(ctx->async.private_data, ctx 171 source4/winbind/wb_sid2domain.c state->ctx->status = wb_init_domain_recv(ctx, state, ctx 173 source4/winbind/wb_sid2domain.c if (!composite_is_ok(state->ctx)) { ctx 188 source4/winbind/wb_sid2domain.c composite_done(state->ctx); ctx 191 source4/winbind/wb_sid2domain.c NTSTATUS wb_sid2domain_recv(struct composite_context *ctx, ctx 194 source4/winbind/wb_sid2domain.c NTSTATUS status = composite_wait(ctx); ctx 197 source4/winbind/wb_sid2domain.c talloc_get_type(ctx->private_data, ctx 201 source4/winbind/wb_sid2domain.c talloc_free(ctx); ctx 31 source4/winbind/wb_sid2gid.c struct composite_context *ctx; ctx 36 source4/winbind/wb_sid2gid.c static void sid2gid_recv_gid(struct composite_context *ctx); ctx 41 source4/winbind/wb_sid2gid.c struct composite_context *result, *ctx; ctx 53 source4/winbind/wb_sid2gid.c state->ctx = result; ctx 63 source4/winbind/wb_sid2gid.c ctx = wb_sids2xids_send(result, service, 1, ids); ctx 64 source4/winbind/wb_sid2gid.c if (composite_nomem(ctx, result)) return result; ctx 66 source4/winbind/wb_sid2gid.c composite_continue(result, ctx, sid2gid_recv_gid, state); ctx 70 source4/winbind/wb_sid2gid.c static void sid2gid_recv_gid(struct composite_context *ctx) ctx 72 source4/winbind/wb_sid2gid.c struct sid2gid_state *state = talloc_get_type(ctx->async.private_data, ctx 77 source4/winbind/wb_sid2gid.c state->ctx->status = wb_sids2xids_recv(ctx, &ids); ctx 78 source4/winbind/wb_sid2gid.c if (!composite_is_ok(state->ctx)) return; ctx 81 source4/winbind/wb_sid2gid.c composite_error(state->ctx, ids->status); ctx 88 source4/winbind/wb_sid2gid.c composite_done(state->ctx); ctx 90 source4/winbind/wb_sid2gid.c composite_error(state->ctx, NT_STATUS_INVALID_SID); ctx 94 source4/winbind/wb_sid2gid.c NTSTATUS wb_sid2gid_recv(struct composite_context *ctx, gid_t *gid) ctx 96 source4/winbind/wb_sid2gid.c NTSTATUS status = composite_wait(ctx); ctx 102 source4/winbind/wb_sid2gid.c talloc_get_type(ctx->private_data, ctx 106 source4/winbind/wb_sid2gid.c talloc_free(ctx); ctx 31 source4/winbind/wb_sid2uid.c struct composite_context *ctx; ctx 36 source4/winbind/wb_sid2uid.c static void sid2uid_recv_uid(struct composite_context *ctx); ctx 41 source4/winbind/wb_sid2uid.c struct composite_context *result, *ctx; ctx 53 source4/winbind/wb_sid2uid.c state->ctx = result; ctx 63 source4/winbind/wb_sid2uid.c ctx = wb_sids2xids_send(result, service, 1, ids); ctx 64 source4/winbind/wb_sid2uid.c if (composite_nomem(ctx, result)) return result; ctx 66 source4/winbind/wb_sid2uid.c composite_continue(result, ctx, sid2uid_recv_uid, state); ctx 70 source4/winbind/wb_sid2uid.c static void sid2uid_recv_uid(struct composite_context *ctx) ctx 72 source4/winbind/wb_sid2uid.c struct sid2uid_state *state = talloc_get_type(ctx->async.private_data, ctx 77 source4/winbind/wb_sid2uid.c state->ctx->status = wb_sids2xids_recv(ctx, &ids); ctx 78 source4/winbind/wb_sid2uid.c if (!composite_is_ok(state->ctx)) return; ctx 81 source4/winbind/wb_sid2uid.c composite_error(state->ctx, ids->status); ctx 88 source4/winbind/wb_sid2uid.c composite_done(state->ctx); ctx 90 source4/winbind/wb_sid2uid.c composite_error(state->ctx, NT_STATUS_INVALID_SID); ctx 94 source4/winbind/wb_sid2uid.c NTSTATUS wb_sid2uid_recv(struct composite_context *ctx, uid_t *uid) ctx 96 source4/winbind/wb_sid2uid.c NTSTATUS status = composite_wait(ctx); ctx 102 source4/winbind/wb_sid2uid.c talloc_get_type(ctx->private_data, ctx 106 source4/winbind/wb_sid2uid.c talloc_free(ctx); ctx 31 source4/winbind/wb_sids2xids.c struct composite_context *ctx; ctx 52 source4/winbind/wb_sids2xids.c state->ctx = result; ctx 58 source4/winbind/wb_sids2xids.c state->ctx->status = idmap_sids_to_xids(service->idmap_ctx, mem_ctx, ctx 60 source4/winbind/wb_sids2xids.c if (!composite_is_ok(state->ctx)) return result; ctx 62 source4/winbind/wb_sids2xids.c composite_done(state->ctx); ctx 66 source4/winbind/wb_sids2xids.c NTSTATUS wb_sids2xids_recv(struct composite_context *ctx, ctx 69 source4/winbind/wb_sids2xids.c NTSTATUS status = composite_wait(ctx); ctx 70 source4/winbind/wb_sids2xids.c struct sids2xids_state *state = talloc_get_type(ctx->private_data, ctx 77 source4/winbind/wb_sids2xids.c talloc_free(ctx); ctx 31 source4/winbind/wb_uid2sid.c struct composite_context *ctx; ctx 36 source4/winbind/wb_uid2sid.c static void uid2sid_recv_sid(struct composite_context *ctx); ctx 41 source4/winbind/wb_uid2sid.c struct composite_context *result, *ctx; ctx 54 source4/winbind/wb_uid2sid.c state->ctx = result; ctx 68 source4/winbind/wb_uid2sid.c ctx = wb_xids2sids_send(result, service, 1, ids); ctx 69 source4/winbind/wb_uid2sid.c if (composite_nomem(ctx, result)) return result; ctx 71 source4/winbind/wb_uid2sid.c composite_continue(result, ctx, uid2sid_recv_sid, state); ctx 75 source4/winbind/wb_uid2sid.c static void uid2sid_recv_sid(struct composite_context *ctx) ctx 77 source4/winbind/wb_uid2sid.c struct uid2sid_state *state = talloc_get_type(ctx->async.private_data, ctx 81 source4/winbind/wb_uid2sid.c state->ctx->status = wb_xids2sids_recv(ctx, &ids); ctx 82 source4/winbind/wb_uid2sid.c if (!composite_is_ok(state->ctx)) return; ctx 85 source4/winbind/wb_uid2sid.c composite_error(state->ctx, ids->status); ctx 91 source4/winbind/wb_uid2sid.c composite_done(state->ctx); ctx 94 source4/winbind/wb_uid2sid.c NTSTATUS wb_uid2sid_recv(struct composite_context *ctx, TALLOC_CTX *mem_ctx, ctx 97 source4/winbind/wb_uid2sid.c NTSTATUS status = composite_wait(ctx); ctx 103 source4/winbind/wb_uid2sid.c talloc_get_type(ctx->private_data, ctx 107 source4/winbind/wb_uid2sid.c talloc_free(ctx); ctx 31 source4/winbind/wb_xids2sids.c struct composite_context *ctx; ctx 52 source4/winbind/wb_xids2sids.c state->ctx = result; ctx 58 source4/winbind/wb_xids2sids.c state->ctx->status = idmap_xids_to_sids(service->idmap_ctx, mem_ctx, ctx 60 source4/winbind/wb_xids2sids.c if (!composite_is_ok(state->ctx)) return result; ctx 62 source4/winbind/wb_xids2sids.c composite_done(state->ctx); ctx 66 source4/winbind/wb_xids2sids.c NTSTATUS wb_xids2sids_recv(struct composite_context *ctx, ctx 69 source4/winbind/wb_xids2sids.c NTSTATUS status = composite_wait(ctx); ctx 70 source4/winbind/wb_xids2sids.c struct xids2sids_state *state = talloc_get_type(ctx->private_data, ctx 77 source4/winbind/wb_xids2sids.c talloc_free(ctx); ctx 368 source4/wrepl_server/wrepl_in_call.c wrepl_in->conn->event.ctx, ctx 177 source4/wrepl_server/wrepl_in_connection.c packet_set_event_context(wreplconn->packet, conn->event.ctx); ctx 254 source4/wrepl_server/wrepl_in_connection.c packet_set_event_context(wrepl_in->packet, conn->event.ctx);