Ted Lemon
2321120a86
Oops, fix the cast from the previous commit so it actually helps.
2001-01-08 17:26:04 +00:00
Ted Lemon
b8a4e41a7a
Fix a signed vs. unsigned problem.
2001-01-08 15:39:43 +00:00
Ted Lemon
f5985f55bf
- Always decrement the reference count on an object before dereferencing it,
...
so that if there's a dangling pointer, it's caught at dereference time.
2000-12-28 23:22:43 +00:00
Damien Neil
8c3c655296
Properly add ".SIG-ALG.REG.INT." to OMAPI key algorithms.
2000-12-09 00:10:55 +00:00
Damien Neil
a323900510
Fix omapi_protocol_connect() to properly return ISC_R_INCOMPLETE
...
when necessary. This should fix problems with forming OMAPI connections
to remote hosts.
2000-12-09 00:07:46 +00:00
Ted Lemon
6e0f9707d8
Make error codes for DNS errors.
2000-11-28 23:32:04 +00:00
Damien Neil
d01dde7682
Fix for bug #416 : If a server hands dhclient an insanely large
...
lease time, select() can get passed a too-large timeout, causing it
to return EINVAL. This fix restricts the select() timeout to one day.
2000-11-01 23:59:57 +00:00
Damien Neil
366556efc7
Tweak omapi_protocol_connect() so that authenticators are sent in the
...
proper order.
2000-10-30 18:48:07 +00:00
Ted Lemon
c4403423ed
Add omapi object initializer to object type structure.
2000-10-10 23:00:31 +00:00
Ted Lemon
c509341958
Call object initializer from omapi_object_initialize if there is one.
2000-10-10 22:59:37 +00:00
Ted Lemon
b85703e41b
Allow return result of ISC_R_UNCHANGED in omapi_update_object.
2000-10-01 21:42:42 +00:00
Ted Lemon
84b0068537
Don't dump core when sending a name/value pair with a null value.
2000-10-01 21:41:34 +00:00
Ted Lemon
6bbd4fd6ba
Wrap some new debugging code with #ifdef DEBUG.
2000-09-29 22:42:09 +00:00
Ted Lemon
67a291cfbf
Do better status checking when starting connections.
2000-09-29 20:58:26 +00:00
Ted Lemon
0a10a8df1d
Bounds check the output buffer in do_percentm.
2000-09-29 20:01:49 +00:00
Ted Lemon
a5d575bc86
Correctly handle the case where the connection doesn't complete immediately.
2000-09-29 18:12:50 +00:00
Ted Lemon
eadee39698
Panic commit.
2000-09-27 23:37:44 +00:00
Ted Lemon
cdb71011ef
Move inet_aton to libomapi
2000-09-20 00:01:50 +00:00
Ted Lemon
645eab7bec
Print more information when bad socket is found.
2000-09-12 21:53:15 +00:00
Ted Lemon
5d62f96940
Add some more verbiage to fatal error message.
2000-09-04 22:28:10 +00:00
Ted Lemon
60e0a4f9b6
Work around a pedantic warning about empty format strings.
2000-09-01 23:17:00 +00:00
Ted Lemon
f1b8950a86
- Provide information on how to get support (and how not to) if the server
...
exits with an error.
2000-09-01 23:04:37 +00:00
Ted Lemon
275082ddad
Support ISC_R_INCOMPLETE for partial connects.
2000-08-31 04:39:18 +00:00
Ted Lemon
4b63c26ef8
Use unsigned char instead of u_char.
2000-08-17 19:43:04 +00:00
Ted Lemon
a69fc68a1b
Fix a compile warning.
2000-08-17 19:41:48 +00:00
Damien Neil
61b04b0026
Install the ISC header files required to get omapi to work.
2000-08-17 17:39:51 +00:00
Damien Neil
e11a162ff4
Added a number of (#ifdef-guarded) debugging statements.
2000-08-14 21:58:57 +00:00
Damien Neil
49146f3c15
Added authentication support. The tsig_key structure has been renamed
...
to auth_key and moved into libomapi. libomapi now depends on libres,
which contains the data signing routines.
2000-08-03 21:00:41 +00:00
Damien Neil
c62871ba64
Moved hash.c from libdhcp to libomapi, in anticipation of moving the
...
tsig_key structure into libomapi. (tsig_keys are stored in a hashtable,
and libomapi should not depend on libdhcp.)
2000-08-01 22:55:07 +00:00
Damien Neil
c8d531a6f9
Moved convert.c from libdhcp to libomapi. (libomapi should not depend
...
on libdhcp.)
2000-08-01 22:34:36 +00:00
Damien Neil
db4cfe3b09
Changed all uses of omapi_message_allocate() to omapi_message_new(), which
...
properly initializes the internals of the message object.
2000-07-15 01:59:00 +00:00
Damien Neil
01a4c2a2a9
Tweak object dereferencing: I believe dereferencing object chains were not
...
being freed correctly. (This duplicates a change made by Tale in revision
1.8 of the BIND9 object.c.)
2000-07-10 17:05:18 +00:00
Damien Neil
c3064fe0cf
Properly initialize 'last' when removing I/O objects: removing the first
...
one should no longer croak.
2000-07-10 17:03:38 +00:00
Ted Lemon
b1b044759a
- Support a per-type allocator that is called prior to trying dmalloc,
...
so that objects can maintain free lists.
2000-07-06 22:43:32 +00:00
Ted Lemon
0b1e395f13
Adjust arguments to omapi_object_type_register
2000-07-06 22:37:53 +00:00
Ted Lemon
edbb766799
Get rid of some debugging statements
2000-07-05 09:13:02 +00:00
Ted Lemon
7cec271f9a
Use object free routine if provided.
2000-07-05 07:29:56 +00:00
Ted Lemon
b25673ec41
Don't build executables named test.
2000-06-30 00:43:00 +00:00
Ted Lemon
477e97ddd3
Fix some debugging code so it compiles on Solaris.
2000-06-29 20:07:00 +00:00
Ted Lemon
4f9e9f47a9
Put some extra paranoia in logging subroutines.
2000-06-29 20:05:18 +00:00
Ted Lemon
524c92851c
When debugging malloc on an object, be sure it has no special free routine.
2000-06-24 06:27:04 +00:00
Ted Lemon
cfb3f45dac
- Add some code to actually track down and report the I/O object that's
...
producing a bad descriptor, and to try to shut it down.
2000-06-20 20:30:27 +00:00
Ted Lemon
88dd0d2083
Fix depend target. Don't echo building of links.
2000-06-20 20:29:16 +00:00
Ted Lemon
62452b8ffa
Use mkdep rather than makedepend
2000-06-12 22:25:55 +00:00
Ted Lemon
d8c4674091
Account for possibility that io object has no inner object.
2000-06-06 23:47:27 +00:00
Ted Lemon
ee3aeca67f
Completely break connection to I/O object when connection is severed.
2000-06-06 23:47:14 +00:00
Ted Lemon
165bce70b2
Fix up various platform-specific errors.
2000-05-17 16:04:26 +00:00
Ted Lemon
20916cae75
- Fix all the OMAPI objects in the DHCP server and client that weren't
...
being correctly reference-counted.
- Make and use object-specific allocators.
- Add reference/dereference support to hash functions and to timeout
functions.
2000-05-16 23:03:49 +00:00
Ted Lemon
7deff07643
Oops, fix a past-o.
2000-05-15 15:47:11 +00:00
Ted Lemon
ffc0586664
Don't send the intro until we receive the connect signal.
2000-05-15 15:44:31 +00:00