Home
last modified time | relevance | path

Searched refs:env (Results 1 – 25 of 34) sorted by relevance

12

/openssh-portable/
H A Dsession.c901 if (strncmp(name, env[i], len) == 0 && env[i][len] == '=') in child_get_env()
998 env[0] = NULL; in do_setup_env()
1023 child_set_env(&env, &envsize, s->env[i].name, s->env[i].val); in do_setup_env()
1191 for (i = 0; env[i]; i++) in do_setup_env()
1194 return env; in do_setup_env()
1596 environ = env; in do_child()
2092 s->env = xrecallocarray(s->env, s->num_env, in session_env_req()
2443 if (s->env != NULL) { in session_close()
2445 free(s->env[i].name); in session_close()
2446 free(s->env[i].val); in session_close()
[all …]
H A Dauth-options.c215 free(opts->env[i]); in sshauthopt_free()
216 free(opts->env); in sshauthopt_free()
423 oarray = ret->env; in sshauthopt_parse()
424 if ((ret->env = recallocarray(ret->env, ret->nenv, in sshauthopt_parse()
430 ret->env[ret->nenv++] = opt; in sshauthopt_parse()
549 if (dup_strings(&ret->env, &ret->nenv, in sshauthopt_merge()
550 primary->env, primary->nenv) != 0) in sshauthopt_merge()
553 if (dup_strings(&ret->env, &ret->nenv, in sshauthopt_merge()
554 additional->env, additional->nenv) != 0) in sshauthopt_merge()
673 if (dup_strings(&ret->env, &ret->nenv, orig->env, orig->nenv) != 0 || in sshauthopt_copy()
[all …]
H A Dmisc.c2165 char **env; in child_set_env() local
2189 env = *envp; in child_set_env()
2191 for (i = 0; env[i]; i++) in child_set_env()
2192 if (strncmp(env[i], name, namelen) == 0 && env[i][namelen] == '=') in child_set_env()
2194 if (env[i]) { in child_set_env()
2196 free(env[i]); in child_set_env()
2204 env = (*envp) = xreallocarray(env, envsize, sizeof(char *)); in child_set_env()
2208 env[i + 1] = NULL; in child_set_env()
2526 char **env = NULL; in subprocess() local
2595 env = xcalloc(sizeof(*env), nenv); in subprocess()
[all …]
H A Dmux.c89 char **env; member
250 if ((cp = strchr(env, '=')) == NULL || cp == env) in env_permitted()
252 ret = snprintf(name, sizeof(name), "%.*s", (int)(cp - env), env); in env_permitted()
348 cctx->env = NULL; in mux_master_process_new_session()
361 free(cctx->env[j]); in mux_master_process_new_session()
362 free(cctx->env); in mux_master_process_new_session()
377 cctx->env = xreallocarray(cctx->env, env_len + 2, in mux_master_process_new_session()
407 free(cctx->env[j]); in mux_master_process_new_session()
408 free(cctx->env); in mux_master_process_new_session()
434 free(cctx->env); in mux_master_process_new_session()
[all …]
H A Dauth-options.h55 char **env; member
H A Dsession.h63 } *env; member
H A Dauth-pam.c335 char *env; in import_environments() local
371 if ((r = sshbuf_get_cstring(b, &env, NULL)) != 0) in import_environments()
374 if ((r = pam_putenv(sshpam_handle, env)) != PAM_SUCCESS) { in import_environments()
1258 free_pam_environment(char **env) in free_pam_environment() argument
1262 if (env == NULL) in free_pam_environment()
1265 for (envp = env; *envp; envp++) in free_pam_environment()
1267 free(env); in free_pam_environment()
/openssh-portable/regress/
H A Dputty-transfer.sh23 env HOME=$PWD ${PLINK} -load compression_$c -batch \
34 env HOME=$PWD ${PLINK} -load compression_$c \
H A Dkeys-command.sh58 env PATH=$PATH:/sbin/mekmitasdigoat \
74 env PATH=$PATH:/sbin/mekmitasdigoat \
H A Dauthinfo.sh8 env SSH_USER_AUTH=blah ${SSH} -F $OBJ/ssh_proxy x \
H A Dconnect-privsep.sh30 env MALLOC_OPTIONS="$m" ${SSH} -F $OBJ/ssh_proxy 999.999.999.999 true
H A Dputty-kex.sh17 env HOME=$PWD ${PLINK} -load kex_$k -batch -i ${OBJ}/putty.rsa2 true
H A Dputty-ciphers.sh18 env HOME=$PWD ${PLINK} -load cipher_$c -batch -i ${OBJ}/putty.rsa2 \
/openssh-portable/regress/unittests/bitmap/
H A DMakefile12 env ${TEST_ENV} ./${PROG}
/openssh-portable/regress/unittests/utf8/
H A DMakefile12 env ${TEST_ENV} ./${PROG}
/openssh-portable/contrib/
H A Dgnome-ssh-askpass2.c108 parse_env_hex_color(const char *env, GdkColor *c) in parse_env_hex_color() argument
115 if ((s = getenv(env)) == NULL) in parse_env_hex_color()
131 fprintf(stderr, "Invalid $%s - invalid hex color code\n", env); in parse_env_hex_color()
H A Dgnome-ssh-askpass3.c92 parse_env_hex_color(const char *env, GdkColor *c) in parse_env_hex_color() argument
99 if ((s = getenv(env)) == NULL) in parse_env_hex_color()
115 fprintf(stderr, "Invalid $%s - invalid hex color code\n", env); in parse_env_hex_color()
/openssh-portable/regress/unittests/match/
H A DMakefile14 env ${TEST_ENV} ./${PROG}
/openssh-portable/regress/unittests/conversion/
H A DMakefile14 env ${TEST_ENV} ./${PROG}
/openssh-portable/regress/unittests/misc/
H A DMakefile28 env ${TEST_ENV} ./${PROG}
/openssh-portable/regress/unittests/sshbuf/
H A DMakefile21 env ${TEST_ENV} ./${PROG} ${UNITTEST_ARGS}
/openssh-portable/.github/workflows/
H A Dupstream.yml11 env:
/openssh-portable/regress/unittests/sshsig/
H A DMakefile23 env ${TEST_ENV} ./${PROG} ${UNITTEST_ARGS} -d ${.CURDIR}/testdata
/openssh-portable/regress/unittests/authopt/
H A DMakefile25 env ${TEST_ENV} ./${PROG} -d ${.CURDIR}/testdata
/openssh-portable/regress/unittests/hostkeys/
H A DMakefile23 env ${TEST_ENV} ./${PROG} -d ${.CURDIR}/testdata

12