summaryrefslogtreecommitdiff
path: root/misc.h
diff options
context:
space:
mode:
authordtucker@openbsd.org <dtucker@openbsd.org>2020-05-29 04:25:40 +0000
committerDamien Miller <djm@mindrot.org>2020-05-29 15:46:47 +1000
commit4a1b46e6d032608b7ec00ae51c4e25b82f460b05 (patch)
tree7f345cd0424c5b6f7eff6e5d0f1b52747a960f9e /misc.h
parentc9bab1d3a9e183cef3a3412f57880a0374cc8cb2 (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.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/misc.h b/misc.h
index 8e4234b65..7e9f5ac19 100644
--- a/misc.h
+++ b/misc.h
@@ -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 **);
68long convtime(const char *); 68long convtime(const char *);
69const char *fmt_timeframe(time_t t); 69const char *fmt_timeframe(time_t t);
70char *tilde_expand_filename(const char *, uid_t); 70char *tilde_expand_filename(const char *, uid_t);
71
72char *dollar_expand(int *, const char *string);
71char *percent_expand(const char *, ...) __attribute__((__sentinel__)); 73char *percent_expand(const char *, ...) __attribute__((__sentinel__));
74char *percent_dollar_expand(const char *, ...) __attribute__((__sentinel__));
72char *tohex(const void *, size_t); 75char *tohex(const void *, size_t);
73void xextendf(char **s, const char *sep, const char *fmt, ...) 76void 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)));