Assar Westerlund
69c0957e94
(find_auth_cookie, match_local_auth): re-write to use getaddrinfo
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7496 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-12-04 18:04:50 +00:00
Johan Danielsson
3ca5f8150f
remove advertising clause
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7463 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-12-02 16:58:55 +00:00
Assar Westerlund
65423ced9d
(match_local_auth): only look for FamilyLocal (and FamilyWild)
...
cookies. This will not work when we start talking tcp to the local
X-server but `connect_local_xsocket' and the rest of the code doesn't
handle it anyway and the old code could (and did) pick up the wrong
cookie sometimes. If we have to match FamilyInternet cookies, the
search order has to be changed anyway
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7058 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-09-29 17:03:21 +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
918df1c71c
update comments
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6212 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-05-12 17:33:39 +00:00
Assar Westerlund
231b5fb378
(do_enccopy, copy_encrypted): remove
...
use net_{read,write} instead of krb_net_{read,write}
(krb_get_int, krb_put_int): include fallback of these for when we
compile without krb4
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6181 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-05-10 00:14:56 +00:00
Assar Westerlund
f50d984d02
(create_and_write_cookie): try to return better (and correct) errors.
...
Based on a patch from Love <lha@e.kth.se >
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6154 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-05-08 01:24:21 +00:00
Assar Westerlund
19fac42582
(try_pie): more braces
...
(match_local_auth): new function
(find_auth_cookie): new function
(replace_cookie): don't just take the first auth cookie. based on
patch from Ake Sandgren <ake@@cs.umu.se>
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6152 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-05-07 23:59:14 +00:00
Assar Westerlund
e7293edce6
(get_xsockets): init local variable to get rid of a gcc warning
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5867 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-04-07 18:39:21 +00:00
Johan Danielsson
26d6518f37
fix some warnings
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5505 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-03-11 13:58:31 +00:00
Assar Westerlund
816c30fe89
(verify_and_remove_cookies): give back a meaningful error message if
...
we're using the wrong cookie
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5277 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-01-22 17:49:12 +00:00
Assar Westerlund
4d816f025a
(replace_cookie): try to handle the case of not finding any cookies
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5266 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-12-18 16:42:00 +00:00
Johan Danielsson
c12b1910b2
(try_pipe): return -1 if I_PUSH fails with ENOSYS
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5167 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-09-28 16:04:02 +00:00
Assar Westerlund
a13f0423b7
(chown_xsockets): new function
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5153 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-09-26 15:34:39 +00:00
Assar Westerlund
dc0dfabdfe
implement support for Solaris's named-pipe X transport
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5121 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-08-16 16:35:13 +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
8fa37bff11
fix for (compiler?) bug in solaris 2.4 bind
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4963 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-05-28 15:21:08 +00:00
Assar Westerlund
d2ff8ff623
(connect_local_xsocket): update to try the list of potential socket
...
pathnames
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4781 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-04-19 07:44:33 +00:00
Assar Westerlund
698eb42a8f
(get_xsockets): try getting sockets in lots of places
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4601 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-03-18 22:30:10 +00:00
Assar Westerlund
84e37f1aef
more error testing from Love Hörnquist-Åstrand <e96_lho@elixir.e.kth.se>
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4180 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-12-10 02:56:11 +00:00
Johan Danielsson
ab1f67a67b
trams
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4177 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-12-09 17:22:47 +00:00
Assar Westerlund
9e36ab86f3
check malloc and strdup
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4129 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-12-05 04:26:29 +00:00
Johan Danielsson
3a70853f65
k_gethostname -> gethostname
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4116 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-12-05 01:47:54 +00:00
Johan Danielsson
c99460c09c
(create_and_write_cookie) Create temp file with mkstemp.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3876 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-11-09 11:13:21 +00:00
Assar Westerlund
9735004593
(copy_encrypted): do the type-corrected copy with IV.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1839 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-06-03 03:21:01 +00:00
Johan Danielsson
e40377974e
Zero local address.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1778 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-05-25 17:44:38 +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
Johan Danielsson
e1282e7dfc
Update copyright strings.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1541 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-04-01 08:19:18 +00:00
Assar Westerlund
70cea0ce07
more fixes
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1529 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-03-30 17:45:33 +00:00
Assar Westerlund
b201d1fd93
removed prog. Use err & c:o
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1528 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-03-30 17:38:11 +00:00
Assar Westerlund
9ab8464172
verify_and_remove_cookies, replace_cookie: new functions
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1519 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-03-30 16:06:09 +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
2c09e521fb
check for INADDR_LOOPBACK
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1062 ec53bebd-3082-4978-b11e-865c3cabbd6b
1996-11-21 20:03:21 +00:00
Assar Westerlund
99f492acf0
careful not to thrust h_length from gethostby{name,addr}
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1056 ec53bebd-3082-4978-b11e-865c3cabbd6b
1996-11-19 21:56:12 +00:00
Assar Westerlund
e87bd14a11
Use INADDR_LOOPBACK
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1054 ec53bebd-3082-4978-b11e-865c3cabbd6b
1996-11-19 20:12:37 +00:00
Björn Groenvall
0bcddc9caf
Fix warnings, remove unused variables.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@970 ec53bebd-3082-4978-b11e-865c3cabbd6b
1996-11-15 18:39:27 +00:00
Assar Westerlund
760e988d3f
Added display' and
display_size'
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@958 ec53bebd-3082-4978-b11e-865c3cabbd6b
1996-11-14 03:39:17 +00:00
Johan Danielsson
fec9e52d71
Fix copyright
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@901 ec53bebd-3082-4978-b11e-865c3cabbd6b
1996-10-27 16:50:18 +00:00
Assar Westerlund
aaafb2bf9c
less warnings
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@894 ec53bebd-3082-4978-b11e-865c3cabbd6b
1996-10-26 21:41:16 +00:00
Björn Groenvall
3e317bb818
Fix copyright.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@893 ec53bebd-3082-4978-b11e-865c3cabbd6b
1996-10-26 16:05:04 +00:00
Assar Westerlund
16d793a9d7
Moved lots of variables to common.c
...
(get_xsockets): Try to chmod dirname(`X_UNIX_PATH')
(get_xsockets): Turn on TCP_NODELAY on TCP connections.
(create_and_write_cookie, suspicious_address): Moved here
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@846 ec53bebd-3082-4978-b11e-865c3cabbd6b
1996-10-14 19:12:22 +00:00
Assar Westerlund
313f839b57
(get_xsockets): `mkdir' the correct directory.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@832 ec53bebd-3082-4978-b11e-865c3cabbd6b
1996-10-09 17:24:52 +00:00
Assar Westerlund
8f597f6966
Remove childhandler. Not common any more.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@782 ec53bebd-3082-4978-b11e-865c3cabbd6b
1996-09-28 21:44:30 +00:00
Assar Westerlund
4f06a53bad
merged in TCP-branch
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@763 ec53bebd-3082-4978-b11e-865c3cabbd6b
1996-09-27 14:38:32 +00:00
Assar Westerlund
b511fcdd77
(get_local_xsocket): Generate the /tmp/.X11-unix directory with the
...
sticky bit set.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@747 ec53bebd-3082-4978-b11e-865c3cabbd6b
1996-09-15 22:06:47 +00:00
Assar Westerlund
56d530b451
(get_local_xsocket): try to bind the socket instead of checking for
...
existence with lstat.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@744 ec53bebd-3082-4978-b11e-865c3cabbd6b
1996-09-15 21:13:23 +00:00
Johan Danielsson
4345835c38
Save display socket.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@741 ec53bebd-3082-4978-b11e-865c3cabbd6b
1996-09-15 16:30:09 +00:00
Assar Westerlund
0ebf3e6925
(get_local_xsocket): Now try to allocate the first free socket in
...
/tmp/.X11-unix. Also `mkdir' this directory first. Return the number
of the display opened.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@729 ec53bebd-3082-4978-b11e-865c3cabbd6b
1996-09-14 01:13:43 +00:00
Assar Westerlund
a95bae9e0a
All signal handlers return RETSIGTYPE.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@712 ec53bebd-3082-4978-b11e-865c3cabbd6b
1996-09-03 18:04:46 +00:00
Assar Westerlund
bc529497cb
Removed unused variables.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@710 ec53bebd-3082-4978-b11e-865c3cabbd6b
1996-09-02 22:48:11 +00:00