diff options
author | Darren Tucker <dtucker@zip.com.au> | 2006-07-10 23:04:19 +1000 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2006-07-10 23:04:19 +1000 |
commit | da3455356100dbcb5d1ff9f0556386ca5f788795 (patch) | |
tree | 013d0f5e5bca486e4e72387d94980fc81d402a50 /misc.h | |
parent | 0f07707267fd3911bcf95b48125b522f9e222c64 (diff) |
- dtucker@cvs.openbsd.org 2006/07/10 12:46:51
[misc.c misc.h sshd.8 sshconnect.c]
Add port identifier to known_hosts for non-default ports, based originally
on a patch from Devin Nate in bz#910.
For any connection using the default port or using a HostKeyAlias the
format is unchanged, otherwise the host name or address is enclosed
within square brackets in the same format as sshd's ListenAddress.
Tested by many, ok markus@.
Diffstat (limited to 'misc.h')
-rw-r--r-- | misc.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: misc.h,v 1.32 2006/07/06 16:03:53 stevesk Exp $ */ | 1 | /* $OpenBSD: misc.h,v 1.33 2006/07/10 12:46:51 dtucker Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * Author: Tatu Ylonen <ylo@cs.hut.fi> | 4 | * Author: Tatu Ylonen <ylo@cs.hut.fi> |
@@ -28,6 +28,7 @@ int unset_nonblock(int); | |||
28 | void set_nodelay(int); | 28 | void set_nodelay(int); |
29 | int a2port(const char *); | 29 | int a2port(const char *); |
30 | int a2tun(const char *, int *); | 30 | int a2tun(const char *, int *); |
31 | char *put_host_port(const char *, u_short); | ||
31 | char *hpdelim(char **); | 32 | char *hpdelim(char **); |
32 | char *cleanhostname(char *); | 33 | char *cleanhostname(char *); |
33 | char *colon(char *); | 34 | char *colon(char *); |