diff options
author | djm@openbsd.org <djm@openbsd.org> | 2018-06-09 05:01:12 +0200 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2018-06-09 05:11:00 +0200 |
commit | 7082bb58a2eb878d23ec674587c742e5e9673c36 (patch) | |
tree | ca7c8ddb616358d96279fdbfd5986328f48a1821 /readconf.h | |
parent | upstream: reorder child environment preparation so that variables (diff) | |
download | openssh-7082bb58a2eb878d23ec674587c742e5e9673c36.tar.xz openssh-7082bb58a2eb878d23ec674587c742e5e9673c36.zip |
upstream: add a SetEnv directive to ssh_config that allows setting
environment variables for the remote session (subject to the server accepting
them)
refactor SendEnv to remove the arbitrary limit of variable names.
ok markus@
OpenBSD-Commit-ID: cfbb00d9b0e10c1ffff1d83424351fd961d1f2be
Diffstat (limited to 'readconf.h')
-rw-r--r-- | readconf.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/readconf.h b/readconf.h index f4d9e2b26..d8595f07e 100644 --- a/readconf.h +++ b/readconf.h @@ -1,4 +1,4 @@ -/* $OpenBSD: readconf.h,v 1.125 2018/02/23 02:34:33 djm Exp $ */ +/* $OpenBSD: readconf.h,v 1.126 2018/06/09 03:01:12 djm Exp $ */ /* * Author: Tatu Ylonen <ylo@cs.hut.fi> @@ -18,7 +18,6 @@ /* Data structure for representing option data. */ -#define MAX_SEND_ENV 256 #define SSH_MAX_HOSTS_FILES 32 #define MAX_CANON_DOMAINS 32 #define PATH_MAX_SUN (sizeof((struct sockaddr_un *)0)->sun_path) @@ -120,7 +119,9 @@ typedef struct { int server_alive_count_max; int num_send_env; - char *send_env[MAX_SEND_ENV]; + char **send_env; + int num_setenv; + char **setenv; char *control_path; int control_master; |