ChangeLog revision 90926
12002-02-07  Johan Danielsson  <joda@pdc.kth.se>
2
3	* telnet/telnet.c: print a more informative message than "done"
4	after negotiating encryption
5
62001-09-17  Assar Westerlund  <assar@sics.se>
7
8	* telnetd/telnetd.c: add a kludge to make it build on aix (that
9	defines NOERROR in both sys/stream.h and arpa/nameser.h and
10	considers that a fatal error)
11
12	* telnet/telnet.c: undef PUTSHORT to avoid conflict
13
142001-08-26  Assar Westerlund  <assar@sics.se>
15
16	* telnetd/Makefile.am: also link with the library for logout
17
182001-08-22  Assar Westerlund  <assar@sics.se>
19
20	* telnetd/sys_term.c: include libutil.h if it exists
21
222001-08-10  Assar Westerlund  <assar@sics.se>
23
24	* telnetd/sys_term.c (getpty): call openpty if it exists
25
262001-07-19  Assar Westerlund  <assar@sics.se>
27
28	* telnetd/global.c (output_data): make sure of not forwarding
29	`nfrontp' too far, thereby allowing writes after the end of
30	`netobuf'
31
322001-06-18  Assar Westerlund  <assar@sics.se>
33
34	* libtelnet/kerberos5.c: update to new krb5_auth_con* names
35
362001-04-25  Assar Westerlund  <assar@sics.se>
37
38	* telnetd/sys_term.c (start_login): give the correct error if exec
39	fails
40	* telnetd/utility.c (fatalperror_errno): add a new function with
41	explicit errno parameter
42
432001-03-07  Assar Westerlund  <assar@sics.se>
44
45	* telnetd/sys_term.c: some minimal more amount of
46 	const-correctness
47
482001-02-24  Assar Westerlund  <assar@sics.se>
49
50	* libtelnet/enc_des.c: learn to live with libcrypto (from openssl)
51
522001-02-20  Assar Westerlund  <assar@sics.se>
53
54	* telnet/commands.c (tn): copy the hostname so it doesn't get
55	overwritten while reading ~/.telnetrc
56	(*): removed some unneeded externs
57
582001-02-08  Assar Westerlund  <assar@sics.se>
59
60	* telnetd/sys_term.c (startslave, start_login): re-write code to
61	keep track both of remote hostname and utmp string to be used
62	* telnetd/telnetd.c (doit, my_telnet): re-write code to keep track
63	both of remote hostname and utmp string to be used
64
652001-02-07  Assar Westerlund  <assar@sics.se>
66
67	* telnet/Makefile.am, telnetd/Makefile.am: add LIB_kdfs
68
692001-01-09  Assar Westerlund  <assar@sics.se>
70
71	* libtelnet/kerberos5.c (kerberos5_is): use krb5_rd_cred2 instead
72	of krb5_rd_cred
73
742000-12-31  Assar Westerlund  <assar@sics.se>
75
76	* telnet/main.c (krb5_init): check krb5_init_context for success
77	* libtelnet/kerberos5.c (kerberos5_init): check krb5_init_context
78	for success
79
802000-12-11  Assar Westerlund  <assar@sics.se>
81
82	* telnet/commands.c (sourceroute): make it not break if the
83	rfc2292 api does not exist
84
852000-12-09  Assar Westerlund  <assar@sics.se>
86
87	* telnetd/sys_term.c (scrub_env): add supporting non-file TERMCAP
88	variables
89
902000-12-07  Assar Westerlund  <assar@sics.se>
91
92	* telnetd/telnetd.h: move include files around to avoid getting SE
93	from sys/*.h on HP to override SE from telnet.h
94
95	* telnetd/sys_term.c (scrub_env): remove some const-ness
96	* telnetd/sys_term.c (scrub_env): add LOGNAME and POSIXLY_CORRECT
97	to the list of authorized environment variables to be compatible
98	with linux-telnetd
99
100	* telnetd/sys_term.c (scrub_env): change filtering algoritm from
101	allowing everything except a few bad cases to not allowing
102	anything except a few non-dangerous cases
103
1042000-12-06  Johan Danielsson  <joda@pdc.kth.se>
105
106	* libtelnet/kerberos5.c: de-pointerise auth_context parameter to
107	krb5_mk_rep
108
1092000-11-23  Johan Danielsson  <joda@pdc.kth.se>
110
111	* libtelnet/kerberos5.c: print the principal we're trying to use
112
113	* libtelnet/kerberos.c: print the principal we're trying to use
114
1152000-11-16  Assar Westerlund  <assar@sics.se>
116
117	* libtelnet/misc-proto.h (telnet_getenv): const-ize some
118
1192000-11-08  Johan Danielsson  <joda@pdc.kth.se>
120
121	* telnet/telnet.c: fake entry if no tgetent
122
1232000-10-08  Assar Westerlund  <assar@sics.se>
124
125	* telnetd/utility.c (stilloob): check that fds are not too large
126	to select on
127	(ttloop): remove confusing output of errno
128	* telnetd/telnetd.c (my_telnet): check that fds are not too large
129	to select on
130	* telnet/utilities.c (EmptyTerminal): check that fds are not too
131	large to select on
132	* telnet/sys_bsd.c (process_rings): check that fds are not too
133	large to select on
134	* telnet/network.c (stilloob): check that fds are not too large to
135	select on
136
1372000-06-09  Assar Westerlund  <assar@sics.se>
138
139	* telnet/commands.c: remove all setuid(getuid()).  we do not
140	support telnet being setuid root
141
1422000-05-05  Assar Westerlund  <assar@sics.se>
143
144	* telnet/externs.h (sourceroute): update prototype
145	* telnet/commands.c (tn): re-enable source routing
146	(sourceroute): make it work again based on the code from
147	itojun@kame.net
148
1492000-03-28  Assar Westerlund  <assar@sics.se>
150
151	* telnet/commands.c (tn): clean-up a tiny little bit.  give-up if
152	we do not manage to connect to any address
153
1542000-03-26  Assar Westerlund  <assar@sics.se>
155
156	* telnetd/sys_term.c (*): make sure to always call time, ctime,
157	and gmtime with `time_t's.  there were some types (like in
158	lastlog) that we believed to always be time_t.  this has proven
159	wrong on Solaris 8 in 64-bit mode, where they are stored as 32-bit
160	quantities but time_t has gone up to 64 bits
161
1622000-03-03  Assar Westerlund  <assar@sics.se>
163
164	* libtelnet/kerberos5.c (kerberos5_init): check that we do have a
165	keytab before saying that we will support KERBEROS5
166
1672000-02-12  Assar Westerlund  <assar@sics.se>
168
169	* telnet/commands.c (tn): only set tos for AF_INET.  From
170	itojun@iijlab.net
171
1722000-02-07  Assar Westerlund  <assar@sics.se>
173
174	* libtelnet/kerberos.c (kerberos4_is): send a reject back to the
175	client when we're not authorized
176
1772000-02-06  Assar Westerlund  <assar@sics.se>
178
179	* telnet/ring.h (ring_encrypt): better proto
180	* telnet/ring.c (ring_encrypt): better proto
181
1822000-02-04  Assar Westerlund  <assar@sics.se>
183
184	* telnet/telnet_locl.h: klduge-around KLUDGELINEMODE
185
1862000-01-18  Assar Westerlund  <assar@sics.se>
187
188	* libtelnet/misc.c (auth_encrypt_user): const-ify
189	* libtelnet/misc.h (RemoteHostName, LocalHostName): const-ify
190	* libtelnet/misc.c (auth_encrypt_init, RemoteHostName,
191	LocalHostName): const-ify
192	* libtelnet/misc-proto.h (auth_encrypt_init, auth_encrypt_user):
193	const-ify
194	* libtelnet/encrypt.c (encrypt_init, Name): const-ify
195	* libtelnet/enc-proto.h (encrypt_init): const-ify
196	* libtelnet/auth.c (auth_init, Name): const-ify
197	* libtelnet/auth-proto.h (auth_init): const-ify
198
1992000-01-08  Assar Westerlund  <assar@sics.se>
200
201	* telnet/commands.c (tn): handle ai_canonname being set in any of
202	the addresses returnedby getaddrinfo.  glibc apparently returns
203	the reverse lookup of every address in ai_canonname.  remove some
204	unused variables.
205
2062000-01-01  Assar Westerlund  <assar@sics.se>
207
208	* telnetd/sys_term.c (addarg): make void (return value isn't check
209	anyway).  fatal error when malloc fails
210
2111999-12-16  Assar Westerlund  <assar@sics.se>
212
213	* telnet/commands.c (*): handle ai_canonname not being set
214
2151999-12-04  Assar Westerlund  <assar@sics.se>
216
217	* telnetd/telnetd.c (doit): use getnameinfo_verified
218	* telnetd/telnetd.c: use getnameinfo
219	* telnet/commands.c: re-write to using getaddrinfo.  disable
220	source-routing for the moment, it doesn't seem to be used anyways.
221	
2221999-09-16  Assar Westerlund  <assar@sics.se>
223
224	* telnet/commands.c: revert 1.54, get_default_username should DTRT
225 	now
226
2271999-09-05  Assar Westerlund  <assar@sics.se>
228
229	* telnetd/utility.c (ttloop): make it return 1 if interrupted by a
230 	signal, which must have been what was meant from the beginning
231
232	* telnetd/ext.h (ttloop): update prototype
233
234	* telnetd/authenc.c (telnet_spin): actually return the value from
235 	ttloop (otherwise it's kind of bogus)
236
2371999-08-05  Assar Westerlund  <assar@sics.se>
238
239	* telnetd/sys_term.c (rmut): free utxp
240
2411999-08-04  Assar Westerlund  <assar@sics.se>
242
243	* telnet/main.c: add -G and config file support.  From Miroslav
244 	Ruda <ruda@ics.muni.cz>
245
246	* telnetd/sys_term.c (rmut): work around utmpx strangness.  From
247 	Miroslav Ruda <ruda@ics.muni.cz>
248
2491999-08-02  Assar Westerlund  <assar@sics.se>
250
251	* telnetd/telnetd.c (doit): only free hp if != NULL.  From: Jonas
252 	Oberg <jonas@coyote.org>
253
2541999-07-29  Assar Westerlund  <assar@sics.se>
255
256	* telnetd/telnetd.c (doit): remove unused variable mapped_sin
257
2581999-07-26  Assar Westerlund  <assar@sics.se>
259
260	* telnetd/ext.h: update prototypes
261	
262	* telnetd/telnetd.c: make it handle v4 and v6 sockets.  (it
263	doesn't handle being given a v6 socket that's really talking to an
264	v4 adress (mapped) because the rest of the code in telnetd is not
265	able to handle it anyway).  please run two telnetd from your
266	inetd, one for v4 and one for v6.
267
2681999-07-07  Assar Westerlund  <assar@sics.se>
269
270	* telnet/commands.c (tn): extra bogus const-cast
271
2721999-07-06  Assar Westerlund  <assar@sics.se>
273
274	* telnetd/sys_term.c (start_login): print a different warning with
275 	`-a otp'
276
2771999-06-24  Assar Westerlund  <assar@sics.se>
278
279	* libtelnet/kerberos5.c (kerberos5_send): set the addresses in the
280 	auth_context
281
2821999-06-23  Assar Westerlund  <assar@sics.se>
283
284	* telnet/Makefile.am (INCLUDES): add $(INCLUDE_krb4)
285
286	* telnet/commands.c (togkrbdebug): conditionalize on
287 	krb_disable_debug
288
2891999-06-16  Johan Danielsson  <joda@pdc.kth.se>
290
291	* telnet/commands.c: add kerberos debugging option
292
2931999-06-15  Assar Westerlund  <assar@sics.se>
294
295	* telnet/commands.c (tn): use get_default_username
296
2971999-05-14  Assar Westerlund  <assar@sics.se>
298
299	* telnetd/state.c (telrcv): magic patch to make it work against
300 	DOS Clarkson Telnet.  From Miroslav Ruda <ruda@ics.muni.cz>
301
3021999-04-25  Assar Westerlund  <assar@sics.se>
303
304	* libtelnet/kerberos5.c (kerberos5_send): use
305	`krb5_auth_setkeytype' instead of `krb5_auth_setenctype' to make
306	sure we get a DES session key.
307
308Thu Apr  1 16:59:27 1999  Johan Danielsson  <joda@hella.pdc.kth.se>
309
310	* telnetd/Makefile.am: don't run check-local
311
312	* telnet/Makefile.am: don't run check-local
313
314Mon Mar 29 16:11:33 1999  Johan Danielsson  <joda@hella.pdc.kth.se>
315
316	* telnetd/sys_term.c: _CRAY -> HAVE_STRUCT_UTMP_UT_ID
317
318Sat Mar 20 00:12:54 1999  Assar Westerlund  <assar@sics.se>
319
320	* telnet/authenc.c (telnet_gets): remove old extern declarations
321
322Thu Mar 18 11:20:16 1999  Johan Danielsson  <joda@hella.pdc.kth.se>
323
324	* telnetd/Makefile.am: include Makefile.am.common
325
326	* telnet/Makefile.am: include Makefile.am.common
327
328	* libtelnet/Makefile.am: include Makefile.am.common
329
330	* Makefile.am: include Makefile.am.common
331
332Mon Mar 15 17:40:53 1999  Johan Danielsson  <joda@hella.pdc.kth.se>
333
334	* telnetd/telnetd.c: replace perror/exit with fatalperror
335
336Sat Mar 13 22:18:57 1999  Assar Westerlund  <assar@sics.se>
337
338	* telnetd/telnetd.c (main): 0 -> STDIN_FILENO.  remove abs
339
340	* libtelnet/kerberos.c (kerberos4_is): syslog root logins
341
342Thu Mar 11 14:48:54 1999  Johan Danielsson  <joda@hella.pdc.kth.se>
343
344	* telnetd/Makefile.in: add WFLAGS
345
346	* telnet/Makefile.in: add WFLAGS
347
348	* libtelnet/Makefile.in: add WFLAGS
349
350	* telnetd/sys_term.c: remove unused variables
351
352	* telnet/telnet.c: fix some warnings
353
354	* telnet/main.c: fix some warnings
355
356	* telnet/commands.c: fix types in format string
357
358	* libtelnet/auth.c: fix types in format string
359
360Mon Mar  1 10:50:30 1999  Johan Danielsson  <joda@hella.pdc.kth.se>
361
362	* telnetd/sys_term.c: HAVE_UT_* -> HAVE_STRUCT_UTMP*_UT_*
363
364Mon Feb  1 04:08:36 1999  Assar Westerlund  <assar@sics.se>
365
366	* telnet/commands.c (tn): only call gethostbyname2 with AF_INET6
367 	if we actually have IPv6.  From "Brandon S. Allbery KF8NH"
368 	<allbery@kf8nh.apk.net>
369
370Sat Nov 21 16:51:00 1998  Johan Danielsson  <joda@hella.pdc.kth.se>
371
372	* telnetd/sys_term.c (cleanup): don't call vhangup() on sgi:s
373
374Fri Aug 14 16:29:18 1998  Johan Danielsson  <joda@emma.pdc.kth.se>
375
376	* libtelnet/kerberos.c: krb_put_int -> KRB_PUT_INT
377
378Thu Jul 23 20:29:05 1998  Johan Danielsson  <joda@emma.pdc.kth.se>
379
380	* libtelnet/kerberos5.c: use krb5_verify_authenticator_checksum
381
382Mon Jul 13 22:00:09 1998  Assar Westerlund  <assar@sics.se>
383
384	* telnet/commands.c (tn): don't advance hostent->h_addr_list, use
385 	a copy instead
386
387Wed May 27 04:19:17 1998  Assar Westerlund  <assar@sics.se>
388
389	* telnet/sys_bsd.c (process_rings): correct call to `stilloob'
390
391Fri May 15 19:38:19 1998  Johan Danielsson  <joda@blubb.pdc.kth.se>
392
393	* libtelnet/kerberos5.c: Always print errors from mk_req.
394
395Fri May  1 07:16:59 1998  Assar Westerlund  <assar@sics.se>
396
397	* telnet/commands.c: unifdef -DHAVE_H_ERRNO
398
399Sat Apr  4 15:00:29 1998  Assar Westerlund  <assar@sics.se>
400
401	* telnet/commands.c (tn): moved the printing of `trying...' to the
402 	loop
403
404Thu Mar 12 02:33:48 1998  Assar Westerlund  <assar@sics.se>
405
406	* telnet/telnet_locl.h: include <term.h>. From Gregory S. Stark
407 	<gsstark@mit.edu>
408
409Sat Feb 21 15:12:38 1998  Assar Westerlund  <assar@sics.se>
410
411	* telnetd/ext.h: add prototype for login_tty
412
413	* telnet/utilities.c (printsub): `direction' is now an int.
414
415	* libtelnet/misc-proto.h: add prototype for `printsub'
416
417Tue Feb 17 02:45:01 1998  Assar Westerlund  <assar@sics.se>
418
419	* libtelnet/kerberos.c (kerberos4_is): cred.pname should be
420 	cred.pinst.  From <art@stacken.kth.se>
421
422Sun Feb 15 02:46:39 1998  Assar Westerlund  <assar@sics.se>
423
424	* telnet/*/*.c: renamed `telnet' to `my_telnet' to avoid
425 	conflicts with system header files on mklinux.
426
427Tue Feb 10 02:09:03 1998  Assar Westerlund  <assar@sics.se>
428
429	* telnetd/telnetd.c: new signature for `getterminaltype' and
430 	`auth_wait'
431
432	* libtelnet: changed the signature of the authentication method
433 	`status'
434
435Sat Feb  7 07:21:29 1998  Assar Westerlund  <assar@sics.se>
436
437	* */*.c: replace HAS_GETTOS by HAVE_PARSETOS and HAVE_GETTOSBYNAME
438
439Fri Dec 26 16:17:10 1997  Assar Westerlund  <assar@sics.se>
440
441	* telnet/commands.c (tn): repair support for numeric addresses
442
443Sun Dec 21 09:40:31 1997  Assar Westerlund  <assar@sics.se>
444
445	* libtelnet/kerberos.c: fix up lots of stuff related to the
446 	forwarding of v4 tickets.
447
448	* libtelnet/kerberos5.c (kerberos5_forward): zero out `creds'.
449
450Mon Dec 15 20:53:13 1997  Johan Danielsson  <joda@emma.pdc.kth.se>
451
452	* telnet/sys_bsd.c: Don't turn off OPOST in 8bit-mode.
453
454Tue Dec  9 19:26:50 1997  Assar Westerlund  <assar@sics.se>
455
456	* telnet/main.c (main): add 'b' to getopt
457
458Sat Nov 29 03:28:54 1997  Johan Danielsson  <joda@emma.pdc.kth.se>
459
460	* telnet/telnet.c: Change binary mode to do just that, and add a
461 	eight-bit mode for just passing all characters.
462
463Sun Nov 16 04:37:02 1997  Assar Westerlund  <assar@sics.se>
464
465	* libtelnet/kerberos5.c (kerberos5_send): always ask for a session
466 	key of type DES
467
468	* libtelnet/kerberos5.c: remove old garbage and fix call to
469 	krb5_auth_con_setaddrs_from_fd
470
471Fri Nov 14 20:35:18 1997  Johan Danielsson  <joda@emma.pdc.kth.se>
472
473	* telnetd/telnetd.c: Output contents of /etc/issue.
474
475Mon Nov  3 07:09:16 1997  Assar Westerlund  <assar@sics.se>
476
477	* telnet/telnet_locl.h: only include <sys/termio.h> iff
478 	!defined(HAVE_TERMIOS_H)
479
480	* libtelnet/kerberos.c (kerberos4_is): send the peer address to
481 	krb_rd_req
482
483	* telnetd/telnetd.c (terminaltypeok): always return OK.  It used
484 	to call `tgetent' to figure if it was a defined terminal type.
485  	It's possible to overflow tgetent so that's a bad idea.  The worst
486 	that could happen by saying yes to all terminals is that the user
487 	ends up with a terminal that has no definition on the local
488 	system.  And besides, most telnet client has no support for
489 	falling back to a different terminal type.
490
491Mon Oct 20 05:47:19 1997  Assar Westerlund  <assar@sics.se>
492
493	* libtelnet/kerberos5.c: remove lots of old junk.  clean-up.
494  	better error checking and reporting.  tell the user permission
495 	denied much earlier.
496
497	* libtelnet/kerberos.c (kerberos4_is): only print
498 	UserNameRequested if != NULL
499
500