2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-29 13:38:26 +00:00

2031 Commits

Author SHA1 Message Date
David Lawrence
6ea5cc5f02 cast 64 bit 't' to int assigning to tm.tm_sec; t is guaranteed < 60.
make value32 be isc_int32_t; loss of data resulting from conversion of
isc_int64_t is already checked.
1999-10-08 23:58:07 +00:00
David Lawrence
ea86510592 cast token as_ulong to unsigned char rather than use token as_char
because the latter will give the wrong value on big-endian systems.
1999-10-08 23:54:40 +00:00
David Lawrence
d2d1163f55 um, ignore that last change. using token.value.as_char will not be
correct on big-endian systems.  use as_ulong but cast to unsigned char.
1999-10-08 23:52:39 +00:00
David Lawrence
cec7a04adc rename CALLBACK to FINDCALLBACK to avoid conflict with windefs.h
definition of CALLBACK.
1999-10-08 23:39:14 +00:00
David Lawrence
fdbe021c62 Cast an argument to dns_rdatatype_iszonecutauth to dns_rdatatype_t;
it is already being range limited.
1999-10-08 23:38:22 +00:00
David Lawrence
571469b0a5 Make 'offset' in dns_name_towire() be isc_uint16_t instead of unsigned int,
since that is what expected by dns_compress_add() called within.  There
is a latent issue with offset being assigned from target->used without range
checking, but since this is already marked by /*XXX*/ I assume that this was
a known problem already.
1999-10-08 23:36:11 +00:00
David Lawrence
619fb9349b Make the conversion from 64 bit time to 32 bit time explicit. It
is already checked after the conversion to ensure no data is lost.
1999-10-08 23:26:55 +00:00
Michael Graff
439c0011e6 snapshot 1999-10-08 23:12:21 +00:00
David Lawrence
9e0c6fc4c1 The return value of zone_delete is isc_reuslt_t, so compare with ISC_R_SUCCESS,
not with NULL.

Do not need string.h, because confcommon.h includes it.
Ditto isc/net.h.

Do not need sys/types.h.
1999-10-08 23:12:00 +00:00
David Lawrence
14981f88a2 Use ISC_DIR_PATHMAX for PATH_MAX.
Cast argument to htons() to isc_uint16_t to delint NT's CL.  It is range
checked before the call.
1999-10-08 23:05:00 +00:00
David Lawrence
53bd3f325f gen-unix.h, gen-win32.h:
platform-specific handling of option parsing and directory iteration.

gen.c:
  use gen-unix.h/gen-win32.h
1999-10-08 22:57:20 +00:00
David Lawrence
5e7e5134a9 dns_c_logginglist_addcategory() 4th arg is isc_boolean_t, not isc_boolean_t * 1999-10-08 22:55:33 +00:00
David Lawrence
e97301448d no need for arpa/nameser.h
needs string.h to prototype frequent use of memset()
1999-10-08 22:52:59 +00:00
David Lawrence
65f7626dff cast int arguments to isc_buffer_putuint{16,32} to appropriate size.
they are already masked out of a 64 bit int to the correct size, but
NT's CL is Unaware.
1999-10-08 22:48:13 +00:00
David Lawrence
793213e886 assign char prefixlen from token.value.as_char, not token.value_.as_ulong.
it has already been checked for range.
1999-10-08 22:46:28 +00:00
William King
e8f6c68c44 added .SILENT to suppress spurious make message on stdout 1999-10-08 22:43:47 +00:00
David Lawrence
432b589972 does not need sys/param.h 1999-10-08 22:32:51 +00:00
David Lawrence
6a79959258 explicitly cast return value of dst_s_id_calc to uint16. the return value
is already masked to 16 bits but the compiler is not smart enough to know
that there is no loss of precision.
1999-10-08 22:27:00 +00:00
David Lawrence
54e9edb759 use ISC_DIR_NAMEMAX instead of PATH_MAX.
There is still an unportable chmod() in here, which for now is
just elided when building on NT.  A Better Way will be made.
1999-10-08 22:25:14 +00:00
David Lawrence
589064803f use ISC_DIR_NAMEMAX instead of PATH_MAX.
cast isc_buffer_putuint{8,16} integers to appropritate size.  nearly all
are clearly masked to the correct size at the location of the call, so
it is just delinting the "conversion supplied" warnings from NT's CL.
1999-10-08 22:24:06 +00:00
David Lawrence
85053e2af8 does not need unistd.h
cast integer arg to isc_buffer_putuint{8,16} to appropriate size.  the
value was already checked for suitable range so casting occurs without
loss of precision.
1999-10-08 22:14:24 +00:00
David Lawrence
0e64f7883a define THIRTY_TWO_BIT instead of SIXTY_FOUR_BIT on WIN32. Since
this file is already heavily ifdef'd with WIN32, one more seemed like
the most reasonable way to handle the matter.
1999-10-08 22:01:05 +00:00
David Lawrence
25ebcfe710 fixed some string manipulation that was aesthetically unpleasing to me.
it must have been the percocet that made me do it the other way.  sorry.
1999-10-08 21:55:31 +00:00
David Lawrence
a7c70d26b9 removed 2nd, redundant, lib/dns/sec/dst/Makefile.in 1999-10-08 21:53:11 +00:00
David Lawrence
63430de345 Check the rdata type for range before uint16_tobuffer, because by the time
uint16_tobuffer is called the loss of data from strtol() already occurred
and uint16_tobuffer would not be able to detect a range error.

