Commit Graph

64 Commits

Author SHA1 Message Date
Love Hörnquist Åstrand
743ccd85cf make work with cpp again, reported by Hai Zaar
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21934 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-08-27 14:21:04 +00:00
Love Hörnquist Åstrand
055dd97483 (_krb5_kdc_retry): check if the whole process needs to restart or just
skip this KDC.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21062 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-12 17:58:57 +00:00
Love Hörnquist Åstrand
e86b58e01c Add hooks for processing the reply from the server.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21058 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-12 17:49:37 +00:00
Love Hörnquist Åstrand
b965dacaf9 (krb5_sendto): zero out receive buffer.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19973 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-17 17:19:52 +00:00
Love Hörnquist Åstrand
ebc9adecfb Rename krb5_set_send_recv_func to krb5_set_send_to_kdc_func.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18679 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-20 18:42:01 +00:00
Love Hörnquist Åstrand
09dda4824a Add sent_to_kdc hook, from Andrew Bartlet.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18671 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-20 18:14:35 +00:00
Love Hörnquist Åstrand
c1ce715df2 (send_and_recv_http): don't expose freed pointer, found by IBM checker.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16957 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-02 02:32:03 +00:00
Love Hörnquist Åstrand
e1bd6f1007 (recv_loop): it should never happen, but make sure nbytes > 0
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16789 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-03-07 19:39:59 +00:00
Love Hörnquist Åstrand
dffa265ac7 (krb5_sendto): remove shadowing unnessecery variable ret
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15472 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-06-17 04:33:11 +00:00
Love Hörnquist Åstrand
d375fa4d7f (send_and_recv_udp): make private again
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14539 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-02-02 20:05:30 +00:00
Luke Howard
5d93249adc add _krb5_send_and_recv_tcp
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14533 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-02-02 07:32:31 +00:00
Love Hörnquist Åstrand
91351971f7 add KRB5_LIB_FUNCTION to all exported functions
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13863 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-05-25 21:46:46 +00:00
Love Hörnquist Åstrand
bf31f6aead remove function krb5_sendto_kdc2, its no longer used
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13627 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-03-23 12:09:33 +00:00
Love Hörnquist Åstrand
bce36e1e1e (krb5_sendto_kdc_flags): new function, and then implement the order
krb5_sendto_kdc* function with this function.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12929 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-30 17:39:53 +00:00
Love Hörnquist Åstrand
68ba8507a5 revert previous
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12333 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-05-26 21:59:54 +00:00
Love Hörnquist Åstrand
cb584f6348 pacify mdoclink
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12331 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-05-26 21:56:28 +00:00
Johan Danielsson
223a6a75f2 rename send parameter to send_data
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10897 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-03-27 09:32:50 +00:00
Assar Westerlund
d78a021a3f (send_via_proxy): initialize a variable to make gcc's optimizer happy
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10280 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-07-03 19:35:46 +00:00
Assar Westerlund
494e4c27a5 (krb5_sendto): remove an extra freeaddrinfo
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10112 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-06-18 12:40:04 +00:00
Assar Westerlund
016dcaae5f update to use krb5_krbhst API
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10076 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-06-17 23:10:16 +00:00
Assar Westerlund
1f31dd74e9 update to new krb5_eai_to_heim_errno
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9951 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-05-14 22:49:56 +00:00
Assar Westerlund
d27aa3b62e add some krb5_{set,clear}_error_string
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9937 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-05-14 06:14:52 +00:00
Assar Westerlund
3dac03d47a (krb5_sendto_kdc2): try to tell what realm we didn't manage to reach
any KDC for in the error string


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9867 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-05-08 16:10:10 +00:00
Assar Westerlund
00c631c64b (krb5_sendto): loop over all address returned by getaddrinfo before
trying the next kdc.  from thorpej@netbsd.org


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9688 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-02-15 04:35:22 +00:00
Assar Westerlund
bda56c4d59 (recv_loop): check `fd' for being too big
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9164 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-11-15 01:48:23 +00:00
Assar Westerlund
c5e89e6e73 (send_via_proxy): handle `http://' at the beginning of the proxy
specification.  use getaddrinfo correctly
(krb5_sendto): always return a return code


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8996 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-08-26 11:46:16 +00:00
Johan Danielsson
b872ab2c2e add more generic krb5_sendto that send to a port at arbitrary list of
hosts


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8659 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-07-11 19:19:34 +00:00
Johan Danielsson
5d9b607c1a use krb5_eai_to_heim_errno
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8587 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-07-08 13:06:07 +00:00
Assar Westerlund
f8e43718e9 (krb5_sendto_kdc): advance colon so that we actually parse the port
number.  based on a patch from Leif Johansson <leifj@it.su.se>


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7722 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-01-06 07:59:11 +00:00
Assar Westerlund
1b12c75c63 (send_via_proxy): free data
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7630 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-12-20 00:58:47 +00:00
Assar Westerlund
5b87603dd0 (send_via_proxy): new function
use getaddrinfo instead of gethostbyname{,2}


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7629 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-12-20 00:58:17 +00:00
Johan Danielsson
c5b916ca6f remove advertising clause
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7464 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-12-02 17:05:13 +00:00
Assar Westerlund
7e382bccde (send_and_recv): rename to recv_loop and remove the sending of data.
add a parameter `limit'.  let callers send the date themselves (and
preferably with net_write on tcp sockets)
(send_and_recv_tcp): read first the length field and then only that
many bytes


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6902 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-09-06 13:57:12 +00:00
Assar Westerlund
747be76abf (send_and_recv): handle EINTR properly. return on EOF. always free
data.  check return value from realloc.
(send_and_recv_tcp, send_and_recv_http): check advertised length
against actual length


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6896 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-09-05 17:14:06 +00:00
Assar Westerlund
653f6dbe29 (krb5_sendto_kdc): simplify by using `struct sockaddr_storage'
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6527 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-07-24 18:42:47 +00:00
Johan Danielsson
2e3525882a k_{put,get}_int -> _krb5_{put,get}_int
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5801 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-03-29 19:23:33 +00:00
Assar Westerlund
2872ceb0f7 (krb5_sendto_kdc): only call gethostbyname2 with AF_INET6 if we
actually have IPv6.  From "Brandon S. Allbery KF8NH"
<allbery@kf8nh.apk.net>


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5322 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-02-01 03:09:02 +00:00
Assar Westerlund
d915b0edfa (krb5_sendto_kdc): care about `use_admin_kdc'
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5137 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-08-25 17:32:24 +00:00
Assar Westerlund
e5339288d5 (krb5_sendto_kdc): don't advance hostent->h_addr_list, use a copy instead
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5085 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-07-13 13:59:19 +00:00
Assar Westerlund
5e8c0820c4 (krb5_sendto_kdc): do not close the unopened file
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5060 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-06-30 16:18:02 +00:00
Johan Danielsson
fcd77231a5 (krb5_sendto_kdc, send_and_recv_http): Add support for using proxy.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4548 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-03-06 00:49:29 +00:00
Johan Danielsson
41a2bdc912 Recognize http/' and udp/' as protocol specifications.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4544 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-03-05 23:41:23 +00:00
Johan Danielsson
861398aee4 Add TCP client support.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4100 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-12-04 18:17:21 +00:00
Assar Westerlund
dce96a31c3 changed struct fd_set' to fd_set'
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4074 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-11-29 06:17:18 +00:00
Assar Westerlund
62143c0e4a use roken* macros
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3700 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-10-29 01:30:58 +00:00
Johan Danielsson
8eb312128d fix warnings
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3588 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-10-13 16:30:09 +00:00
Assar Westerlund
4c90a2d058 (krb5_sendto_kdc): no data returned means no contact?
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3541 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-09-23 01:02:13 +00:00
Assar Westerlund
2ca944d2bc use new addr_families functions
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3517 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-09-21 13:24:31 +00:00
Assar Westerlund
b09f153c01 rename sa_len' -> sa_size'
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3484 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-09-12 23:22:32 +00:00
Assar Westerlund
4704b3c219 IPv6 support
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3479 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-09-12 23:06:36 +00:00