Love Hörnquist Åstrand
6b618c3b0b
Use unsigned where appropriate.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22873 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-04-07 18:50:39 +00:00
Love Hörnquist Åstrand
0cf980c265
Try harder to call res_ndestroy().
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19869 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-12 16:03:14 +00:00
Love Hörnquist Åstrand
bd62812bd8
update (c)
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19868 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-12 15:43:30 +00:00
Love Hörnquist Åstrand
0b29b91f6f
(dns_srv_order): change a if (ptr == NULL) continue into a assert(ptr
...
!= NULL) since it could never happen, found by the IBM code checker (beam).
Thanks to Florian Krohm for explaining it.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17063 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-14 13:56:00 +00:00
Love Hörnquist Åstrand
16a5f30931
Plug memory leak found by IBM checker (and try to please it).
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16923 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-02 00:01:55 +00:00
Love Hörnquist Åstrand
59fade5fcd
Spelling, from Alexey Dobriyan, via Jason McIntyre
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16724 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-02-06 19:30:16 +00:00
Love Hörnquist Åstrand
8c05794963
(dns_lookup_int): if we have res_ndestroy, prefeer that before res_nclose
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15945 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-08-22 19:16:21 +00:00
Love Hörnquist Åstrand
761bb32c40
(parse_record): fix casting to avoid losing const
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15411 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-06-16 16:46:16 +00:00
Love Hörnquist Åstrand
709aa58c74
define ROKEN_LIB_FUNCTION on all exported functions
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14773 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-04-12 11:29:18 +00:00
Love Hörnquist Åstrand
f4727981b9
(dns_lookup_int): s/stat/state/ to avoid shadowing
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14697 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-03-30 16:47:18 +00:00
Love Hörnquist Åstrand
236be3a565
put dns_type_to_string and dns_string_to_type in the abi
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14319 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-10-16 12:19:13 +00:00
Love Hörnquist Åstrand
0641d8970d
add ds_record
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14318 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-10-16 12:17:47 +00:00
Love Hörnquist Åstrand
15b169c7a5
(dns_lookup_int): grow the answer buffer to the size the server send
...
to us if the answer buffer was too small (limited to the dns protocol
max packet size)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14212 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-09-11 20:38:55 +00:00
Love Hörnquist Åstrand
e8acf0bd31
add and use and bind9 version of rr type (rk_ns_t_XXX) instead of the
...
old bind4 version (T_XXX)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13945 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-06-20 17:50:09 +00:00
Love Hörnquist Åstrand
8f34150dd9
(stot): add AAAA
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13862 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-05-25 20:14:54 +00:00
Love Hörnquist Åstrand
aacc963b39
parse dns header, add support for SSHFP
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13220 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-12-14 15:43:10 +00:00
Love Hörnquist Åstrand
3a16c33025
number-of fields no longer stored in network order
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13214 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-12-14 09:26:58 +00:00
Love Hörnquist Åstrand
f23430751a
remove depency on c99 types in resolv.h
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13212 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-12-13 20:34:51 +00:00
Love Hörnquist Åstrand
beca19cb05
AIX have broken res_nsearch() in 5.1 (5.0 also ?)
...
so just don't use res_nsearch on AIX
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12431 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-07-11 15:41:40 +00:00
Love Hörnquist Åstrand
aa5a63a286
copy NUL too, from janj@wenf.org via openbsd
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12102 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-04-22 14:59:12 +00:00
Love Hörnquist Åstrand
815445af73
use strlcpy, from openbsd
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12050 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-04-16 16:28:03 +00:00
Johan Danielsson
82a11004de
check length of txt records
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11475 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-10-15 15:20:40 +00:00
Johan Danielsson
14a69cb275
fix res_nsearch call, but don't use it for now, AIX5 has a broken
...
version that trashes memory
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11419 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-09-09 21:39:19 +00:00
Johan Danielsson
f956bbce07
use res_nsearch if we have it (from Larry Greenfield)
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11382 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-09-04 20:55:20 +00:00
Assar Westerlund
03d1e81671
(parse_reply): update the arguments to more reasonable types. allow
...
parse_reply-test to call it
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11353 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-09-03 21:34:44 +00:00
Johan Danielsson
65864e2302
(dns_srv_order): do alignment tricks with the random() state (from NetBSD)
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11283 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-28 20:07:24 +00:00
Assar Westerlund
d6a7b8a83e
(parse_reply): verify the lengths (both external and internal) are
...
consistent and not too long
(dns_lookup_int): be conservative in the length sent in to to
parse_reply
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11239 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-27 20:07:02 +00:00
Johan Danielsson
5d1e7df512
_res might not be available
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11171 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-20 15:52:57 +00:00
Johan Danielsson
86950499d8
(dns_srv_order): don't try to return a value
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10758 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-10-02 15:39:41 +00:00
Assar Westerlund
d7007afdea
(dns_srv_order): make sure of not reading after the array
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10729 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-09-20 09:13:45 +00:00
Assar Westerlund
fa30650a47
(dns_srv_order): fix type of dummy function
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10441 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-08-07 21:57:01 +00:00
Johan Danielsson
fe01f4f57a
dns_srv_order to order srv records
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10039 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-06-09 01:35:04 +00:00
Assar Westerlund
222eec1dad
export string_to_key and key_to_string
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8463 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-06-27 01:15:53 +00:00
Assar Westerlund
eb30a5f53b
add key,sig,cert
...
update test-program
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8462 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-06-27 01:13:51 +00:00
Assar Westerlund
29a1c7bbcd
add SIG and KEY
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8435 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-06-21 15:14:20 +00:00
Assar Westerlund
09af4ce047
(_resolve_debug): explicitly set to zero. this moves the variable
...
from bss to data and the dynamic linker on MacOS X/Darwin seems
unhappy with stuff in the bss segment.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8111 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-04-04 22:01:32 +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
5656cb2244
(parse_reply): error check malloc properly
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6403 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-07-03 02:36:26 +00:00
Johan Danielsson
41f27dd300
ugly fix for crays
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5485 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-03-10 15:36:51 +00:00
Assar Westerlund
079eb1d4ee
(stot): constify
...
(type_to_string): always declare
(dns_lookup_int): correct debug output
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5256 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-11-27 02:08:36 +00:00
Assar Westerlund
42d2c5c26d
(dns_lookup_int): send rr_class to res_search
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5255 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-11-26 22:42:51 +00:00
Johan Danielsson
69b8e5577d
some cleanup
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5252 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-11-26 16:10:14 +00:00
Assar Westerlund
131d80ad77
clean-up
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4820 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-04-26 14:35:43 +00:00
Johan Danielsson
f7baf885b8
Include <arpa/nameser.h> and <resolv.h>.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4567 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-03-10 18:34:51 +00:00
Johan Danielsson
99e103f968
Remove some references to krb4-stuff.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4538 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-03-04 17:33:44 +00:00
Assar Westerlund
339c8c758d
malloc checks
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4117 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-12-05 01:56:46 +00:00
Björn Groenvall
ee25d28a76
Add DNS debug support
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3683 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-10-28 15:37:39 +00:00
Assar Westerlund
3411847375
fix prototype for dummy `dns_lookup'
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1795 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-06-01 04:19:20 +00:00
Johan Danielsson
772eb87d89
Add some const.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1714 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-05-14 17:41:25 +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