delint: integral size mismatch in call to dns_rcode_totext with a 32 bit
int passed where a 16 bit is expected.  since the variable was retrieved
via uint16_fromregion immediately prior to dns_rcode_totext, casting
the 32 bit to 16 bit (to dns_rcode_t) is sufficient.
1999-10-08 21:45:01 +00:00
David Lawrence
0bd044c2af Check the rdata type for range before uint16_tobuffer, because by the time
uint16_tobuffer is called the loss of data from strtol() already occurred
and uint16_tobuffer would not be able to detect a range error.

also, use token.value.as_char when assigning to char c, which is already
checked to be < 256.
1999-10-08 21:42:23 +00:00
David Lawrence
6e482e595d fromtext_nxt(): check the range of 'dns_rdatatype_t covered' from the long int
that is read via strtol() rather than assigning covered directly from strtol(),
so that a value greater than the width of dns_rdatatype_t can be detected.
1999-10-08 21:26:42 +00:00
David Lawrence
722cc17289 delint: integral size mismatch in call to dns_cert_totext with a 32 bit
int passed where a 16 bit is expected.  since the variable was retrieved
via uint16_fromregion immediately prior to dns_cert_totext, casting
the 32 bit to 16 bit (to dns_cert_t) is sufficient.
1999-10-08 21:22:27 +00:00
Brian Wellington
949d406b57 reference counting on TSIG keys. Necessary for TKEY delete 1999-10-08 20:14:47 +00:00
William King
746e7fb32f fixed a test case 1999-10-08 19:04:56 +00:00
William King
e582897ab4 silenced make action echo for target test: 1999-10-08 18:43:15 +00:00
William King
43383e3599 fixed expected result of one test 1999-10-08 18:38:55 +00:00
Brian Wellington
3f6dc1703f tsig structure/function name change 1999-10-08 18:37:24 +00:00
Bob Halley
139154bd98 fix the makefile fixes added because nmake sucks 1999-10-08 16:40:38 +00:00
Brian Wellington
2c12fc4d63 the TSIG key name shouldn't be created with dns_name_dup 1999-10-08 16:39:17 +00:00
Brian Wellington
069104dd6a the message->cleanup list was being improperly cleaned 1999-10-08 14:59:02 +00:00
Brian Wellington
22fe53a629 more warning fixes 1999-10-08 13:08:57 +00:00
Mark Andrews
41a28deee4 Need to take address of signer. 1999-10-08 06:54:23 +00:00
Bob Halley
d2358a453e improve exit/cleanup code 1999-10-08 00:05:59 +00:00
William King
31654d4333 ran into what looks like a compiler problem ... 1999-10-07 22:49:27 +00:00
Brian Wellington
452123247d updated to match struct changes for tsig and sig 1999-10-07 21:51:49 +00:00
Brian Wellington
cf3f14106d Changed 'dns_name_t *' in structs to 'dns_name_t' 1999-10-07 21:49:39 +00:00
Brian Wellington
be51993531 added key to/from/free struct 1999-10-07 21:48:52 +00:00
William King
fa20568962 *** empty log message *** 1999-10-07 21:23:59 +00:00
William King
69f5e6b73b changed dependencies 1999-10-07 21:12:54 +00:00
Brian Wellington
e14bb110b5 linux capability stuff didn't work with kernel 2.2 and glibc 2.0 1999-10-07 20:45:46 +00:00
Bob Halley
92d5e65479 add adb_test and nconf_test 1999-10-07 19:45:19 +00:00
Bob Halley
4fdb67f4eb resolver support checkpoint; partial AD support 1999-10-07 19:44:22 +00:00
Bob Halley
0fef48d0e6 ends fixes; clear AA and AD on error 1999-10-07 19:43:18 +00:00
Bob Halley
e3027d397f resolver checkpoint 1999-10-07 19:41:16 +00:00