Commit Graph

64 Commits

Author SHA1 Message Date
Assar Westerlund
5efe4881d6 (doit, my_telnet): re-write code to keep track both of remote hostname
and utmp string to be used


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9659 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-02-08 16:06:27 +00:00
Assar Westerlund
526ba90e4c (my_telnet): check that fds are not too large to select on
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9106 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-10-08 13:32:28 +00:00
Assar Westerlund
3e00ddf50d use esetenv
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9089 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-10-02 05:06:04 +00:00
Assar Westerlund
5f648d3799 use socklen_t where appropriate instead of int
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8923 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-08-09 20:53:11 +00:00
Assar Westerlund
d82eb01c8a (doit): use getnameinfo_verified
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7527 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-12-05 10:59:52 +00:00
Assar Westerlund
4a9a216cef use getnameinfo
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7500 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-12-04 18:10:28 +00:00
Assar Westerlund
825e2aa265 (main): getopt returns -1 not EOF. From <art@stacken.kth.se>
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7380 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-11-13 06:31:04 +00:00
Assar Westerlund
bf75fac82a large strc{py,at}_truncate -> strlc{py,at} replacement
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6984 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-09-16 20:41:57 +00:00
Assar Westerlund
66e1d23128 (doit): only free hp if != NULL. From: Jonas Oberg <jonas@coyote.org>
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6678 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-08-02 19:38:45 +00:00
Assar Westerlund
f73f6efab3 (doit): remove unused variable mapped_sin
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6665 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-07-29 02:24:57 +00:00
Assar Westerlund
ab7ce95925 make it handle v4 and v6 sockets. (it doesn't handle being given a v6
socket that's really talking to an v4 adress (mapped) because the rest
of the code in telnetd is not able to handle it anyway).  please run
two telnetd from your inetd, one for v4 and one for v6.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6548 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-07-26 00:44:13 +00:00
Johan Danielsson
1c0462d0c8 replace perror/exit with fatalperror
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5544 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-03-15 16:40:52 +00:00
Assar Westerlund
80d58fee2e (main): 0 -> STDIN_FILENO. remove abs
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5532 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-03-13 21:20:17 +00:00
Assar Westerlund
5c4a9b57f0 s/net_write/telnet_net_write/
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5072 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-07-09 23:16:40 +00:00
Johan Danielsson
a5f54865d4 merge strcpy_truncate branch
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5027 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-06-09 19:25:40 +00:00
Johan Danielsson
b65aae8e32 Output contents of /etc/issue.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3993 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-11-14 19:35:13 +00:00
Assar Westerlund
d6f52a511f (terminaltypeok): always return OK. It used to call `tgetent' to
figure if it was a defined terminal type.  It's possible to overflow
tgetent so that's a bad idea.  The worst that could happen by saying
yes to all terminals is that the user ends up with a terminal that has
no definition on the local system.  And besides, most telnet client
has no support for falling back to a different terminal type.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3760 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-11-03 06:08:26 +00:00
Assar Westerlund
545297c6e4 roken_*
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3695 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-10-29 01:28:03 +00:00
Johan Danielsson
837c4cf855 use k_getportbyname with krb4
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3607 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-10-14 21:28:59 +00:00
Johan Danielsson
6f0f6f1b30 Update after merge
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3606 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-10-14 20:57:05 +00:00
Assar Westerlund
6267d2df50 cast argument 1 to gethostbyaddr' to const char *'
Rename some variables that conflict with cpp symbols on HP-UX 10.20


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3405 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-09-07 20:28:10 +00:00
Johan Danielsson
023d1960b0 context to krb5_getportbyname
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3315 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-08-31 17:54:35 +00:00
Assar Westerlund
7841b971fb Makefile.am and quick hacks
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2140 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-07-10 12:54:14 +00:00
Assar Westerlund
1ee9f247d1 no set_utid
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1745 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-05-20 13:47:59 +00:00
Assar Westerlund
690fcf3eb8 <curses.h> and <term.h> doesn't seem to be used and breaks on fujitsu.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1734 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-05-18 22:17:31 +00:00
Assar Westerlund
5da8f7da41 telnetd cleanup
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1695 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-05-11 06:30:05 +00:00
Assar Westerlund
dd02a92a8b replace sprintf all over the place
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1635 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-05-02 14:29:33 +00:00
Assar Westerlund
7a4e4936b1 conditional getsockopt
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1189 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-01-26 19:34:04 +00:00
Assar Westerlund
3d7c57acdb clean-up
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1187 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-01-24 23:13:35 +00:00
Assar Westerlund
94cb9a93ac got rid of lots of stupid casts
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1057 ec53bebd-3082-4978-b11e-865c3cabbd6b
1996-11-19 22:48:40 +00:00
Assar Westerlund
6202f22614 removed all stupid (void)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1034 ec53bebd-3082-4978-b11e-865c3cabbd6b
1996-11-17 20:23:48 +00:00
Assar Westerlund
239db0f710 removed all stupid register declarations
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1033 ec53bebd-3082-4978-b11e-865c3cabbd6b
1996-11-17 20:04:43 +00:00
Johan Danielsson
a0d6c7a8d8 Ifdef TIOCPKT
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1003 ec53bebd-3082-4978-b11e-865c3cabbd6b
1996-11-17 04:09:00 +00:00
Assar Westerlund
7e00a1cefe Removed -s' for securID and added -a otp' for OTP.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@996 ec53bebd-3082-4978-b11e-865c3cabbd6b
1996-11-17 00:20:37 +00:00
Assar Westerlund
edb66c9354 SOCKS-support
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@860 ec53bebd-3082-4978-b11e-865c3cabbd6b
1996-10-18 05:35:32 +00:00
Assar Westerlund
7ceaba756d (main): use `mini_inetd'
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@760 ec53bebd-3082-4978-b11e-865c3cabbd6b
1996-09-27 00:11:53 +00:00
Assar Westerlund
87db6dcb90 Removed all convex code.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@724 ec53bebd-3082-4978-b11e-865c3cabbd6b
1996-09-10 20:35:10 +00:00
Assar Westerlund
351f18b02d NEWINIT, UNICOS7x, UNICOS5: removed
STREAMSPTY: added variable `really_stream'
Now able to handle the case where the OS supports stream ptys but we
run out of them and start using ordinary BSD ones.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@722 ec53bebd-3082-4978-b11e-865c3cabbd6b
1996-09-09 19:35:07 +00:00
Assar Westerlund
3467387cd6 removed old extern declarations.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@711 ec53bebd-3082-4978-b11e-865c3cabbd6b
1996-09-03 18:03:15 +00:00
Assar Westerlund
1e35a8c714 new option -y for no warnings
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@707 ec53bebd-3082-4978-b11e-865c3cabbd6b
1996-09-02 19:12:33 +00:00
Assar Westerlund
83290cb18a s/gethostname/k_gethostname/
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@703 ec53bebd-3082-4978-b11e-865c3cabbd6b
1996-08-31 21:12:29 +00:00
Johan Danielsson
ffc8a5ca79 Check for TCSETS*
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@679 ec53bebd-3082-4978-b11e-865c3cabbd6b
1996-08-24 23:12:29 +00:00
Björn Groenvall
249b7b0725 Remove bogous declaration of inet_ntoa().
Fix constness.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@661 ec53bebd-3082-4978-b11e-865c3cabbd6b
1996-08-20 12:59:40 +00:00
Assar Westerlund
d8dc73c8cc Changed bogus 'strncpy' to 'strcpy'.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@641 ec53bebd-3082-4978-b11e-865c3cabbd6b
1996-08-11 21:20:08 +00:00
Assar Westerlund
1175400948 updated usage
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@598 ec53bebd-3082-4978-b11e-865c3cabbd6b
1996-06-17 04:46:37 +00:00
Johan Danielsson
b5b14c7bf0 Somewhat changed the way utmpx entries are created. It should now work
on both Solaris and IRIX, without stale login information.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@556 ec53bebd-3082-4978-b11e-865c3cabbd6b
1996-06-04 01:01:27 +00:00
Johan Danielsson
446b212817 Use MaxHostNameLen and MaxPathLen
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@536 ec53bebd-3082-4978-b11e-865c3cabbd6b
1996-05-13 02:07:52 +00:00
Assar Westerlund
092bd7e645 config.h
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@496 ec53bebd-3082-4978-b11e-865c3cabbd6b
1996-05-05 04:39:52 +00:00
Assar Westerlund
521dcd469e lots of small fixes
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@331 ec53bebd-3082-4978-b11e-865c3cabbd6b
1996-03-24 06:57:50 +00:00
Unknown User d91-jda
2a8068132e Added flags -z to have telnetd log unauthenticated logins, such as
when using an old telnet client. Unfortunately in most of these cases,
the user name is not known.

There should also be a way to tell the difference between bad
authentication (such as with expired tickets) and no attempt to
provide authentication (such as with an old client).


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@279 ec53bebd-3082-4978-b11e-865c3cabbd6b
1996-02-26 16:59:05 +00:00