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