summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormouring <mouring>2000-12-29 21:21:26 +0000
committermouring <mouring>2000-12-29 21:21:26 +0000
commit89a2ce0fa13d4325677646931a8146be7df70c8d (patch)
treebd9ad951b11dfd30c3c74f6dbb545cb75544ba84
parenta90c129ff515908d963d90042458236e2b377f76 (diff)
downloadopenssh-89a2ce0fa13d4325677646931a8146be7df70c8d.tar.gz
- (bal) if no MAXHOSTNAMELEN is defined. Default to 64 character defination.
Suggested by Christian Kurz <shorty@debain.org>
-rw-r--r--ChangeLog2
-rw-r--r--defines.h4
2 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index a85ee6e5..94412d5f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -4,6 +4,8 @@
[ssh-keygen.c]
enable 'ssh-keygen -l -f ~/.ssh/{authorized_keys,known_hosts}{,2}
- (bal) Resynced CVS ID with OpenBSD for channel.c and uidswap.c
+ - (bal) if no MAXHOSTNAMELEN is defined. Default to 64 character defination.
+ Suggested by Christian Kurz <shorty@debain.org>
20001229
- (bal) Fixed spelling of 'authorized_keys' in ssh-copy-id.1 by Christian
diff --git a/defines.h b/defines.h
index 4c3941ca..9460905a 100644
--- a/defines.h
+++ b/defines.h
@@ -78,6 +78,10 @@ enum
# endif /* PATH_MAX */
#endif /* MAXPATHLEN */
+#ifndef MAXHOSTNAMELEN
+# define MAXHOSTNAMELEN 64
+#endif /* MAXHOSTNAMELEN */
+
#ifndef STDIN_FILENO
# define STDIN_FILENO 0
#endif