diff options
author | dtucker@openbsd.org <dtucker@openbsd.org> | 2020-05-29 04:25:40 +0000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2020-05-29 15:46:47 +1000 |
commit | 4a1b46e6d032608b7ec00ae51c4e25b82f460b05 (patch) | |
tree | 7f345cd0424c5b6f7eff6e5d0f1b52747a960f9e /misc.h | |
parent | c9bab1d3a9e183cef3a3412f57880a0374cc8cb2 (diff) |
upstream: Allow some keywords to expand shell-style ${ENV}
environment variables on the client side. The supported keywords are
CertificateFile, ControlPath, IdentityAgent and IdentityFile, plus
LocalForward and RemoteForward when used for Unix domain socket paths. This
would for example allow forwarding of Unix domain socket paths that change at
runtime. bz#3140, ok djm@
OpenBSD-Commit-ID: a4a2e801fc2d4df2fe0e58f50d9c81b03822dffa
Diffstat (limited to 'misc.h')
-rw-r--r-- | misc.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: misc.h,v 1.85 2020/05/26 01:06:52 djm Exp $ */ | 1 | /* $OpenBSD: misc.h,v 1.86 2020/05/29 04:25:40 dtucker Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * Author: Tatu Ylonen <ylo@cs.hut.fi> | 4 | * Author: Tatu Ylonen <ylo@cs.hut.fi> |
@@ -68,7 +68,10 @@ int parse_uri(const char *, const char *, char **, char **, int *, char **); | |||
68 | long convtime(const char *); | 68 | long convtime(const char *); |
69 | const char *fmt_timeframe(time_t t); | 69 | const char *fmt_timeframe(time_t t); |
70 | char *tilde_expand_filename(const char *, uid_t); | 70 | char *tilde_expand_filename(const char *, uid_t); |
71 | |||
72 | char *dollar_expand(int *, const char *string); | ||
71 | char *percent_expand(const char *, ...) __attribute__((__sentinel__)); | 73 | char *percent_expand(const char *, ...) __attribute__((__sentinel__)); |
74 | char *percent_dollar_expand(const char *, ...) __attribute__((__sentinel__)); | ||
72 | char *tohex(const void *, size_t); | 75 | char *tohex(const void *, size_t); |
73 | void xextendf(char **s, const char *sep, const char *fmt, ...) | 76 | void xextendf(char **s, const char *sep, const char *fmt, ...) |
74 | __attribute__((__format__ (printf, 3, 4))) __attribute__((__nonnull__ (3))); | 77 | __attribute__((__format__ (printf, 3, 4))) __attribute__((__nonnull__ (3))); |