Lines Matching refs:tmp_ctx
36 TALLOC_CTX *tmp_ctx;
42 tmp_ctx = talloc_new(NULL);
43 if (!tmp_ctx) {
47 name = talloc_strdup(tmp_ctx, ent->name);
59 result = talloc_strdup(tmp_ctx, "");
65 ret = sss_ssh_format_pubkey(tmp_ctx, &ent->pubkeys[i], &pubkey);
82 talloc_free(tmp_ctx);
91 TALLOC_CTX *tmp_ctx;
97 tmp_ctx = talloc_new(NULL);
98 if (!tmp_ctx) {
102 result = talloc_strdup(tmp_ctx, "");
108 ret = sss_ssh_format_pubkey(tmp_ctx, &ent->pubkeys[i], &pubkey);
132 saltstr = sss_base64_encode(tmp_ctx, salt, SSS_SHA1_LENGTH);
138 hashstr = sss_base64_encode(tmp_ctx, hash, SSS_SHA1_LENGTH);
160 talloc_free(tmp_ctx);
171 TALLOC_CTX *tmp_ctx;
189 tmp_ctx = talloc_new(NULL);
190 if (tmp_ctx == NULL) {
204 ret = sysdb_get_ssh_known_hosts(tmp_ctx, dom, now, attrs,
215 ret = sss_ssh_make_ent(tmp_ctx, hosts[i], &ent);
249 talloc_free(tmp_ctx);
261 TALLOC_CTX *tmp_ctx;
267 tmp_ctx = talloc_new(NULL);
268 if (tmp_ctx == NULL) {
285 filename = talloc_strdup(tmp_ctx, SSS_SSH_KNOWN_HOSTS_TEMP_TMPL);
291 fd = sss_unique_file_ex(tmp_ctx, filename, 0133, &ret);
322 talloc_free(tmp_ctx);