NULL);
#endif
- s = ctrl_getset(b, "Connection", "identity",
- "Logical name of remote host");
- ctrl_editbox(s, "Logical name of remote host (e.g. for SSH key lookup):",
- 'm', 100,
- HELPCTX(connection_loghost),
- dlg_stdeditbox_handler, I(offsetof(Config,loghost)),
- I(sizeof(((Config *)0)->loghost)));
+ {
+ char *label = backend_from_proto(PROT_SSH) ?
+ "Logical name of remote host (e.g. for SSH key lookup):" :
+ "Logical name of remote host:";
+ s = ctrl_getset(b, "Connection", "identity",
+ "Logical name of remote host");
+ ctrl_editbox(s, label, 'm', 100,
+ HELPCTX(connection_loghost),
+ dlg_stdeditbox_handler, I(offsetof(Config,loghost)),
+ I(sizeof(((Config *)0)->loghost)));
+ }
}
/*
* $XAUTHORITY is not reliable on Windows, so we provide a
* means to override it.
*/
- s = ctrl_getset(b, "Connection/SSH/X11", "x11", "X11 forwarding");
- ctrl_filesel(s, "X authority file for local display", 't',
- NULL, FALSE, "Select X authority file",
- HELPCTX(ssh_tunnels_xauthority),
- dlg_stdfilesel_handler, I(offsetof(Config, xauthfile)));
+ if (backend_from_proto(PROT_SSH)) {
+ s = ctrl_getset(b, "Connection/SSH/X11", "x11", "X11 forwarding");
+ ctrl_filesel(s, "X authority file for local display", 't',
+ NULL, FALSE, "Select X authority file",
+ HELPCTX(ssh_tunnels_xauthority),
+ dlg_stdfilesel_handler, I(offsetof(Config, xauthfile)));
+ }
}