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