Commit Graph

56 Commits

Author SHA1 Message Date
Love Hörnquist Åstrand
854ef9a202 switch to krb5_set_error_message
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23273 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-06-23 03:25:00 +00:00
Love Hörnquist Åstrand
f505cc2b8a update (c)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22039 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-11-10 11:47:35 +00:00
Love Hörnquist Åstrand
04e78ccc37 doxygen documentation
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22038 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-11-10 10:50:38 +00:00
Love Hörnquist Åstrand
4505c1fee6 (arange_free): Try to not leak memory.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18805 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-22 06:54:00 +00:00
Love Hörnquist Åstrand
348b5d79c4 Rename u_intXX_t to uintXX_t
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17442 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-05-05 09:31:15 +00:00
Love Hörnquist Åstrand
03f05a7a6e (krb5_make_addrport): clear return value on error, found by IBM checker.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16955 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-02 02:17:31 +00:00
Love Hörnquist Åstrand
08687cb067 (krb5_free_addresses): reset val,len in address when free-ing.
Fixes Coverity NetBSD bug #2605
(krb5_parse_address): reset val,len before possibly return errors
Fixes Coverity NetBSD bug #2605


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16793 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-03-17 22:12:13 +00:00
Love Hörnquist Åstrand
31a2c01297 use rk_UNCONST to silence const warning
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15444 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-06-16 20:16:12 +00:00
Love Hörnquist Åstrand
38f3241d93 rename sin to sin4
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15443 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-06-16 20:10:34 +00:00
Love Hörnquist Åstrand
e84fad2e0e zero out content of all krb5_free_x_content like functions to make sure data doesnt get reused, idea from Wynn Wilkes <wwilkes@vintela.com>
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15167 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-05-18 04:21:57 +00:00
Love Hörnquist Åstrand
db171a26fd (krb5_print_address): catch when the custom print v6-adresss don't fit
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15098 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-05-07 07:50:24 +00:00
Love Hörnquist Åstrand
e869931f80 catch two more snprintf problems
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14877 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-04-21 06:37:36 +00:00
Love Hörnquist Åstrand
a76ce26d04 check return values from snprintf and clean up semantics of ret_len
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14853 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-04-19 18:43:12 +00:00
Love Hörnquist Åstrand
8663e85292 (krb5_address_prefixlen_boundary,krb5_free_address): use find_atype
when we are dealing with a kerberos address type


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14726 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-04-04 12:04:41 +00:00
Love Hörnquist Åstrand
1fffb1a13a implement mask boundary for IPv6
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14703 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-03-31 00:11:14 +00:00
Love Hörnquist Åstrand
90fff550fa make RANGE parse prefixlen style addresses too, fix printing of RANGE
addresses, add krb5_address_prefixlen_boundary


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14690 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-03-28 19:16:43 +00:00
Love Hörnquist Åstrand
69a18af8ac (krb5_parse_address): filter out dup addresses from getaddrinfo
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14479 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-01-05 17:36:11 +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
Johan Danielsson
006f2206ef (krb5_print_address): make sure print_addr is defined for the given
address type; make addrports printable


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11911 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-03-25 12:37:02 +00:00
Johan Danielsson
d69ee8c06b socklen_t -> krb5_socklen_t
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11128 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-19 13:51:37 +00:00
Johan Danielsson
04e8a9438f check return value of krb5_sockaddr2address
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11102 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-15 08:23:07 +00:00
Johan Danielsson
5313dd39c6 (krb5_print_address): don't copy size if ret_len == NULL
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11052 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-07-04 14:29:05 +00:00
Johan Danielsson
2230d20dc3 (ipv4_sockaddr2port): constify
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10908 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-04-18 08:55:40 +00:00
Assar Westerlund
f0c910460c make all functions taking 'struct sockaddr' actually take a socklen_t
instead of int and that acts as an in-out parameter (indicating the
maximum length of the sockaddr to be written)


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10866 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-03-10 23:09:37 +00:00
Assar Westerlund
32e654f748 (krb5_print_address): handle snprintf returning < 0
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10650 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-09-03 19:53:51 +00:00
Assar Westerlund
f879fea593 (krb5_print_address): fix typo found by hin@stacken.kth.se
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10649 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-09-03 19:45:53 +00:00
Johan Danielsson
4a118deffb (krb5_sockaddr_uninteresting): don't try to call uninteresting
function if not defined by address family


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10487 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-08-13 13:23:53 +00:00
Johan Danielsson
68b76a3aee add support for type KRB5_ADDRESS_ADDRPORT
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10393 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-07-24 12:07:20 +00:00
Johan Danielsson
3f57fc8ae8 (krb5_address_order): complain about unsuppored address types
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10391 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-07-24 11:34:37 +00:00
Johan Danielsson
abc905d3c9 add new `arange' fake address type, that matches more than one
address; this required some internal changes to many functions, so all
of address.c got moved here (wasn't much left there)


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10237 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-07-02 22:26:42 +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
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
155d74d37c (krb5_parse_address): use krb5_sockaddr2address to copy the result
from getaddrinfo.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7952 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-02-16 02:09:00 +00:00
Assar Westerlund
518c2f9f4f (krb5_parse_address): use getaddrinfo
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7488 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-12-04 17:53:33 +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
1d51e06d60 (ipv4_uninteresting): ignore 0.0.0.0 (INADDR_ANY)
(ipv6_uninteresting): remove unused macro


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7424 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-11-23 02:20:18 +00:00
Assar Westerlund
a74d27d3d7 const-ize
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7130 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-10-10 04:55:28 +00:00
Assar Westerlund
d3f5d79294 strc{py,at}_truncate -> strlc{py,at}
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6985 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-09-16 21:39:11 +00:00
Assar Westerlund
8a0a53244b (IN6_ADDR_V6_TO_V4): use `s6_addr' instead of the non-standard
`s6_addr32'.  From Yoshinobu Inoue <shin@kame.net> by way of the KAME
repository


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6860 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-08-23 21:05:37 +00:00
Assar Westerlund
f80e282f5b (ipv6_parse_addr): remove duplicate variable
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6432 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-07-06 12:17:34 +00:00
Assar Westerlund
8b852df2ff (ipv6_sockaddr2port): fix typo
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6431 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-07-06 12:16:47 +00:00
Assar Westerlund
022ae5ecc6 (ipv6_parse_addr): implement
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6385 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-06-29 02:11:46 +00:00
Assar Westerlund
70fe4312c6 (krb5_sockaddr2port): new function for grabbing the port number out of
the sockaddr


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6371 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-06-24 17:10:15 +00:00
Assar Westerlund
5fc1487dfb (ipv6_uninteresting): don't consider the loopback address as
uninteresting


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6302 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-06-09 06:19:43 +00:00
Johan Danielsson
8df10fbf53 add krb5_parse_address
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5836 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-04-01 18:22:26 +00:00
Johan Danielsson
fbebae0272 (krb5_print_address): handle unknown address types;
(ipv6_print_addr): print in 16-bit groups (as it should)


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5804 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-03-29 19:27:14 +00:00
Johan Danielsson
8b8deb9fbc (krb5_print_address): int -> size_t
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5797 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-03-29 18:55:43 +00:00
Johan Danielsson
3cb5e0294c add support for printing ipv6 addresses, either with inet_ntop, or
ugly for-loop


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5796 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-03-29 18:50:53 +00:00
Assar Westerlund
0941387f9a (addr2sockaddr, print_addr): new methods
(find_af, find_atype): new functions.  use them.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5259 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-11-29 07:39:59 +00:00