Merge from vendor branch TNF:
[pkgsrc.git] / security / ssh6 / patches / patch-bm
1 $NetBSD: patch-bm,v 1.1 1999/12/25 05:28:37 kim Exp $
2
3 --- README-IPv6.orig    Wed Dec 31 19:00:00 1969
4 +++ README-IPv6 Fri Dec 24 21:50:38 1999
5 @@ -0,0 +1,171 @@
6 +ssh-1.2.27-IPv6  version 1.5         KIKUCHI Takahiro <kick@kyoto.wide.ad.jp>
7 +
8 + * ssh-1.2.27-IPv6 can handle both IPv4 and IPv6.
9 +
10 +      To enable sshd/ssh to handle both IPv4 and IPv6,
11 +
12 +          ./configure --enable-ipv6
13 +
14 +      Otherwise sshd/ssh handle IPv4 only as same as original ssh.
15 +
16 + * You can have multiple ListenAddress lines in /etc/sshd_config.
17 +   It means that sshd can listen multiple addresses.
18 +
19 +      Example1: sshd will bind on these four adresses.
20 +
21 +           ListenAddress 202.249.17.50
22 +           ListenAddress 202.249.17.137
23 +           ListenAddress 3ffe:501:c0b::1
24 +           ListenAddress 3ffe:501:c0b:20:2a0:c9ff:fe3e:f5fc
25 +
26 +      Example2: as same as example1.
27 +                (Because bertemu.rcac.tdi.co.jp has these four addresses.)
28 +
29 +           ListenAddress bertemu.rcac.tdi.co.jp
30 +
31 +      Example3: sshd will bind on any address both IPv4 and IPv6.
32 +
33 +           ListenAddress ::
34 +           ListenAddress 0.0.0.0
35 +
36 +      Example4: as same as example3.
37 +
38 +           No ListenAddress line in /etc/sshd_config.
39 +
40 + * You don't mind whether the host has IPv4 or IPv6 address.
41 +   You can also specify using only IPv4 (or only IPv6).
42 +
43 +      Example1: ssh will try all IPv4 and IPv6 addresses that the host has.
44 +
45 +           ssh host
46 +
47 +      Example2: ssh will try all IPv4 addresses that the host has.
48 +
49 +           ssh -4 host
50 +
51 +      Example3: ssh will try all IPv6 addresses that the host has.
52 +
53 +           ssh -6 host
54 +
55 + * You can have multiple Port lines in /etc/sshd_config and -p options.
56 +   It means that sshd can listen multiple ports, not only port 22.
57 +
58 +      For example, you run sshd that listens port 22 and port 722,
59 +      and you can use port 22 for slogin and port 722 for scp.
60 +      It's useful if you have preference for interactive traffic in the router.
61 +
62 +      You can have "AnotherPort 722" line in /etc/ssh_config or your
63 +      config file (maybe ~/.ssh/config).  In this case, ssh with -A option
64 +      try to connect to port 722 at first, and try to connect to original
65 +      port (maybe port 22) if port 722 fails. scp executes ssh with -A option.
66 +
67 + * IPv6 supported platform
68 +
69 +      IPv6 feature is available on follwing platforms now.
70 +
71 +        kame -- http://www.kame.net/   (used to be called Hydrangea)
72 +        v6d  -- http://onoe2.sm.sony.co.jp/ipv6/ (IPv6 daemon)
73 +
74 +      On the other environments you can compile and run ssh-1.2.27-IPv6 if
75 +      you have a good getaddrinfo() in your library.
76 +
77 + * How to get ssh-1.2.27-IPv6
78 +
79 +     You can get tar.gz or patch to ssh-1.2.27.tar.gz:
80 +
81 +        ftp://ftp.kyoto.wide.ad.jp/IPv6/ssh/ssh-1.2.27-IPv6-1.5.tar.gz
82 +        ftp://ftp.kyoto.wide.ad.jp/IPv6/ssh/ssh-1.2.27-IPv6-1.5-patch.gz
83 +
84 + * How to install ssh-1.2.27-IPv6
85 +
86 +     Apply ssh-1.2.27-IPv6-1.5-patch to ssh-1.2.27.tar.gz (or use 
87 +     ssh-1.2.27-IPv6-1.5.tar.gz) and then see INSTALL file of ssh-1.2.27.
88 +
89 +     If you want to enable ssh to handle IPv6, for example,
90 +
91 +         % ./configure --enable-ipv6
92 +         % make
93 +         % make install
94 +
95 +     and you will be able to enjoy ssh handling both IPv6 and IPv4.
96 +
97 + * Change Log
98 +
99 +     v1.5   1999-05-15 KIKUCHI Takahiro <kick@kyoto.wide.ad.jp>
100 +
101 +       * for ssh-1.2.27
102 +       * supported scp with bracketed ipv6 ip address 
103 +       * used struct sockaddr_storage instead of union sockunion
104 +
105 +     v1.4   1998-08-21 KIKUCHI Takahiro <kick@kyoto.wide.ad.jp>
106 +
107 +       * fixed ipv6 address checking bug at match_host() in match.c
108 +       * cleanup comparing ip address at get_remote_hostname() in canohost.c
109 +
110 +     v1.3   1998-08-14 KIKUCHI Takahiro <kick@kyoto.wide.ad.jp>
111 +
112 +       * fixed ipv6 address checking bug at match_host() in match.c
113 +         pointed out by Kenji Rikitake <kenji@k2r.org>
114 +
115 +     v1.2.2 1998-08-07 KIKUCHI Takahiro <kick@kyoto.wide.ad.jp>
116 +
117 +       * fixed IPv6 enable checking bug in configure.in
118 +
119 +     v1.2.1 1998-08-05 KIKUCHI Takahiro <kick@kyoto.wide.ad.jp>
120 +
121 +       * fixed AuthLog enable handling bug
122 +
123 +     v1.2   1998-08-01 KIKUCHI Takahiro <kick@kyoto.wide.ad.jp>
124 +
125 +       * for ssh-1.2.26
126 +
127 +     v1.1.5 1998-06-13 KIKUCHI Takahiro <kick@kyoto.wide.ad.jp>
128 +
129 +       * supported AuthLog (logging authenticated info) in /etc/sshd_config
130 +
131 +     v1.1.4 1998-06-11 KIKUCHI Takahiro <kick@kyoto.wide.ad.jp>
132 +
133 +       * supported multiple Port lines in /etc/sshd_config
134 +       * supported AnotherPort line in /etc/ssh_config
135 +       * supported -A option of ssh for another port try
136 +
137 +     v1.1.3 1998-06-01 KIKUCHI Takahiro <kick@kyoto.wide.ad.jp>
138 +
139 +       * X11 connection forwarding IPv6 support
140 +       * removeed all hostent and sockaddr_in from *.c
141 +
142 +     v1.1.2 1998-05-31 Jun-ichiro itojun Itoh <itojun@itojun.org>
143 +
144 +       * configuration support for v6d.
145 +
146 +     v1.1.1 1998-05-31 Jun-ichiro itojun Itoh <itojun@itojun.org>
147 +
148 +       * add getaddinfo.c, getnameinfo.c and gai.h (delete fakelibinet6.c)
149 +       * configure checks whether getaddrinfo exists or not.
150 +
151 +     v1.1   1998-05-31 KIKUCHI Takahiro <kick@kyoto.wide.ad.jp>
152 +
153 +       * add fakelibinet6.c (including getaddrinfo and getnameinfo)
154 +       * compilation support on non-IPv6 environment.
155 +       * fixed port forwarding bug
156 +
157 +     v1.0.1 1998-05-30 Jun-ichiro itojun Itoh <itojun@itojun.org>
158 +
159 +       * add ENABLE_IPV6 flag.
160 +       * configuration support --enable-ipv6 for IPv6 platforms.
161 +
162 +     v1.0   1998-05-30 created by KIKUCHI Takahiro <kick@kyoto.wide.ad.jp>
163 +
164 +       * first release
165 +       * IPv6 support except X11 connection forwarding
166 +
167 + * Guideline for making this patch
168 +
169 +     * protocol family independent (using AF_UNSPEC)
170 +     * use getaddrinfo and getnameinfo (see RFC2133)
171 +     * don't use sockaddr_in and AF_INET (but option -4 uses AF_INET)
172 +     * don't use sockaddr_in6 and AF_INET6 (but option -6 uses AF_INET6)
173 +     * don't use gethostbyname, gethostbyaddr and hostent
174 +     * listen to all addresses for all available protocol family
175 +     * try to connect to all addresses for all available protocol family
176 +