aboutsummaryrefslogtreecommitdiff
path: root/sshconnect.h
diff options
context:
space:
mode:
Diffstat (limited to 'sshconnect.h')
-rw-r--r--sshconnect.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/sshconnect.h b/sshconnect.h
index 8b0466f299e3..308270160405 100644
--- a/sshconnect.h
+++ b/sshconnect.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: sshconnect.h,v 1.48 2024/04/30 02:10:49 djm Exp $ */
+/* $OpenBSD: sshconnect.h,v 1.49 2025/03/01 06:11:26 dtucker Exp $ */
/*
* Copyright (c) 2000 Markus Friedl. All rights reserved.
@@ -52,9 +52,8 @@ struct ssh;
struct hostkeys;
struct ssh_conn_info;
-/* default argument for client percent expansions */
-#define DEFAULT_CLIENT_PERCENT_EXPAND_ARGS(conn_info) \
- "C", conn_info->conn_hash_hex, \
+/* default argument for client percent expansions, minus remote user */
+#define DEFAULT_CLIENT_PERCENT_EXPAND_ARGS_NOUSER(conn_info) \
"L", conn_info->shorthost, \
"i", conn_info->uidstr, \
"k", conn_info->keyalias, \
@@ -63,10 +62,15 @@ struct ssh_conn_info;
"p", conn_info->portstr, \
"d", conn_info->homedir, \
"h", conn_info->remhost, \
- "r", conn_info->remuser, \
"u", conn_info->locuser, \
"j", conn_info->jmphost
+/* same plus remote user and hash which has user as a component */
+#define DEFAULT_CLIENT_PERCENT_EXPAND_ARGS(conn_info) \
+ DEFAULT_CLIENT_PERCENT_EXPAND_ARGS_NOUSER(conn_info), \
+ "C", conn_info->conn_hash_hex, \
+ "r", conn_info->remuser
+
int ssh_connect(struct ssh *, const char *, const char *,
struct addrinfo *, struct sockaddr_storage *, u_short,
int, int *, int);